social-logos 3.1.11 → 3.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/react/example.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [3.1.13] - 2024-11-25
|
|
2
|
+
### Changed
|
|
3
|
+
- Update example with ids for jsx-a11y/label-has-associated-control. [#40199]
|
|
4
|
+
|
|
5
|
+
## [3.1.12] - 2024-11-14
|
|
6
|
+
### Changed
|
|
7
|
+
- Update dependencies.
|
|
8
|
+
|
|
1
9
|
## [3.1.11] - 2024-11-11
|
|
2
10
|
### Added
|
|
3
11
|
- Added post-build tests. [#38224]
|
|
@@ -168,6 +176,8 @@
|
|
|
168
176
|
|
|
169
177
|
- Build: Refactored (aligned build system with Gridicons).
|
|
170
178
|
|
|
179
|
+
[3.1.13]: https://github.com/Automattic/social-logos/compare/v3.1.12...v3.1.13
|
|
180
|
+
[3.1.12]: https://github.com/Automattic/social-logos/compare/v3.1.11...v3.1.12
|
|
171
181
|
[3.1.11]: https://github.com/Automattic/social-logos/compare/v3.1.10...v3.1.11
|
|
172
182
|
[3.1.10]: https://github.com/Automattic/social-logos/compare/v3.1.9...v3.1.10
|
|
173
183
|
[3.1.9]: https://github.com/Automattic/social-logos/compare/v3.1.8...v3.1.9
|
package/build/react/example.js
CHANGED
|
@@ -38,6 +38,6 @@ function SocialLogosExample() {
|
|
|
38
38
|
setShowIconNames(e.target.checked);
|
|
39
39
|
}, [setShowIconNames]);
|
|
40
40
|
const allSocialLogos = social_logo_data_1.SocialLogoData.map(logo => ((0, jsx_runtime_1.jsx)(SocialLogoItemExample, { name: logo.name, iconSize: iconSize, showIconNames: showIconNames }, logo.name)));
|
|
41
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "social-logos-example" }, { children: [(0, jsx_runtime_1.jsx)("h1", { children: "Social Logos" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control-group" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Small icons" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch" }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", onChange: handleSmallIconsToggle, checked: useSmallIcons }), (0, jsx_runtime_1.jsx)("span", { className: "handle" })] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Icon names" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch" }, { children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", onChange: handleIconNamesToggle, checked: showIconNames }), (0, jsx_runtime_1.jsx)("span", { className: "handle" }), (0, jsx_runtime_1.jsx)("span", { className: "switch-label", "data-on": "On", "data-off": "Off" })] }))] }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "icons" }, { children: allSocialLogos })), (0, jsx_runtime_1.jsx)("p", { children: (0, jsx_runtime_1.jsx)("a", Object.assign({ href: "https://github.com/Automattic/social-logos" }, { children: "GitHub" })) })] })));
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "social-logos-example" }, { children: [(0, jsx_runtime_1.jsx)("h1", { children: "Social Logos" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control-group" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Small icons" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch", htmlFor: "useSmallIcons" }, { children: [(0, jsx_runtime_1.jsx)("input", { id: "useSmallIcons", type: "checkbox", onChange: handleSmallIconsToggle, checked: useSmallIcons }), (0, jsx_runtime_1.jsx)("span", { className: "handle" })] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "display-control" }, { children: [(0, jsx_runtime_1.jsx)("h4", { children: "Icon names" }), (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "switch", htmlFor: "showIconNames" }, { children: [(0, jsx_runtime_1.jsx)("input", { id: "showIconNames", type: "checkbox", onChange: handleIconNamesToggle, checked: showIconNames }), (0, jsx_runtime_1.jsx)("span", { className: "handle" }), (0, jsx_runtime_1.jsx)("span", { className: "switch-label", "data-on": "On", "data-off": "Off" })] }))] }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "icons" }, { children: allSocialLogos })), (0, jsx_runtime_1.jsx)("p", { children: (0, jsx_runtime_1.jsx)("a", Object.assign({ href: "https://github.com/Automattic/social-logos" }, { children: "GitHub" })) })] })));
|
|
42
42
|
}
|
|
43
43
|
exports.default = SocialLogosExample;
|
package/package.json
CHANGED