From aad973e20d4057c1a5dde7d233e22d6efacb5369 Mon Sep 17 00:00:00 2001 From: Igor Bari Date: Sat, 4 May 2024 07:10:26 +0000 Subject: [PATCH] Drop lit css --- TODO.md | 1 + src/Avatar/Avatar.css | 14 ++++ src/Avatar/Avatar.stories.ts | 13 ++-- src/Avatar/Avatar.ts | 27 +------ src/Badge/Badge.css | 21 +++++ src/Badge/Badge.stories.ts | 9 +-- src/Badge/Badge.ts | 34 +-------- src/Button/Button.css | 40 ++++++++++ src/Button/Button.stories.ts | 13 ++-- src/Button/Button.ts | 55 +------------ src/DropdownMenu/DropdownMenu.css | 76 ++++++++++++++++++ src/DropdownMenu/DropdownMenu.stories.ts | 35 +++++---- src/DropdownMenu/DropdownMenu.ts | 89 +--------------------- src/Header/Header.css | 18 +++++ src/Header/Header.stories.ts | 11 ++- src/Header/Header.ts | 33 +------- src/Heading/Heading.css | 20 +++++ src/Heading/Heading.stories.ts | 13 ++-- src/Heading/Heading.ts | 28 +------ src/InputLabel/InputLabel.css | 33 ++++++++ src/InputLabel/InputLabel.stories.ts | 7 +- src/InputLabel/InputLabel.ts | 46 +---------- src/Loader/Loader.css | 44 +++++++++++ src/Loader/Loader.stories.ts | 14 +++- src/Loader/Loader.ts | 67 +--------------- src/Main/Main.css | 14 ++++ src/Main/Main.stories.ts | 9 +-- src/Main/Main.ts | 27 +------ src/Notifications/Notification.css | 42 ++++++++++ src/Notifications/Notification.ts | 48 +----------- src/Notifications/Notifications.stories.ts | 4 +- src/Notifications/Notifications.ts | 2 +- src/Popover/Popover.css | 26 +++++++ src/Popover/Popover.stories.ts | 12 +-- src/Popover/Popover.ts | 32 +------- src/Table/RowSelector.css | 11 +++ src/Table/RowSelector.ts | 16 +--- src/Table/Table.css | 60 +++++++++++++++ src/Table/Table.stories.ts | 11 ++- src/Table/Table.ts | 73 +----------------- 40 files changed, 509 insertions(+), 639 deletions(-) create mode 100644 src/Avatar/Avatar.css create mode 100644 src/Badge/Badge.css create mode 100644 src/Button/Button.css create mode 100644 src/DropdownMenu/DropdownMenu.css create mode 100644 src/Header/Header.css create mode 100644 src/Heading/Heading.css create mode 100644 src/InputLabel/InputLabel.css create mode 100644 src/Loader/Loader.css create mode 100644 src/Main/Main.css create mode 100644 src/Notifications/Notification.css create mode 100644 src/Popover/Popover.css create mode 100644 src/Table/RowSelector.css create mode 100644 src/Table/Table.css diff --git a/TODO.md b/TODO.md index 128e98f..0e15f5f 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,4 @@ - add button group - add header menu - add text +- drop dependency to lit and ungap diff --git a/src/Avatar/Avatar.css b/src/Avatar/Avatar.css new file mode 100644 index 0000000..a46226d --- /dev/null +++ b/src/Avatar/Avatar.css @@ -0,0 +1,14 @@ +button[bt-avatar] { + position: relative; + display: flex; + align-items: center; + justify-content: center; + width: 40px; + height: 40px; + overflow: hidden; + background-color: hsl(215, 14%, 34%); + border-radius: 9999px; + border: none; + color: hsl(216, 12%, 84%); + cursor: pointer; +} diff --git a/src/Avatar/Avatar.stories.ts b/src/Avatar/Avatar.stories.ts index 14df905..4f998ce 100644 --- a/src/Avatar/Avatar.stories.ts +++ b/src/Avatar/Avatar.stories.ts @@ -1,19 +1,18 @@ import type { Meta, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { BTAvatarProps } from './Avatar'; -const meta: Meta = { +const meta: Meta = { title: 'BTAvatar', render: () => - html`
+ html`