@lindle/linoardo 1.0.36 → 1.0.37
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-BZHk28zn.d.ts → ExpansionPanelItem-CFm8a8R_.d.ts} +1 -1
- package/dist/{ExpansionPanelItem-Dln5DHGW.d.cts → ExpansionPanelItem-ufS2RIZf.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.cjs +1 -0
- package/dist/button.cjs.map +1 -1
- package/dist/button.d.cts +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -5
- package/dist/card.cjs.map +1 -1
- package/dist/card.d.cts +1 -1
- package/dist/card.d.ts +1 -1
- package/dist/card.js +1 -1
- package/dist/chip.d.cts +4 -4
- package/dist/chip.d.ts +4 -4
- package/dist/{chunk-F2G2JRKA.js → chunk-DIWGVTWO.js} +3 -2
- package/dist/chunk-DIWGVTWO.js.map +1 -0
- package/dist/{chunk-YRY7DJK2.js → chunk-DJMAR7NV.js} +4 -8
- package/dist/chunk-DJMAR7NV.js.map +1 -0
- package/dist/{chunk-5NWM6RVD.js → chunk-U4P2VJCV.js} +3 -7
- package/dist/chunk-U4P2VJCV.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-DJiKqSJa.d.cts → global.types-D-o85tuX.d.cts} +2 -2
- package/dist/{global.types-DJiKqSJa.d.ts → global.types-D-o85tuX.d.ts} +2 -2
- 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-Ddkv_t7Y.d.cts → index-B7xZzSwm.d.cts} +1 -1
- package/dist/{index-BoPiZNIB.d.ts → index-BhfThlf0.d.ts} +1 -1
- package/dist/index.cjs +25 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -5
- package/dist/index.d.ts +13 -5
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- 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 +2 -5
- package/dist/profileCard.cjs.map +1 -1
- package/dist/profileCard.d.cts +1 -1
- package/dist/profileCard.d.ts +1 -1
- package/dist/profileCard.js +2 -2
- 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/switch.d.cts +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/{types-CBIsqeyE.d.ts → types-CbQEphC3.d.ts} +1 -1
- package/dist/{types-B3b-GFjA.d.cts → types-DqPSePni.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-5NWM6RVD.js.map +0 -1
- package/dist/chunk-F2G2JRKA.js.map +0 -1
- package/dist/chunk-YRY7DJK2.js.map +0 -1
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-D-o85tuX.cjs';
|
|
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-D-o85tuX.js';
|
|
3
3
|
|
|
4
4
|
type ListVariant = GlobalVariant;
|
|
5
5
|
type ListDensity = 'default' | 'comfortable' | 'compact';
|
package/dist/index.cjs
CHANGED
|
@@ -215,6 +215,7 @@ var Button = React4__namespace.forwardRef(
|
|
|
215
215
|
Component,
|
|
216
216
|
{
|
|
217
217
|
...rest,
|
|
218
|
+
type,
|
|
218
219
|
ref,
|
|
219
220
|
onClick,
|
|
220
221
|
disabled: isNativeButton ? isDisabled : void 0,
|
|
@@ -1602,11 +1603,7 @@ var elevationClasses = {
|
|
|
1602
1603
|
3: "shadow-md",
|
|
1603
1604
|
4: "shadow-lg",
|
|
1604
1605
|
5: "shadow-xl",
|
|
1605
|
-
6: "shadow-2xl"
|
|
1606
|
-
7: "shadow-2xl",
|
|
1607
|
-
8: "shadow-2xl",
|
|
1608
|
-
9: "shadow-2xl",
|
|
1609
|
-
10: "shadow-2xl"
|
|
1606
|
+
6: "shadow-2xl"
|
|
1610
1607
|
};
|
|
1611
1608
|
var CardRoot = React4.forwardRef(function Card({ className, children, variant = "solid", padding = "md", overflow = "hidden", interactive = false, dividers = true, elevation = 0, ...rest }, ref) {
|
|
1612
1609
|
const variantClass = variantClasses[variant] ?? variantClasses.solid;
|
|
@@ -2110,11 +2107,7 @@ var elevationClasses2 = {
|
|
|
2110
2107
|
3: "shadow-md",
|
|
2111
2108
|
4: "shadow-lg",
|
|
2112
2109
|
5: "shadow-xl",
|
|
2113
|
-
6: "shadow-2xl"
|
|
2114
|
-
7: "shadow-2xl",
|
|
2115
|
-
8: "shadow-2xl",
|
|
2116
|
-
9: "shadow-2xl",
|
|
2117
|
-
10: "shadow-2xl"
|
|
2110
|
+
6: "shadow-2xl"
|
|
2118
2111
|
};
|
|
2119
2112
|
var cardRadiusMap = {
|
|
2120
2113
|
solid: "rounded-2xl",
|
|
@@ -3590,6 +3583,27 @@ var Notification = ({
|
|
|
3590
3583
|
)) });
|
|
3591
3584
|
};
|
|
3592
3585
|
var Notification_default = Notification;
|
|
3586
|
+
var useNotification = (defaultMessage) => {
|
|
3587
|
+
const [messages, setMessages] = React4.useState([]);
|
|
3588
|
+
const clearNotifications = (key) => {
|
|
3589
|
+
setMessages((prev) => key ? prev.filter((notification) => notification.key !== key) : []);
|
|
3590
|
+
};
|
|
3591
|
+
const showNotification = (notification) => {
|
|
3592
|
+
const key = `${Date.now()}-${Math.random()}`;
|
|
3593
|
+
setMessages((prev) => [
|
|
3594
|
+
...prev,
|
|
3595
|
+
{
|
|
3596
|
+
duration: 4e3,
|
|
3597
|
+
onClose: () => clearNotifications(key),
|
|
3598
|
+
...defaultMessage,
|
|
3599
|
+
...notification,
|
|
3600
|
+
key
|
|
3601
|
+
}
|
|
3602
|
+
]);
|
|
3603
|
+
};
|
|
3604
|
+
return { messages, showNotification };
|
|
3605
|
+
};
|
|
3606
|
+
var useNotification_default = useNotification;
|
|
3593
3607
|
var clampPercent = (value) => {
|
|
3594
3608
|
if (value === void 0 || value === null || Number.isNaN(value)) {
|
|
3595
3609
|
return 0;
|
|
@@ -3920,5 +3934,6 @@ exports.Slider = Slider_default;
|
|
|
3920
3934
|
exports.Switch = Switch_default;
|
|
3921
3935
|
exports.TextArea = TextArea_default;
|
|
3922
3936
|
exports.ToolTip = ToolTip_default;
|
|
3937
|
+
exports.useNotification = useNotification_default;
|
|
3923
3938
|
//# sourceMappingURL=index.cjs.map
|
|
3924
3939
|
//# sourceMappingURL=index.cjs.map
|