@lindle/linoardo 1.0.35 → 1.0.36
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/{ExpansionPanelItem-Dom3SgrW.d.ts → ExpansionPanelItem-BZHk28zn.d.ts} +1 -1
- package/dist/{ExpansionPanelItem-CZMtq3TL.d.cts → ExpansionPanelItem-Dln5DHGW.d.cts} +1 -1
- package/dist/badge.d.cts +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/block.d.cts +1 -1
- package/dist/block.d.ts +1 -1
- package/dist/button.d.cts +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/card.cjs +27 -53
- package/dist/card.cjs.map +1 -1
- package/dist/card.d.cts +3 -1
- package/dist/card.d.ts +3 -1
- package/dist/card.js +1 -1
- package/dist/chip.d.cts +4 -4
- package/dist/chip.d.ts +4 -4
- package/dist/{chunk-GSYVZCP3.js → chunk-5NWM6RVD.js} +29 -55
- package/dist/chunk-5NWM6RVD.js.map +1 -0
- package/dist/{chunk-EYZVXAPY.js → chunk-YRY7DJK2.js} +22 -6
- package/dist/chunk-YRY7DJK2.js.map +1 -0
- package/dist/expansion-panel/item.d.cts +2 -2
- package/dist/expansion-panel/item.d.ts +2 -2
- package/dist/expansion-panel.d.cts +3 -3
- package/dist/expansion-panel.d.ts +3 -3
- package/dist/{global.types-E2uVLemv.d.cts → global.types-DJiKqSJa.d.cts} +2 -1
- package/dist/{global.types-E2uVLemv.d.ts → global.types-DJiKqSJa.d.ts} +2 -1
- package/dist/hero.d.cts +1 -1
- package/dist/hero.d.ts +1 -1
- package/dist/icon.d.cts +1 -1
- package/dist/icon.d.ts +1 -1
- package/dist/{index-BzLTSsBv.d.ts → index-BoPiZNIB.d.ts} +1 -1
- package/dist/{index-BlOhr2-m.d.cts → index-Ddkv_t7Y.d.cts} +1 -1
- package/dist/index.cjs +48 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/input.d.cts +2 -2
- package/dist/input.d.ts +2 -2
- package/dist/list/item.d.cts +2 -2
- package/dist/list/item.d.ts +2 -2
- package/dist/list.d.cts +3 -3
- package/dist/list.d.ts +3 -3
- package/dist/notification.d.cts +1 -1
- package/dist/notification.d.ts +1 -1
- package/dist/profileCard.cjs +20 -4
- package/dist/profileCard.cjs.map +1 -1
- package/dist/profileCard.d.cts +2 -1
- package/dist/profileCard.d.ts +2 -1
- package/dist/profileCard.js +1 -1
- package/dist/select.d.cts +2 -2
- package/dist/select.d.ts +2 -2
- package/dist/slider.d.cts +1 -1
- package/dist/slider.d.ts +1 -1
- package/dist/styles.css +0 -20
- package/dist/switch.d.cts +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/{types-BJC99riF.d.cts → types-B3b-GFjA.d.cts} +1 -1
- package/dist/{types-CTq2JZpg.d.ts → types-CBIsqeyE.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-EYZVXAPY.js.map +0 -1
- package/dist/chunk-GSYVZCP3.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { c as ExpansionPanelProps } from './ExpansionPanelItem-
|
|
3
|
-
export { E as ExpansionPanelDensity, a as ExpansionPanelItem, b as ExpansionPanelItemProps, d as ExpansionPanelRounded, e as ExpansionPanelValue, f as ExpansionPanelVariant } from './ExpansionPanelItem-
|
|
4
|
-
import './global.types-
|
|
2
|
+
import { c as ExpansionPanelProps } from './ExpansionPanelItem-BZHk28zn.js';
|
|
3
|
+
export { E as ExpansionPanelDensity, a as ExpansionPanelItem, b as ExpansionPanelItemProps, d as ExpansionPanelRounded, e as ExpansionPanelValue, f as ExpansionPanelVariant } from './ExpansionPanelItem-BZHk28zn.js';
|
|
4
|
+
import './global.types-DJiKqSJa.js';
|
|
5
5
|
|
|
6
6
|
declare const ExpansionPanel: react.ForwardRefExoticComponent<ExpansionPanelProps & react.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
|
|
@@ -3,5 +3,6 @@ type GlobalVariant = 'solid' | 'outline' | 'text' | 'ghost' | 'filled' | 'underl
|
|
|
3
3
|
type GlobalSize = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
4
4
|
type IconLibrary = 'mdi';
|
|
5
5
|
type PropIcon = string | readonly [IconLibrary, string];
|
|
6
|
+
type GlobalElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
6
7
|
|
|
7
|
-
export type { GlobalVariant as G, Palette as P, GlobalSize as a,
|
|
8
|
+
export type { GlobalVariant as G, Palette as P, GlobalSize as a, GlobalElevation as b, PropIcon as c };
|
|
@@ -3,5 +3,6 @@ type GlobalVariant = 'solid' | 'outline' | 'text' | 'ghost' | 'filled' | 'underl
|
|
|
3
3
|
type GlobalSize = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
4
4
|
type IconLibrary = 'mdi';
|
|
5
5
|
type PropIcon = string | readonly [IconLibrary, string];
|
|
6
|
+
type GlobalElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
6
7
|
|
|
7
|
-
export type { GlobalVariant as G, Palette as P, GlobalSize as a,
|
|
8
|
+
export type { GlobalVariant as G, Palette as P, GlobalSize as a, GlobalElevation as b, PropIcon as c };
|
package/dist/hero.d.cts
CHANGED
package/dist/hero.d.ts
CHANGED
package/dist/icon.d.cts
CHANGED
package/dist/icon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { G as GlobalVariant, P as Palette } from './global.types-
|
|
2
|
+
import { G as GlobalVariant, P as Palette } from './global.types-DJiKqSJa.js';
|
|
3
3
|
|
|
4
4
|
type ListVariant = GlobalVariant;
|
|
5
5
|
type ListDensity = 'default' | 'comfortable' | 'compact';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { G as GlobalVariant, P as Palette } from './global.types-
|
|
2
|
+
import { G as GlobalVariant, P as Palette } from './global.types-DJiKqSJa.cjs';
|
|
3
3
|
|
|
4
4
|
type ListVariant = GlobalVariant;
|
|
5
5
|
type ListDensity = 'default' | 'comfortable' | 'compact';
|
package/dist/index.cjs
CHANGED
|
@@ -1586,28 +1586,33 @@ var overflowClasses = {
|
|
|
1586
1586
|
};
|
|
1587
1587
|
var cardBase = "card-base relative w-full bg-white text-gray-900 transition-colors dark:bg-slate-900 dark:text-slate-100";
|
|
1588
1588
|
var variantClasses = {
|
|
1589
|
-
solid: "rounded-2xl border border-gray-200 bg-white
|
|
1590
|
-
outline: "rounded-2xl border-2 border-black bg-white
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
filled: "rounded-2xl border border-gray-200 bg-gray-50
|
|
1594
|
-
underlined: "
|
|
1595
|
-
rounded: "rounded-3xl border border-gray-200 bg-white
|
|
1596
|
-
sharp: "rounded-none border border-gray-200 bg-white
|
|
1597
|
-
};
|
|
1598
|
-
var
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1589
|
+
solid: "rounded-2xl border border-gray-200 bg-white dark:border-slate-800 dark:bg-slate-900",
|
|
1590
|
+
outline: "rounded-2xl border-2 border-black bg-white dark:border-black dark:bg-slate-900",
|
|
1591
|
+
ghost: "rounded-2xl border border-transparent bg-gray-50 dark:border-transparent dark:bg-slate-800",
|
|
1592
|
+
text: "rounded-2xl border border-transparent bg-transparent dark:border-transparent dark:bg-transparent",
|
|
1593
|
+
filled: "rounded-2xl border border-gray-200 bg-gray-50 dark:border-slate-800 dark:bg-slate-800",
|
|
1594
|
+
underlined: " border border-transparent border-b border-b-gray-200 dark:border-transparent dark:border-b-slate-700 dark:bg-transparent",
|
|
1595
|
+
rounded: "rounded-3xl border border-gray-200 bg-white dark:border-slate-800 dark:bg-slate-900",
|
|
1596
|
+
sharp: "rounded-none border border-gray-200 bg-white dark:border-slate-800 dark:bg-slate-900"
|
|
1597
|
+
};
|
|
1598
|
+
var elevationClasses = {
|
|
1599
|
+
0: "shadow-none",
|
|
1600
|
+
1: "shadow-sm",
|
|
1601
|
+
2: "shadow",
|
|
1602
|
+
3: "shadow-md",
|
|
1603
|
+
4: "shadow-lg",
|
|
1604
|
+
5: "shadow-xl",
|
|
1605
|
+
6: "shadow-2xl",
|
|
1606
|
+
7: "shadow-2xl",
|
|
1607
|
+
8: "shadow-2xl",
|
|
1608
|
+
9: "shadow-2xl",
|
|
1609
|
+
10: "shadow-2xl"
|
|
1610
|
+
};
|
|
1611
|
+
var CardRoot = React4.forwardRef(function Card({ className, children, variant = "solid", padding = "md", overflow = "hidden", interactive = false, dividers = true, elevation = 0, ...rest }, ref) {
|
|
1608
1612
|
const variantClass = variantClasses[variant] ?? variantClasses.solid;
|
|
1609
1613
|
const paddingClass = paddingClasses[padding] ?? paddingClasses.md;
|
|
1610
1614
|
const overflowClass = overflowClasses[overflow] ?? overflowClasses.hidden;
|
|
1615
|
+
const elevationClass = elevationClasses[elevation] ?? elevationClasses[0];
|
|
1611
1616
|
const interactiveClass = interactive ? "transition-all duration-200 hover:-translate-y-0.5 hover:shadow-xl hover:z-10 focus-within:z-10 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;
|
|
1612
1617
|
const tabIndexValue = interactive && rest.tabIndex === void 0 ? 0 : rest.tabIndex;
|
|
1613
1618
|
const content = applyDividers(children, dividers);
|
|
@@ -1617,14 +1622,7 @@ var CardRoot = React4.forwardRef(function Card({
|
|
|
1617
1622
|
...rest,
|
|
1618
1623
|
ref,
|
|
1619
1624
|
tabIndex: tabIndexValue,
|
|
1620
|
-
className: tailwindMerge.twMerge(
|
|
1621
|
-
cardBase,
|
|
1622
|
-
variantClass,
|
|
1623
|
-
paddingClass,
|
|
1624
|
-
overflowClass,
|
|
1625
|
-
interactiveClass,
|
|
1626
|
-
className
|
|
1627
|
-
),
|
|
1625
|
+
className: tailwindMerge.twMerge(cardBase, variantClass, paddingClass, overflowClass, elevationClass, interactiveClass, className),
|
|
1628
1626
|
children: content
|
|
1629
1627
|
}
|
|
1630
1628
|
);
|
|
@@ -1652,33 +1650,9 @@ var CardFooter = ({ className, dividers = true, ...rest }) => /* @__PURE__ */ js
|
|
|
1652
1650
|
)
|
|
1653
1651
|
}
|
|
1654
1652
|
);
|
|
1655
|
-
var CardTitle = ({ className, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
...rest,
|
|
1659
|
-
className: tailwindMerge.twMerge(
|
|
1660
|
-
"card-title text-lg font-semibold text-gray-900 dark:text-slate-50",
|
|
1661
|
-
className
|
|
1662
|
-
)
|
|
1663
|
-
}
|
|
1664
|
-
);
|
|
1665
|
-
var CardSubtitle = ({ className, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1666
|
-
"p",
|
|
1667
|
-
{
|
|
1668
|
-
...rest,
|
|
1669
|
-
className: tailwindMerge.twMerge(
|
|
1670
|
-
"card-subtitle text-sm font-medium text-gray-600 dark:text-slate-300",
|
|
1671
|
-
className
|
|
1672
|
-
)
|
|
1673
|
-
}
|
|
1674
|
-
);
|
|
1675
|
-
var CardText = ({ className, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1676
|
-
"p",
|
|
1677
|
-
{
|
|
1678
|
-
...rest,
|
|
1679
|
-
className: tailwindMerge.twMerge("card-text text-sm text-gray-700 dark:text-slate-200", className)
|
|
1680
|
-
}
|
|
1681
|
-
);
|
|
1653
|
+
var CardTitle = ({ className, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx("h3", { ...rest, className: tailwindMerge.twMerge("card-title text-lg font-semibold text-gray-900 dark:text-slate-50", className) });
|
|
1654
|
+
var CardSubtitle = ({ className, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx("p", { ...rest, className: tailwindMerge.twMerge("card-subtitle text-sm font-medium text-gray-600 dark:text-slate-300", className) });
|
|
1655
|
+
var CardText = ({ className, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx("p", { ...rest, className: tailwindMerge.twMerge("card-text text-sm text-gray-700 dark:text-slate-200", className) });
|
|
1682
1656
|
var CardMedia = ({ className, rounded = false, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1683
1657
|
"img",
|
|
1684
1658
|
{
|
|
@@ -2120,14 +2094,27 @@ var Hero = ({
|
|
|
2120
2094
|
Hero.displayName = "Hero";
|
|
2121
2095
|
var Hero_default = Hero;
|
|
2122
2096
|
var variantMap = {
|
|
2123
|
-
solid: "bg-white text-gray-900 border border-gray-200
|
|
2097
|
+
solid: "bg-white text-gray-900 border border-gray-200",
|
|
2124
2098
|
outline: "bg-white text-gray-900 border border-gray-300",
|
|
2125
2099
|
text: "bg-transparent text-gray-900",
|
|
2126
2100
|
ghost: "bg-slate-50 text-gray-900 border border-slate-100",
|
|
2127
|
-
filled: "bg-slate-900 text-white
|
|
2101
|
+
filled: "bg-slate-900 text-white",
|
|
2128
2102
|
underlined: "bg-white text-gray-900 border-b-4 border-primary/70",
|
|
2129
|
-
rounded: "bg-white text-gray-900 border border-gray-200 rounded-3xl
|
|
2130
|
-
sharp: "bg-white text-gray-900 border border-gray-200 rounded-none
|
|
2103
|
+
rounded: "bg-white text-gray-900 border border-gray-200 rounded-3xl",
|
|
2104
|
+
sharp: "bg-white text-gray-900 border border-gray-200 rounded-none"
|
|
2105
|
+
};
|
|
2106
|
+
var elevationClasses2 = {
|
|
2107
|
+
0: "shadow-none",
|
|
2108
|
+
1: "shadow-sm",
|
|
2109
|
+
2: "shadow",
|
|
2110
|
+
3: "shadow-md",
|
|
2111
|
+
4: "shadow-lg",
|
|
2112
|
+
5: "shadow-xl",
|
|
2113
|
+
6: "shadow-2xl",
|
|
2114
|
+
7: "shadow-2xl",
|
|
2115
|
+
8: "shadow-2xl",
|
|
2116
|
+
9: "shadow-2xl",
|
|
2117
|
+
10: "shadow-2xl"
|
|
2131
2118
|
};
|
|
2132
2119
|
var cardRadiusMap = {
|
|
2133
2120
|
solid: "rounded-2xl",
|
|
@@ -2181,6 +2168,7 @@ var ProfileCard = ({
|
|
|
2181
2168
|
badges,
|
|
2182
2169
|
layout = "classic",
|
|
2183
2170
|
variant = "solid",
|
|
2171
|
+
elevation = 0,
|
|
2184
2172
|
className,
|
|
2185
2173
|
...rest
|
|
2186
2174
|
}) => {
|
|
@@ -2190,6 +2178,7 @@ var ProfileCard = ({
|
|
|
2190
2178
|
const dark = isDarkVariant(variant);
|
|
2191
2179
|
const muted = dark ? "text-white/70" : "text-gray-600";
|
|
2192
2180
|
const accent = dark ? "text-white" : "text-gray-900";
|
|
2181
|
+
const elevationClass = elevationClasses2[elevation] ?? elevationClasses2[0];
|
|
2193
2182
|
const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2194
2183
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2195
2184
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -2242,6 +2231,7 @@ var ProfileCard = ({
|
|
|
2242
2231
|
"profile-card relative overflow-hidden p-6 transition duration-200 hover:-translate-y-0.5 hover:shadow-xl",
|
|
2243
2232
|
baseVariant,
|
|
2244
2233
|
cardRadius,
|
|
2234
|
+
elevationClass,
|
|
2245
2235
|
className
|
|
2246
2236
|
),
|
|
2247
2237
|
children: layoutMap[layout] ?? layoutMap.classic
|