From ebed8daee6833bc7bec3d1043c0c60a7516ca9ee Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 5 Sep 2023 12:01:19 -0400 Subject: [PATCH] buttons, primary, and more --- LICENSE.md | 2 +- README.md | 16 +- docs/_includes/component.njk | 2 +- docs/assets/styles/docs.css | 2 +- docs/pages/components/alert.md | 36 +-- docs/pages/components/animation.md | 4 +- docs/pages/components/badge.md | 14 +- docs/pages/components/button-group.md | 32 +- docs/pages/components/button.md | 137 +++----- docs/pages/components/card.md | 8 +- docs/pages/components/checkbox.md | 4 +- docs/pages/components/dialog.md | 24 +- docs/pages/components/drawer.md | 60 ++-- docs/pages/components/menu-item.md | 4 +- docs/pages/components/mutation-observer.md | 16 +- docs/pages/components/radio-group.md | 8 +- docs/pages/components/tag.md | 4 +- docs/pages/frameworks/react.md | 2 +- docs/pages/frameworks/vue.md | 2 +- docs/pages/getting-started/form-controls.md | 20 +- docs/pages/index.md | 4 - docs/pages/resources/changelog.md | 8 +- docs/pages/resources/community.md | 8 +- package.json | 2 +- src/components/alert/alert.component.ts | 4 +- src/components/alert/alert.styles.ts | 4 +- src/components/alert/alert.test.ts | 2 +- src/components/badge/badge.component.ts | 4 +- src/components/badge/badge.styles.ts | 4 +- src/components/badge/badge.test.ts | 12 +- src/components/button/button.component.ts | 19 +- src/components/button/button.styles.ts | 338 +++++++------------- src/components/button/button.test.ts | 3 +- src/components/tag/tag.component.ts | 4 +- src/components/tag/tag.styles.ts | 4 +- 35 files changed, 326 insertions(+), 491 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 40f8e2ea2..e0b744491 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2020 A Beautiful Site, LLC +Copyright (c) 2023 Fonticons, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index 4c16605ae..ef7dcf34f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A forward-thinking library of web components. - Built with accessibility in mind ♿️ - Open source 😸 -Designed in New Hampshire by [Cory LaViska](https://twitter.com/claviska). +Built by the folks behind [Font Awesome](https://fontawesome.com/). --- @@ -77,16 +77,4 @@ Shoelace is an open source project and contributions are encouraged! If you're i ## License -Shoelace is designed in New Hampshire by [Cory LaViska](https://twitter.com/claviska). It’s available under the terms of the MIT license. - -Designing, developing, and supporting this library requires a lot of time, effort, and skill. I’d like to keep it open source so everyone can use it, but that doesn’t provide me with any income. - -**Therefore, if you’re using my software to make a profit,** I respectfully ask that you help [fund its development](https://github.com/sponsors/claviska) by becoming a sponsor. There are multiple tiers to choose from with benefits at every level, including prioritized support, bug fixes, feature requests, and advertising. - -👇 Your support is very much appreciated! 👇 - -- [Become a sponsor](https://github.com/sponsors/claviska) -- [Star on GitHub](https://github.com/shoelace-style/shoelace/stargazers) -- [Follow on Twitter](https://twitter.com/shoelace_style) - -Whether you're building Shoelace or building something _with_ Shoelace — have fun creating! 🥾 +Shoelace is available under the terms of the MIT license. diff --git a/docs/_includes/component.njk b/docs/_includes/component.njk index 8b087b89d..249f9b77e 100644 --- a/docs/_includes/component.njk +++ b/docs/_includes/component.njk @@ -6,7 +6,7 @@ {% block content %} {# Determine the badge variant #} {% if component.status == 'stable' %} - {% set badgeVariant = 'primary' %} + {% set badgeVariant = 'brand' %} {% elseif component.status == 'experimental' %} {% set badgeVariant = 'warning' %} {% elseif component.status == 'planned' %} diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index bd3ec2ce1..e75fb3ed5 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -1158,7 +1158,7 @@ html.sidebar-open #menu-toggle { } .repo-button--github sl-icon { - color: var(--wa-color-neutral-40); + color: var(--wa-color-white); } .repo-button--star sl-icon { diff --git a/docs/pages/components/alert.md b/docs/pages/components/alert.md index 90c275e64..5c1ad11d2 100644 --- a/docs/pages/components/alert.md +++ b/docs/pages/components/alert.md @@ -35,7 +35,7 @@ Alerts will not be visible if the `open` attribute is not present. Set the `variant` attribute to change the alert's variant. ```html:preview - + This is super informative
You can tell by how pretty the alert is. @@ -80,7 +80,7 @@ import SlIcon from '@shoelace-style/shoelace/dist/react/icon'; const App = () => ( <> - + This is super informative
@@ -131,7 +131,7 @@ const App = () => ( Add the `closable` attribute to show a close button that will hide the alert. ```html:preview - + You can close this alert any time! @@ -171,14 +171,14 @@ const App = () => { Icons are optional. Simply omit the `icon` slot if you don't want them. ```html:preview - Nothing fancy here, just a simple alert. + Nothing fancy here, just a simple alert. ``` ```jsx:react import SlAlert from '@shoelace-style/shoelace/dist/react/alert'; const App = () => ( - + Nothing fancy here, just a simple alert. ); @@ -190,9 +190,9 @@ Set the `duration` attribute to automatically hide an alert after a period of ti ```html:preview
- Show Alert + Show Alert - + This alert will automatically hide itself after three seconds, unless you interact with it. @@ -231,11 +231,11 @@ const App = () => { return ( <>
- setOpen(true)}> + setOpen(true)}> Show Alert - setOpen(false)}> + setOpen(false)}> This alert will automatically hide itself after three seconds, unless you interact with it. @@ -255,13 +255,13 @@ You should always use the `closable` attribute so users can dismiss the notifica ```html:preview
- Primary + Brand Success Neutral Warning Danger - + This is super informative
You can tell by how pretty the alert is. @@ -295,7 +295,7 @@ You should always use the `closable` attribute so users can dismiss the notifica