@omicronenergy/oscd-ui 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/dist/about/Catalog.stories.js +305 -0
- package/{app-bar → dist/app-bar}/OscdAppBar.js +27 -25
- package/dist/app-bar/OscdAppBar.stories.js +83 -0
- package/dist/button/OscdElevatedButton.js +53 -0
- package/dist/button/OscdElevatedButton.spec.js +36 -0
- package/dist/button/OscdElevatedButton.stories.js +20 -0
- package/dist/button/OscdFilledButton.js +51 -0
- package/dist/button/OscdFilledButton.spec.js +36 -0
- package/dist/button/OscdFilledButton.stories.js +20 -0
- package/dist/button/OscdFilledTonalButton.js +52 -0
- package/dist/button/OscdFilledTonalButton.spec.js +36 -0
- package/dist/button/OscdFilledTonalButton.stories.js +20 -0
- package/dist/button/OscdOutlinedButton.js +46 -0
- package/dist/button/OscdOutlinedButton.spec.js +36 -0
- package/dist/button/OscdOutlinedButton.stories.js +20 -0
- package/dist/button/OscdTextButton.js +44 -0
- package/dist/button/OscdTextButton.spec.js +36 -0
- package/dist/button/OscdTextButton.stories.js +20 -0
- package/dist/button/oscd-elevated-button.js +9 -0
- package/dist/button/oscd-filled-button.js +9 -0
- package/dist/button/oscd-filled-tonal-button.js +9 -0
- package/dist/button/oscd-outlined-button.js +9 -0
- package/dist/button/oscd-text-button.js +9 -0
- package/dist/checkbox/OscdCheckbox.js +36 -0
- package/dist/checkbox/OscdCheckbox.spec.js +38 -0
- package/dist/checkbox/OscdCheckbox.stories.js +20 -0
- package/dist/checkbox/oscd-checkbox.js +9 -0
- package/dist/chips/OscdAssistChip.js +36 -0
- package/dist/chips/OscdAssistChip.spec.js +36 -0
- package/dist/chips/OscdAssistChip.stories.js +20 -0
- package/dist/chips/OscdChipSet.js +18 -0
- package/dist/chips/OscdChipSet.spec.js +38 -0
- package/dist/chips/OscdChipSet.stories.js +20 -0
- package/dist/chips/OscdFilterChip.js +42 -0
- package/dist/chips/OscdFilterChip.spec.js +36 -0
- package/dist/chips/OscdFilterChip.stories.js +20 -0
- package/dist/chips/OscdInputChip.js +38 -0
- package/dist/chips/OscdInputChip.spec.js +36 -0
- package/dist/chips/OscdInputChip.stories.js +20 -0
- package/dist/chips/OscdSuggestionChip.js +38 -0
- package/dist/chips/OscdSuggestionChip.spec.js +36 -0
- package/dist/chips/OscdSuggestionChip.stories.js +20 -0
- package/dist/chips/oscd-assist-chip.js +9 -0
- package/dist/chips/oscd-chip-set.js +9 -0
- package/dist/chips/oscd-filter-chip.js +9 -0
- package/dist/chips/oscd-input-chip.js +9 -0
- package/dist/chips/oscd-suggestion-chip.js +9 -0
- package/{dialog → dist/dialog}/OscdDialog.js +12 -13
- package/dist/dialog/OscdDialog.spec.js +38 -0
- package/dist/dialog/OscdDialog.stories.js +20 -0
- package/dist/dialog/oscd-dialog.js +9 -0
- package/dist/divider/OscdDivider.js +21 -0
- package/dist/divider/OscdDivider.spec.js +38 -0
- package/dist/divider/OscdDivider.stories.js +20 -0
- package/dist/divider/oscd-divider.js +9 -0
- package/dist/elevation/OscdElevation.js +20 -0
- package/dist/elevation/OscdElevation.spec.js +36 -0
- package/dist/elevation/OscdElevation.stories.js +20 -0
- package/dist/elevation/oscd-elevation.js +9 -0
- package/dist/fab/OscdBrandedFab.js +68 -0
- package/dist/fab/OscdBrandedFab.spec.js +36 -0
- package/dist/fab/OscdBrandedFab.stories.js +20 -0
- package/dist/fab/OscdFab.js +58 -0
- package/dist/fab/OscdFab.spec.js +38 -0
- package/dist/fab/OscdFab.stories.js +20 -0
- package/dist/fab/oscd-branded-fab.js +9 -0
- package/dist/fab/oscd-fab.js +9 -0
- package/dist/field/OscdFilledField.js +18 -0
- package/dist/field/OscdFilledField.spec.js +36 -0
- package/dist/field/OscdFilledField.stories.js +20 -0
- package/dist/field/OscdOutlinedField.js +18 -0
- package/dist/field/OscdOutlinedField.spec.js +36 -0
- package/dist/field/OscdOutlinedField.stories.js +20 -0
- package/dist/field/oscd-filled-field.js +9 -0
- package/dist/field/oscd-outlined-field.js +9 -0
- package/dist/focus/OscdFocusRing.js +18 -0
- package/dist/focus/OscdFocusRing.spec.js +36 -0
- package/dist/focus/OscdFocusRing.stories.js +20 -0
- package/dist/focus/oscd-focus-ring.js +9 -0
- package/dist/icon/OscdIcon.js +17 -0
- package/dist/icon/OscdIcon.spec.js +38 -0
- package/dist/icon/OscdIcon.stories.js +20 -0
- package/dist/icon/oscd-icon.js +9 -0
- package/dist/iconbutton/OscdFilledIconButton.js +49 -0
- package/dist/iconbutton/OscdFilledIconButton.spec.js +36 -0
- package/dist/iconbutton/OscdFilledIconButton.stories.js +20 -0
- package/dist/iconbutton/OscdFilledTonalIconButton.js +49 -0
- package/dist/iconbutton/OscdFilledTonalIconButton.spec.js +40 -0
- package/dist/iconbutton/OscdFilledTonalIconButton.stories.js +20 -0
- package/dist/iconbutton/OscdIconButton.js +48 -0
- package/dist/iconbutton/OscdIconButton.spec.js +36 -0
- package/dist/iconbutton/OscdIconButton.stories.js +20 -0
- package/dist/iconbutton/OscdOutlinedIconButton.js +48 -0
- package/dist/iconbutton/OscdOutlinedIconButton.spec.js +38 -0
- package/dist/iconbutton/OscdOutlinedIconButton.stories.js +20 -0
- package/dist/iconbutton/oscd-filled-icon-button.js +9 -0
- package/dist/iconbutton/oscd-filled-tonal-icon-button.js +9 -0
- package/dist/iconbutton/oscd-icon-button.js +9 -0
- package/dist/iconbutton/oscd-outlined-icon-button.js +9 -0
- package/dist/labs/badge/OscdBadge.js +16 -0
- package/dist/labs/badge/OscdBadge.spec.js +38 -0
- package/dist/labs/badge/OscdBadge.stories.js +20 -0
- package/dist/labs/badge/oscd-badge.js +9 -0
- package/dist/labs/card/OscdElevatedCard.js +27 -0
- package/dist/labs/card/OscdElevatedCard.spec.js +36 -0
- package/dist/labs/card/OscdElevatedCard.stories.js +20 -0
- package/dist/labs/card/OscdFilledCard.js +27 -0
- package/dist/labs/card/OscdFilledCard.spec.js +36 -0
- package/dist/labs/card/OscdFilledCard.stories.js +20 -0
- package/dist/labs/card/OscdOutlinedCard.js +27 -0
- package/dist/labs/card/OscdOutlinedCard.spec.js +36 -0
- package/dist/labs/card/OscdOutlinedCard.stories.js +20 -0
- package/dist/labs/card/oscd-elevated-card.js +9 -0
- package/dist/labs/card/oscd-filled-card.js +9 -0
- package/dist/labs/card/oscd-outlined-card.js +9 -0
- package/dist/labs/item/OscdItem.js +71 -0
- package/dist/labs/item/OscdItem.spec.js +38 -0
- package/dist/labs/item/OscdItem.stories.js +20 -0
- package/dist/labs/item/oscd-item.js +9 -0
- package/dist/labs/navigationbar/OscdNavigationBar.js +26 -0
- package/dist/labs/navigationbar/OscdNavigationBar.spec.js +44 -0
- package/dist/labs/navigationbar/OscdNavigationBar.stories.js +20 -0
- package/dist/labs/navigationbar/oscd-navigation-bar.js +9 -0
- package/dist/labs/navigationtab/OscdNavigationTab.js +30 -0
- package/dist/labs/navigationtab/OscdNavigationTab.spec.js +36 -0
- package/dist/labs/navigationtab/OscdNavigationTab.stories.js +20 -0
- package/dist/labs/navigationtab/oscd-navigation-tab.js +9 -0
- package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.js +31 -0
- package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.spec.js +40 -0
- package/dist/labs/segmentedbutton/OscdOutlinedSegmentedButton.stories.js +24 -0
- package/dist/labs/segmentedbutton/oscd-outlined-segmented-button.js +9 -0
- package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.js +19 -0
- package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.spec.js +40 -0
- package/dist/labs/segmentedbuttonset/OscdOutlinedSegmentedButtonSet.stories.js +35 -0
- package/dist/labs/segmentedbuttonset/oscd-outlined-segmented-button-set.js +9 -0
- package/{list/OscdList.d.ts → dist/list/OscdList.js} +10 -14
- package/dist/list/OscdList.spec.js +38 -0
- package/dist/list/OscdList.stories.js +20 -0
- package/{list/OscdListItem.d.ts → dist/list/OscdListItem.js} +20 -9
- package/dist/list/OscdListItem.spec.js +36 -0
- package/dist/list/OscdListItem.stories.js +20 -0
- package/dist/list/oscd-list-item.js +9 -0
- package/dist/list/oscd-list.js +9 -0
- package/{menu/OscdMenu.d.ts → dist/menu/OscdMenu.js} +21 -12
- package/dist/menu/OscdMenu.spec.js +38 -0
- package/dist/menu/OscdMenu.stories.js +20 -0
- package/dist/menu/OscdMenuItem.js +40 -0
- package/dist/menu/OscdMenuItem.spec.js +36 -0
- package/dist/menu/OscdMenuItem.stories.js +20 -0
- package/dist/menu/OscdSubMenu.js +59 -0
- package/dist/menu/OscdSubMenu.spec.js +38 -0
- package/dist/menu/OscdSubMenu.stories.js +20 -0
- package/dist/menu/oscd-menu-item.js +9 -0
- package/dist/menu/oscd-menu.js +9 -0
- package/dist/menu/oscd-sub-menu.js +9 -0
- package/dist/navigation-drawer/OscdNavigationDrawer.js +48 -0
- package/dist/navigation-drawer/OscdNavigationDrawer.stories.js +98 -0
- package/{navigation-drawer → dist/navigation-drawer}/OscdNavigationDrawerHeader.js +6 -6
- package/dist/navigation-drawer/OscdNavigationDrawerHeader.stories.js +41 -0
- package/dist/progress/OscdCircularProgress.js +24 -0
- package/dist/progress/OscdCircularProgress.spec.js +36 -0
- package/dist/progress/OscdCircularProgress.stories.js +15 -0
- package/dist/progress/OscdLinearProgress.js +23 -0
- package/dist/progress/OscdLinearProgress.spec.js +36 -0
- package/dist/progress/OscdLinearProgress.stories.js +15 -0
- package/dist/progress/oscd-circular-progress.js +9 -0
- package/dist/progress/oscd-linear-progress.js +9 -0
- package/dist/radio/OscdRadio.js +39 -0
- package/dist/radio/OscdRadio.spec.js +38 -0
- package/dist/radio/OscdRadio.stories.js +45 -0
- package/dist/radio/oscd-radio.js +9 -0
- package/dist/ripple/OscdRipple.js +24 -0
- package/dist/ripple/OscdRipple.spec.js +38 -0
- package/dist/ripple/OscdRipple.stories.js +20 -0
- package/dist/ripple/oscd-ripple.js +9 -0
- package/dist/select/OscdFilledSelect.js +54 -0
- package/dist/select/OscdFilledSelect.spec.js +36 -0
- package/dist/select/OscdFilledSelect.stories.js +21 -0
- package/dist/select/OscdOutlinedSelect.js +54 -0
- package/dist/select/OscdOutlinedSelect.spec.js +36 -0
- package/dist/select/OscdOutlinedSelect.stories.js +21 -0
- package/dist/select/OscdSelectOption.js +55 -0
- package/dist/select/OscdSelectOption.spec.js +36 -0
- package/dist/select/OscdSelectOption.stories.js +22 -0
- package/dist/select/oscd-filled-select.js +9 -0
- package/dist/select/oscd-outlined-select.js +9 -0
- package/dist/select/oscd-select-option.js +9 -0
- package/dist/slider/OscdSlider.js +43 -0
- package/dist/slider/OscdSlider.spec.js +38 -0
- package/dist/slider/OscdSlider.stories.js +20 -0
- package/dist/slider/oscd-slider.js +9 -0
- package/dist/switch/OscdSwitch.js +33 -0
- package/dist/switch/OscdSwitch.spec.js +38 -0
- package/dist/switch/OscdSwitch.stories.js +20 -0
- package/dist/switch/oscd-switch.js +9 -0
- package/dist/tabs/OscdPrimaryTab.js +34 -0
- package/dist/tabs/OscdPrimaryTab.spec.js +36 -0
- package/dist/tabs/OscdPrimaryTab.stories.js +25 -0
- package/dist/tabs/OscdSecondaryTab.js +34 -0
- package/dist/tabs/OscdSecondaryTab.spec.js +36 -0
- package/dist/tabs/OscdSecondaryTab.stories.js +24 -0
- package/dist/tabs/OscdTabs.js +29 -0
- package/dist/tabs/OscdTabs.spec.js +38 -0
- package/dist/tabs/OscdTabs.stories.js +39 -0
- package/dist/tabs/oscd-primary-tab.js +9 -0
- package/dist/tabs/oscd-secondary-tab.js +9 -0
- package/dist/tabs/oscd-tabs.js +9 -0
- package/dist/textfield/OscdFilledTextField.js +35 -0
- package/dist/textfield/OscdFilledTextField.spec.js +36 -0
- package/dist/textfield/OscdFilledTextField.stories.js +20 -0
- package/dist/textfield/OscdOutlinedTextField.js +35 -0
- package/dist/textfield/OscdOutlinedTextField.spec.js +36 -0
- package/dist/textfield/OscdOutlinedTextField.stories.js +20 -0
- package/dist/textfield/oscd-filled-text-field.js +9 -0
- package/dist/textfield/oscd-outlined-text-field.js +9 -0
- package/{utils → dist/utils}/storybook/getStorybookHelpers.js +9 -6
- package/dist/utils/storybook/getStorybookMeta.js +49 -0
- package/{utils → dist/utils}/storybook/scopedWcDecorator.js +1 -0
- package/dist/utils/storybook/story-overrides/button-overrides.js +28 -0
- package/dist/utils/storybook/story-overrides/card-overrides.js +35 -0
- package/dist/utils/storybook/story-overrides/checkbox-overrides.js +27 -0
- package/dist/utils/storybook/story-overrides/chip-overrides.js +41 -0
- package/dist/utils/storybook/story-overrides/dialog-overrides.js +43 -0
- package/dist/utils/storybook/story-overrides/divider-overrides.js +19 -0
- package/dist/utils/storybook/story-overrides/elevation-overrides.js +38 -0
- package/dist/utils/storybook/story-overrides/fab-overrides.js +90 -0
- package/dist/utils/storybook/story-overrides/icon-buttons-overrides.js +32 -0
- package/dist/utils/storybook/story-overrides/icon-overrides.js +23 -0
- package/dist/utils/storybook/story-overrides/list-overrides.js +43 -0
- package/dist/utils/storybook/story-overrides/menu-overrides.js +75 -0
- package/dist/utils/storybook/story-overrides/story-overrides.js +29 -0
- package/dist/utils/storybook/story-overrides/text-field-overrides.js +52 -0
- package/package.json +177 -162
- package/app-bar/OscdAppBar.d.ts +0 -47
- package/app-bar/OscdAppBar.js.map +0 -1
- package/app-bar/oscd-app-bar.d.ts +0 -12
- package/app-bar/oscd-app-bar.js.map +0 -1
- package/button/OscdFilledButton.d.ts +0 -38
- package/button/OscdFilledButton.js +0 -45
- package/button/OscdFilledButton.js.map +0 -1
- package/button/OscdFilledButton.spec.d.ts +0 -6
- package/button/OscdFilledButton.spec.js +0 -79
- package/button/OscdFilledButton.spec.js.map +0 -1
- package/button/OscdOutlinedButton.d.ts +0 -40
- package/button/OscdOutlinedButton.js +0 -37
- package/button/OscdOutlinedButton.js.map +0 -1
- package/button/OscdTextButton.d.ts +0 -38
- package/button/OscdTextButton.js +0 -35
- package/button/OscdTextButton.js.map +0 -1
- package/button/oscd-filled-button.d.ts +0 -7
- package/button/oscd-filled-button.js +0 -4
- package/button/oscd-filled-button.js.map +0 -1
- package/button/oscd-outlined-button.d.ts +0 -12
- package/button/oscd-outlined-button.js +0 -9
- package/button/oscd-outlined-button.js.map +0 -1
- package/button/oscd-text-button.d.ts +0 -12
- package/button/oscd-text-button.js +0 -9
- package/button/oscd-text-button.js.map +0 -1
- package/dialog/OscdDialog.d.ts +0 -42
- package/dialog/OscdDialog.js.map +0 -1
- package/dialog/oscd-dialog.d.ts +0 -7
- package/dialog/oscd-dialog.js +0 -4
- package/dialog/oscd-dialog.js.map +0 -1
- package/divider/OscdDivider.d.ts +0 -26
- package/divider/OscdDivider.js +0 -22
- package/divider/OscdDivider.js.map +0 -1
- package/divider/oscd-divider.d.ts +0 -7
- package/divider/oscd-divider.js +0 -4
- package/divider/oscd-divider.js.map +0 -1
- package/elevation/OscdElevation.d.ts +0 -24
- package/elevation/OscdElevation.js +0 -20
- package/elevation/OscdElevation.js.map +0 -1
- package/elevation/oscd-elevation.d.ts +0 -12
- package/elevation/oscd-elevation.js +0 -9
- package/elevation/oscd-elevation.js.map +0 -1
- package/field/OscdFilledField.d.ts +0 -21
- package/field/OscdFilledField.js +0 -18
- package/field/OscdFilledField.js.map +0 -1
- package/field/OscdOutlinedField.d.ts +0 -23
- package/field/OscdOutlinedField.js +0 -20
- package/field/OscdOutlinedField.js.map +0 -1
- package/field/oscd-filled-field.d.ts +0 -7
- package/field/oscd-filled-field.js +0 -4
- package/field/oscd-filled-field.js.map +0 -1
- package/field/oscd-outlined-field.d.ts +0 -7
- package/field/oscd-outlined-field.js +0 -4
- package/field/oscd-outlined-field.js.map +0 -1
- package/icon/OscdIcon.d.ts +0 -24
- package/icon/OscdIcon.js +0 -20
- package/icon/OscdIcon.js.map +0 -1
- package/icon/oscd-icon.d.ts +0 -7
- package/icon/oscd-icon.js +0 -4
- package/icon/oscd-icon.js.map +0 -1
- package/iconbutton/OscdFilledIconButton.d.ts +0 -39
- package/iconbutton/OscdFilledIconButton.js +0 -37
- package/iconbutton/OscdFilledIconButton.js.map +0 -1
- package/iconbutton/OscdFilledTonalIconButton.d.ts +0 -39
- package/iconbutton/OscdFilledTonalIconButton.js +0 -37
- package/iconbutton/OscdFilledTonalIconButton.js.map +0 -1
- package/iconbutton/OscdIconButton.d.ts +0 -38
- package/iconbutton/OscdIconButton.js +0 -36
- package/iconbutton/OscdIconButton.js.map +0 -1
- package/iconbutton/OscdOutlinedIconButton.d.ts +0 -38
- package/iconbutton/OscdOutlinedIconButton.js +0 -36
- package/iconbutton/OscdOutlinedIconButton.js.map +0 -1
- package/iconbutton/oscd-filled-icon-button.d.ts +0 -7
- package/iconbutton/oscd-filled-icon-button.js +0 -4
- package/iconbutton/oscd-filled-icon-button.js.map +0 -1
- package/iconbutton/oscd-filled-tonal-icon-button.d.ts +0 -7
- package/iconbutton/oscd-filled-tonal-icon-button.js +0 -4
- package/iconbutton/oscd-filled-tonal-icon-button.js.map +0 -1
- package/iconbutton/oscd-icon-button.d.ts +0 -7
- package/iconbutton/oscd-icon-button.js +0 -4
- package/iconbutton/oscd-icon-button.js.map +0 -1
- package/iconbutton/oscd-outlined-icon-button.d.ts +0 -7
- package/iconbutton/oscd-outlined-icon-button.js +0 -4
- package/iconbutton/oscd-outlined-icon-button.js.map +0 -1
- package/list/OscdList.js +0 -44
- package/list/OscdList.js.map +0 -1
- package/list/OscdListItem.js +0 -78
- package/list/OscdListItem.js.map +0 -1
- package/list/oscd-list-item.d.ts +0 -7
- package/list/oscd-list-item.js +0 -4
- package/list/oscd-list-item.js.map +0 -1
- package/list/oscd-list.d.ts +0 -7
- package/list/oscd-list.js +0 -4
- package/list/oscd-list.js.map +0 -1
- package/menu/OscdMenu.js +0 -62
- package/menu/OscdMenu.js.map +0 -1
- package/menu/OscdMenuItem.d.ts +0 -32
- package/menu/OscdMenuItem.js +0 -26
- package/menu/OscdMenuItem.js.map +0 -1
- package/menu/oscd-menu-item.d.ts +0 -7
- package/menu/oscd-menu-item.js +0 -4
- package/menu/oscd-menu-item.js.map +0 -1
- package/menu/oscd-menu.d.ts +0 -7
- package/menu/oscd-menu.js +0 -4
- package/menu/oscd-menu.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawer.d.ts +0 -21
- package/navigation-drawer/OscdNavigationDrawer.js +0 -43
- package/navigation-drawer/OscdNavigationDrawer.js.map +0 -1
- package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +0 -15
- package/navigation-drawer/OscdNavigationDrawerHeader.js.map +0 -1
- package/navigation-drawer/oscd-navigation-drawer-header.d.ts +0 -7
- package/navigation-drawer/oscd-navigation-drawer-header.js.map +0 -1
- package/navigation-drawer/oscd-navigation-drawer.d.ts +0 -7
- package/navigation-drawer/oscd-navigation-drawer.js.map +0 -1
- package/select/OscdFilledSelect.d.ts +0 -42
- package/select/OscdFilledSelect.js +0 -39
- package/select/OscdFilledSelect.js.map +0 -1
- package/select/OscdOutlinedSelect.d.ts +0 -42
- package/select/OscdOutlinedSelect.js +0 -39
- package/select/OscdOutlinedSelect.js.map +0 -1
- package/select/OscdSelectOption.d.ts +0 -46
- package/select/OscdSelectOption.js +0 -41
- package/select/OscdSelectOption.js.map +0 -1
- package/select/oscd-filled-select.d.ts +0 -7
- package/select/oscd-filled-select.js +0 -4
- package/select/oscd-filled-select.js.map +0 -1
- package/select/oscd-outlined-select.d.ts +0 -7
- package/select/oscd-outlined-select.js +0 -4
- package/select/oscd-outlined-select.js.map +0 -1
- package/select/oscd-select-option.d.ts +0 -7
- package/select/oscd-select-option.js +0 -4
- package/select/oscd-select-option.js.map +0 -1
- package/tabs/OscdPrimaryTab.d.ts +0 -22
- package/tabs/OscdPrimaryTab.js +0 -19
- package/tabs/OscdPrimaryTab.js.map +0 -1
- package/tabs/OscdSecondaryTab.d.ts +0 -22
- package/tabs/OscdSecondaryTab.js +0 -19
- package/tabs/OscdSecondaryTab.js.map +0 -1
- package/tabs/OscdTabs.d.ts +0 -22
- package/tabs/OscdTabs.js +0 -18
- package/tabs/OscdTabs.js.map +0 -1
- package/tabs/oscd-primary-tab.d.ts +0 -7
- package/tabs/oscd-primary-tab.js +0 -4
- package/tabs/oscd-primary-tab.js.map +0 -1
- package/tabs/oscd-secondary-tab.d.ts +0 -7
- package/tabs/oscd-secondary-tab.js +0 -4
- package/tabs/oscd-secondary-tab.js.map +0 -1
- package/tabs/oscd-tabs.d.ts +0 -7
- package/tabs/oscd-tabs.js +0 -4
- package/tabs/oscd-tabs.js.map +0 -1
- package/textfield/OscdFilledTextField.d.ts +0 -30
- package/textfield/OscdFilledTextField.js +0 -30
- package/textfield/OscdFilledTextField.js.map +0 -1
- package/textfield/OscdOutlinedTextField.d.ts +0 -28
- package/textfield/OscdOutlinedTextField.js +0 -28
- package/textfield/OscdOutlinedTextField.js.map +0 -1
- package/textfield/oscd-filled-text-field.d.ts +0 -7
- package/textfield/oscd-filled-text-field.js +0 -4
- package/textfield/oscd-filled-text-field.js.map +0 -1
- package/textfield/oscd-outlined-text-field.d.ts +0 -7
- package/textfield/oscd-outlined-text-field.js +0 -4
- package/textfield/oscd-outlined-text-field.js.map +0 -1
- package/utils/storybook/getStorybookHelpers.d.ts +0 -4
- package/utils/storybook/getStorybookHelpers.js.map +0 -1
- package/utils/storybook/scopedWcDecorator.d.ts +0 -2
- package/utils/storybook/scopedWcDecorator.js.map +0 -1
- package/utils/storybook/themingDecorator.d.ts +0 -6
- package/utils/storybook/themingDecorator.js.map +0 -1
- /package/{app-bar → dist/app-bar}/oscd-app-bar.js +0 -0
- /package/{navigation-drawer → dist/navigation-drawer}/oscd-navigation-drawer-header.js +0 -0
- /package/{navigation-drawer → dist/navigation-drawer}/oscd-navigation-drawer.js +0 -0
- /package/{utils → dist/utils}/storybook/themingDecorator.js +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { expect, fixture, fixtureCleanup } from '@open-wc/testing';
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { spy } from 'sinon';
|
|
9
|
+
describe('OscdDivider side-effect free', () => {
|
|
10
|
+
let defineSpy;
|
|
11
|
+
// let harness: ScopingTestHarness;
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
// Spy on customElements.define before dynamic import
|
|
14
|
+
defineSpy = spy(window.customElements, 'define');
|
|
15
|
+
});
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
// Restore the spy
|
|
18
|
+
defineSpy.restore();
|
|
19
|
+
// Clean up DOM
|
|
20
|
+
fixtureCleanup();
|
|
21
|
+
});
|
|
22
|
+
it('should not call customElements.define as a side effect during import/instantiation', async () => {
|
|
23
|
+
// Dynamically import the component
|
|
24
|
+
const { OscdDivider } = await import('./OscdDivider.js');
|
|
25
|
+
// Instantiate the component
|
|
26
|
+
const oscdDivider = await fixture(html `<oscd-divider></oscd-divider>`, {
|
|
27
|
+
scopedElements: { 'oscd-divider': OscdDivider },
|
|
28
|
+
});
|
|
29
|
+
// Verify it's upgraded (not just a dummy tag)
|
|
30
|
+
expect(oscdDivider.shadowRoot).not.to.be.null;
|
|
31
|
+
expect(oscdDivider.constructor.name).to.equal('OscdDivider');
|
|
32
|
+
const globallyDefinedElements = defineSpy.args
|
|
33
|
+
.filter(([tagName]) => !tagName.startsWith('scoped-elements-test-wrapper'))
|
|
34
|
+
.map(([tagName]) => tagName);
|
|
35
|
+
expect(globallyDefinedElements).to.deep.equal([]);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=OscdDivider.spec.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import './oscd-divider.js';
|
|
7
|
+
import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
|
|
8
|
+
const { args, argTypes, meta } = getStorybookMeta({
|
|
9
|
+
tagName: 'oscd-divider',
|
|
10
|
+
});
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Dividers / Divider',
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
...meta,
|
|
15
|
+
};
|
|
16
|
+
export const Default = {
|
|
17
|
+
argTypes,
|
|
18
|
+
args,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=OscdDivider.stories.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { OscdDivider } from './OscdDivider.js';
|
|
7
|
+
customElements.define('oscd-divider', OscdDivider);
|
|
8
|
+
export { OscdDivider };
|
|
9
|
+
//# sourceMappingURL=oscd-divider.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { Elevation } from '@omicronenergy/oscd-material-web-base/elevation/internal/elevation.js';
|
|
7
|
+
import { styles } from '@omicronenergy/oscd-material-web-base/elevation/internal/elevation-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tagname oscd-elevation
|
|
10
|
+
* The `<oscd-elevation>` custom element with default styles.
|
|
11
|
+
*
|
|
12
|
+
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
13
|
+
*
|
|
14
|
+
* @final
|
|
15
|
+
* @suppress {visibility}
|
|
16
|
+
*/
|
|
17
|
+
export class OscdElevation extends Elevation {
|
|
18
|
+
}
|
|
19
|
+
OscdElevation.styles = [styles];
|
|
20
|
+
//# sourceMappingURL=OscdElevation.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { expect, fixture, fixtureCleanup } from '@open-wc/testing';
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { spy } from 'sinon';
|
|
9
|
+
describe('OscdElevation side-effect free', () => {
|
|
10
|
+
let defineSpy;
|
|
11
|
+
// let harness: ScopingTestHarness;
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
// Spy on customElements.define before dynamic import
|
|
14
|
+
defineSpy = spy(window.customElements, 'define');
|
|
15
|
+
});
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
// Restore the spy
|
|
18
|
+
defineSpy.restore();
|
|
19
|
+
// Clean up DOM
|
|
20
|
+
fixtureCleanup();
|
|
21
|
+
});
|
|
22
|
+
it('should not call customElements.define as a side effect during import/instantiation', async () => {
|
|
23
|
+
// Dynamically import the component
|
|
24
|
+
const { OscdElevation } = await import('./OscdElevation.js');
|
|
25
|
+
// Instantiate the component
|
|
26
|
+
const oscdElevation = await fixture(html `<oscd-elevation></oscd-elevation>`, { scopedElements: { 'oscd-elevation': OscdElevation } });
|
|
27
|
+
// Verify it's upgraded (not just a dummy tag)
|
|
28
|
+
expect(oscdElevation.shadowRoot).not.to.be.null;
|
|
29
|
+
expect(oscdElevation.constructor.name).to.equal('OscdElevation');
|
|
30
|
+
const globallyDefinedElements = defineSpy.args
|
|
31
|
+
.filter(([tagName]) => !tagName.startsWith('scoped-elements-test-wrapper'))
|
|
32
|
+
.map(([tagName]) => tagName);
|
|
33
|
+
expect(globallyDefinedElements).to.deep.equal([]);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=OscdElevation.spec.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import './oscd-elevation.js';
|
|
7
|
+
import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
|
|
8
|
+
const { args, argTypes, meta } = getStorybookMeta({
|
|
9
|
+
tagName: 'oscd-elevation',
|
|
10
|
+
});
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Elevations / Elevation',
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
...meta,
|
|
15
|
+
};
|
|
16
|
+
export const Default = {
|
|
17
|
+
argTypes,
|
|
18
|
+
args,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=OscdElevation.stories.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { OscdElevation } from './OscdElevation.js';
|
|
7
|
+
customElements.define('oscd-elevation', OscdElevation);
|
|
8
|
+
export { OscdElevation };
|
|
9
|
+
//# sourceMappingURL=oscd-elevation.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 Omicron Energy GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { MdRipple } from '@omicronenergy/oscd-material-web-base/ripple/MdRipple.js';
|
|
12
|
+
import { MdFocusRing } from '@omicronenergy/oscd-material-web-base/focus/MdFocusRing.js';
|
|
13
|
+
import { MdElevation } from '@omicronenergy/oscd-material-web-base/elevation/MdElevation.js';
|
|
14
|
+
import { Fab, } from '@omicronenergy/oscd-material-web-base/fab/internal/fab.js';
|
|
15
|
+
import { styles } from '@omicronenergy/oscd-material-web-base/fab/internal/fab-branded-styles.js';
|
|
16
|
+
import { styles as forcedColors } from '@omicronenergy/oscd-material-web-base/fab/internal/forced-colors-styles.js';
|
|
17
|
+
import { styles as sharedStyles } from '@omicronenergy/oscd-material-web-base/fab/internal/shared-styles.js';
|
|
18
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';
|
|
19
|
+
/**
|
|
20
|
+
* @tagname oscd-branded-fab
|
|
21
|
+
* @summary Floating action buttons (FABs) help people take primary actions.
|
|
22
|
+
* They’re used to represent the most important action on a screen, such as
|
|
23
|
+
* Create or Reply.
|
|
24
|
+
*
|
|
25
|
+
* __Emphasis:__ High emphasis – For the primary, most important, or most common
|
|
26
|
+
* action on a screen
|
|
27
|
+
*
|
|
28
|
+
* __Rationale:__ The FAB remains the default component for a screen’s primary
|
|
29
|
+
* action. It comes in three sizes: small FAB, FAB, and large FAB. The extended
|
|
30
|
+
* FAB’s wider format and text label give it more visual prominence than a FAB.
|
|
31
|
+
* It’s often used on larger screens where a FAB would seem too small. Branded
|
|
32
|
+
* FABs are used to specifically call attention to branded logo icons.
|
|
33
|
+
*
|
|
34
|
+
* __Example usages:__
|
|
35
|
+
* - FAB
|
|
36
|
+
* - Create
|
|
37
|
+
* - Compose
|
|
38
|
+
* - Extended FAB
|
|
39
|
+
* - Create
|
|
40
|
+
* - Compose
|
|
41
|
+
* - New Thread
|
|
42
|
+
* - New File
|
|
43
|
+
*
|
|
44
|
+
* @final
|
|
45
|
+
* @suppress {visibility}
|
|
46
|
+
*/
|
|
47
|
+
export class OscdBrandedFab extends ScopedElementsMixin(Fab) {
|
|
48
|
+
getRenderClasses() {
|
|
49
|
+
return {
|
|
50
|
+
...super.getRenderClasses(),
|
|
51
|
+
primary: false,
|
|
52
|
+
secondary: false,
|
|
53
|
+
tertiary: false,
|
|
54
|
+
small: false,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
OscdBrandedFab.scopedElements = {
|
|
59
|
+
'md-ripple': MdRipple,
|
|
60
|
+
'md-focus-ring': MdFocusRing,
|
|
61
|
+
'md-elevation': MdElevation,
|
|
62
|
+
};
|
|
63
|
+
OscdBrandedFab.styles = [
|
|
64
|
+
sharedStyles,
|
|
65
|
+
styles,
|
|
66
|
+
forcedColors,
|
|
67
|
+
];
|
|
68
|
+
//# sourceMappingURL=OscdBrandedFab.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { expect, fixture, fixtureCleanup } from '@open-wc/testing';
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { spy } from 'sinon';
|
|
9
|
+
describe('OscdBrandedFab side-effect free', () => {
|
|
10
|
+
let defineSpy;
|
|
11
|
+
// let harness: ScopingTestHarness;
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
// Spy on customElements.define before dynamic import
|
|
14
|
+
defineSpy = spy(window.customElements, 'define');
|
|
15
|
+
});
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
// Restore the spy
|
|
18
|
+
defineSpy.restore();
|
|
19
|
+
// Clean up DOM
|
|
20
|
+
fixtureCleanup();
|
|
21
|
+
});
|
|
22
|
+
it('should not call customElements.define as a side effect during import/instantiation', async () => {
|
|
23
|
+
// Dynamically import the component
|
|
24
|
+
const { OscdBrandedFab } = await import('./OscdBrandedFab.js');
|
|
25
|
+
// Instantiate the component
|
|
26
|
+
const oscdBrandedFab = await fixture(html `<oscd-branded-fab></oscd-branded-fab>`, { scopedElements: { 'oscd-branded-fab': OscdBrandedFab } });
|
|
27
|
+
// Verify it's upgraded (not just a dummy tag)
|
|
28
|
+
expect(oscdBrandedFab.shadowRoot).not.to.be.null;
|
|
29
|
+
expect(oscdBrandedFab.constructor.name).to.equal('OscdBrandedFab');
|
|
30
|
+
const globallyDefinedElements = defineSpy.args
|
|
31
|
+
.filter(([tagName]) => !tagName.startsWith('scoped-elements-test-wrapper'))
|
|
32
|
+
.map(([tagName]) => tagName);
|
|
33
|
+
expect(globallyDefinedElements).to.deep.equal([]);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=OscdBrandedFab.spec.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import './oscd-branded-fab.js';
|
|
7
|
+
import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
|
|
8
|
+
const { args, argTypes, meta } = getStorybookMeta({
|
|
9
|
+
tagName: 'oscd-branded-fab',
|
|
10
|
+
});
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Fabs / Branded Fab',
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
...meta,
|
|
15
|
+
};
|
|
16
|
+
export const Default = {
|
|
17
|
+
argTypes,
|
|
18
|
+
args,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=OscdBrandedFab.stories.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2025 Omicron Energy GmbH
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { MdRipple } from '@omicronenergy/oscd-material-web-base/ripple/MdRipple.js';
|
|
12
|
+
import { MdFocusRing } from '@omicronenergy/oscd-material-web-base/focus/MdFocusRing.js';
|
|
13
|
+
import { MdElevation } from '@omicronenergy/oscd-material-web-base/elevation/MdElevation.js';
|
|
14
|
+
import { Fab } from '@omicronenergy/oscd-material-web-base/fab/internal/fab.js';
|
|
15
|
+
import { styles } from '@omicronenergy/oscd-material-web-base/fab/internal/fab-styles.js';
|
|
16
|
+
import { styles as forcedColors } from '@omicronenergy/oscd-material-web-base/fab/internal/forced-colors-styles.js';
|
|
17
|
+
import { styles as sharedStyles } from '@omicronenergy/oscd-material-web-base/fab/internal/shared-styles.js';
|
|
18
|
+
import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js';
|
|
19
|
+
/**
|
|
20
|
+
* @tagname oscd-fab
|
|
21
|
+
* @summary Floating action buttons (FABs) help people take primary actions.
|
|
22
|
+
* They’re used to represent the most important action on a screen, such as
|
|
23
|
+
* Create or Reply.
|
|
24
|
+
*
|
|
25
|
+
* __Emphasis:__ High emphasis – For the primary, most important, or most common
|
|
26
|
+
* action on a screen
|
|
27
|
+
*
|
|
28
|
+
* __Rationale:__ The FAB remains the default component for a screen’s primary
|
|
29
|
+
* action. It comes in three sizes: small FAB, FAB, and large FAB. The extended
|
|
30
|
+
* FAB’s wider format and text label give it more visual prominence than a FAB.
|
|
31
|
+
* It’s often used on larger screens where a FAB would seem too small.
|
|
32
|
+
*
|
|
33
|
+
* __Example usages:__
|
|
34
|
+
* - FAB
|
|
35
|
+
* - Create
|
|
36
|
+
* - Compose
|
|
37
|
+
* - Extended FAB
|
|
38
|
+
* - Create
|
|
39
|
+
* - Compose
|
|
40
|
+
* - New Thread
|
|
41
|
+
* - New File
|
|
42
|
+
*
|
|
43
|
+
* @final
|
|
44
|
+
* @suppress {visibility}
|
|
45
|
+
*/
|
|
46
|
+
export class OscdFab extends ScopedElementsMixin(Fab) {
|
|
47
|
+
}
|
|
48
|
+
OscdFab.scopedElements = {
|
|
49
|
+
'md-ripple': MdRipple,
|
|
50
|
+
'md-focus-ring': MdFocusRing,
|
|
51
|
+
'md-elevation': MdElevation,
|
|
52
|
+
};
|
|
53
|
+
OscdFab.styles = [
|
|
54
|
+
sharedStyles,
|
|
55
|
+
styles,
|
|
56
|
+
forcedColors,
|
|
57
|
+
];
|
|
58
|
+
//# sourceMappingURL=OscdFab.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { expect, fixture, fixtureCleanup } from '@open-wc/testing';
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { spy } from 'sinon';
|
|
9
|
+
describe('OscdFab side-effect free', () => {
|
|
10
|
+
let defineSpy;
|
|
11
|
+
// let harness: ScopingTestHarness;
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
// Spy on customElements.define before dynamic import
|
|
14
|
+
defineSpy = spy(window.customElements, 'define');
|
|
15
|
+
});
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
// Restore the spy
|
|
18
|
+
defineSpy.restore();
|
|
19
|
+
// Clean up DOM
|
|
20
|
+
fixtureCleanup();
|
|
21
|
+
});
|
|
22
|
+
it('should not call customElements.define as a side effect during import/instantiation', async () => {
|
|
23
|
+
// Dynamically import the component
|
|
24
|
+
const { OscdFab } = await import('./OscdFab.js');
|
|
25
|
+
// Instantiate the component
|
|
26
|
+
const oscdFab = await fixture(html `<oscd-fab></oscd-fab>`, {
|
|
27
|
+
scopedElements: { 'oscd-fab': OscdFab },
|
|
28
|
+
});
|
|
29
|
+
// Verify it's upgraded (not just a dummy tag)
|
|
30
|
+
expect(oscdFab.shadowRoot).not.to.be.null;
|
|
31
|
+
expect(oscdFab.constructor.name).to.equal('OscdFab');
|
|
32
|
+
const globallyDefinedElements = defineSpy.args
|
|
33
|
+
.filter(([tagName]) => !tagName.startsWith('scoped-elements-test-wrapper'))
|
|
34
|
+
.map(([tagName]) => tagName);
|
|
35
|
+
expect(globallyDefinedElements).to.deep.equal([]);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=OscdFab.spec.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import './oscd-fab.js';
|
|
7
|
+
import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
|
|
8
|
+
const { args, argTypes, meta } = getStorybookMeta({
|
|
9
|
+
tagName: 'oscd-fab',
|
|
10
|
+
});
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Fabs / Fab',
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
...meta,
|
|
15
|
+
};
|
|
16
|
+
export const Default = {
|
|
17
|
+
argTypes,
|
|
18
|
+
args,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=OscdFab.stories.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { OscdBrandedFab } from './OscdBrandedFab.js';
|
|
7
|
+
customElements.define('oscd-branded-fab', OscdBrandedFab);
|
|
8
|
+
export { OscdBrandedFab };
|
|
9
|
+
//# sourceMappingURL=oscd-branded-fab.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { OscdFab } from './OscdFab.js';
|
|
7
|
+
customElements.define('oscd-fab', OscdFab);
|
|
8
|
+
export { OscdFab };
|
|
9
|
+
//# sourceMappingURL=oscd-fab.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { FilledField } from '@omicronenergy/oscd-material-web-base/field/internal/filled-field.js';
|
|
7
|
+
import { styles as filledStyles } from '@omicronenergy/oscd-material-web-base/field/internal/filled-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@omicronenergy/oscd-material-web-base/field/internal/shared-styles.js';
|
|
9
|
+
/**
|
|
10
|
+
* @tagname oscd-filled-field
|
|
11
|
+
* TODO(b/228525797): add docs
|
|
12
|
+
* @final
|
|
13
|
+
* @suppress {visibility}
|
|
14
|
+
*/
|
|
15
|
+
export class OscdFilledField extends FilledField {
|
|
16
|
+
}
|
|
17
|
+
OscdFilledField.styles = [sharedStyles, filledStyles];
|
|
18
|
+
//# sourceMappingURL=OscdFilledField.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { expect, fixture, fixtureCleanup } from '@open-wc/testing';
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { spy } from 'sinon';
|
|
9
|
+
describe('OscdFilledField side-effect free', () => {
|
|
10
|
+
let defineSpy;
|
|
11
|
+
// let harness: ScopingTestHarness;
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
// Spy on customElements.define before dynamic import
|
|
14
|
+
defineSpy = spy(window.customElements, 'define');
|
|
15
|
+
});
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
// Restore the spy
|
|
18
|
+
defineSpy.restore();
|
|
19
|
+
// Clean up DOM
|
|
20
|
+
fixtureCleanup();
|
|
21
|
+
});
|
|
22
|
+
it('should not call customElements.define as a side effect during import/instantiation', async () => {
|
|
23
|
+
// Dynamically import the component
|
|
24
|
+
const { OscdFilledField } = await import('./OscdFilledField.js');
|
|
25
|
+
// Instantiate the component
|
|
26
|
+
const oscdFilledField = await fixture(html `<oscd-filled-field></oscd-filled-field>`, { scopedElements: { 'oscd-filled-field': OscdFilledField } });
|
|
27
|
+
// Verify it's upgraded (not just a dummy tag)
|
|
28
|
+
expect(oscdFilledField.shadowRoot).not.to.be.null;
|
|
29
|
+
expect(oscdFilledField.constructor.name).to.equal('OscdFilledField');
|
|
30
|
+
const globallyDefinedElements = defineSpy.args
|
|
31
|
+
.filter(([tagName]) => !tagName.startsWith('scoped-elements-test-wrapper'))
|
|
32
|
+
.map(([tagName]) => tagName);
|
|
33
|
+
expect(globallyDefinedElements).to.deep.equal([]);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=OscdFilledField.spec.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import './oscd-filled-field.js';
|
|
7
|
+
import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
|
|
8
|
+
const { args, argTypes, meta } = getStorybookMeta({
|
|
9
|
+
tagName: 'oscd-filled-field',
|
|
10
|
+
});
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Fields / Filled Field',
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
...meta,
|
|
15
|
+
};
|
|
16
|
+
export const Default = {
|
|
17
|
+
argTypes,
|
|
18
|
+
args,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=OscdFilledField.stories.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { OutlinedField } from '@omicronenergy/oscd-material-web-base/field/internal/outlined-field.js';
|
|
7
|
+
import { styles as outlinedStyles } from '@omicronenergy/oscd-material-web-base/field/internal/outlined-styles.js';
|
|
8
|
+
import { styles as sharedStyles } from '@omicronenergy/oscd-material-web-base/field/internal/shared-styles.js';
|
|
9
|
+
/**
|
|
10
|
+
* @tagname oscd-outlined-field
|
|
11
|
+
* TODO(b/228525797): add docs
|
|
12
|
+
* @final
|
|
13
|
+
* @suppress {visibility}
|
|
14
|
+
*/
|
|
15
|
+
export class OscdOutlinedField extends OutlinedField {
|
|
16
|
+
}
|
|
17
|
+
OscdOutlinedField.styles = [sharedStyles, outlinedStyles];
|
|
18
|
+
//# sourceMappingURL=OscdOutlinedField.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { expect, fixture, fixtureCleanup } from '@open-wc/testing';
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { spy } from 'sinon';
|
|
9
|
+
describe('OscdOutlinedField side-effect free', () => {
|
|
10
|
+
let defineSpy;
|
|
11
|
+
// let harness: ScopingTestHarness;
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
// Spy on customElements.define before dynamic import
|
|
14
|
+
defineSpy = spy(window.customElements, 'define');
|
|
15
|
+
});
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
// Restore the spy
|
|
18
|
+
defineSpy.restore();
|
|
19
|
+
// Clean up DOM
|
|
20
|
+
fixtureCleanup();
|
|
21
|
+
});
|
|
22
|
+
it('should not call customElements.define as a side effect during import/instantiation', async () => {
|
|
23
|
+
// Dynamically import the component
|
|
24
|
+
const { OscdOutlinedField } = await import('./OscdOutlinedField.js');
|
|
25
|
+
// Instantiate the component
|
|
26
|
+
const oscdOutlinedField = await fixture(html `<oscd-outlined-field></oscd-outlined-field>`, { scopedElements: { 'oscd-outlined-field': OscdOutlinedField } });
|
|
27
|
+
// Verify it's upgraded (not just a dummy tag)
|
|
28
|
+
expect(oscdOutlinedField.shadowRoot).not.to.be.null;
|
|
29
|
+
expect(oscdOutlinedField.constructor.name).to.equal('OscdOutlinedField');
|
|
30
|
+
const globallyDefinedElements = defineSpy.args
|
|
31
|
+
.filter(([tagName]) => !tagName.startsWith('scoped-elements-test-wrapper'))
|
|
32
|
+
.map(([tagName]) => tagName);
|
|
33
|
+
expect(globallyDefinedElements).to.deep.equal([]);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=OscdOutlinedField.spec.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import './oscd-outlined-field.js';
|
|
7
|
+
import { getStorybookMeta } from '@/utils/storybook/getStorybookMeta.js';
|
|
8
|
+
const { args, argTypes, meta } = getStorybookMeta({
|
|
9
|
+
tagName: 'oscd-outlined-field',
|
|
10
|
+
});
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Fields / Outlined Field',
|
|
13
|
+
tags: ['autodocs'],
|
|
14
|
+
...meta,
|
|
15
|
+
};
|
|
16
|
+
export const Default = {
|
|
17
|
+
argTypes,
|
|
18
|
+
args,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=OscdOutlinedField.stories.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { OscdFilledField } from './OscdFilledField.js';
|
|
7
|
+
customElements.define('oscd-filled-field', OscdFilledField);
|
|
8
|
+
export { OscdFilledField };
|
|
9
|
+
//# sourceMappingURL=oscd-filled-field.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { OscdOutlinedField } from './OscdOutlinedField.js';
|
|
7
|
+
customElements.define('oscd-outlined-field', OscdOutlinedField);
|
|
8
|
+
export { OscdOutlinedField };
|
|
9
|
+
//# sourceMappingURL=oscd-outlined-field.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { FocusRing } from '@omicronenergy/oscd-material-web-base/focus/internal/focus-ring.js';
|
|
7
|
+
import { styles } from '@omicronenergy/oscd-material-web-base/focus/internal/focus-ring-styles.js';
|
|
8
|
+
/**
|
|
9
|
+
* @tagname oscd-focus-ring
|
|
10
|
+
* TODO(b/267336424): add docs
|
|
11
|
+
*
|
|
12
|
+
* @final
|
|
13
|
+
* @suppress {visibility}
|
|
14
|
+
*/
|
|
15
|
+
export class OscdFocusRing extends FocusRing {
|
|
16
|
+
}
|
|
17
|
+
OscdFocusRing.styles = [styles];
|
|
18
|
+
//# sourceMappingURL=OscdFocusRing.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* GENERATED SOURCE FILE. DO NOT MODIFY.
|
|
3
|
+
* Modifications will be overwritten.
|
|
4
|
+
* To prevent this file from being overwritten, remove this comment entirely.
|
|
5
|
+
*/
|
|
6
|
+
import { expect, fixture, fixtureCleanup } from '@open-wc/testing';
|
|
7
|
+
import { html } from 'lit';
|
|
8
|
+
import { spy } from 'sinon';
|
|
9
|
+
describe('OscdFocusRing side-effect free', () => {
|
|
10
|
+
let defineSpy;
|
|
11
|
+
// let harness: ScopingTestHarness;
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
// Spy on customElements.define before dynamic import
|
|
14
|
+
defineSpy = spy(window.customElements, 'define');
|
|
15
|
+
});
|
|
16
|
+
afterEach(() => {
|
|
17
|
+
// Restore the spy
|
|
18
|
+
defineSpy.restore();
|
|
19
|
+
// Clean up DOM
|
|
20
|
+
fixtureCleanup();
|
|
21
|
+
});
|
|
22
|
+
it('should not call customElements.define as a side effect during import/instantiation', async () => {
|
|
23
|
+
// Dynamically import the component
|
|
24
|
+
const { OscdFocusRing } = await import('./OscdFocusRing.js');
|
|
25
|
+
// Instantiate the component
|
|
26
|
+
const oscdFocusRing = await fixture(html `<oscd-focus-ring></oscd-focus-ring>`, { scopedElements: { 'oscd-focus-ring': OscdFocusRing } });
|
|
27
|
+
// Verify it's upgraded (not just a dummy tag)
|
|
28
|
+
expect(oscdFocusRing.shadowRoot).not.to.be.null;
|
|
29
|
+
expect(oscdFocusRing.constructor.name).to.equal('OscdFocusRing');
|
|
30
|
+
const globallyDefinedElements = defineSpy.args
|
|
31
|
+
.filter(([tagName]) => !tagName.startsWith('scoped-elements-test-wrapper'))
|
|
32
|
+
.map(([tagName]) => tagName);
|
|
33
|
+
expect(globallyDefinedElements).to.deep.equal([]);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=OscdFocusRing.spec.js.map
|