@greghowe79/the-lib 2.5.9 → 2.6.1
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/lib/components/skeletons/SkeletonSuggestion/skeleton_suggestion.qwik.cjs +37 -0
- package/lib/components/skeletons/SkeletonSuggestion/skeleton_suggestion.qwik.mjs +37 -0
- package/lib/components/skeletons/SkeletonSuggestion/styles.css.qwik.cjs +3 -0
- package/lib/components/skeletons/SkeletonSuggestion/styles.css.qwik.mjs +4 -0
- package/lib/index.qwik.cjs +2 -0
- package/lib/index.qwik.mjs +2 -0
- package/lib-types/components/skeletons/SkeletonSuggestion/skeleton_suggestion.d.ts +1 -0
- package/lib-types/index.d.ts +1 -0
- package/lib-types/stories/skeleton-suggestion.stories.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
|
+
const qwik = require("@builder.io/qwik");
|
|
5
|
+
const styles = require("./styles.css.qwik.cjs");
|
|
6
|
+
const SkeletonSuggestion = qwik.component$(() => {
|
|
7
|
+
qwik.useStylesScoped$(styles);
|
|
8
|
+
return (
|
|
9
|
+
// <li class="lib-suggestion-item skeleton">
|
|
10
|
+
// <div class="lib-thumbnail skeleton-avatar" />
|
|
11
|
+
// <div class="skeleton-text">
|
|
12
|
+
// <div class="skeleton-line title" />
|
|
13
|
+
// <div class="skeleton-line subtitle" />
|
|
14
|
+
// </div>
|
|
15
|
+
// </li>
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
17
|
+
class: "skeleton-item",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
20
|
+
class: "skeleton-avatar"
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
23
|
+
class: "skeleton-info",
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
26
|
+
class: "skeleton-line title"
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
29
|
+
class: "skeleton-line subtitle"
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
exports.SkeletonSuggestion = SkeletonSuggestion;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$, useStylesScoped$ } from "@builder.io/qwik";
|
|
3
|
+
import styles from "./styles.css.qwik.mjs";
|
|
4
|
+
const SkeletonSuggestion = component$(() => {
|
|
5
|
+
useStylesScoped$(styles);
|
|
6
|
+
return (
|
|
7
|
+
// <li class="lib-suggestion-item skeleton">
|
|
8
|
+
// <div class="lib-thumbnail skeleton-avatar" />
|
|
9
|
+
// <div class="skeleton-text">
|
|
10
|
+
// <div class="skeleton-line title" />
|
|
11
|
+
// <div class="skeleton-line subtitle" />
|
|
12
|
+
// </div>
|
|
13
|
+
// </li>
|
|
14
|
+
/* @__PURE__ */ jsxs("div", {
|
|
15
|
+
class: "skeleton-item",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsx("div", {
|
|
18
|
+
class: "skeleton-avatar"
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ jsxs("div", {
|
|
21
|
+
class: "skeleton-info",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ jsx("div", {
|
|
24
|
+
class: "skeleton-line title"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx("div", {
|
|
27
|
+
class: "skeleton-line subtitle"
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
SkeletonSuggestion
|
|
37
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const styles = ".skeleton-item {\r\n display: flex;\r\n align-items: center;\r\n gap: 0.8rem;\r\n padding: 0.5rem 1rem;\r\n border-bottom: 1px solid #e0e0e0;\r\n height: 3.75rem;\r\n box-sizing: border-box;\r\n pointer-events: none;\r\n}\r\n\r\n.skeleton-avatar {\r\n width: 44px;\r\n height: 44px;\r\n border-radius: 6px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.skeleton-info {\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n}\r\n\r\n.skeleton-line {\r\n height: 12px;\r\n border-radius: 4px;\r\n position: relative;\r\n overflow: hidden;\r\n}\r\n\r\n.skeleton-line.title {\r\n width: 65%;\r\n height: 14px;\r\n margin-bottom: 6px;\r\n}\r\n\r\n.skeleton-line.subtitle {\r\n width: 85%;\r\n height: 10px;\r\n}\r\n\r\n/* Effetto movimento (Shimmer) */\r\n.skeleton-avatar,\r\n.skeleton-line {\r\n background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);\r\n background-size: 200% 100%;\r\n animation: shimmer 1.5s infinite linear;\r\n}\r\n\r\n@keyframes shimmer {\r\n 0% {\r\n background-position: 200% 0;\r\n }\r\n 100% {\r\n background-position: -200% 0;\r\n }\r\n}\r\n\r\n/* Ottimizzazione Mobile */\r\n@media (max-width: 600px) {\r\n .skeleton-item {\r\n height: 4.5rem; /* 72px */\r\n padding: 0.75rem 1rem;\r\n }\r\n\r\n .skeleton-avatar {\r\n width: 3rem;\r\n height: 3rem;\r\n }\r\n}\r\n";
|
|
3
|
+
module.exports = styles;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const styles = ".skeleton-item {\r\n display: flex;\r\n align-items: center;\r\n gap: 0.8rem;\r\n padding: 0.5rem 1rem;\r\n border-bottom: 1px solid #e0e0e0;\r\n height: 3.75rem;\r\n box-sizing: border-box;\r\n pointer-events: none;\r\n}\r\n\r\n.skeleton-avatar {\r\n width: 44px;\r\n height: 44px;\r\n border-radius: 6px;\r\n flex-shrink: 0;\r\n}\r\n\r\n.skeleton-info {\r\n flex: 1;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n}\r\n\r\n.skeleton-line {\r\n height: 12px;\r\n border-radius: 4px;\r\n position: relative;\r\n overflow: hidden;\r\n}\r\n\r\n.skeleton-line.title {\r\n width: 65%;\r\n height: 14px;\r\n margin-bottom: 6px;\r\n}\r\n\r\n.skeleton-line.subtitle {\r\n width: 85%;\r\n height: 10px;\r\n}\r\n\r\n/* Effetto movimento (Shimmer) */\r\n.skeleton-avatar,\r\n.skeleton-line {\r\n background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);\r\n background-size: 200% 100%;\r\n animation: shimmer 1.5s infinite linear;\r\n}\r\n\r\n@keyframes shimmer {\r\n 0% {\r\n background-position: 200% 0;\r\n }\r\n 100% {\r\n background-position: -200% 0;\r\n }\r\n}\r\n\r\n/* Ottimizzazione Mobile */\r\n@media (max-width: 600px) {\r\n .skeleton-item {\r\n height: 4.5rem; /* 72px */\r\n padding: 0.75rem 1rem;\r\n }\r\n\r\n .skeleton-avatar {\r\n width: 3rem;\r\n height: 3rem;\r\n }\r\n}\r\n";
|
|
2
|
+
export {
|
|
3
|
+
styles as default
|
|
4
|
+
};
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -12,6 +12,7 @@ const onboardingsteps = require("./components/onboarding/onboardingsteps.qwik.cj
|
|
|
12
12
|
const select = require("./components/select/select.qwik.cjs");
|
|
13
13
|
const text_area = require("./components/text_area/text_area.qwik.cjs");
|
|
14
14
|
const card = require("./components/card/card.qwik.cjs");
|
|
15
|
+
const skeleton_suggestion = require("./components/skeletons/SkeletonSuggestion/skeleton_suggestion.qwik.cjs");
|
|
15
16
|
exports.Logo = logo.Logo;
|
|
16
17
|
exports.Counter = counter.Counter;
|
|
17
18
|
exports.Button = button.Button;
|
|
@@ -24,3 +25,4 @@ exports.OnboardingSteps = onboardingsteps.OnboardingSteps;
|
|
|
24
25
|
exports.Select = select.Select;
|
|
25
26
|
exports.TextArea = text_area.TextArea;
|
|
26
27
|
exports.Card = card.Card;
|
|
28
|
+
exports.SkeletonSuggestion = skeleton_suggestion.SkeletonSuggestion;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import { OnboardingSteps } from "./components/onboarding/onboardingsteps.qwik.mj
|
|
|
10
10
|
import { Select } from "./components/select/select.qwik.mjs";
|
|
11
11
|
import { TextArea } from "./components/text_area/text_area.qwik.mjs";
|
|
12
12
|
import { Card } from "./components/card/card.qwik.mjs";
|
|
13
|
+
import { SkeletonSuggestion } from "./components/skeletons/SkeletonSuggestion/skeleton_suggestion.qwik.mjs";
|
|
13
14
|
export {
|
|
14
15
|
Button,
|
|
15
16
|
Card,
|
|
@@ -22,5 +23,6 @@ export {
|
|
|
22
23
|
NavigationMenu,
|
|
23
24
|
OnboardingSteps,
|
|
24
25
|
Select,
|
|
26
|
+
SkeletonSuggestion,
|
|
25
27
|
TextArea
|
|
26
28
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SkeletonSuggestion: import("@builder.io/qwik").Component<unknown>;
|
package/lib-types/index.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export { OnboardingSteps } from './components/onboarding/onboardingsteps';
|
|
|
11
11
|
export { type SelectProps, Select } from './components/select/select';
|
|
12
12
|
export { TextArea } from './components/text_area/text_area';
|
|
13
13
|
export { Card } from './components/card/card';
|
|
14
|
+
export { SkeletonSuggestion } from './components/skeletons/SkeletonSuggestion/skeleton_suggestion';
|