@omicronenergy/oscd-ui 0.0.4 → 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 -49
  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 -6
  127. package/menu/OscdMenu.stories.js +0 -55
  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":"oscd-app-bar.js","sourceRoot":"","sources":["oscd-app-bar.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,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 { OscdAppBar } from \"./OscdAppBar.js\";\n\nwindow.customElements.define(\"oscd-app-bar\", OscdAppBar);\nexport { OscdAppBar };\n"]}
@@ -1,7 +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 FilledButton: Story;
6
- export declare const OutlinedButton: Story;
7
- export declare const TextButton: Story;
@@ -1,60 +0,0 @@
1
- import { html } from "lit";
2
- import { OscdTextButton } from "button/OscdTextButton";
3
- import { scopedWcDecorator } from "utils/storybook/scopedWcDecorator.js";
4
- import { OscdFilledButton } from "./OscdFilledButton";
5
- import { OscdOutlinedButton } from "./OscdOutlinedButton";
6
- const meta = {
7
- title: "Open SCD/Buttons",
8
- tags: ["autodocs"],
9
- decorators: [scopedWcDecorator],
10
- parameters: {
11
- layout: "centered",
12
- scopedElements: {
13
- "oscd-filled-button": OscdFilledButton,
14
- "oscd-outlined-button": OscdOutlinedButton,
15
- "oscd-text-button": OscdTextButton,
16
- },
17
- },
18
- argTypes: {
19
- label: {
20
- control: { type: "text" },
21
- description: "Button label",
22
- table: {
23
- category: "Web Component Properties",
24
- defaultValue: { summary: "Click Me" },
25
- },
26
- },
27
- },
28
- };
29
- export default meta;
30
- export const FilledButton = {
31
- args: {
32
- label: "Filled Button",
33
- },
34
- render: ({ label }) => html `
35
- <oscd-filled-button @click=${() => console.log("Clicked!")}>
36
- ${label}
37
- </oscd-filled-button>
38
- `,
39
- };
40
- export const OutlinedButton = {
41
- args: {
42
- label: "Outlined Button",
43
- },
44
- render: ({ label }) => html `
45
- <oscd-outlined-button @click=${() => console.log("Clicked!")}>
46
- ${label}
47
- </oscd-outlined-button>
48
- `,
49
- };
50
- export const TextButton = {
51
- args: {
52
- label: "Text Button",
53
- },
54
- render: ({ label }) => html `
55
- <oscd-text-button @click=${() => console.log("Clicked!")}>
56
- ${label}
57
- </oscd-text-button>
58
- `,
59
- };
60
- //# sourceMappingURL=OscdButton.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OscdButton.stories.js","sourceRoot":"","sources":["OscdButton.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,cAAc,EAAE;YACd,oBAAoB,EAAE,gBAAgB;YACtC,sBAAsB,EAAE,kBAAkB;YAC1C,kBAAkB,EAAE,cAAc;SACnC;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACzB,WAAW,EAAE,cAAc;YAC3B,KAAK,EAAE;gBACL,QAAQ,EAAE,0BAA0B;gBACpC,YAAY,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;aACtC;SACF;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,YAAY,GAAU;IACjC,IAAI,EAAE;QACJ,KAAK,EAAE,eAAe;KACvB;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA;iCACI,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QACtD,KAAK;;GAEV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE;QACJ,KAAK,EAAE,iBAAiB;KACzB;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA;mCACM,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QACxD,KAAK;;GAEV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE;QACJ,KAAK,EAAE,aAAa;KACrB;IACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA;+BACE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QACpD,KAAK;;GAEV;CACF,CAAC","sourcesContent":["import { html } from \"lit\";\nimport type { Meta, StoryObj } from \"@storybook/web-components\";\n\nimport { OscdTextButton } from \"button/OscdTextButton\";\nimport { scopedWcDecorator } from \"utils/storybook/scopedWcDecorator.js\";\nimport { OscdFilledButton } from \"./OscdFilledButton\";\nimport { OscdOutlinedButton } from \"./OscdOutlinedButton\";\n\nconst meta: Meta = {\n title: \"Open SCD/Buttons\",\n tags: [\"autodocs\"],\n decorators: [scopedWcDecorator],\n parameters: {\n layout: \"centered\",\n scopedElements: {\n \"oscd-filled-button\": OscdFilledButton,\n \"oscd-outlined-button\": OscdOutlinedButton,\n \"oscd-text-button\": OscdTextButton,\n },\n },\n argTypes: {\n label: {\n control: { type: \"text\" },\n description: \"Button label\",\n table: {\n category: \"Web Component Properties\",\n defaultValue: { summary: \"Click Me\" },\n },\n },\n },\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const FilledButton: Story = {\n args: {\n label: \"Filled Button\",\n },\n render: ({ label }) => html`\n <oscd-filled-button @click=${() => console.log(\"Clicked!\")}>\n ${label}\n </oscd-filled-button>\n `,\n};\n\nexport const OutlinedButton: Story = {\n args: {\n label: \"Outlined Button\",\n },\n render: ({ label }) => html`\n <oscd-outlined-button @click=${() => console.log(\"Clicked!\")}>\n ${label}\n </oscd-outlined-button>\n `,\n};\n\nexport const TextButton: Story = {\n args: {\n label: \"Text Button\",\n },\n render: ({ label }) => html`\n <oscd-text-button @click=${() => console.log(\"Clicked!\")}>\n ${label}\n </oscd-text-button>\n `,\n};\n"]}
@@ -1,40 +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 { FilledButton } from "@material/web/button/internal/filled-button.js";
12
- import { CSSResult } from "@lit/reactive-element";
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "oscd-filled-button": OscdFilledButton;
16
- }
17
- }
18
- /**
19
- * @summary Buttons help people take action, such as sending an email, sharing a
20
- * document, or liking a comment.
21
- *
22
- * @description
23
- * __Emphasis:__ High emphasis – For the primary, most important, or most common
24
- * action on a screen
25
- *
26
- * __Rationale:__ The filled button’s contrasting surface color makes it the
27
- * most prominent button after the FAB. It’s used for final or unblocking
28
- * actions in a flow.
29
- *
30
- * __Example usages:__
31
- * - Save
32
- * - Confirm
33
- * - Done
34
- *
35
- * @final
36
- * @suppress {visibility}
37
- */
38
- export declare class OscdFilledButton extends FilledButton {
39
- static styles: CSSResult[];
40
- }
@@ -1,42 +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 { FilledButton } from "@material/web/button/internal/filled-button.js";
12
- import { styles as filledStyles } from "@material/web/button/internal/filled-styles.js";
13
- import { styles as sharedElevationStyles } from "@material/web/button/internal/shared-elevation-styles.js";
14
- import { styles as sharedStyles } from "@material/web/button/internal/shared-styles.js";
15
- /**
16
- * @summary Buttons help people take action, such as sending an email, sharing a
17
- * document, or liking a comment.
18
- *
19
- * @description
20
- * __Emphasis:__ High emphasis – For the primary, most important, or most common
21
- * action on a screen
22
- *
23
- * __Rationale:__ The filled button’s contrasting surface color makes it the
24
- * most prominent button after the FAB. It’s used for final or unblocking
25
- * actions in a flow.
26
- *
27
- * __Example usages:__
28
- * - Save
29
- * - Confirm
30
- * - Done
31
- *
32
- * @final
33
- * @suppress {visibility}
34
- */
35
- export class OscdFilledButton extends FilledButton {
36
- static styles = [
37
- sharedStyles,
38
- sharedElevationStyles,
39
- filledStyles,
40
- ];
41
- }
42
- //# sourceMappingURL=OscdFilledButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OscdFilledButton.js","sourceRoot":"","sources":["OscdFilledButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,MAAM,IAAI,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAC3G,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AASxF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IAChD,MAAM,CAAU,MAAM,GAAgB;QACpC,YAAY;QACZ,qBAAqB;QACrB,YAAY;KACb,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { FilledButton } from \"@material/web/button/internal/filled-button.js\";\nimport { styles as filledStyles } from \"@material/web/button/internal/filled-styles.js\";\nimport { styles as sharedElevationStyles } from \"@material/web/button/internal/shared-elevation-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/button/internal/shared-styles.js\";\nimport { CSSResult } from \"@lit/reactive-element\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-filled-button\": OscdFilledButton;\n }\n}\n\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ High emphasis – For the primary, most important, or most common\n * action on a screen\n *\n * __Rationale:__ The filled button’s contrasting surface color makes it the\n * most prominent button after the FAB. It’s used for final or unblocking\n * actions in a flow.\n *\n * __Example usages:__\n * - Save\n * - Confirm\n * - Done\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledButton extends FilledButton {\n static override styles: CSSResult[] = [\n sharedStyles,\n sharedElevationStyles,\n filledStyles,\n ];\n}\n"]}
@@ -1,6 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2024 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export {};
@@ -1,75 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2024 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { __decorate } from "tslib";
7
- // import 'jasmine'; (google3-only)
8
- import { html } from "lit";
9
- import { customElement } from "lit/decorators.js";
10
- import { Environment } from "../testing/environment.js";
11
- import { ButtonHarness } from "@material/web/button/harness.js";
12
- import { OscdFilledButton as Button } from "./OscdFilledButton.js";
13
- let TestButton = class TestButton extends Button {
14
- };
15
- TestButton = __decorate([
16
- customElement("test-button")
17
- ], TestButton);
18
- describe("Button", () => {
19
- const env = new Environment();
20
- async function setupTest() {
21
- const button = new TestButton();
22
- env.render(html `${button}`);
23
- await env.waitForStability();
24
- return { button, harness: new ButtonHarness(button) };
25
- }
26
- it("should not be focusable when disabled", async () => {
27
- // Arrange
28
- const { button } = await setupTest();
29
- button.disabled = true;
30
- await env.waitForStability();
31
- // Act
32
- button.focus();
33
- // Assert
34
- expect(document.activeElement)
35
- .withContext("disabled button should not be focused")
36
- .not.toBe(button);
37
- });
38
- it("should be focusable when soft-disabled", async () => {
39
- // Arrange
40
- const { button } = await setupTest();
41
- button.softDisabled = true;
42
- await env.waitForStability();
43
- // Act
44
- button.focus();
45
- // Assert
46
- expect(document.activeElement)
47
- .withContext("soft-disabled button should be focused")
48
- .toBe(button);
49
- });
50
- it("should not be clickable when disabled", async () => {
51
- // Arrange
52
- const clickListener = jasmine.createSpy("clickListener");
53
- const { button } = await setupTest();
54
- button.disabled = true;
55
- button.addEventListener("click", clickListener);
56
- await env.waitForStability();
57
- // Act
58
- button.click();
59
- // Assert
60
- expect(clickListener).not.toHaveBeenCalled();
61
- });
62
- it("should not be clickable when soft-disabled", async () => {
63
- // Arrange
64
- const clickListener = jasmine.createSpy("clickListener");
65
- const { button } = await setupTest();
66
- button.softDisabled = true;
67
- button.addEventListener("click", clickListener);
68
- await env.waitForStability();
69
- // Act
70
- button.click();
71
- // Assert
72
- expect(clickListener).not.toHaveBeenCalled();
73
- });
74
- });
75
- //# sourceMappingURL=OscdFilledButton.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OscdFilledButton.spec.js","sourceRoot":"","sources":["OscdFilledButton.spec.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * @license\n * Copyright 2024 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// import 'jasmine'; (google3-only)\n\nimport { html } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\n\nimport { Environment } from \"../testing/environment.js\";\n\nimport { ButtonHarness } from \"@material/web/button/harness.js\";\nimport { OscdFilledButton as Button } from \"./OscdFilledButton.js\";\n\n@customElement(\"test-button\")\nclass TestButton extends Button {}\n\ndescribe(\"Button\", () => {\n const env = new Environment();\n\n async function setupTest() {\n const button = new TestButton();\n env.render(html`${button}`);\n await env.waitForStability();\n return { button, harness: new ButtonHarness(button) };\n }\n\n it(\"should not be focusable when disabled\", async () => {\n // Arrange\n const { button } = await setupTest();\n button.disabled = true;\n await env.waitForStability();\n\n // Act\n button.focus();\n\n // Assert\n expect(document.activeElement)\n .withContext(\"disabled button should not be focused\")\n .not.toBe(button);\n });\n\n it(\"should be focusable when soft-disabled\", async () => {\n // Arrange\n const { button } = await setupTest();\n button.softDisabled = true;\n await env.waitForStability();\n\n // Act\n button.focus();\n\n // Assert\n expect(document.activeElement)\n .withContext(\"soft-disabled button should be focused\")\n .toBe(button);\n });\n\n it(\"should not be clickable when disabled\", async () => {\n // Arrange\n const clickListener = jasmine.createSpy(\"clickListener\");\n const { button } = await setupTest();\n button.disabled = true;\n button.addEventListener(\"click\", clickListener);\n await env.waitForStability();\n\n // Act\n button.click();\n\n // Assert\n expect(clickListener).not.toHaveBeenCalled();\n });\n\n it(\"should not be clickable when soft-disabled\", async () => {\n // Arrange\n const clickListener = jasmine.createSpy(\"clickListener\");\n const { button } = await setupTest();\n button.softDisabled = true;\n button.addEventListener(\"click\", clickListener);\n await env.waitForStability();\n\n // Act\n button.click();\n\n // Assert\n expect(clickListener).not.toHaveBeenCalled();\n });\n});\n"]}
@@ -1,42 +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 { OutlinedButton } from '@material/web/button/internal/outlined-button.js';
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- 'md-outlined-button': OscdOutlinedButton;
16
- }
17
- }
18
- /**
19
- * @summary Buttons help people take action, such as sending an email, sharing a
20
- * document, or liking a comment.
21
- *
22
- * @description
23
- * __Emphasis:__ Medium emphasis – For important actions that don’t distract
24
- * from other onscreen elements.
25
- *
26
- * __Rationale:__ Use an outlined button for actions that need attention but
27
- * aren’t the primary action, such as “See all” or “Add to cart.” This is also
28
- * the button to use for giving someone the opportunity to change their mind or
29
- * escape a flow.
30
- *
31
- * __Example usages:__
32
- * - Reply
33
- * - View all
34
- * - Add to cart
35
- * - Take out of trash
36
- *
37
- * @final
38
- * @suppress {visibility}
39
- */
40
- export declare class OscdOutlinedButton extends OutlinedButton {
41
- static styles: CSSResultOrNative[];
42
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { OutlinedButton } from '@material/web/button/internal/outlined-button.js';
7
- import { styles as outlinedStyles } from '@material/web/button/internal/outlined-styles.js';
8
- import { styles as sharedStyles } from '@material/web/button/internal/shared-styles.js';
9
- /**
10
- * @summary Buttons help people take action, such as sending an email, sharing a
11
- * document, or liking a comment.
12
- *
13
- * @description
14
- * __Emphasis:__ Medium emphasis – For important actions that don’t distract
15
- * from other onscreen elements.
16
- *
17
- * __Rationale:__ Use an outlined button for actions that need attention but
18
- * aren’t the primary action, such as “See all” or “Add to cart.” This is also
19
- * the button to use for giving someone the opportunity to change their mind or
20
- * escape a flow.
21
- *
22
- * __Example usages:__
23
- * - Reply
24
- * - View all
25
- * - Add to cart
26
- * - Take out of trash
27
- *
28
- * @final
29
- * @suppress {visibility}
30
- */
31
- export class OscdOutlinedButton extends OutlinedButton {
32
- static styles = [sharedStyles, outlinedStyles];
33
- }
34
- //# sourceMappingURL=OscdOutlinedButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OscdOutlinedButton.js","sourceRoot":"","sources":["OscdOutlinedButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAC,cAAc,EAAC,MAAM,kDAAkD,CAAC;AAChF,OAAO,EAAC,MAAM,IAAI,cAAc,EAAC,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,gDAAgD,CAAC;AAQtF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {CSSResultOrNative} from 'lit';\n\nimport {OutlinedButton} from '@material/web/button/internal/outlined-button.js';\nimport {styles as outlinedStyles} from '@material/web/button/internal/outlined-styles.js';\nimport {styles as sharedStyles} from '@material/web/button/internal/shared-styles.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-outlined-button': OscdOutlinedButton;\n }\n}\n\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Medium emphasis – For important actions that don’t distract\n * from other onscreen elements.\n *\n * __Rationale:__ Use an outlined button for actions that need attention but\n * aren’t the primary action, such as “See all” or “Add to cart.” This is also\n * the button to use for giving someone the opportunity to change their mind or\n * escape a flow.\n *\n * __Example usages:__\n * - Reply\n * - View all\n * - Add to cart\n * - Take out of trash\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedButton extends OutlinedButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, outlinedStyles];\n}\n"]}
@@ -1,40 +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 { TextButton } from "@material/web/button/internal/text-button.js";
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "oscd-text-button": OscdTextButton;
16
- }
17
- }
18
- /**
19
- * @summary Buttons help people take action, such as sending an email, sharing a
20
- * document, or liking a comment.
21
- *
22
- * @description
23
- * __Emphasis:__ Low emphasis – For optional or supplementary actions with the
24
- * least amount of prominence
25
- *
26
- * __Rationale:__ Text buttons have less visual prominence, so should be used
27
- * for low emphasis actions, such as an alternative option.
28
- *
29
- * __Example usages:__
30
- * - Learn more
31
- * - View all
32
- * - Change account
33
- * - Turn on
34
- *
35
- * @final
36
- * @suppress {visibility}
37
- */
38
- export declare class OscdTextButton extends TextButton {
39
- static styles: CSSResultOrNative[];
40
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { styles as sharedStyles } from "@material/web/button/internal/shared-styles.js";
7
- import { TextButton } from "@material/web/button/internal/text-button.js";
8
- import { styles as textStyles } from "@material/web/button/internal/text-styles.js";
9
- /**
10
- * @summary Buttons help people take action, such as sending an email, sharing a
11
- * document, or liking a comment.
12
- *
13
- * @description
14
- * __Emphasis:__ Low emphasis – For optional or supplementary actions with the
15
- * least amount of prominence
16
- *
17
- * __Rationale:__ Text buttons have less visual prominence, so should be used
18
- * for low emphasis actions, such as an alternative option.
19
- *
20
- * __Example usages:__
21
- * - Learn more
22
- * - View all
23
- * - Change account
24
- * - Turn on
25
- *
26
- * @final
27
- * @suppress {visibility}
28
- */
29
- export class OscdTextButton extends TextButton {
30
- static styles = [sharedStyles, textStyles];
31
- }
32
- //# sourceMappingURL=OscdTextButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OscdTextButton.js","sourceRoot":"","sources":["OscdTextButton.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAQpF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAC5C,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from \"lit\";\nimport { styles as sharedStyles } from \"@material/web/button/internal/shared-styles.js\";\nimport { TextButton } from \"@material/web/button/internal/text-button.js\";\nimport { styles as textStyles } from \"@material/web/button/internal/text-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-text-button\": OscdTextButton;\n }\n}\n\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence\n *\n * __Rationale:__ Text buttons have less visual prominence, so should be used\n * for low emphasis actions, such as an alternative option.\n *\n * __Example usages:__\n * - Learn more\n * - View all\n * - Change account\n * - Turn on\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdTextButton extends TextButton {\n static override styles: CSSResultOrNative[] = [sharedStyles, textStyles];\n}\n"]}
@@ -1,2 +0,0 @@
1
- import { OscdFilledButton } from "./OscdFilledButton";
2
- export { OscdFilledButton };
@@ -1,4 +0,0 @@
1
- import { OscdFilledButton } from "./OscdFilledButton";
2
- customElements.define("oscd-filled-button", OscdFilledButton);
3
- export { OscdFilledButton };
4
- //# sourceMappingURL=oscd-filled-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oscd-filled-button.js","sourceRoot":"","sources":["oscd-filled-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { OscdFilledButton } from \"./OscdFilledButton\";\n\ncustomElements.define(\"oscd-filled-button\", OscdFilledButton);\nexport { OscdFilledButton };\n"]}
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 OMICRON Electronics GmbH
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { OscdOutlinedButton } from "./OscdOutlinedButton";
7
- export { OscdOutlinedButton };
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 OMICRON Electronics GmbH
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { OscdOutlinedButton } from "./OscdOutlinedButton";
7
- customElements.define("oscd-outlined-button", OscdOutlinedButton);
8
- export { OscdOutlinedButton };
9
- //# sourceMappingURL=oscd-outlined-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oscd-outlined-button.js","sourceRoot":"","sources":["oscd-outlined-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { OscdOutlinedButton } from \"./OscdOutlinedButton\";\n\ncustomElements.define(\"oscd-outlined-button\", OscdOutlinedButton);\nexport { OscdOutlinedButton };\n"]}
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 OMICRON Electronics GmbH
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { OscdTextButton } from "./OscdTextButton";
7
- export { OscdTextButton };
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 OMICRON Electronics GmbH
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { OscdTextButton } from "./OscdTextButton";
7
- customElements.define("oscd-text-button", OscdTextButton);
8
- export { OscdTextButton };
9
- //# sourceMappingURL=oscd-text-button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oscd-text-button.js","sourceRoot":"","sources":["oscd-text-button.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { OscdTextButton } from \"./OscdTextButton\";\n\ncustomElements.define(\"oscd-text-button\", OscdTextButton);\nexport { OscdTextButton };\n"]}
@@ -1,47 +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 { Dialog } from "@material/web/dialog/internal/dialog.js";
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "oscd-dialog": OscdDialog;
16
- }
17
- }
18
- /**
19
- * @summary Dialogs can require an action, communicate information, or help
20
- * users accomplish a task. There are two types of dialogs: basic and
21
- * full-screen.
22
- *
23
- * @description
24
- * A dialog is a modal window that appears in front of app content to provide
25
- * critical information or ask for a decision. Dialogs disable all app
26
- * functionality when they appear, and remain on screen until confirmed,
27
- * dismissed, or a required action has been taken.
28
- *
29
- * Dialogs are purposefully interruptive, so they should be used sparingly.
30
- * A less disruptive alternative is to use a menu, which provides options
31
- * without interrupting a user’s experience.
32
- *
33
- * On mobile devices only, complex dialogs should be displayed fullscreen.
34
- *
35
- * __Example usages:__
36
- * - Common use cases for basic dialogs include alerts, quick selection, and
37
- * confirmation.
38
- * - More complex dialogs may contain actions that require a series of tasks
39
- * to complete. One example is creating a calendar entry with the event title,
40
- * date, location, and time.
41
- *
42
- * @final
43
- * @suppress {visibility}
44
- */
45
- export declare class OscdDialog extends Dialog {
46
- static styles: CSSResultOrNative[];
47
- }
@@ -1,49 +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 { css } from "lit";
12
- import { Dialog } from "@material/web/dialog/internal/dialog.js";
13
- import { styles } from "@material/web/dialog/internal/dialog-styles.js";
14
- const styleOverrides = css `
15
- .scrim {
16
- z-index: 6;
17
- }
18
- `;
19
- /**
20
- * @summary Dialogs can require an action, communicate information, or help
21
- * users accomplish a task. There are two types of dialogs: basic and
22
- * full-screen.
23
- *
24
- * @description
25
- * A dialog is a modal window that appears in front of app content to provide
26
- * critical information or ask for a decision. Dialogs disable all app
27
- * functionality when they appear, and remain on screen until confirmed,
28
- * dismissed, or a required action has been taken.
29
- *
30
- * Dialogs are purposefully interruptive, so they should be used sparingly.
31
- * A less disruptive alternative is to use a menu, which provides options
32
- * without interrupting a user’s experience.
33
- *
34
- * On mobile devices only, complex dialogs should be displayed fullscreen.
35
- *
36
- * __Example usages:__
37
- * - Common use cases for basic dialogs include alerts, quick selection, and
38
- * confirmation.
39
- * - More complex dialogs may contain actions that require a series of tasks
40
- * to complete. One example is creating a calendar entry with the event title,
41
- * date, location, and time.
42
- *
43
- * @final
44
- * @suppress {visibility}
45
- */
46
- export class OscdDialog extends Dialog {
47
- static styles = [styles, styleOverrides];
48
- }
49
- //# sourceMappingURL=OscdDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OscdDialog.js","sourceRoot":"","sources":["OscdDialog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AAQxE,MAAM,cAAc,GAAG,GAAG,CAAA;;;;CAIzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,UAAW,SAAQ,MAAM;IACpC,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,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 */\n\nimport { css, CSSResultOrNative } from \"lit\";\nimport { Dialog } from \"@material/web/dialog/internal/dialog.js\";\nimport { styles } from \"@material/web/dialog/internal/dialog-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-dialog\": OscdDialog;\n }\n}\n\nconst styleOverrides = css`\n .scrim {\n z-index: 6;\n }\n`;\n\n/**\n * @summary Dialogs can require an action, communicate information, or help\n * users accomplish a task. There are two types of dialogs: basic and\n * full-screen.\n *\n * @description\n * A dialog is a modal window that appears in front of app content to provide\n * critical information or ask for a decision. Dialogs disable all app\n * functionality when they appear, and remain on screen until confirmed,\n * dismissed, or a required action has been taken.\n *\n * Dialogs are purposefully interruptive, so they should be used sparingly.\n * A less disruptive alternative is to use a menu, which provides options\n * without interrupting a user’s experience.\n *\n * On mobile devices only, complex dialogs should be displayed fullscreen.\n *\n * __Example usages:__\n * - Common use cases for basic dialogs include alerts, quick selection, and\n * confirmation.\n * - More complex dialogs may contain actions that require a series of tasks\n * to complete. One example is creating a calendar entry with the event title,\n * date, location, and time.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdDialog extends Dialog {\n static override styles: CSSResultOrNative[] = [styles, styleOverrides];\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;