@lindle/linoardo 1.0.22 → 1.0.23
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/index.cjs +44 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -3
- package/dist/index.d.ts +31 -3
- package/dist/index.js +41 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +324 -0
- package/package.json +10 -1
package/dist/index.cjs
CHANGED
|
@@ -1565,6 +1565,45 @@ function hasNestedChildren(element) {
|
|
|
1565
1565
|
const props = element.props;
|
|
1566
1566
|
return "children" in props;
|
|
1567
1567
|
}
|
|
1568
|
+
var blockBase = "block-base relative overflow-hidden text-gray-900 dark:text-slate-100";
|
|
1569
|
+
var blurClasses = {
|
|
1570
|
+
none: "backdrop-blur-none",
|
|
1571
|
+
sm: "backdrop-blur-sm",
|
|
1572
|
+
base: "backdrop-blur",
|
|
1573
|
+
md: "backdrop-blur-md",
|
|
1574
|
+
lg: "backdrop-blur-lg",
|
|
1575
|
+
xl: "backdrop-blur-xl",
|
|
1576
|
+
"2xl": "backdrop-blur-2xl",
|
|
1577
|
+
"3xl": "backdrop-blur-3xl"
|
|
1578
|
+
};
|
|
1579
|
+
var variantClasses2 = {
|
|
1580
|
+
solid: "rounded-xl bg-white/40 backdrop-opacity-5 border border-white/30 dark:bg-slate-900/50 dark:border-white/10",
|
|
1581
|
+
outline: "rounded-xl bg-white/10 backdrop-opacity-5 border border-white/60 dark:bg-slate-900/30 dark:border-white/20",
|
|
1582
|
+
text: "rounded-xl bg-transparent border border-transparent",
|
|
1583
|
+
ghost: "rounded-xl bg-white/20 backdrop-opacity-5 border border-white/20 dark:bg-slate-900/30 dark:border-white/10",
|
|
1584
|
+
filled: "rounded-xl bg-white/60 backdrop-opacity-5 border border-white/40 dark:bg-slate-900/70 dark:border-white/15",
|
|
1585
|
+
underlined: "rounded-xl bg-white/20 backdrop-opacity-5 border-b border-white/40 dark:bg-slate-900/30 dark:border-white/20",
|
|
1586
|
+
rounded: "rounded-3xl bg-white/40 backdrop-opacity-5 border border-white/30 dark:bg-slate-900/50 dark:border-white/10",
|
|
1587
|
+
sharp: "rounded-none bg-white/40 backdrop-opacity-5 border border-white/30 dark:bg-slate-900/50 dark:border-white/10"
|
|
1588
|
+
};
|
|
1589
|
+
var Block = React3__namespace.forwardRef(function Block2({ className, variant = "solid", blur = "sm", interactive = false, children, ...rest }, ref) {
|
|
1590
|
+
const variantClass = variantClasses2[variant] ?? variantClasses2.solid;
|
|
1591
|
+
const blurClass = blurClasses[blur] ?? blurClasses.sm;
|
|
1592
|
+
const interactiveClass = interactive ? "transition-all duration-200 hover:-translate-y-0.5 hover:shadow-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-slate-900" : void 0;
|
|
1593
|
+
const tabIndexValue = interactive && rest.tabIndex === void 0 ? 0 : rest.tabIndex;
|
|
1594
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1595
|
+
"div",
|
|
1596
|
+
{
|
|
1597
|
+
...rest,
|
|
1598
|
+
ref,
|
|
1599
|
+
tabIndex: tabIndexValue,
|
|
1600
|
+
className: tailwindMerge.twMerge(blockBase, variantClass, blurClass, "p-2", interactiveClass, className),
|
|
1601
|
+
children
|
|
1602
|
+
}
|
|
1603
|
+
);
|
|
1604
|
+
});
|
|
1605
|
+
Block.displayName = "Block";
|
|
1606
|
+
var Block_default = Block;
|
|
1568
1607
|
var masonryBaseClass = "masonry-grid w-full";
|
|
1569
1608
|
var itemBaseClass = "masonry-item block break-inside-avoid";
|
|
1570
1609
|
var MasonryBase = (props, ref) => {
|
|
@@ -2128,7 +2167,7 @@ var Input = ({
|
|
|
2128
2167
|
const hidePlaceholderUntilFocus = hasLabel && hasProvidedPlaceholder;
|
|
2129
2168
|
const [isFocused, setIsFocused] = React3__namespace.default.useState(false);
|
|
2130
2169
|
const classBase = "input-base focus-visible:outline-none focus-visible:ring-primary transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed w-full text-gray-900 dark:text-gray-100 placeholder:text-gray-500 dark:placeholder:text-gray-400";
|
|
2131
|
-
const
|
|
2170
|
+
const variantClasses4 = {
|
|
2132
2171
|
solid: "rounded border border-gray-400 bg-white shadow-sm focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/30 dark:border-gray-600 dark:bg-slate-900 dark:shadow-black/20 dark:focus-visible:border-primary/70 dark:focus-visible:ring-primary/40",
|
|
2133
2172
|
sharp: "rounded-none border border-gray-400 bg-white shadow-sm focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/30 dark:border-gray-600 dark:bg-slate-900 dark:shadow-black/20 dark:focus-visible:border-primary/70 dark:focus-visible:ring-primary/40",
|
|
2134
2173
|
outline: "rounded border-2 border-black bg-white focus-visible:border-black focus-visible:ring-2 focus-visible:ring-black/30 dark:border-black dark:bg-transparent dark:focus-visible:border-black dark:focus-visible:ring-black/40",
|
|
@@ -2164,7 +2203,7 @@ var Input = ({
|
|
|
2164
2203
|
warn: "text-amber-600 dark:text-amber-300",
|
|
2165
2204
|
success: "text-emerald-600 dark:text-emerald-300"
|
|
2166
2205
|
};
|
|
2167
|
-
const variantClass =
|
|
2206
|
+
const variantClass = variantClasses4[variant] ?? variantClasses4.outline;
|
|
2168
2207
|
const toneClass = status ? statusClasses[status.tone] : void 0;
|
|
2169
2208
|
let prependIconClass = resolveIconClassName3(icon);
|
|
2170
2209
|
const sizeConfig = sizeClasses4[size] ?? sizeClasses4.medium;
|
|
@@ -2254,7 +2293,7 @@ function generateString(length = 5) {
|
|
|
2254
2293
|
return result;
|
|
2255
2294
|
}
|
|
2256
2295
|
var baseClass = "select-base w-full appearance-none focus-visible:outline-none focus-visible:ring-primary transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed bg-white text-gray-900 placeholder:text-gray-500 dark:bg-slate-900 dark:text-gray-100 dark:placeholder:text-gray-400";
|
|
2257
|
-
var
|
|
2296
|
+
var variantClasses3 = {
|
|
2258
2297
|
solid: "rounded border border-gray-400 bg-white shadow-sm focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/30 dark:border-gray-600 dark:bg-slate-900 dark:shadow-black/20 dark:focus-visible:border-primary/70 dark:focus-visible:ring-primary/40",
|
|
2259
2298
|
sharp: "rounded-none border border-gray-400 bg-white shadow-sm focus-visible:border-primary focus-visible:ring-2 focus-visible:ring-primary/30 dark:border-gray-600 dark:bg-slate-900 dark:shadow-black/20 dark:focus-visible:border-primary/70 dark:focus-visible:ring-primary/40",
|
|
2260
2299
|
outline: "rounded border-2 border-black bg-white focus-visible:border-black focus-visible:ring-2 focus-visible:ring-black/30 dark:border-black dark:bg-transparent dark:focus-visible:border-black dark:focus-visible:ring-black/40",
|
|
@@ -2297,7 +2336,7 @@ var Select = ({
|
|
|
2297
2336
|
}) => {
|
|
2298
2337
|
const selectId = id || name || generateString();
|
|
2299
2338
|
const selectName = name || selectId;
|
|
2300
|
-
const variantClass =
|
|
2339
|
+
const variantClass = variantClasses3[variant] ?? variantClasses3.outline;
|
|
2301
2340
|
const sizeConfig = sizeClasses2[size] ?? sizeClasses2.medium;
|
|
2302
2341
|
const sizeClass = `${sizeConfig.padding} ${sizeConfig.text}`;
|
|
2303
2342
|
const normalizedOptions = options.map(normalizeOption);
|
|
@@ -3225,6 +3264,7 @@ var Progress = (props) => {
|
|
|
3225
3264
|
var Progress_default = Progress;
|
|
3226
3265
|
|
|
3227
3266
|
exports.AppBar = AppBar_default;
|
|
3267
|
+
exports.Block = Block_default;
|
|
3228
3268
|
exports.Button = Button_default;
|
|
3229
3269
|
exports.Card = Card_default;
|
|
3230
3270
|
exports.Chip = Chip_default;
|