diff --git a/README.md b/README.md index 8524bb7fc..50e25762d 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ Built by the folks behind [Font Awesome](https://fontawesome.com/). --- -Documentation: [shoelace.style](https://shoelace.style) +Documentation: [webawesome.com](https://webawesome.com) -Source: [github.com/shoelace-style/shoelace](https://github.com/shoelace-style/shoelace) +Source: [github.com/shoelace-style/webawesome](https://github.com/shoelace-style/webawesome) -Twitter: [@shoelace_style](https://twitter.com/shoelace_style) +Twitter: [@webawesomer](https://twitter.com/webawesomer) --- @@ -25,7 +25,7 @@ Developers can use this documentation to learn how to build Web Awesome from sou **You don't need to do any of this to use Web Awesome!** This page is for people who want to contribute to the project, tinker with the source, or create a custom build of Web Awesome. -If that's not what you're trying to do, the [documentation website](https://shoelace.style) is where you want to be. +If that's not what you're trying to do, the [documentation website](https://webawesome.com) is where you want to be. ### What are you using to build Web Awesome? @@ -33,7 +33,7 @@ Components are built with [LitElement](https://lit-element.polymer-project.org/) ### Forking the Repo -Start by [forking the repo](https://github.com/shoelace-style/shoelace/fork) on GitHub, then clone it locally and install dependencies. +Start by [forking the repo](https://github.com/shoelace-style/webawesome/fork) on GitHub, then clone it locally and install dependencies. ```bash git clone https://github.com/YOUR_GITHUB_USERNAME/webawesome diff --git a/cspell.json b/cspell.json index 609a19323..cab3879cd 100644 --- a/cspell.json +++ b/cspell.json @@ -18,7 +18,6 @@ "CACHEABLE", "callout", "callouts", - "cdndir", "chatbubble", "checkmark", "Clippy", @@ -109,7 +108,6 @@ "noopener", "noreferrer", "novalidate", - "npmdir", "Numberish", "oklab", "oklch", @@ -178,6 +176,7 @@ "Vuejs", "WCAG", "webawesome", + "webawesomer", "WEBP", "Webpacker", "xmark" diff --git a/docs/.eleventy.js b/docs/.eleventy.js index bf260e63b..c5f2a9fc7 100644 --- a/docs/.eleventy.js +++ b/docs/.eleventy.js @@ -40,9 +40,7 @@ export default function (eleventyConfig) { // Shortcodes - {% shortCode arg1, arg2 %} eleventyConfig.addShortcode('cdnUrl', location => { - return ( - `https://cdn.jsdelivr.net/npm/@shoelace-style/webawesome@${packageData.version}/` + location.replace(/^\//, '') - ); + return `https://early.webawesome.com/webawesome@${packageData.version}/` + location.replace(/^\//, ''); }); // Helpers diff --git a/docs/_includes/base.njk b/docs/_includes/base.njk index ee1a348bb..cb3e468e9 100644 --- a/docs/_includes/base.njk +++ b/docs/_includes/base.njk @@ -1,5 +1,5 @@ - +
diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk index 57d5fe5f7..2980ce651 100644 --- a/docs/_layouts/component.njk +++ b/docs/_layouts/component.njk @@ -274,6 +274,7 @@@@ -281,11 +282,17 @@
import '{% cdnUrl component.path %}';
To manually import this component from React, use the following code.
import '@shoelace-style/webawesome/react/{{ component.tagName | stripPrefix }}';
+ #}
` is replaced with any language code shown above.
+
+```js
+import '{% cdnUrl "dist/translations/.js" %}';
+```
You do not need to load translations up front. You can import them dynamically even after updating the `lang` attribute. Once a translation is registered, localized components will update automatically.
@@ -98,9 +129,9 @@ You can provide your own translations if you have specific needs or if you don't
Let's create a Spanish translation as an example. The following assumes you're using TypeScript, but you can also create translations with regular JavaScript.
-```js
-import { registerTranslation } from '@shoelace-style/shoelace/dist/utilities/localize';
-import type { Translation } from '@shoelace-style/shoelace/dist/utilities/localize';
+```ts
+import { registerTranslation } from 'path/to/webawesome/dist/utilities/localize';
+import type { Translation } from 'path/to/webawesome/dist/utilities/localize';
const translation: Translation = {
$code: 'es',
diff --git a/docs/docs/themes.md b/docs/docs/themes.md
index 9ee0c345e..f57bf2d59 100644
--- a/docs/docs/themes.md
+++ b/docs/docs/themes.md
@@ -9,7 +9,7 @@ Web Awesome is designed to be highly customizable through pure CSS. Out of the b
In essence, a theme is a stylesheet that uses the Web Awesome API to define custom properties and apply custom styles to components. To create a theme, you will need a decent understanding of CSS, including [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) and the [`::part` selector](https://developer.mozilla.org/en-US/docs/Web/CSS/::part).
:::info
-For component developers, built-in themes are also available as JavaScript modules that export [Lit CSSResult](https://lit.dev/docs/api/styles/#CSSResult) objects. You can find them in `/%NPMDIR%/themes/*.styles.js`.
+For component developers, built-in themes are also available as JavaScript modules that export [Lit CSSResult](https://lit.dev/docs/api/styles/#CSSResult) objects. You can find them in `/dist/themes/*.styles.js`.
:::
## Theme Basics
@@ -34,7 +34,7 @@ To activate a theme, import it and apply the theme's class to the `` eleme
```html
-
+
@@ -54,7 +54,7 @@ You can activate different themes and styles on various containers throughout th
```html
-
+
diff --git a/package.json b/package.json
index a4b7a3161..15b145747 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@shoelace-style/shoelace",
"description": "A forward-thinking library of web components.",
- "version": "2.8.0",
+ "version": "3.0.0-alpha.1",
"homepage": "https://github.com/shoelace-style/shoelace",
"author": "Web Awesome",
"license": "MIT",