From 35a159fd7017f767414e17b19f21cc5c6fe25668 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 13 Jul 2020 10:11:36 -0400 Subject: [PATCH] Add parts --- src/components/alert/alert.tsx | 12 +++++-- src/components/avatar/avatar.scss | 6 ++-- src/components/avatar/avatar.tsx | 22 +++++++++--- src/components/badge/badge.tsx | 3 ++ src/components/button/button.tsx | 15 +++++--- src/components/checkbox/checkbox.tsx | 19 +++++++---- src/components/details/details.scss | 10 +++--- src/components/details/details.tsx | 22 ++++++++++-- src/components/dialog/dialog.scss | 4 +-- src/components/dialog/dialog.tsx | 24 +++++++++---- src/components/drawer/drawer.scss | 4 +-- src/components/drawer/drawer.tsx | 23 +++++++++---- src/components/dropdown/dropdown.tsx | 4 +++ src/components/form/form.tsx | 5 +++ src/components/icon/icon.tsx | 4 ++- src/components/input/input.tsx | 34 ++++++++++++++++--- src/components/menu-divider/menu-divider.tsx | 4 ++- src/components/menu-item/menu-item.tsx | 20 ++++++----- src/components/menu-label/menu-label.tsx | 6 +++- src/components/menu/menu.tsx | 3 ++ src/components/progress-bar/progress-bar.tsx | 8 ++++- .../progress-ring/progress-ring.scss | 4 +++ .../progress-ring/progress-ring.tsx | 15 +++++--- src/components/radio/radio.tsx | 16 ++++++--- src/components/range/range.tsx | 8 ++++- src/components/select/select.scss | 5 ++- src/components/select/select.tsx | 20 +++++++++-- src/components/spinner/spinner.tsx | 4 ++- src/components/switch/switch.tsx | 13 ++++--- src/components/tab-group/tab-group.tsx | 19 ++++++++--- src/components/tab-panel/tab-panel.tsx | 4 ++- src/components/tab/tab.tsx | 3 ++ src/components/tag/tag.tsx | 9 +++-- src/components/textarea/textarea.tsx | 11 ++++++ src/components/tooltip/tooltip.scss | 16 ++++----- src/components/tooltip/tooltip.tsx | 3 ++ 36 files changed, 307 insertions(+), 95 deletions(-) diff --git a/src/components/alert/alert.tsx b/src/components/alert/alert.tsx index 908b07134..dab99b948 100644 --- a/src/components/alert/alert.tsx +++ b/src/components/alert/alert.tsx @@ -8,6 +8,11 @@ import { focusVisible } from '../../utilities/focus-visible'; * @slot - The alert's content. * @slot icon - An icon to show in the alert. * @slot close-icon - An icon to use in lieu of the default close icon. + * + * @part base - The alert base element. + * @part icon - The container that wraps the alert icon. + * @part message - The alert message. + * @part close-button - The close button. */ @Component({ @@ -109,6 +114,7 @@ export class Tab {