@omicronenergy/oscd-ui 0.0.7 → 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 +23 -23
- 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 -13
- 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/{ripple/oscd-ripple.d.ts → dist/ripple/OscdRipple.js} +9 -14
- 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/{textfield → dist/textfield}/OscdFilledTextField.js +12 -10
- 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 -5
- package/dist/utils/storybook/getStorybookMeta.js +49 -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 +138 -89
- 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 -23
- package/elevation/OscdElevation.js +0 -19
- package/elevation/OscdElevation.js.map +0 -1
- package/elevation/_elevation.scss +0 -6
- package/elevation/internal/_elevation.scss +0 -176
- package/elevation/internal/elevation-styles.css +0 -1
- package/elevation/internal/elevation-styles.css.map +0 -1
- package/elevation/internal/elevation-styles.d.ts +0 -1
- package/elevation/internal/elevation-styles.js +0 -10
- package/elevation/internal/elevation-styles.js.map +0 -1
- package/elevation/internal/elevation-styles.scss +0 -10
- package/elevation/internal/elevation.d.ts +0 -13
- package/elevation/internal/elevation.js +0 -21
- package/elevation/internal/elevation.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/focus/OscdFocusRing.d.ts +0 -5
- package/focus/OscdFocusRing.js +0 -6
- package/focus/OscdFocusRing.js.map +0 -1
- package/focus/_focus-ring.scss +0 -6
- package/focus/internal/_focus-ring.scss +0 -113
- package/focus/internal/focus-ring-styles.css +0 -1
- package/focus/internal/focus-ring-styles.css.map +0 -1
- package/focus/internal/focus-ring-styles.d.ts +0 -1
- package/focus/internal/focus-ring-styles.js +0 -10
- package/focus/internal/focus-ring-styles.js.map +0 -1
- package/focus/internal/focus-ring-styles.scss +0 -10
- package/focus/internal/focus-ring.d.ts +0 -39
- package/focus/internal/focus-ring.js +0 -101
- package/focus/internal/focus-ring.js.map +0 -1
- package/focus/oscd-focus-ring.d.ts +0 -21
- package/focus/oscd-focus-ring.js +0 -23
- package/focus/oscd-focus-ring.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/internal/aria/aria.d.ts +0 -103
- package/internal/aria/aria.js +0 -81
- package/internal/aria/aria.js.map +0 -1
- package/internal/aria/delegate.d.ts +0 -54
- package/internal/aria/delegate.js +0 -176
- package/internal/aria/delegate.js.map +0 -1
- package/internal/controller/attachable-controller.d.ts +0 -114
- package/internal/controller/attachable-controller.js +0 -121
- package/internal/controller/attachable-controller.js.map +0 -1
- package/internal/controller/form-submitter.d.ts +0 -70
- package/internal/controller/form-submitter.js +0 -69
- package/internal/controller/form-submitter.js.map +0 -1
- package/internal/controller/is-rtl.d.ts +0 -14
- package/internal/controller/is-rtl.js +0 -18
- package/internal/controller/is-rtl.js.map +0 -1
- package/internal/controller/string-converter.d.ts +0 -9
- package/internal/controller/string-converter.js +0 -14
- package/internal/controller/string-converter.js.map +0 -1
- package/internal/events/dispatch-hooks.d.ts +0 -85
- package/internal/events/dispatch-hooks.js +0 -151
- package/internal/events/dispatch-hooks.js.map +0 -1
- package/internal/events/form-label-activation.d.ts +0 -55
- package/internal/events/form-label-activation.js +0 -96
- package/internal/events/form-label-activation.js.map +0 -1
- package/internal/events/redispatch-event.d.ts +0 -27
- package/internal/events/redispatch-event.js +0 -40
- package/internal/events/redispatch-event.js.map +0 -1
- package/internal/motion/_animation.scss +0 -33
- package/internal/motion/animation.d.ts +0 -80
- package/internal/motion/animation.js +0 -101
- package/internal/motion/animation.js.map +0 -1
- package/internal/sass/_string-ext.scss +0 -195
- package/internal/sass/_var.scss +0 -237
- package/labs/badge/OscdBadge.d.ts +0 -14
- package/labs/badge/OscdBadge.js +0 -15
- package/labs/badge/OscdBadge.js.map +0 -1
- package/labs/badge/_badge.scss +0 -6
- package/labs/badge/internal/_badge.scss +0 -76
- package/labs/badge/internal/badge-styles.css +0 -1
- package/labs/badge/internal/badge-styles.css.map +0 -1
- package/labs/badge/internal/badge-styles.d.ts +0 -1
- package/labs/badge/internal/badge-styles.js +0 -10
- package/labs/badge/internal/badge-styles.js.map +0 -1
- package/labs/badge/internal/badge-styles.scss +0 -10
- package/labs/badge/internal/badge.d.ts +0 -13
- package/labs/badge/internal/badge.js +0 -28
- package/labs/badge/internal/badge.js.map +0 -1
- package/labs/badge/oscd-badge.d.ts +0 -19
- package/labs/badge/oscd-badge.js +0 -21
- package/labs/badge/oscd-badge.js.map +0 -1
- package/labs/behaviors/constraint-validation.d.ts +0 -133
- package/labs/behaviors/constraint-validation.js +0 -131
- package/labs/behaviors/constraint-validation.js.map +0 -1
- package/labs/behaviors/element-internals.d.ts +0 -45
- package/labs/behaviors/element-internals.js +0 -46
- package/labs/behaviors/element-internals.js.map +0 -1
- package/labs/behaviors/focusable.d.ts +0 -39
- package/labs/behaviors/focusable.js +0 -87
- package/labs/behaviors/focusable.js.map +0 -1
- package/labs/behaviors/form-associated.d.ts +0 -199
- package/labs/behaviors/form-associated.js +0 -175
- package/labs/behaviors/form-associated.js.map +0 -1
- package/labs/behaviors/mixin.d.ts +0 -54
- package/labs/behaviors/mixin.js +0 -7
- package/labs/behaviors/mixin.js.map +0 -1
- package/labs/behaviors/on-report-validity.d.ts +0 -71
- package/labs/behaviors/on-report-validity.js +0 -289
- package/labs/behaviors/on-report-validity.js.map +0 -1
- package/labs/behaviors/validators/checkbox-validator.d.ts +0 -35
- package/labs/behaviors/validators/checkbox-validator.js +0 -34
- package/labs/behaviors/validators/checkbox-validator.js.map +0 -1
- package/labs/behaviors/validators/radio-validator.d.ts +0 -38
- package/labs/behaviors/validators/radio-validator.js +0 -67
- package/labs/behaviors/validators/radio-validator.js.map +0 -1
- package/labs/behaviors/validators/select-validator.d.ts +0 -35
- package/labs/behaviors/validators/select-validator.js +0 -35
- package/labs/behaviors/validators/select-validator.js.map +0 -1
- package/labs/behaviors/validators/text-field-validator.d.ts +0 -110
- package/labs/behaviors/validators/text-field-validator.js +0 -156
- package/labs/behaviors/validators/text-field-validator.js.map +0 -1
- package/labs/behaviors/validators/validator.d.ts +0 -96
- package/labs/behaviors/validators/validator.js +0 -73
- package/labs/behaviors/validators/validator.js.map +0 -1
- package/labs/card/OscdElevatedCard.d.ts +0 -20
- package/labs/card/OscdElevatedCard.js +0 -23
- package/labs/card/OscdElevatedCard.js.map +0 -1
- package/labs/card/OscdFilledCard.d.ts +0 -20
- package/labs/card/OscdFilledCard.js +0 -23
- package/labs/card/OscdFilledCard.js.map +0 -1
- package/labs/card/OscdOutlinedCard.d.ts +0 -20
- package/labs/card/OscdOutlinedCard.js +0 -23
- package/labs/card/OscdOutlinedCard.js.map +0 -1
- package/labs/card/_elevated-card.scss +0 -6
- package/labs/card/_filled-card.scss +0 -6
- package/labs/card/_outlined-card.scss +0 -6
- package/labs/card/demo/demo.d.ts +0 -7
- package/labs/card/demo/demo.js +0 -13
- package/labs/card/demo/demo.js.map +0 -1
- package/labs/card/demo/stories.d.ts +0 -15
- package/labs/card/demo/stories.js +0 -104
- package/labs/card/demo/stories.js.map +0 -1
- package/labs/card/internal/_elevated-card.scss +0 -35
- package/labs/card/internal/_filled-card.scss +0 -35
- package/labs/card/internal/_outlined-card.scss +0 -40
- package/labs/card/internal/_shared.scss +0 -62
- package/labs/card/internal/card.d.ts +0 -12
- package/labs/card/internal/card.js +0 -21
- package/labs/card/internal/card.js.map +0 -1
- package/labs/card/internal/elevated-styles.css +0 -1
- package/labs/card/internal/elevated-styles.css.map +0 -1
- package/labs/card/internal/elevated-styles.d.ts +0 -1
- package/labs/card/internal/elevated-styles.js +0 -10
- package/labs/card/internal/elevated-styles.js.map +0 -1
- package/labs/card/internal/elevated-styles.scss +0 -10
- package/labs/card/internal/filled-styles.css +0 -1
- package/labs/card/internal/filled-styles.css.map +0 -1
- package/labs/card/internal/filled-styles.d.ts +0 -1
- package/labs/card/internal/filled-styles.js +0 -10
- package/labs/card/internal/filled-styles.js.map +0 -1
- package/labs/card/internal/filled-styles.scss +0 -10
- package/labs/card/internal/outlined-styles.css +0 -1
- package/labs/card/internal/outlined-styles.css.map +0 -1
- package/labs/card/internal/outlined-styles.d.ts +0 -1
- package/labs/card/internal/outlined-styles.js +0 -10
- package/labs/card/internal/outlined-styles.js.map +0 -1
- package/labs/card/internal/outlined-styles.scss +0 -10
- package/labs/card/internal/shared-styles.css +0 -1
- package/labs/card/internal/shared-styles.css.map +0 -1
- package/labs/card/internal/shared-styles.d.ts +0 -1
- package/labs/card/internal/shared-styles.js +0 -10
- package/labs/card/internal/shared-styles.js.map +0 -1
- package/labs/card/internal/shared-styles.scss +0 -10
- package/labs/card/oscd-elevated-card.d.ts +0 -20
- package/labs/card/oscd-elevated-card.js +0 -23
- package/labs/card/oscd-elevated-card.js.map +0 -1
- package/labs/card/oscd-filled-card.d.ts +0 -25
- package/labs/card/oscd-filled-card.js +0 -28
- package/labs/card/oscd-filled-card.js.map +0 -1
- package/labs/card/oscd-outlined-card.d.ts +0 -20
- package/labs/card/oscd-outlined-card.js +0 -23
- package/labs/card/oscd-outlined-card.js.map +0 -1
- package/list/OscdList.js +0 -44
- package/list/OscdList.js.map +0 -1
- package/list/OscdListItem.js +0 -90
- 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/radio/OscdRadio.d.ts +0 -31
- package/radio/OscdRadio.js +0 -27
- package/radio/OscdRadio.js.map +0 -1
- package/radio/demo/demo.d.ts +0 -7
- package/radio/demo/demo.js +0 -14
- package/radio/demo/demo.js.map +0 -1
- package/radio/demo/stories.d.ts +0 -13
- package/radio/demo/stories.js +0 -97
- package/radio/demo/stories.js.map +0 -1
- package/radio/internal/_radio.scss +0 -198
- package/radio/internal/radio-styles.css +0 -1
- package/radio/internal/radio-styles.css.map +0 -1
- package/radio/internal/radio-styles.d.ts +0 -1
- package/radio/internal/radio-styles.js +0 -10
- package/radio/internal/radio-styles.js.map +0 -1
- package/radio/internal/radio-styles.scss +0 -10
- package/radio/internal/radio.d.ts +0 -59
- package/radio/internal/radio.js +0 -175
- package/radio/internal/radio.js.map +0 -1
- package/radio/internal/single-selection-controller.d.ts +0 -80
- package/radio/internal/single-selection-controller.js +0 -199
- package/radio/internal/single-selection-controller.js.map +0 -1
- package/radio/oscd-radio.d.ts +0 -32
- package/radio/oscd-radio.js +0 -34
- package/radio/oscd-radio.js.map +0 -1
- package/ripple/OscdRipple.d.ts +0 -5
- package/ripple/OscdRipple.js +0 -6
- package/ripple/OscdRipple.js.map +0 -1
- package/ripple/_ripple.scss +0 -6
- package/ripple/internal/_ripple.scss +0 -92
- package/ripple/internal/ripple-styles.css +0 -1
- package/ripple/internal/ripple-styles.css.map +0 -1
- package/ripple/internal/ripple-styles.d.ts +0 -1
- package/ripple/internal/ripple-styles.js +0 -10
- package/ripple/internal/ripple-styles.js.map +0 -1
- package/ripple/internal/ripple-styles.scss +0 -10
- package/ripple/internal/ripple.d.ts +0 -76
- package/ripple/internal/ripple.js +0 -425
- package/ripple/internal/ripple.js.map +0 -1
- package/ripple/oscd-ripple.js +0 -31
- package/ripple/oscd-ripple.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.map +0 -1
- package/textfield/OscdOutlinedTextField.d.ts +0 -28
- package/textfield/OscdOutlinedTextField.js +0 -31
- 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/tokens/_index.scss +0 -66
- package/tokens/_md-comp-assist-chip.scss +0 -153
- package/tokens/_md-comp-badge.scss +0 -39
- package/tokens/_md-comp-checkbox.scss +0 -156
- package/tokens/_md-comp-circular-progress.scss +0 -79
- package/tokens/_md-comp-dialog.scss +0 -112
- package/tokens/_md-comp-divider.scss +0 -43
- package/tokens/_md-comp-elevated-button.scss +0 -143
- package/tokens/_md-comp-elevated-card.scss +0 -80
- package/tokens/_md-comp-elevation.scss +0 -48
- package/tokens/_md-comp-fab-branded.scss +0 -155
- package/tokens/_md-comp-fab.scss +0 -296
- package/tokens/_md-comp-filled-button.scss +0 -143
- package/tokens/_md-comp-filled-card.scss +0 -80
- package/tokens/_md-comp-filled-field.scss +0 -293
- package/tokens/_md-comp-filled-icon-button.scss +0 -119
- package/tokens/_md-comp-filled-select.scss +0 -198
- package/tokens/_md-comp-filled-text-field.scss +0 -200
- package/tokens/_md-comp-filled-tonal-button.scss +0 -143
- package/tokens/_md-comp-filled-tonal-icon-button.scss +0 -123
- package/tokens/_md-comp-filter-chip.scss +0 -265
- package/tokens/_md-comp-focus-ring.scss +0 -78
- package/tokens/_md-comp-full-screen-dialog.scss +0 -25
- package/tokens/_md-comp-icon-button.scss +0 -94
- package/tokens/_md-comp-icon.scss +0 -46
- package/tokens/_md-comp-input-chip.scss +0 -247
- package/tokens/_md-comp-item.scss +0 -88
- package/tokens/_md-comp-linear-progress.scss +0 -64
- package/tokens/_md-comp-list-item.scss +0 -173
- package/tokens/_md-comp-list.scss +0 -44
- package/tokens/_md-comp-menu-item.scss +0 -125
- package/tokens/_md-comp-menu.scss +0 -59
- package/tokens/_md-comp-navigation-bar.scss +0 -44
- package/tokens/_md-comp-navigation-drawer.scss +0 -44
- package/tokens/_md-comp-outlined-button.scss +0 -139
- package/tokens/_md-comp-outlined-card.scss +0 -86
- package/tokens/_md-comp-outlined-field.scss +0 -268
- package/tokens/_md-comp-outlined-icon-button.scss +0 -117
- package/tokens/_md-comp-outlined-segmented-button.scss +0 -123
- package/tokens/_md-comp-outlined-select.scss +0 -186
- package/tokens/_md-comp-outlined-text-field.scss +0 -187
- package/tokens/_md-comp-primary-tab.scss +0 -160
- package/tokens/_md-comp-radio.scss +0 -86
- package/tokens/_md-comp-ripple.scss +0 -48
- package/tokens/_md-comp-secondary-tab.scss +0 -158
- package/tokens/_md-comp-slider.scss +0 -117
- package/tokens/_md-comp-suggestion-chip.scss +0 -157
- package/tokens/_md-comp-switch.scss +0 -187
- package/tokens/_md-comp-test-table.scss +0 -43
- package/tokens/_md-comp-text-button.scss +0 -132
- package/tokens/_md-ref-palette.scss +0 -112
- package/tokens/_md-ref-typeface.scss +0 -46
- package/tokens/_md-sys-color.scss +0 -119
- package/tokens/_md-sys-elevation.scss +0 -31
- package/tokens/_md-sys-motion.scss +0 -12
- package/tokens/_md-sys-shape.scss +0 -102
- package/tokens/_md-sys-state.scss +0 -12
- package/tokens/_md-sys-typescale.scss +0 -149
- package/tokens/internal/_shape.scss +0 -93
- package/tokens/internal/_validate.scss +0 -109
- package/tokens/v0_192/_index.scss +0 -107
- package/tokens/v0_192/_md-comp-assist-chip.scss +0 -111
- package/tokens/v0_192/_md-comp-badge.scss +0 -61
- package/tokens/v0_192/_md-comp-banner.scss +0 -76
- package/tokens/v0_192/_md-comp-bottom-app-bar.scss +0 -36
- package/tokens/v0_192/_md-comp-carousel-item.scss +0 -66
- package/tokens/v0_192/_md-comp-checkbox.scss +0 -129
- package/tokens/v0_192/_md-comp-circular-progress-indicator.scss +0 -41
- package/tokens/v0_192/_md-comp-data-table.scss +0 -99
- package/tokens/v0_192/_md-comp-date-input-modal.scss +0 -90
- package/tokens/v0_192/_md-comp-date-picker-docked.scss +0 -247
- package/tokens/v0_192/_md-comp-date-picker-modal.scss +0 -306
- package/tokens/v0_192/_md-comp-dialog.scss +0 -124
- package/tokens/v0_192/_md-comp-divider.scss +0 -28
- package/tokens/v0_192/_md-comp-elevated-button.scss +0 -92
- package/tokens/v0_192/_md-comp-elevated-card.scss +0 -60
- package/tokens/v0_192/_md-comp-extended-fab-branded.scss +0 -89
- package/tokens/v0_192/_md-comp-extended-fab-primary.scss +0 -97
- package/tokens/v0_192/_md-comp-extended-fab-secondary.scss +0 -98
- package/tokens/v0_192/_md-comp-extended-fab-surface.scss +0 -93
- package/tokens/v0_192/_md-comp-extended-fab-tertiary.scss +0 -98
- package/tokens/v0_192/_md-comp-fab-branded-large.scss +0 -63
- package/tokens/v0_192/_md-comp-fab-branded.scss +0 -63
- package/tokens/v0_192/_md-comp-fab-primary-large.scss +0 -68
- package/tokens/v0_192/_md-comp-fab-primary-small.scss +0 -68
- package/tokens/v0_192/_md-comp-fab-primary.scss +0 -68
- package/tokens/v0_192/_md-comp-fab-secondary-large.scss +0 -69
- package/tokens/v0_192/_md-comp-fab-secondary-small.scss +0 -69
- package/tokens/v0_192/_md-comp-fab-secondary.scss +0 -69
- package/tokens/v0_192/_md-comp-fab-surface-large.scss +0 -67
- package/tokens/v0_192/_md-comp-fab-surface-small.scss +0 -67
- package/tokens/v0_192/_md-comp-fab-surface.scss +0 -67
- package/tokens/v0_192/_md-comp-fab-tertiary-large.scss +0 -69
- package/tokens/v0_192/_md-comp-fab-tertiary-small.scss +0 -69
- package/tokens/v0_192/_md-comp-fab-tertiary.scss +0 -69
- package/tokens/v0_192/_md-comp-filled-autocomplete.scss +0 -239
- package/tokens/v0_192/_md-comp-filled-button.scss +0 -92
- package/tokens/v0_192/_md-comp-filled-card.scss +0 -62
- package/tokens/v0_192/_md-comp-filled-icon-button.scss +0 -83
- package/tokens/v0_192/_md-comp-filled-menu-button.scss +0 -101
- package/tokens/v0_192/_md-comp-filled-select.scss +0 -273
- package/tokens/v0_192/_md-comp-filled-text-field.scss +0 -193
- package/tokens/v0_192/_md-comp-filled-tonal-button.scss +0 -102
- package/tokens/v0_192/_md-comp-filled-tonal-icon-button.scss +0 -90
- package/tokens/v0_192/_md-comp-filter-chip.scss +0 -210
- package/tokens/v0_192/_md-comp-full-screen-dialog.scss +0 -114
- package/tokens/v0_192/_md-comp-icon-button.scss +0 -74
- package/tokens/v0_192/_md-comp-input-chip.scss +0 -187
- package/tokens/v0_192/_md-comp-linear-progress-indicator.scss +0 -43
- package/tokens/v0_192/_md-comp-list.scss +0 -255
- package/tokens/v0_192/_md-comp-menu.scss +0 -44
- package/tokens/v0_192/_md-comp-navigation-bar.scss +0 -115
- package/tokens/v0_192/_md-comp-navigation-drawer.scss +0 -165
- package/tokens/v0_192/_md-comp-navigation-rail.scss +0 -119
- package/tokens/v0_192/_md-comp-outlined-autocomplete.scss +0 -229
- package/tokens/v0_192/_md-comp-outlined-button.scss +0 -87
- package/tokens/v0_192/_md-comp-outlined-card.scss +0 -66
- package/tokens/v0_192/_md-comp-outlined-icon-button.scss +0 -83
- package/tokens/v0_192/_md-comp-outlined-menu-button.scss +0 -97
- package/tokens/v0_192/_md-comp-outlined-segmented-button.scss +0 -115
- package/tokens/v0_192/_md-comp-outlined-select.scss +0 -263
- package/tokens/v0_192/_md-comp-outlined-text-field.scss +0 -174
- package/tokens/v0_192/_md-comp-plain-tooltip.scss +0 -58
- package/tokens/v0_192/_md-comp-primary-navigation-tab.scss +0 -124
- package/tokens/v0_192/_md-comp-radio-button.scss +0 -71
- package/tokens/v0_192/_md-comp-rich-tooltip.scss +0 -122
- package/tokens/v0_192/_md-comp-scrim.scss +0 -28
- package/tokens/v0_192/_md-comp-search-bar.scss +0 -100
- package/tokens/v0_192/_md-comp-search-view.scss +0 -94
- package/tokens/v0_192/_md-comp-secondary-navigation-tab.scss +0 -87
- package/tokens/v0_192/_md-comp-sheet-bottom.scss +0 -46
- package/tokens/v0_192/_md-comp-sheet-floating.scss +0 -35
- package/tokens/v0_192/_md-comp-sheet-side.scss +0 -94
- package/tokens/v0_192/_md-comp-slider.scss +0 -118
- package/tokens/v0_192/_md-comp-snackbar.scss +0 -130
- package/tokens/v0_192/_md-comp-standard-menu-button.scss +0 -101
- package/tokens/v0_192/_md-comp-suggestion-chip.scss +0 -127
- package/tokens/v0_192/_md-comp-switch.scss +0 -141
- package/tokens/v0_192/_md-comp-text-button.scss +0 -80
- package/tokens/v0_192/_md-comp-time-input.scss +0 -220
- package/tokens/v0_192/_md-comp-time-picker.scss +0 -267
- package/tokens/v0_192/_md-comp-top-app-bar-large.scss +0 -64
- package/tokens/v0_192/_md-comp-top-app-bar-medium.scss +0 -64
- package/tokens/v0_192/_md-comp-top-app-bar-small-centered.scss +0 -71
- package/tokens/v0_192/_md-comp-top-app-bar-small.scss +0 -67
- package/tokens/v0_192/_md-ref-palette.scss +0 -109
- package/tokens/v0_192/_md-ref-typeface.scss +0 -23
- package/tokens/v0_192/_md-sys-color.scss +0 -135
- package/tokens/v0_192/_md-sys-elevation.scss +0 -24
- package/tokens/v0_192/_md-sys-motion.scss +0 -55
- package/tokens/v0_192/_md-sys-shape.scss +0 -33
- package/tokens/v0_192/_md-sys-state.scss +0 -22
- package/tokens/v0_192/_md-sys-typescale.scss +0 -286
- package/tokens/v0_192/index.test.css +0 -1
- package/tokens/v0_192/index.test.css.map +0 -1
- package/tokens/v0_192/index.test.scss +0 -584
- package/tokens/v0_192/lib.test.css +0 -1
- package/tokens/v0_192/lib.test.css.map +0 -1
- package/tokens/v0_192/lib.test.scss +0 -663
- 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/stories/components/knob-ui-components.d.ts +0 -103
- package/utils/storybook/stories/components/knob-ui-components.js +0 -414
- package/utils/storybook/stories/components/knob-ui-components.js.map +0 -1
- package/utils/storybook/stories/components/stories-renderer.d.ts +0 -40
- package/utils/storybook/stories/components/stories-renderer.js +0 -204
- package/utils/storybook/stories/components/stories-renderer.js.map +0 -1
- package/utils/storybook/stories/components/story-knob-panel.d.ts +0 -53
- package/utils/storybook/stories/components/story-knob-panel.js +0 -333
- package/utils/storybook/stories/components/story-knob-panel.js.map +0 -1
- package/utils/storybook/stories/components/story-renderer.d.ts +0 -27
- package/utils/storybook/stories/components/story-renderer.js +0 -84
- package/utils/storybook/stories/components/story-renderer.js.map +0 -1
- package/utils/storybook/stories/index.d.ts +0 -8
- package/utils/storybook/stories/index.js +0 -11
- package/utils/storybook/stories/index.js.map +0 -1
- package/utils/storybook/stories/knobs.d.ts +0 -143
- package/utils/storybook/stories/knobs.js +0 -177
- package/utils/storybook/stories/knobs.js.map +0 -1
- package/utils/storybook/stories/material-collection.d.ts +0 -75
- package/utils/storybook/stories/material-collection.js +0 -59
- package/utils/storybook/stories/material-collection.js.map +0 -1
- package/utils/storybook/stories/story.d.ts +0 -85
- package/utils/storybook/stories/story.js +0 -142
- package/utils/storybook/stories/story.js.map +0 -1
- package/utils/storybook/stories/theme-loader.d.ts +0 -13
- package/utils/storybook/stories/theme-loader.js +0 -43
- package/utils/storybook/stories/theme-loader.js.map +0 -1
- package/utils/storybook/themingDecorator.d.ts +0 -19
- 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/scopedWcDecorator.js +0 -0
- /package/{utils → dist/utils}/storybook/themingDecorator.js +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Easing functions to use for web animations.
|
|
8
|
-
*
|
|
9
|
-
* **NOTE:** `EASING.EMPHASIZED` is approximated with unknown accuracy.
|
|
10
|
-
*
|
|
11
|
-
* TODO(b/241113345): replace with tokens
|
|
12
|
-
*/
|
|
13
|
-
export declare const EASING: {
|
|
14
|
-
readonly STANDARD: "cubic-bezier(0.2, 0, 0, 1)";
|
|
15
|
-
readonly STANDARD_ACCELERATE: "cubic-bezier(.3,0,1,1)";
|
|
16
|
-
readonly STANDARD_DECELERATE: "cubic-bezier(0,0,0,1)";
|
|
17
|
-
readonly EMPHASIZED: "cubic-bezier(.3,0,0,1)";
|
|
18
|
-
readonly EMPHASIZED_ACCELERATE: "cubic-bezier(.3,0,.8,.15)";
|
|
19
|
-
readonly EMPHASIZED_DECELERATE: "cubic-bezier(.05,.7,.1,1)";
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* A signal that is used for abortable tasks.
|
|
23
|
-
*/
|
|
24
|
-
export interface AnimationSignal {
|
|
25
|
-
/**
|
|
26
|
-
* Starts the abortable task. Any previous tasks started with this instance
|
|
27
|
-
* will be aborted.
|
|
28
|
-
*
|
|
29
|
-
* @return An `AbortSignal` for the current task.
|
|
30
|
-
*/
|
|
31
|
-
start(): AbortSignal;
|
|
32
|
-
/**
|
|
33
|
-
* Complete the current task.
|
|
34
|
-
*/
|
|
35
|
-
finish(): void;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Creates an `AnimationSignal` that can be used to cancel a previous task.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* class MyClass {
|
|
42
|
-
* private labelAnimationSignal = createAnimationSignal();
|
|
43
|
-
*
|
|
44
|
-
* private async animateLabel() {
|
|
45
|
-
* // Start of the task. Previous tasks will be canceled.
|
|
46
|
-
* const signal = this.labelAnimationSignal.start();
|
|
47
|
-
*
|
|
48
|
-
* // Do async work...
|
|
49
|
-
* if (signal.aborted) {
|
|
50
|
-
* // Use AbortSignal to check if a request was made to abort after some
|
|
51
|
-
* // asynchronous work.
|
|
52
|
-
* return;
|
|
53
|
-
* }
|
|
54
|
-
*
|
|
55
|
-
* const animation = this.animate(...);
|
|
56
|
-
* // Add event listeners to be notified when the task should be canceled.
|
|
57
|
-
* signal.addEventListener('abort', () => {
|
|
58
|
-
* animation.cancel();
|
|
59
|
-
* });
|
|
60
|
-
*
|
|
61
|
-
* animation.addEventListener('finish', () => {
|
|
62
|
-
* // Tell the signal that the current task is finished.
|
|
63
|
-
* this.labelAnimationSignal.finish();
|
|
64
|
-
* });
|
|
65
|
-
* }
|
|
66
|
-
* }
|
|
67
|
-
*
|
|
68
|
-
* @return An `AnimationSignal`.
|
|
69
|
-
*/
|
|
70
|
-
export declare function createAnimationSignal(): AnimationSignal;
|
|
71
|
-
/**
|
|
72
|
-
* Returns a function which can be used to throttle function calls
|
|
73
|
-
* mapped to a key via a given function that should produce a promise that
|
|
74
|
-
* determines the throttle amount (defaults to requestAnimationFrame).
|
|
75
|
-
*/
|
|
76
|
-
export declare function createThrottle(): (key: string | undefined, cb: (...args: unknown[]) => unknown, timeout?: () => Promise<void>) => Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Parses an number in milliseconds from a css time value
|
|
79
|
-
*/
|
|
80
|
-
export declare function msFromTimeCSSValue(value: string): number;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Easing functions to use for web animations.
|
|
8
|
-
*
|
|
9
|
-
* **NOTE:** `EASING.EMPHASIZED` is approximated with unknown accuracy.
|
|
10
|
-
*
|
|
11
|
-
* TODO(b/241113345): replace with tokens
|
|
12
|
-
*/
|
|
13
|
-
export const EASING = {
|
|
14
|
-
STANDARD: 'cubic-bezier(0.2, 0, 0, 1)',
|
|
15
|
-
STANDARD_ACCELERATE: 'cubic-bezier(.3,0,1,1)',
|
|
16
|
-
STANDARD_DECELERATE: 'cubic-bezier(0,0,0,1)',
|
|
17
|
-
EMPHASIZED: 'cubic-bezier(.3,0,0,1)',
|
|
18
|
-
EMPHASIZED_ACCELERATE: 'cubic-bezier(.3,0,.8,.15)',
|
|
19
|
-
EMPHASIZED_DECELERATE: 'cubic-bezier(.05,.7,.1,1)',
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Creates an `AnimationSignal` that can be used to cancel a previous task.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* class MyClass {
|
|
26
|
-
* private labelAnimationSignal = createAnimationSignal();
|
|
27
|
-
*
|
|
28
|
-
* private async animateLabel() {
|
|
29
|
-
* // Start of the task. Previous tasks will be canceled.
|
|
30
|
-
* const signal = this.labelAnimationSignal.start();
|
|
31
|
-
*
|
|
32
|
-
* // Do async work...
|
|
33
|
-
* if (signal.aborted) {
|
|
34
|
-
* // Use AbortSignal to check if a request was made to abort after some
|
|
35
|
-
* // asynchronous work.
|
|
36
|
-
* return;
|
|
37
|
-
* }
|
|
38
|
-
*
|
|
39
|
-
* const animation = this.animate(...);
|
|
40
|
-
* // Add event listeners to be notified when the task should be canceled.
|
|
41
|
-
* signal.addEventListener('abort', () => {
|
|
42
|
-
* animation.cancel();
|
|
43
|
-
* });
|
|
44
|
-
*
|
|
45
|
-
* animation.addEventListener('finish', () => {
|
|
46
|
-
* // Tell the signal that the current task is finished.
|
|
47
|
-
* this.labelAnimationSignal.finish();
|
|
48
|
-
* });
|
|
49
|
-
* }
|
|
50
|
-
* }
|
|
51
|
-
*
|
|
52
|
-
* @return An `AnimationSignal`.
|
|
53
|
-
*/
|
|
54
|
-
export function createAnimationSignal() {
|
|
55
|
-
// The current animation's AbortController
|
|
56
|
-
let animationAbortController = null;
|
|
57
|
-
return {
|
|
58
|
-
start() {
|
|
59
|
-
// Tell the previous animation to cancel.
|
|
60
|
-
animationAbortController?.abort();
|
|
61
|
-
// Set up a new AbortController for the current animation.
|
|
62
|
-
animationAbortController = new AbortController();
|
|
63
|
-
// Provide the AbortSignal so that the caller can check aborted status
|
|
64
|
-
// and add listeners.
|
|
65
|
-
return animationAbortController.signal;
|
|
66
|
-
},
|
|
67
|
-
finish() {
|
|
68
|
-
animationAbortController = null;
|
|
69
|
-
},
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns a function which can be used to throttle function calls
|
|
74
|
-
* mapped to a key via a given function that should produce a promise that
|
|
75
|
-
* determines the throttle amount (defaults to requestAnimationFrame).
|
|
76
|
-
*/
|
|
77
|
-
export function createThrottle() {
|
|
78
|
-
const stack = new Set();
|
|
79
|
-
return async (key = '', cb, timeout = async () => {
|
|
80
|
-
await new Promise(requestAnimationFrame);
|
|
81
|
-
}) => {
|
|
82
|
-
if (!stack.has(key)) {
|
|
83
|
-
stack.add(key);
|
|
84
|
-
await timeout();
|
|
85
|
-
if (stack.has(key)) {
|
|
86
|
-
stack.delete(key);
|
|
87
|
-
cb();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Parses an number in milliseconds from a css time value
|
|
94
|
-
*/
|
|
95
|
-
export function msFromTimeCSSValue(value) {
|
|
96
|
-
const match = value.trim().match(/([\d.]+)(\s*s$)?/);
|
|
97
|
-
const time = match?.[1];
|
|
98
|
-
const seconds = match?.[2];
|
|
99
|
-
return Number(time ?? 0) * (seconds ? 1000 : 1);
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=animation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animation.js","sourceRoot":"","sources":["animation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,4BAA4B;IACtC,mBAAmB,EAAE,wBAAwB;IAC7C,mBAAmB,EAAE,uBAAuB;IAC5C,UAAU,EAAE,wBAAwB;IACpC,qBAAqB,EAAE,2BAA2B;IAClD,qBAAqB,EAAE,2BAA2B;CAC1C,CAAC;AAmBX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,UAAU,qBAAqB;IACnC,0CAA0C;IAC1C,IAAI,wBAAwB,GAA2B,IAAI,CAAC;IAE5D,OAAO;QACL,KAAK;YACH,yCAAyC;YACzC,wBAAwB,EAAE,KAAK,EAAE,CAAC;YAClC,0DAA0D;YAC1D,wBAAwB,GAAG,IAAI,eAAe,EAAE,CAAC;YACjD,sEAAsE;YACtE,qBAAqB;YACrB,OAAO,wBAAwB,CAAC,MAAM,CAAC;QACzC,CAAC;QACD,MAAM;YACJ,wBAAwB,GAAG,IAAI,CAAC;QAClC,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;IACxB,OAAO,KAAK,EACV,GAAG,GAAG,EAAE,EACR,EAAmC,EACnC,OAAO,GAAG,KAAK,IAAI,EAAE;QACnB,MAAM,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC3C,CAAC,EACD,EAAE;QACF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YACpB,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACf,MAAM,OAAO,EAAE,CAAC;YAChB,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;gBACnB,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAClB,EAAE,EAAE,CAAC;YACP,CAAC;QACH,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IACxB,MAAM,OAAO,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3B,OAAO,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Easing functions to use for web animations.\n *\n * **NOTE:** `EASING.EMPHASIZED` is approximated with unknown accuracy.\n *\n * TODO(b/241113345): replace with tokens\n */\nexport const EASING = {\n STANDARD: 'cubic-bezier(0.2, 0, 0, 1)',\n STANDARD_ACCELERATE: 'cubic-bezier(.3,0,1,1)',\n STANDARD_DECELERATE: 'cubic-bezier(0,0,0,1)',\n EMPHASIZED: 'cubic-bezier(.3,0,0,1)',\n EMPHASIZED_ACCELERATE: 'cubic-bezier(.3,0,.8,.15)',\n EMPHASIZED_DECELERATE: 'cubic-bezier(.05,.7,.1,1)',\n} as const;\n\n/**\n * A signal that is used for abortable tasks.\n */\nexport interface AnimationSignal {\n /**\n * Starts the abortable task. Any previous tasks started with this instance\n * will be aborted.\n *\n * @return An `AbortSignal` for the current task.\n */\n start(): AbortSignal;\n /**\n * Complete the current task.\n */\n finish(): void;\n}\n\n/**\n * Creates an `AnimationSignal` that can be used to cancel a previous task.\n *\n * @example\n * class MyClass {\n * private labelAnimationSignal = createAnimationSignal();\n *\n * private async animateLabel() {\n * // Start of the task. Previous tasks will be canceled.\n * const signal = this.labelAnimationSignal.start();\n *\n * // Do async work...\n * if (signal.aborted) {\n * // Use AbortSignal to check if a request was made to abort after some\n * // asynchronous work.\n * return;\n * }\n *\n * const animation = this.animate(...);\n * // Add event listeners to be notified when the task should be canceled.\n * signal.addEventListener('abort', () => {\n * animation.cancel();\n * });\n *\n * animation.addEventListener('finish', () => {\n * // Tell the signal that the current task is finished.\n * this.labelAnimationSignal.finish();\n * });\n * }\n * }\n *\n * @return An `AnimationSignal`.\n */\nexport function createAnimationSignal(): AnimationSignal {\n // The current animation's AbortController\n let animationAbortController: AbortController | null = null;\n\n return {\n start() {\n // Tell the previous animation to cancel.\n animationAbortController?.abort();\n // Set up a new AbortController for the current animation.\n animationAbortController = new AbortController();\n // Provide the AbortSignal so that the caller can check aborted status\n // and add listeners.\n return animationAbortController.signal;\n },\n finish() {\n animationAbortController = null;\n },\n };\n}\n\n/**\n * Returns a function which can be used to throttle function calls\n * mapped to a key via a given function that should produce a promise that\n * determines the throttle amount (defaults to requestAnimationFrame).\n */\nexport function createThrottle() {\n const stack = new Set();\n return async (\n key = '',\n cb: (...args: unknown[]) => unknown,\n timeout = async () => {\n await new Promise(requestAnimationFrame);\n },\n ) => {\n if (!stack.has(key)) {\n stack.add(key);\n await timeout();\n if (stack.has(key)) {\n stack.delete(key);\n cb();\n }\n }\n };\n}\n\n/**\n * Parses an number in milliseconds from a css time value\n */\nexport function msFromTimeCSSValue(value: string) {\n const match = value.trim().match(/([\\d.]+)(\\s*s$)?/);\n const time = match?.[1];\n const seconds = match?.[2];\n return Number(time ?? 0) * (seconds ? 1000 : 1);\n}\n"]}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2021 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use 'sass:list';
|
|
8
|
-
@use 'sass:string';
|
|
9
|
-
// go/keep-sorted end
|
|
10
|
-
|
|
11
|
-
/// Checks if a string starts with a given prefix.
|
|
12
|
-
///
|
|
13
|
-
/// @example - scss
|
|
14
|
-
/// @debug has-prefix('var(--foo)', 'var('); // true
|
|
15
|
-
///
|
|
16
|
-
/// @param {String} $string - The string to test.
|
|
17
|
-
/// @param {String} $prefix - The prefix to check.
|
|
18
|
-
/// @return {Boolean} True if the string starts with the given prefix.
|
|
19
|
-
@function has-prefix($string, $prefix) {
|
|
20
|
-
@return string.slice($string, 1, string.length($prefix)) == $prefix;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/// Checks if a string ends with a given suffix.
|
|
24
|
-
///
|
|
25
|
-
/// @example - scss
|
|
26
|
-
/// @debug has-suffix('var(--foo)', ')'); // true
|
|
27
|
-
///
|
|
28
|
-
/// @param {String} $string - The string to test.
|
|
29
|
-
/// @param {String} $suffix - The suffix to check.
|
|
30
|
-
/// @return {Boolean} True if the string ends with the given suffix.
|
|
31
|
-
@function has-suffix($string, $suffix) {
|
|
32
|
-
@return string.slice($string, -1 * string.length($suffix)) == $suffix;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/// Trims a repeating prefix from the start of a string.
|
|
36
|
-
///
|
|
37
|
-
/// @example - scss
|
|
38
|
-
/// @debug trim-repeating-prefix(' foo bar ', ' '); // "foo bar "
|
|
39
|
-
///
|
|
40
|
-
/// @param {String} $string - The string to trim.
|
|
41
|
-
/// @param {String} $prefix - The repeating prefix string to trim.
|
|
42
|
-
/// @return {String} The string with the prefix trimmed from the start.
|
|
43
|
-
@function trim-repeating-prefix($string, $prefix) {
|
|
44
|
-
@while has-prefix($string, $prefix) {
|
|
45
|
-
$string: trim-prefix($string, $prefix);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@return $string;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/// Trims a prefix from the start of a string.
|
|
52
|
-
///
|
|
53
|
-
/// @example - scss
|
|
54
|
-
/// @debug trim-prefix('var(--foo)', 'var('); // "--foo)"
|
|
55
|
-
///
|
|
56
|
-
/// @param {String} $string - The string to trim.
|
|
57
|
-
/// @param {String} $prefix - The prefix string to trim.
|
|
58
|
-
/// @return {String} The string with the prefix trimmed from the start.
|
|
59
|
-
@function trim-prefix($string, $prefix) {
|
|
60
|
-
@if has-prefix($string, $prefix) {
|
|
61
|
-
$string: string.slice($string, string.length($prefix) + 1);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@return $string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/// Trims a repeating suffix from the end of a string.
|
|
68
|
-
///
|
|
69
|
-
/// @example - scss
|
|
70
|
-
/// @debug trim-repeating-suffix(' foo bar ', ' '); // " foo bar"
|
|
71
|
-
/// @debug trim-repeating-suffix('var(--foo)', ')'); // "var(--foo"
|
|
72
|
-
///
|
|
73
|
-
/// @param {String} $string - The string to trim.
|
|
74
|
-
/// @param {String} $suffix - The repeating suffix string to trim.
|
|
75
|
-
/// @return {String} The string with the suffix trimmed from the end.
|
|
76
|
-
@function trim-repeating-suffix($string, $suffix) {
|
|
77
|
-
@while has-suffix($string, $suffix) {
|
|
78
|
-
$string: trim-suffix($string, $suffix);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@return $string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/// Trims a suffix from the end of a string.
|
|
85
|
-
///
|
|
86
|
-
/// @example - scss
|
|
87
|
-
/// @debug trim-suffix('var(--foo)', ')'); // "var(--foo"
|
|
88
|
-
///
|
|
89
|
-
/// @param {String} $string - The string to trim.
|
|
90
|
-
/// @param {String} $suffix - The suffix string to trim.
|
|
91
|
-
/// @return {String} The string with the suffix trimmed from the end.
|
|
92
|
-
@function trim-suffix($string, $suffix) {
|
|
93
|
-
@if has-suffix($string, $suffix) {
|
|
94
|
-
$string: string.slice($string, 1, -1 * string.length($suffix) - 1);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@return $string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/// Trims a repeating prefix and suffix from the start and end of a string.
|
|
101
|
-
///
|
|
102
|
-
/// If a suffix is not provided, the prefix is used as the suffix to trim.
|
|
103
|
-
///
|
|
104
|
-
/// @example - scss
|
|
105
|
-
/// @debug trim-repeating(' foo bar ', ' '); // "foo bar"
|
|
106
|
-
///
|
|
107
|
-
/// @param {String} $string - The string to trim.
|
|
108
|
-
/// @param {String} $prefix - The repeating prefix string to trim.
|
|
109
|
-
/// @param {String} $suffix [$prefix] - The repeating suffix string to trim.
|
|
110
|
-
/// @return {String} The string with the prefix and suffix trimmed.
|
|
111
|
-
@function trim-repeating($string, $prefix, $suffix: $prefix) {
|
|
112
|
-
@return trim-repeating-prefix(
|
|
113
|
-
trim-repeating-suffix($string, $suffix),
|
|
114
|
-
$prefix
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/// Trims a prefix and suffix from the start and end of a string.
|
|
119
|
-
///
|
|
120
|
-
/// If a suffix is not provided, the prefix is used as the suffix to trim.
|
|
121
|
-
///
|
|
122
|
-
/// @example - scss
|
|
123
|
-
/// @debug trim('var(--foo)', 'var(', ')'); // "--foo"
|
|
124
|
-
///
|
|
125
|
-
/// @param {String} $string - The string to trim.
|
|
126
|
-
/// @param {String} $prefix - The prefix string to trim.
|
|
127
|
-
/// @param {String} $suffix [$prefix] - The suffix string to trim.
|
|
128
|
-
/// @return {String} The string with the prefix and suffix trimmed.
|
|
129
|
-
@function trim($string, $prefix, $suffix: $prefix) {
|
|
130
|
-
@return trim-prefix(trim-suffix($string, $suffix), $prefix);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/// Returns a new string with the first match of a pattern replaced by a
|
|
134
|
-
/// replacement.
|
|
135
|
-
///
|
|
136
|
-
/// @example - scss
|
|
137
|
-
/// @debug trim('foo bar baz', 'bar', 'quux'); // "foo quux baz"
|
|
138
|
-
///
|
|
139
|
-
/// @param {String} $string - The string to be searched.
|
|
140
|
-
/// @param {String} $pattern - The pattern to search for.
|
|
141
|
-
/// @param {String} $replacement - The value to replace the pattern.
|
|
142
|
-
/// @return {String} The string with the first match of pattern replaced by the
|
|
143
|
-
/// replacement or the initial string itself.
|
|
144
|
-
@function replace($string, $pattern, $replacement) {
|
|
145
|
-
$pattern-index: string.index($string, $pattern);
|
|
146
|
-
@if not $pattern-index {
|
|
147
|
-
@return $string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
$before: string.slice($string, 1, $pattern-index - 1);
|
|
151
|
-
$after: string.slice($string, string.length($pattern) + $pattern-index);
|
|
152
|
-
|
|
153
|
-
@return $before + $replacement + $after;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/// Divides a string into an ordered list of substrings.
|
|
157
|
-
///
|
|
158
|
-
/// @example - scss
|
|
159
|
-
/// @debug split("1px 2px 3px 4px"); // (1px 2px 3px 4px)
|
|
160
|
-
/// @debug split("1px, 2px, 3px, 4px"); // (1px 2px 3px 4px)
|
|
161
|
-
/// @debug split("1px/2px/3px/4px"); // (1px 2px 3px 4px)
|
|
162
|
-
///
|
|
163
|
-
/// @param {String} $str - The string to split
|
|
164
|
-
/// @return {List} The list of substrings
|
|
165
|
-
@function split($str) {
|
|
166
|
-
$list: ();
|
|
167
|
-
$item: '';
|
|
168
|
-
// list separator precedence is comma, slash, space
|
|
169
|
-
$separator: ' ';
|
|
170
|
-
@if string.index($str, ',') {
|
|
171
|
-
$separator: ',';
|
|
172
|
-
} @else if string.index($str, '/') {
|
|
173
|
-
$separator: '/';
|
|
174
|
-
}
|
|
175
|
-
@for $i from 1 through string.length($str) {
|
|
176
|
-
$chr: string.slice($str, $i, $i);
|
|
177
|
-
@if $chr == $separator {
|
|
178
|
-
@if $item != '' {
|
|
179
|
-
// remove surrounding whitespace
|
|
180
|
-
$item: string.unquote(trim($item, ' '));
|
|
181
|
-
$list: list.append($list, $item);
|
|
182
|
-
}
|
|
183
|
-
$item: '';
|
|
184
|
-
} @else {
|
|
185
|
-
$item: $item + $chr;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
// append final item
|
|
189
|
-
@if $item != '' {
|
|
190
|
-
// remove surrounding whitespace
|
|
191
|
-
$item: string.unquote(trim($item, ' '));
|
|
192
|
-
$list: list.append($list, $item);
|
|
193
|
-
}
|
|
194
|
-
@return $list;
|
|
195
|
-
}
|
package/internal/sass/_var.scss
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2021 Google LLC
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
// go/keep-sorted start
|
|
7
|
-
@use 'sass:map';
|
|
8
|
-
@use 'sass:meta';
|
|
9
|
-
@use 'sass:string';
|
|
10
|
-
// go/keep-sorted end
|
|
11
|
-
// go/keep-sorted start
|
|
12
|
-
@use './string-ext';
|
|
13
|
-
// go/keep-sorted end
|
|
14
|
-
|
|
15
|
-
/// Creates a custom property `var()` string.
|
|
16
|
-
///
|
|
17
|
-
/// @param {String} $name - The name of the custom property.
|
|
18
|
-
/// @param {*} $fallback [null] - Optional `var()` fallback value.
|
|
19
|
-
/// @return {String} A custom property `var()` string.
|
|
20
|
-
@function create($name, $fallback: null) {
|
|
21
|
-
$name: create-name($name);
|
|
22
|
-
@if $fallback == null {
|
|
23
|
-
@return var(#{$name});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@if is-var($fallback) {
|
|
27
|
-
$fallback-name: name($fallback);
|
|
28
|
-
$fallback-fallback: fallback($fallback);
|
|
29
|
-
@return var(#{$name}, create($fallback-name, $fallback-fallback));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@return var(#{$name}, $fallback);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/// Create a custom property variable name.
|
|
36
|
-
///
|
|
37
|
-
/// Providing a custom property name with `--*` will ignore the global prefix.
|
|
38
|
-
///
|
|
39
|
-
/// @example - scss
|
|
40
|
-
/// .foo {
|
|
41
|
-
/// color: var(#{var.create-name(foo)});
|
|
42
|
-
/// background: var(#{var.create-name(--bar)});
|
|
43
|
-
/// }
|
|
44
|
-
///
|
|
45
|
-
/// @example - css
|
|
46
|
-
/// .foo {
|
|
47
|
-
/// color: var(--md-foo);
|
|
48
|
-
/// background: var(--bar);
|
|
49
|
-
/// }
|
|
50
|
-
///
|
|
51
|
-
/// @param {String} $name - The name of the custom property.
|
|
52
|
-
/// @return {String} The full valid CSS custom property variable name.
|
|
53
|
-
@function create-name($name) {
|
|
54
|
-
@if string-ext.has-prefix($name, '--') {
|
|
55
|
-
@return $name;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@return string.unquote('--md-#{$name}');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/// Returns the custom property variable name of `var()` string.
|
|
62
|
-
///
|
|
63
|
-
/// @throw If the value is not a custom property.
|
|
64
|
-
/// @param {String} $var - A custom property `var()` string.
|
|
65
|
-
/// @return {String} The custom property variable name.
|
|
66
|
-
@function name($var) {
|
|
67
|
-
$var: _parse-and-validate($var);
|
|
68
|
-
@return map.get($var, name);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/// Returns the fallback value of a custom property `var()` string. The value
|
|
72
|
-
/// may be null if the `var()` does not have a fallback value.
|
|
73
|
-
///
|
|
74
|
-
/// @example - scss
|
|
75
|
-
/// $fallback: var.fallback(var(--foo, var(--bar, 8px));
|
|
76
|
-
/// // "var(--bar, 8px)"
|
|
77
|
-
///
|
|
78
|
-
/// @throw If the value is not a custom property.
|
|
79
|
-
/// @param {String} $var - A custom property `var()` string.
|
|
80
|
-
/// @return {String} The fallback value of the `var()` string. May be null if
|
|
81
|
-
/// the `var()` does not have a fallback value.
|
|
82
|
-
@function fallback($var) {
|
|
83
|
-
$var: _parse-and-validate($var);
|
|
84
|
-
$fallback: map.get($var, fallback);
|
|
85
|
-
@if is-var($fallback) {
|
|
86
|
-
@return create(name($fallback), fallback($fallback));
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@return $fallback;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/// Returns the deep fallback value of a custom property `var()` string. The
|
|
93
|
-
/// value may be null if the `var()` does not have a fallback value.
|
|
94
|
-
///
|
|
95
|
-
/// If a fallback value is another `var()`, this function will return the final
|
|
96
|
-
/// concrete value in the chain.
|
|
97
|
-
///
|
|
98
|
-
/// @example - scss
|
|
99
|
-
/// $fallback: var.deep-fallback(var(--foo, var(--bar, 8px));
|
|
100
|
-
/// // "8px"
|
|
101
|
-
///
|
|
102
|
-
/// @throw If the value is not a custom property.
|
|
103
|
-
/// @param {String} $var - A custom property `var()` string.
|
|
104
|
-
/// @return {String} The deep fallback value of the `var()` string. May be null
|
|
105
|
-
/// if the `var()` does not have a fallback value.
|
|
106
|
-
@function deep-fallback($var) {
|
|
107
|
-
$fallback: fallback($var);
|
|
108
|
-
@if is-var($fallback) {
|
|
109
|
-
@return deep-fallback($fallback);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@return $fallback;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/// Creates a new custom property `var()` string and returns it with the
|
|
116
|
-
/// specified new fallback value.
|
|
117
|
-
///
|
|
118
|
-
/// @example - scss
|
|
119
|
-
/// $new-var: set-fallback(var(--foo, var(--bar, 8px)), 16px);
|
|
120
|
-
/// // "var(--foo, 16px)"
|
|
121
|
-
///
|
|
122
|
-
/// @throw If the value is not a custom property.
|
|
123
|
-
/// @param {String} $var - A custom property `var()` string.
|
|
124
|
-
/// @param {*} $new-fallback - The new fallback value. May be null to remove a
|
|
125
|
-
/// value.
|
|
126
|
-
/// @return {String} A custom property `var()` string with the new fallback
|
|
127
|
-
/// value.
|
|
128
|
-
@function set-fallback($var, $new-fallback) {
|
|
129
|
-
$name: name($var);
|
|
130
|
-
@return create($name, $new-fallback);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/// Creates a new custom property `var()` string and returns it with the
|
|
134
|
-
/// specified new deep fallback value.
|
|
135
|
-
///
|
|
136
|
-
/// If the provided `var()` string's fallback value is another `var()`, this
|
|
137
|
-
/// function will set the final fallback value in the chain.
|
|
138
|
-
///
|
|
139
|
-
/// @example - scss
|
|
140
|
-
/// $new-var: deep-set-fallback(var(--foo, var(--bar, 8px)), 16px);
|
|
141
|
-
/// // "var(--foo, var(--bar, 16px))"
|
|
142
|
-
///
|
|
143
|
-
/// @throw If the value is not a custom property.
|
|
144
|
-
/// @param {String} $var - A custom property `var()` string.
|
|
145
|
-
/// @param {*} $new-fallback - The new fallback value. May be null to remove a
|
|
146
|
-
/// value.
|
|
147
|
-
/// @return {String} A custom property `var()` string with the new deep
|
|
148
|
-
/// fallback value.
|
|
149
|
-
@function deep-set-fallback($var, $new-fallback) {
|
|
150
|
-
$old-fallback: fallback($var);
|
|
151
|
-
@if is-var($old-fallback) {
|
|
152
|
-
$new-fallback: deep-set-fallback($old-fallback, $new-fallback);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@return set-fallback($var, $new-fallback);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/// Indicates whether or not a value is a custom property `var()` string.
|
|
159
|
-
///
|
|
160
|
-
/// @example - scss
|
|
161
|
-
/// $is-var: var.is-var('var(--foo)'); // true
|
|
162
|
-
///
|
|
163
|
-
/// @param {*} $var - The value to test.
|
|
164
|
-
/// @return {Bool} True if the value is a custom property `var()` string, or
|
|
165
|
-
/// false if not.
|
|
166
|
-
@function is-var($var) {
|
|
167
|
-
@return _parse($var) != null;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/// Indicates whether or not a value is a `var()` string.
|
|
171
|
-
///
|
|
172
|
-
/// @param {*} $var - The value to test.
|
|
173
|
-
/// @return {Bool} True if the value is a custom property `var()` string, or
|
|
174
|
-
/// false if not.
|
|
175
|
-
@function _is-var-string($var) {
|
|
176
|
-
@return meta.type-of($var) == 'string' and string-ext.has-prefix($var, 'var(');
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/// Parses a `var()` string into a Map with `name` and `fallback` keys. This
|
|
180
|
-
/// function returns null if the value is invalid.
|
|
181
|
-
///
|
|
182
|
-
/// @param {*} $var - The value to parse.
|
|
183
|
-
/// @return {Map} A Map containing a string `name` key with the custom property
|
|
184
|
-
/// name and a `fallback` key with the fallback value (which may be null).
|
|
185
|
-
/// The returned Map itself may be null if the provided value is not valid.
|
|
186
|
-
@function _parse($var) {
|
|
187
|
-
@if meta.type-of($var) ==
|
|
188
|
-
'map' and
|
|
189
|
-
map.has-key($var, name) and
|
|
190
|
-
map.has-key($var, fallback)
|
|
191
|
-
{
|
|
192
|
-
@return $var;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
@if not _is-var-string($var) {
|
|
196
|
-
@return null;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// Remove function name and parens
|
|
200
|
-
$var: string-ext.trim($var, 'var(', ')');
|
|
201
|
-
|
|
202
|
-
$name: string-ext.trim-repeating($var, ' ');
|
|
203
|
-
$fallback: null;
|
|
204
|
-
$comma: string.index($var, ',');
|
|
205
|
-
@if $comma != null {
|
|
206
|
-
$name: string-ext.trim-repeating(string.slice($var, 1, $comma - 1), ' ');
|
|
207
|
-
$fallback: string-ext.trim-repeating(string.slice($var, $comma + 1), ' ');
|
|
208
|
-
@if _is-var-string($fallback) {
|
|
209
|
-
$fallback: _parse($fallback);
|
|
210
|
-
@if $fallback == null {
|
|
211
|
-
// Invalid var() fallback string
|
|
212
|
-
@return null;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
@if $name == '' or $fallback == '' {
|
|
218
|
-
@return null;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
@return (name: $name, fallback: $fallback);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/// Parses a `var()` string into a Map with `name` and `fallback` keys.
|
|
225
|
-
///
|
|
226
|
-
/// @throw If the value is not a custom property.
|
|
227
|
-
/// @param {*} $var - The value to parse.
|
|
228
|
-
/// @return {Map} A Map containing a string `name` key with the custom property
|
|
229
|
-
/// name and a `fallback` key with the fallback value (which may be null).
|
|
230
|
-
@function _parse-and-validate($var) {
|
|
231
|
-
$var-map: _parse($var);
|
|
232
|
-
@if $var-map == null {
|
|
233
|
-
@error '"#{$var}" is not a valid var() string';
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
@return $var-map;
|
|
237
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CSSResultOrNative } from 'lit';
|
|
7
|
-
import { Badge } from './internal/badge.js';
|
|
8
|
-
/**
|
|
9
|
-
* @final
|
|
10
|
-
* @suppress {visibility}
|
|
11
|
-
*/
|
|
12
|
-
export declare class OscdBadge extends Badge {
|
|
13
|
-
static styles: CSSResultOrNative[];
|
|
14
|
-
}
|
package/labs/badge/OscdBadge.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Badge } from './internal/badge.js';
|
|
7
|
-
import { styles } from './internal/badge-styles.js';
|
|
8
|
-
/**
|
|
9
|
-
* @final
|
|
10
|
-
* @suppress {visibility}
|
|
11
|
-
*/
|
|
12
|
-
export class OscdBadge extends Badge {
|
|
13
|
-
static { this.styles = [styles]; }
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=OscdBadge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OscdBadge.js","sourceRoot":"","sources":["OscdBadge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;aAClB,WAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { CSSResultOrNative } from 'lit';\n\nimport { Badge } from './internal/badge.js';\nimport { styles } from './internal/badge-styles.js';\n\n/**\n * @final\n * @suppress {visibility}\n */\nexport class OscdBadge extends Badge {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
|