@ttoss/components 1.31.4 → 1.31.6
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/dist/esm/index.js +12 -14
- package/package.json +9 -9
package/dist/esm/index.js
CHANGED
|
@@ -266,10 +266,10 @@ import { Box as Box3, Flex as Flex2, Image, Text as Text2, useResponsiveValue as
|
|
|
266
266
|
// ../react-icons/src/Icon.tsx
|
|
267
267
|
import * as React6 from "react";
|
|
268
268
|
|
|
269
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.
|
|
269
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.1.0_react@18.2.0/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
270
270
|
import React5 from "react";
|
|
271
271
|
|
|
272
|
-
// ../../node_modules/.pnpm/iconify-icon@2.
|
|
272
|
+
// ../../node_modules/.pnpm/iconify-icon@2.1.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
273
273
|
var defaultIconDimensions = Object.freeze({
|
|
274
274
|
left: 0,
|
|
275
275
|
top: 0,
|
|
@@ -1450,9 +1450,6 @@ function parseIconValue(value, onload) {
|
|
|
1450
1450
|
loading
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
|
-
function getInline(node) {
|
|
1454
|
-
return node.hasAttribute("inline");
|
|
1455
|
-
}
|
|
1456
1453
|
var isBuggedSafari = false;
|
|
1457
1454
|
try {
|
|
1458
1455
|
isBuggedSafari = navigator.vendor.indexOf("Apple") === 0;
|
|
@@ -1875,6 +1872,7 @@ function exportFunctions() {
|
|
|
1875
1872
|
disableCache: storage2 => toggleBrowserCache(storage2, false),
|
|
1876
1873
|
iconLoaded: iconLoaded$1,
|
|
1877
1874
|
iconExists: iconLoaded$1,
|
|
1875
|
+
// deprecated, kept to avoid breaking changes
|
|
1878
1876
|
getIcon: getIcon$1,
|
|
1879
1877
|
listIcons: listIcons$1,
|
|
1880
1878
|
addIcon: addIcon$1,
|
|
@@ -2039,7 +2037,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2039
2037
|
// Icon
|
|
2040
2038
|
"icon",
|
|
2041
2039
|
// Mode
|
|
2042
|
-
"mode", "inline", "
|
|
2040
|
+
"mode", "inline", "noobserver",
|
|
2043
2041
|
// Customisations
|
|
2044
2042
|
"width", "height", "rotate", "flip"];
|
|
2045
2043
|
const IconifyIcon3 = class extends ParentClass {
|
|
@@ -2064,7 +2062,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2064
2062
|
const root = this._shadowRoot = this.attachShadow({
|
|
2065
2063
|
mode: "open"
|
|
2066
2064
|
});
|
|
2067
|
-
const inline =
|
|
2065
|
+
const inline = this.hasAttribute("inline");
|
|
2068
2066
|
updateStyle(root, inline);
|
|
2069
2067
|
this._state = setPendingState({
|
|
2070
2068
|
value: ""
|
|
@@ -2115,7 +2113,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2115
2113
|
switch (name2) {
|
|
2116
2114
|
case "inline":
|
|
2117
2115
|
{
|
|
2118
|
-
const newInline =
|
|
2116
|
+
const newInline = this.hasAttribute("inline");
|
|
2119
2117
|
const state = this._state;
|
|
2120
2118
|
if (newInline !== state.inline) {
|
|
2121
2119
|
state.inline = newInline;
|
|
@@ -2123,9 +2121,9 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2123
2121
|
}
|
|
2124
2122
|
break;
|
|
2125
2123
|
}
|
|
2126
|
-
case "
|
|
2124
|
+
case "noobserver":
|
|
2127
2125
|
{
|
|
2128
|
-
const value = this.
|
|
2126
|
+
const value = this.hasAttribute("noobserver");
|
|
2129
2127
|
if (value) {
|
|
2130
2128
|
this.startObserver();
|
|
2131
2129
|
} else {
|
|
@@ -2159,7 +2157,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2159
2157
|
* Get/set inline
|
|
2160
2158
|
*/
|
|
2161
2159
|
get inline() {
|
|
2162
|
-
return
|
|
2160
|
+
return this.hasAttribute("inline");
|
|
2163
2161
|
}
|
|
2164
2162
|
set inline(value) {
|
|
2165
2163
|
if (value) {
|
|
@@ -2303,7 +2301,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2303
2301
|
* Start observer
|
|
2304
2302
|
*/
|
|
2305
2303
|
startObserver() {
|
|
2306
|
-
if (!this._observer) {
|
|
2304
|
+
if (!this._observer && !this.hasAttribute("noobserver")) {
|
|
2307
2305
|
try {
|
|
2308
2306
|
this._observer = new IntersectionObserver(entries => {
|
|
2309
2307
|
const intersecting = entries.some(entry => entry.isIntersecting);
|
|
@@ -2381,7 +2379,7 @@ var {
|
|
|
2381
2379
|
_api
|
|
2382
2380
|
} = IconifyIconComponent;
|
|
2383
2381
|
|
|
2384
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.
|
|
2382
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.1.0_react@18.2.0/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
2385
2383
|
var Icon = /*#__PURE__*/React5.forwardRef((props, ref) => {
|
|
2386
2384
|
const newProps = {
|
|
2387
2385
|
...props,
|
|
@@ -2525,6 +2523,6 @@ iconify-icon/dist/iconify-icon.mjs:
|
|
|
2525
2523
|
* Licensed under MIT.
|
|
2526
2524
|
*
|
|
2527
2525
|
* @license MIT
|
|
2528
|
-
* @version 2.
|
|
2526
|
+
* @version 2.1.0
|
|
2529
2527
|
*)
|
|
2530
2528
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/components",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.6",
|
|
4
4
|
"description": "React components for ttoss ecosystem.",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8.0",
|
|
49
|
-
"@ttoss/react-hooks": "^1.25.
|
|
50
|
-
"@ttoss/ui": "^4.1.
|
|
49
|
+
"@ttoss/react-hooks": "^1.25.6",
|
|
50
|
+
"@ttoss/ui": "^4.1.7"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/jest": "^29.5.12",
|
|
54
|
-
"@types/react": "^18.2.
|
|
54
|
+
"@types/react": "^18.2.79",
|
|
55
55
|
"jest": "^29.7.0",
|
|
56
56
|
"tsup": "^8.0.2",
|
|
57
|
-
"@ttoss/config": "^1.
|
|
58
|
-
"@ttoss/react-hooks": "^1.25.
|
|
59
|
-
"@ttoss/
|
|
60
|
-
"@ttoss/
|
|
61
|
-
"@ttoss/
|
|
57
|
+
"@ttoss/config": "^1.32.1",
|
|
58
|
+
"@ttoss/react-hooks": "^1.25.6",
|
|
59
|
+
"@ttoss/test-utils": "^2.1.4",
|
|
60
|
+
"@ttoss/ui": "^4.1.7",
|
|
61
|
+
"@ttoss/react-icons": "^0.3.4"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"React",
|