diff --git a/cspell.json b/cspell.json index b9dbf3e9a..abf2016cc 100644 --- a/cspell.json +++ b/cspell.json @@ -135,6 +135,7 @@ "noopener", "noreferrer", "noscript", + "Notdog", "novalidate", "nowrap", "Numberish", diff --git a/package-lock.json b/package-lock.json index 174475f77..7aa7c731d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14000,7 +14000,7 @@ }, "packages/webawesome-pro": { "name": "@shoelace-style/webawesome-pro", - "version": "3.0.0-beta.3", + "version": "3.0.0-beta.4", "dependencies": { "@ctrl/tinycolor": "^4.1.0", "@floating-ui/dom": "^1.6.13", diff --git a/packages/webawesome/custom-elements-manifest.js b/packages/webawesome/custom-elements-manifest.js index 6588d92f6..c58530abd 100644 --- a/packages/webawesome/custom-elements-manifest.js +++ b/packages/webawesome/custom-elements-manifest.js @@ -182,6 +182,10 @@ export default { jsxTypesPlugin({ fileName: 'custom-elements-jsx.d.ts', outdir, + defaultExport: true, + componentTypePath: (_name, _tag, modulePath) => { + return `./${modulePath}`; + }, }), // diff --git a/packages/webawesome/docs/_includes/base.njk b/packages/webawesome/docs/_includes/base.njk index 864147fcb..56efbf8ff 100644 --- a/packages/webawesome/docs/_includes/base.njk +++ b/packages/webawesome/docs/_includes/base.njk @@ -1,5 +1,5 @@ - +
{% include 'head.njk' %} @@ -44,7 +44,7 @@ -| - | size="" |
- .wa-size-[s|m|l] |
-
-
-
|---|---|---|
small/s |
-
- |
-
- |
-
medium/m |
-
- |
-
- |
-
large/l |
-
- |
-
- |
-
` is replaced with any language code shown above.
diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md
index 11ea58450..6a9b80dfb 100644
--- a/packages/webawesome/docs/docs/resources/changelog.md
+++ b/packages/webawesome/docs/docs/resources/changelog.md
@@ -8,6 +8,32 @@ Web Awesome follows [Semantic Versioning](https://semver.org/). Breaking changes
Components with the Experimental badge should not be used in production. They are made available as release candidates for development and testing purposes. As such, changes to experimental components will not be subject to semantic versioning.
+## Next
+
+### Bug Fixes and Improvements {data-no-outline}
+
+- 🚨 BREAKING: Updated `` to use Font Awesome 7 [pr:1222]
+ - Added the `auto-width` attribute to automatically size icons, since FA7 is fixed-width by default now
+ - Improved support for duotone icons in ``, including custom colors, custom opacity, and opacity swapping
+ - Removed the `fixed-width` attribute as it's now the default behavior
+- 🚨 BREAKING: Renamed the `icon-position` attribute to `icon-placement` in `` [discuss:1340]
+- 🚨 BREAKING: Removed the `size` attribute from `` as it only set the initial size and gets out of sync when buttons are updated (apply a `size` to each button instead)
+- Added the Hindi translation [pr:1307]
+- Added `--show-duration` and `--hide-duration` to `` [issue:1281]
+- Fixed incorrectly named exported tooltip parts in `` [pr:1277]
+- Fixed a bug in `` that caused menus to overflow the viewport instead of resizing [issue:1267]
+- Fixed a bug in `` that prevented keyboard selection of items when nested in shadow roots [issue:1270]
+- Fixed a bug in `` that prevented items passed in from slots from being detected [issue:1271]
+- Fixed a bug in JSX typings that prevented the types file from being exported [pr:1295]
+- Fixed a bug in JSX typings that generated the incorrect component imports [issue:1303]
+- Fixed a bug in `` that prevented the thumb from receiving focus when clicking/tapping [issue:1312]
+- Fixed a bug in `` that caused the shadow to appear below relatively-positioned elements [issue:1326]
+- Fixed a bug in `` that caused it to expand/collapse when clicking on interactive elements in the summary [issue:1252]
+- Fixed `` to have `static` positioning by default and `relative` positioning only when used with `` [pr:1346]
+- Fixed spacing in `` when both clear and password toggle icons are present [issue:1325]
+- Fixed a bug in `` and `` where changing appearances dynamically would render incorrectly [issue:1178]
+- Fixed a bug in `` that prevented the value from changing when assigning non-string values to `value` [issue:1323]
+
## 3.0.0-beta.4
### New Features {data-no-outline}
@@ -17,12 +43,14 @@ Components with the Experimental badge sh
- Added `--wa-tooltip-border-color`, `--wa-tooltip-border-style`, and `--wa-tooltip-border-width` tokens [issue:1224]
- Added the `without-arrow` attribute to `` and `` to hide arrows without artifacts
- Added JSX types for use with React and others [pr:1256]
+- Added `` to native styles [pr:1279]
### Bug Fixes and Improvements {data-no-outline}
- Fixed a bug in `` that caused the content to overflow the container when animating [issue:1149]
- Fixed a bug in `` and `` that prevented the header from showing when the label was missing [issue:1209]
- Fixed a missing dependency required for React wrappers
+- Fixed missing `:hover` and `:active` styles on native buttons without an appearance modifier class
## 3.0.0-beta.3
@@ -411,4 +439,4 @@ Many of these changes and improvements were the direct result of feedback from u
-Did we miss something? [Let us know!](https://github.com/shoelace-style/webawesome/discussions)
\ No newline at end of file
+Did we miss something? [Let us know!](https://github.com/shoelace-style/webawesome/discussions)
diff --git a/packages/webawesome/docs/docs/resources/contributing.md b/packages/webawesome/docs/docs/resources/contributing.md
index e2ccac067..447dc6792 100644
--- a/packages/webawesome/docs/docs/resources/contributing.md
+++ b/packages/webawesome/docs/docs/resources/contributing.md
@@ -252,22 +252,16 @@ This creates confusion because the part will be documented, but it won't work wh
### Emitting Events
-Components must only emit events that start with `wa-` as a namespace. For compatibility with frameworks that utilize DOM templates, events must have lowercase, kebab-style names. For example, use `wa-change` instead of `waChange`.
+Components must only emit events that start with `wa-` as a namespace. For compatibility with frameworks that utilize DOM templates, events must have lowercase, kebab-style names. For example, use `wa-event` instead of `waEvent`.
This convention avoids the problem of browsers lowercasing attributes, causing some frameworks to be unable to listen to them. This problem isn't specific to one framework, but [Vue's documentation](https://vuejs.org/v2/guide/components-custom-events.html#Event-Names) provides a good explanation of the problem.
-### Change Events
-
-When change events are emitted by Web Awesome components, they should be named `wa-change` and they should only be emitted as a result of user input. Programmatic changes, such as setting `el.value = '…'` _should not_ result in a change event being emitted. This is consistent with how native form controls work.
-
### Data Attribute Invokers
Some components can be controlled using [data attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/data-*) that trigger specific behaviors. These controls must use the following convention:
```html
-
+
```
The `data-component` portion corresponds to the component's name without the `wa-` prefix. For example, `data-dialog` must control a `` component.
@@ -277,13 +271,9 @@ The `action` parameter is required and must be a concise, descriptive term indic
The `id` parameter must point to the ID of the target component. The ID may be omitted if and only if the target component wraps the element with the `data-` attribute.
```html
-
- Dialog content
-
+ Dialog content
-
+
```
### CSS Custom Properties
@@ -416,4 +406,4 @@ or for hydrated rendering only:
```bash
SSR_ONLY="true" npm run test
-```
\ No newline at end of file
+```
diff --git a/packages/webawesome/docs/docs/utilities/native.md b/packages/webawesome/docs/docs/utilities/native.md
index cfeb25f89..00d825c44 100644
--- a/packages/webawesome/docs/docs/utilities/native.md
+++ b/packages/webawesome/docs/docs/utilities/native.md
@@ -404,6 +404,7 @@ Create a variety of form controls with ``, `