@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.
Files changed (67) hide show
  1. package/dist/{ExpansionPanelItem-BZHk28zn.d.ts → ExpansionPanelItem-CFm8a8R_.d.ts} +1 -1
  2. package/dist/{ExpansionPanelItem-Dln5DHGW.d.cts → ExpansionPanelItem-ufS2RIZf.d.cts} +1 -1
  3. package/dist/badge.d.cts +1 -1
  4. package/dist/badge.d.ts +1 -1
  5. package/dist/block.d.cts +1 -1
  6. package/dist/block.d.ts +1 -1
  7. package/dist/button.cjs +1 -0
  8. package/dist/button.cjs.map +1 -1
  9. package/dist/button.d.cts +1 -1
  10. package/dist/button.d.ts +1 -1
  11. package/dist/button.js +1 -1
  12. package/dist/card.cjs +1 -5
  13. package/dist/card.cjs.map +1 -1
  14. package/dist/card.d.cts +1 -1
  15. package/dist/card.d.ts +1 -1
  16. package/dist/card.js +1 -1
  17. package/dist/chip.d.cts +4 -4
  18. package/dist/chip.d.ts +4 -4
  19. package/dist/{chunk-F2G2JRKA.js → chunk-DIWGVTWO.js} +3 -2
  20. package/dist/chunk-DIWGVTWO.js.map +1 -0
  21. package/dist/{chunk-YRY7DJK2.js → chunk-DJMAR7NV.js} +4 -8
  22. package/dist/chunk-DJMAR7NV.js.map +1 -0
  23. package/dist/{chunk-5NWM6RVD.js → chunk-U4P2VJCV.js} +3 -7
  24. package/dist/chunk-U4P2VJCV.js.map +1 -0
  25. package/dist/expansion-panel/item.d.cts +2 -2
  26. package/dist/expansion-panel/item.d.ts +2 -2
  27. package/dist/expansion-panel.d.cts +3 -3
  28. package/dist/expansion-panel.d.ts +3 -3
  29. package/dist/{global.types-DJiKqSJa.d.cts → global.types-D-o85tuX.d.cts} +2 -2
  30. package/dist/{global.types-DJiKqSJa.d.ts → global.types-D-o85tuX.d.ts} +2 -2
  31. package/dist/hero.d.cts +1 -1
  32. package/dist/hero.d.ts +1 -1
  33. package/dist/icon.d.cts +1 -1
  34. package/dist/icon.d.ts +1 -1
  35. package/dist/{index-Ddkv_t7Y.d.cts → index-B7xZzSwm.d.cts} +1 -1
  36. package/dist/{index-BoPiZNIB.d.ts → index-BhfThlf0.d.ts} +1 -1
  37. package/dist/index.cjs +25 -10
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +13 -5
  40. package/dist/index.d.ts +13 -5
  41. package/dist/index.js +28 -3
  42. package/dist/index.js.map +1 -1
  43. package/dist/input.d.cts +2 -2
  44. package/dist/input.d.ts +2 -2
  45. package/dist/list/item.d.cts +2 -2
  46. package/dist/list/item.d.ts +2 -2
  47. package/dist/list.d.cts +3 -3
  48. package/dist/list.d.ts +3 -3
  49. package/dist/notification.d.cts +1 -1
  50. package/dist/notification.d.ts +1 -1
  51. package/dist/profileCard.cjs +2 -5
  52. package/dist/profileCard.cjs.map +1 -1
  53. package/dist/profileCard.d.cts +1 -1
  54. package/dist/profileCard.d.ts +1 -1
  55. package/dist/profileCard.js +2 -2
  56. package/dist/select.d.cts +2 -2
  57. package/dist/select.d.ts +2 -2
  58. package/dist/slider.d.cts +1 -1
  59. package/dist/slider.d.ts +1 -1
  60. package/dist/switch.d.cts +1 -1
  61. package/dist/switch.d.ts +1 -1
  62. package/dist/{types-CBIsqeyE.d.ts → types-CbQEphC3.d.ts} +1 -1
  63. package/dist/{types-B3b-GFjA.d.cts → types-DqPSePni.d.cts} +1 -1
  64. package/package.json +1 -1
  65. package/dist/chunk-5NWM6RVD.js.map +0 -1
  66. package/dist/chunk-F2G2JRKA.js.map +0 -1
  67. package/dist/chunk-YRY7DJK2.js.map +0 -1
package/dist/hero.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as GlobalVariant } from './global.types-DJiKqSJa.cjs';
1
+ import { G as GlobalVariant } from './global.types-D-o85tuX.cjs';
2
2
  import * as react from 'react';
3
3
 
4
4
  type HeroAction = {
package/dist/hero.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as GlobalVariant } from './global.types-DJiKqSJa.js';
1
+ import { G as GlobalVariant } from './global.types-D-o85tuX.js';
2
2
  import * as react from 'react';
3
3
 
4
4
  type HeroAction = {
package/dist/icon.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as GlobalSize, P as Palette } from './global.types-DJiKqSJa.cjs';
1
+ import { a as GlobalSize, P as Palette } from './global.types-D-o85tuX.cjs';
2
2
 
3
3
  type IconGroup = 'mdi';
4
4
  type IconSet = [IconGroup, string];
package/dist/icon.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as GlobalSize, P as Palette } from './global.types-DJiKqSJa.js';
1
+ import { a as GlobalSize, P as Palette } from './global.types-D-o85tuX.js';
2
2
 
3
3
  type IconGroup = 'mdi';
4
4
  type IconSet = [IconGroup, string];
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { G as GlobalVariant, P as Palette } from './global.types-DJiKqSJa.cjs';
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-DJiKqSJa.js';
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