@a-type/ui 1.0.11 → 1.0.13

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 (147) hide show
  1. package/dist/cjs/components/button/classes.js +5 -5
  2. package/dist/cjs/components/button/classes.js.map +1 -1
  3. package/dist/cjs/components/card/Card.d.ts +34 -0
  4. package/dist/cjs/components/card/Card.js +11 -1
  5. package/dist/cjs/components/card/Card.js.map +1 -1
  6. package/dist/cjs/components/checkbox/Checkbox.d.ts +6 -1
  7. package/dist/cjs/components/checkbox/Checkbox.js +4 -1
  8. package/dist/cjs/components/checkbox/Checkbox.js.map +1 -1
  9. package/dist/cjs/components/collapsible/Collapsible.d.ts +11 -0
  10. package/dist/cjs/components/collapsible/Collapsible.js +6 -1
  11. package/dist/cjs/components/collapsible/Collapsible.js.map +1 -1
  12. package/dist/cjs/components/contextMenu/contextMenu.d.ts +18 -6
  13. package/dist/cjs/components/contextMenu/contextMenu.js +13 -7
  14. package/dist/cjs/components/contextMenu/contextMenu.js.map +1 -1
  15. package/dist/cjs/components/dialog/Dialog.d.ts +27 -1
  16. package/dist/cjs/components/dialog/Dialog.js +19 -5
  17. package/dist/cjs/components/dialog/Dialog.js.map +1 -1
  18. package/dist/cjs/components/dialog/Dialog.stories.d.ts +28 -1
  19. package/dist/cjs/components/dropdownMenu/DropdownMenu.d.ts +32 -1
  20. package/dist/cjs/components/dropdownMenu/DropdownMenu.js +15 -2
  21. package/dist/cjs/components/dropdownMenu/DropdownMenu.js.map +1 -1
  22. package/dist/cjs/components/dropdownMenu/DropdownMenu.stories.d.ts +31 -1
  23. package/dist/cjs/components/dropdownMenu/DropdownMenu.stories.js +1 -2
  24. package/dist/cjs/components/dropdownMenu/DropdownMenu.stories.js.map +1 -1
  25. package/dist/cjs/components/input/Input.js +1 -1
  26. package/dist/cjs/components/input/Input.js.map +1 -1
  27. package/dist/cjs/components/navBar/NavBar.d.ts +15 -0
  28. package/dist/cjs/components/navBar/NavBar.js +8 -1
  29. package/dist/cjs/components/navBar/NavBar.js.map +1 -1
  30. package/dist/cjs/components/popover/Popover.d.ts +18 -1
  31. package/dist/cjs/components/popover/Popover.js +9 -2
  32. package/dist/cjs/components/popover/Popover.js.map +1 -1
  33. package/dist/cjs/components/scrollArea/ScrollArea.d.ts +7 -1
  34. package/dist/cjs/components/scrollArea/ScrollArea.js +5 -1
  35. package/dist/cjs/components/scrollArea/ScrollArea.js.map +1 -1
  36. package/dist/cjs/components/select/Select.d.ts +23 -4
  37. package/dist/cjs/components/select/Select.js +12 -2
  38. package/dist/cjs/components/select/Select.js.map +1 -1
  39. package/dist/cjs/components/select/Select.stories.d.ts +24 -1
  40. package/dist/cjs/components/slider/Slider.d.ts +15 -3
  41. package/dist/cjs/components/slider/Slider.js +9 -4
  42. package/dist/cjs/components/slider/Slider.js.map +1 -1
  43. package/dist/cjs/components/slider/Slider.stories.d.ts +15 -1
  44. package/dist/cjs/components/switch/Switch.d.ts +8 -1
  45. package/dist/cjs/components/switch/Switch.js +4 -1
  46. package/dist/cjs/components/switch/Switch.js.map +1 -1
  47. package/dist/cjs/components/tabs/tabs.d.ts +18 -5
  48. package/dist/cjs/components/tabs/tabs.js +11 -6
  49. package/dist/cjs/components/tabs/tabs.js.map +1 -1
  50. package/dist/cjs/components/textArea/TextArea.js +1 -1
  51. package/dist/cjs/components/textArea/TextArea.js.map +1 -1
  52. package/dist/cjs/components/toggleGroup/toggleGroup.d.ts +13 -4
  53. package/dist/cjs/components/toggleGroup/toggleGroup.js +7 -4
  54. package/dist/cjs/components/toggleGroup/toggleGroup.js.map +1 -1
  55. package/dist/cjs/components/tooltip/Tooltip.d.ts +10 -3
  56. package/dist/cjs/components/tooltip/Tooltip.js +7 -4
  57. package/dist/cjs/components/tooltip/Tooltip.js.map +1 -1
  58. package/dist/cjs/components/tooltip/Tooltip.stories.d.ts +5 -1
  59. package/dist/cjs/themes.stories.d.ts +13 -0
  60. package/dist/cjs/themes.stories.js +31 -0
  61. package/dist/cjs/themes.stories.js.map +1 -0
  62. package/dist/cjs/uno.preset.js +11 -11
  63. package/dist/css/main.css +13 -13
  64. package/dist/esm/components/button/classes.js +5 -5
  65. package/dist/esm/components/button/classes.js.map +1 -1
  66. package/dist/esm/components/card/Card.d.ts +34 -0
  67. package/dist/esm/components/card/Card.js +10 -0
  68. package/dist/esm/components/card/Card.js.map +1 -1
  69. package/dist/esm/components/checkbox/Checkbox.d.ts +6 -1
  70. package/dist/esm/components/checkbox/Checkbox.js +4 -1
  71. package/dist/esm/components/checkbox/Checkbox.js.map +1 -1
  72. package/dist/esm/components/collapsible/Collapsible.d.ts +11 -0
  73. package/dist/esm/components/collapsible/Collapsible.js +5 -0
  74. package/dist/esm/components/collapsible/Collapsible.js.map +1 -1
  75. package/dist/esm/components/contextMenu/contextMenu.d.ts +18 -6
  76. package/dist/esm/components/contextMenu/contextMenu.js +12 -6
  77. package/dist/esm/components/contextMenu/contextMenu.js.map +1 -1
  78. package/dist/esm/components/dialog/Dialog.d.ts +27 -1
  79. package/dist/esm/components/dialog/Dialog.js +18 -3
  80. package/dist/esm/components/dialog/Dialog.js.map +1 -1
  81. package/dist/esm/components/dialog/Dialog.stories.d.ts +28 -1
  82. package/dist/esm/components/dropdownMenu/DropdownMenu.d.ts +32 -1
  83. package/dist/esm/components/dropdownMenu/DropdownMenu.js +14 -1
  84. package/dist/esm/components/dropdownMenu/DropdownMenu.js.map +1 -1
  85. package/dist/esm/components/dropdownMenu/DropdownMenu.stories.d.ts +31 -1
  86. package/dist/esm/components/dropdownMenu/DropdownMenu.stories.js +2 -3
  87. package/dist/esm/components/dropdownMenu/DropdownMenu.stories.js.map +1 -1
  88. package/dist/esm/components/input/Input.js +1 -1
  89. package/dist/esm/components/input/Input.js.map +1 -1
  90. package/dist/esm/components/navBar/NavBar.d.ts +15 -0
  91. package/dist/esm/components/navBar/NavBar.js +7 -0
  92. package/dist/esm/components/navBar/NavBar.js.map +1 -1
  93. package/dist/esm/components/popover/Popover.d.ts +18 -1
  94. package/dist/esm/components/popover/Popover.js +8 -1
  95. package/dist/esm/components/popover/Popover.js.map +1 -1
  96. package/dist/esm/components/scrollArea/ScrollArea.d.ts +7 -1
  97. package/dist/esm/components/scrollArea/ScrollArea.js +5 -1
  98. package/dist/esm/components/scrollArea/ScrollArea.js.map +1 -1
  99. package/dist/esm/components/select/Select.d.ts +23 -4
  100. package/dist/esm/components/select/Select.js +12 -1
  101. package/dist/esm/components/select/Select.js.map +1 -1
  102. package/dist/esm/components/select/Select.stories.d.ts +24 -1
  103. package/dist/esm/components/slider/Slider.d.ts +15 -3
  104. package/dist/esm/components/slider/Slider.js +9 -3
  105. package/dist/esm/components/slider/Slider.js.map +1 -1
  106. package/dist/esm/components/slider/Slider.stories.d.ts +15 -1
  107. package/dist/esm/components/switch/Switch.d.ts +8 -1
  108. package/dist/esm/components/switch/Switch.js +4 -1
  109. package/dist/esm/components/switch/Switch.js.map +1 -1
  110. package/dist/esm/components/tabs/tabs.d.ts +18 -5
  111. package/dist/esm/components/tabs/tabs.js +10 -5
  112. package/dist/esm/components/tabs/tabs.js.map +1 -1
  113. package/dist/esm/components/textArea/TextArea.js +1 -1
  114. package/dist/esm/components/textArea/TextArea.js.map +1 -1
  115. package/dist/esm/components/toggleGroup/toggleGroup.d.ts +13 -4
  116. package/dist/esm/components/toggleGroup/toggleGroup.js +6 -3
  117. package/dist/esm/components/toggleGroup/toggleGroup.js.map +1 -1
  118. package/dist/esm/components/tooltip/Tooltip.d.ts +10 -3
  119. package/dist/esm/components/tooltip/Tooltip.js +7 -3
  120. package/dist/esm/components/tooltip/Tooltip.js.map +1 -1
  121. package/dist/esm/components/tooltip/Tooltip.stories.d.ts +5 -1
  122. package/dist/esm/themes.stories.d.ts +13 -0
  123. package/dist/esm/themes.stories.js +25 -0
  124. package/dist/esm/themes.stories.js.map +1 -0
  125. package/dist/esm/uno.preset.js +11 -11
  126. package/package.json +1 -1
  127. package/src/components/button/classes.tsx +5 -5
  128. package/src/components/card/Card.tsx +11 -0
  129. package/src/components/checkbox/Checkbox.tsx +15 -10
  130. package/src/components/collapsible/Collapsible.tsx +6 -0
  131. package/src/components/contextMenu/contextMenu.tsx +22 -9
  132. package/src/components/dialog/Dialog.tsx +26 -3
  133. package/src/components/dropdownMenu/DropdownMenu.stories.tsx +14 -21
  134. package/src/components/dropdownMenu/DropdownMenu.tsx +15 -1
  135. package/src/components/input/Input.tsx +1 -1
  136. package/src/components/navBar/NavBar.tsx +8 -0
  137. package/src/components/popover/Popover.tsx +9 -1
  138. package/src/components/scrollArea/ScrollArea.tsx +21 -14
  139. package/src/components/select/Select.tsx +13 -1
  140. package/src/components/slider/Slider.tsx +23 -11
  141. package/src/components/switch/Switch.tsx +6 -2
  142. package/src/components/tabs/tabs.tsx +11 -5
  143. package/src/components/textArea/TextArea.tsx +1 -1
  144. package/src/components/toggleGroup/toggleGroup.tsx +7 -3
  145. package/src/components/tooltip/Tooltip.tsx +30 -22
  146. package/src/themes.stories.tsx +70 -0
  147. package/src/uno.preset.ts +11 -11
@@ -27,4 +27,9 @@ export const CollapsibleSimple = (_a) => {
27
27
  var { horizontal, both, children } = _a, props = __rest(_a, ["horizontal", "both", "children"]);
28
28
  return (_jsx(CollapsibleRoot, Object.assign({}, props, { children: _jsx(CollapsibleContent, Object.assign({ horizontal: horizontal, both: both }, { children: children })) })));
29
29
  };
30
+ export const Collapsible = Object.assign(CollapsibleRoot, {
31
+ Content: CollapsibleContent,
32
+ Trigger: CollapsibleTrigger,
33
+ Simple: CollapsibleSimple,
34
+ });
30
35
  //# sourceMappingURL=Collapsible.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.js","sourceRoot":"","sources":["../../../../src/components/collapsible/Collapsible.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KA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CAAC;AACzD,MAAM,sBAAsB,GAAG,aAAa,CAC3C,oBAAoB,CAAC,OAAO,EAC5B,iBAAiB,EACjB,wPAAwP,EACxP,0RAA0R,EAC1R,kQAAkQ,CAClQ,CAAC;AACF,4DAA4D;AAC5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAM1C,SAAS,kBAAkB,CAAC,EAA8B,EAAE,GAAG;QAAnC,EAAE,UAAU,EAAE,IAAI,OAAY,EAAP,KAAK,cAA5B,sBAA8B,CAAF;IACzD,OAAO,CACN,KAAC,sBAAsB,qCACL,UAAU,eAChB,IAAI,IACX,KAAK,IACT,GAAG,EAAE,GAAG,IACP,CACF,CAAC;AACH,CAAC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,OAAO,CAAC;AAE/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAQjC,EAAE,EAAE;QAR6B,EACjC,UAAU,EACV,IAAI,EACJ,QAAQ,OAKR,EAJG,KAAK,cAJyB,kCAKjC,CADQ;IAIH,OAAA,CACL,KAAC,eAAe,oBAAK,KAAK,cACzB,KAAC,kBAAkB,kBAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,gBACpD,QAAQ,IACW,IACJ,CAClB,CAAA;CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE;IACzD,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,kBAAkB;IAC3B,MAAM,EAAE,iBAAiB;CACzB,CAAC,CAAC"}
@@ -1,13 +1,25 @@
1
1
  /// <reference types="react" resolution-mode="require"/>
2
- import * as ContextMenu from '@radix-ui/react-context-menu';
3
- export declare const ContextMenuRoot: import("react").FC<ContextMenu.ContextMenuProps>;
4
- export declare const ContextMenuContent: import("react").ForwardRefExoticComponent<Omit<ContextMenu.ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
- export declare const ContextMenuArrow: import("react").FunctionComponent<Omit<ContextMenu.ContextMenuArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
2
+ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
3
+ export declare const ContextMenuRoot: import("react").FC<ContextMenuPrimitive.ContextMenuProps>;
4
+ export declare const ContextMenuContent: import("react").ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
+ export declare const ContextMenuArrow: import("react").FunctionComponent<Omit<ContextMenuPrimitive.ContextMenuArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
6
6
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
7
7
  }>;
8
- export declare const ContextMenuItem: import("react").FunctionComponent<Omit<ContextMenu.ContextMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
8
+ export declare const ContextMenuItem: import("react").FunctionComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
9
9
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
10
  }>;
11
- export declare const ContextMenuTrigger: import("react").FunctionComponent<Omit<ContextMenu.ContextMenuTriggerProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
11
+ export declare const ContextMenuTrigger: import("react").FunctionComponent<Omit<ContextMenuPrimitive.ContextMenuTriggerProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
12
12
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
13
13
  }>;
14
+ export declare const ContextMenu: import("react").FC<ContextMenuPrimitive.ContextMenuProps> & {
15
+ Content: import("react").ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
16
+ Arrow: import("react").FunctionComponent<Omit<ContextMenuPrimitive.ContextMenuArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
17
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
18
+ }>;
19
+ Item: import("react").FunctionComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
20
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
21
+ }>;
22
+ Trigger: import("react").FunctionComponent<Omit<ContextMenuPrimitive.ContextMenuTriggerProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
23
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
24
+ }>;
25
+ };
@@ -11,19 +11,25 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- import * as ContextMenu from '@radix-ui/react-context-menu';
14
+ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
15
15
  import { forwardRef } from 'react';
16
16
  import { withClassName } from '../../hooks/withClassName.js';
17
17
  import classNames from 'clsx';
18
- export const ContextMenuRoot = ContextMenu.Root;
18
+ export const ContextMenuRoot = ContextMenuPrimitive.Root;
19
19
  export const ContextMenuContent = forwardRef(function Content(_a, ref) {
20
20
  var { className, onClick } = _a, props = __rest(_a, ["className", "onClick"]);
21
- return (_jsx(ContextMenu.Portal, { children: _jsx(ContextMenu.Content, Object.assign({ className: classNames('layer-components:min-w-120px layer-components:bg-white layer-components:rounded-md layer-components:border-default layer-components:overflow-hidden layer-components:p-2 layer-components:shadow-md layer-components:z-menu', 'layer-components:transform-origin-[var(--radix-context-menu-transform-origin)]', 'layer-components:[&[data-state=open]]:animate-popover-in', 'layer-components:[&[data-state=closed]]:animate-popover-out', 'layer-components:max-h-[var(--radix-context-menu-content-available-height)] layer-components:overflow-y-auto', 'important:motion-reduce:animate-none', className), onClick: (ev) => {
21
+ return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Content, Object.assign({ className: classNames('layer-components:min-w-120px layer-components:bg-white layer-components:rounded-md layer-components:border-default layer-components:overflow-hidden layer-components:p-2 layer-components:shadow-md layer-components:z-menu', 'layer-components:transform-origin-[var(--radix-context-menu-transform-origin)]', 'layer-components:[&[data-state=open]]:animate-popover-in', 'layer-components:[&[data-state=closed]]:animate-popover-out', 'layer-components:max-h-[var(--radix-context-menu-content-available-height)] layer-components:overflow-y-auto', 'important:motion-reduce:animate-none', className), onClick: (ev) => {
22
22
  ev.stopPropagation();
23
23
  onClick === null || onClick === void 0 ? void 0 : onClick(ev);
24
24
  }, ref: ref }, props)) }));
25
25
  });
26
- export const ContextMenuArrow = withClassName(ContextMenu.Arrow, 'fill-white');
27
- export const ContextMenuItem = withClassName(ContextMenu.Item, 'flex items-center py-1 px-2 relative pl-25px select-none outline-none cursor-pointer', 'hover:bg-gray2 [&[data-highlighted=true]]:bg-gray2 [&[data-disabled=true]]:opacity-50 [&[data-disabled=true]]:cursor-default disabled:opacity-50 disabled:cursor-default');
28
- export const ContextMenuTrigger = withClassName(ContextMenu.Trigger, '');
26
+ export const ContextMenuArrow = withClassName(ContextMenuPrimitive.Arrow, 'fill-white');
27
+ export const ContextMenuItem = withClassName(ContextMenuPrimitive.Item, 'flex items-center py-1 px-2 relative pl-25px select-none outline-none cursor-pointer', 'hover:bg-gray2 [&[data-highlighted=true]]:bg-gray2 [&[data-disabled=true]]:opacity-50 [&[data-disabled=true]]:cursor-default disabled:opacity-50 disabled:cursor-default');
28
+ export const ContextMenuTrigger = withClassName(ContextMenuPrimitive.Trigger, '');
29
+ export const ContextMenu = Object.assign(ContextMenuRoot, {
30
+ Content: ContextMenuContent,
31
+ Arrow: ContextMenuArrow,
32
+ Item: ContextMenuItem,
33
+ Trigger: ContextMenuTrigger,
34
+ });
29
35
  //# sourceMappingURL=contextMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contextMenu.js","sourceRoot":"","sources":["../../../../src/components/contextMenu/contextMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,WAAW,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAA4B,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,UAAU,MAAM,MAAM,CAAC;AAE9B,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC,IAAI,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAG1C,SAAS,OAAO,CAAC,EAAgC,EAAE,GAAG;QAArC,EAAE,SAAS,EAAE,OAAO,OAAY,EAAP,KAAK,cAA9B,wBAAgC,CAAF;IAChD,OAAO,CACN,KAAC,WAAW,CAAC,MAAM,cAClB,KAAC,WAAW,CAAC,OAAO,kBACnB,SAAS,EAAE,UAAU,CACpB,wGAAwG,EACxG,gFAAgF,EAChF,0DAA0D,EAC1D,6DAA6D,EAC7D,+FAA+F,EAC/F,sCAAsC,EACtC,SAAS,CACT,EACD,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE;gBACf,EAAE,CAAC,eAAe,EAAE,CAAC;gBACrB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,EAAE,CAAC,CAAC;YACf,CAAC,EACD,GAAG,EAAE,GAAG,IACJ,KAAK,EACR,GACkB,CACrB,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAC3C,WAAW,CAAC,IAAI,EAChB,sFAAsF,EACtF,6IAA6I,CAC7I,CAAC;AAEF,MAAM,CAAC,MA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AC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAC9C,oBAAoB,CAAC,OAAO,EAC5B,EAAE,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE;IACzD,OAAO,EAAE,kBAAkB;IAC3B,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,kBAAkB;CAC3B,CAAC,CAAC"}
@@ -9,7 +9,6 @@ export declare const Content: import("react").ForwardRefExoticComponent<Omit<Omi
9
9
  disableSheet?: boolean | undefined;
10
10
  } & import("react").RefAttributes<HTMLDivElement>>;
11
11
  export declare const DialogSwipeHandle: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
- export declare const Dialog: (props: DialogPrimitive.DialogProps) => import("react/jsx-runtime").JSX.Element;
13
12
  export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
14
13
  export declare const DialogContent: import("react").ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
15
14
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
@@ -39,3 +38,30 @@ export declare const DialogSelectItemRoot: import("react").FunctionComponent<Omi
39
38
  export declare const DialogSelectItem: import("react").ForwardRefExoticComponent<Omit<Omit<RadioGroupPrimitive.RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
40
39
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
41
40
  }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
41
+ export declare const Dialog: ((props: DialogPrimitive.DialogProps) => import("react/jsx-runtime").JSX.Element) & {
42
+ Trigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
43
+ Content: import("react").ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
44
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
45
+ }, "ref"> & {
46
+ outerClassName?: string | undefined;
47
+ width?: "lg" | "md" | "sm" | undefined;
48
+ disableSheet?: boolean | undefined;
49
+ } & import("react").RefAttributes<HTMLDivElement>>;
50
+ Title: import("react").FunctionComponent<Omit<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & {
51
+ ref?: ((instance: HTMLHeadingElement | null) => void) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
52
+ }>;
53
+ Description: import("react").FunctionComponent<Omit<DialogPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & {
54
+ ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
55
+ }>;
56
+ Close: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
57
+ Actions: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
58
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
59
+ }>;
60
+ SelectTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
61
+ SelectList: import("react").FunctionComponent<Omit<RadioGroupPrimitive.RadioGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
62
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
63
+ }>;
64
+ SelectItem: import("react").ForwardRefExoticComponent<Omit<Omit<RadioGroupPrimitive.RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
65
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
66
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
67
+ };
@@ -22,8 +22,9 @@ import classNames from 'clsx';
22
22
  import { CheckIcon, ChevronDownIcon } from '@radix-ui/react-icons';
23
23
  import { selectTriggerClassName } from '../select.js';
24
24
  import { useDrag } from '@use-gesture/react';
25
+ import { Button } from '../button.js';
25
26
  const StyledOverlay = withClassName(DialogPrimitive.Overlay, 'layer-components:fixed layer-components:inset-0 layer-components:z-dialog-backdrop layer-components:animate-fade-in layer-components:animate-duration-200 layer-components:bg-overlay layer-components:[box-shadow:inset_0_30px_60px_0px_var(--color-overlay)] layer-components:border-top-1 layer-components:border-top-solid layer-components:border-top-gray-5', 'layer-components:[&[data-state=closed]]:animate-fade-out', 'motion-reduce:animate-none');
26
- const StyledContent = withClassName(DialogPrimitive.Content, 'layer-components:z-dialog layer-components:fixed layer-components:shadow-xl-up layer-components:bg-white layer-components:overflow-y-auto layer-components:flex layer-components:flex-col', 'layer-components:sm:shadow-xl', 'transform-gpu !motion-reduce:animate-none', 'layer-components:left-50% layer-components:top-50% layer-components:translate-[-50%] layer-components:w-90vw layer-components:max-w-450px layer-components:max-h-85vh layer-components:p-6 layer-components:pt-8 layer-components:rounded-lg layer-components:border-b-1 layer-components:pt-6', 'layer-components:animate-dialog-in layer-components:[&[data-state=closed]]:animate-dialog-out layer-components:motion-reduce:animate-none');
27
+ const StyledContent = withClassName(DialogPrimitive.Content, 'layer-components:z-dialog layer-components:fixed layer-components:shadow-xl-up layer-components:bg-white layer-components:overflow-y-auto layer-components:flex layer-components:flex-col layer-components:border-top-1 layer-components:border-top-solid layer-components:border-top-gray-5', 'layer-components:sm:shadow-xl', 'transform-gpu !motion-reduce:animate-none', 'layer-components:left-50% layer-components:top-50% layer-components:translate-[-50%] layer-components:w-90vw layer-components:max-w-450px layer-components:max-h-85vh layer-components:p-6 layer-components:pt-8 layer-components:rounded-lg layer-components:border-b-1 layer-components:pt-6', 'layer-components:animate-dialog-in layer-components:[&[data-state=closed]]:animate-dialog-out layer-components:motion-reduce:animate-none');
27
28
  const sheetClassName = classNames('layer-variants:lt-sm:translate-0 layer-variants:lt-sm:bottom-[calc(var(--viewport-bottom-offset,0px)+var(--gesture-y,0px))] layer-variants:lt-sm:left-0 layer-variants:lt-sm:right-0 layer-variants:lt-sm:top-auto layer-variants:lt-sm:h-min-content layer-variants:lt-sm:max-h-[calc(0.85*var(--viewport-height,100vh))] layer-variants:lt-sm:rounded-tl-xl layer-variants:lt-sm:rounded-tr-xl layer-variants:lt-sm:rounded-b-0 layer-variants:lt-sm:p-6 layer-variants:lt-sm:pt-8 layer-variants:lt-sm:w-full layer-variants:lt-sm:max-w-none layer-variants:lt-sm:pb-[calc(3rem+env(safe-area-inset-bottom,0px))] layer-variants:lt-sm:border-b-0', 'layer-variants:lt-sm:animate-ease-in layer-variants:lt-sm:animate-fade-in-up layer-variants:lt-sm:[&[data-state=closed]]:animate-fade-out-down');
28
29
  export const Content = forwardRef(function Content(_a, ref) {
29
30
  var { children, width, outerClassName, className, disableSheet } = _a, props = __rest(_a, ["children", "width", "outerClassName", "className", "disableSheet"]);
@@ -113,7 +114,7 @@ const DialogCloseContext = createContext(() => { });
113
114
  const StyledTitle = withClassName(DialogPrimitive.Title, 'font-title color-black text-3xl mb-4 mt-0');
114
115
  const StyledDescription = withClassName(DialogPrimitive.Description, 'mt-3 mb-6 color-gray8 text-md leading-6');
115
116
  // Exports
116
- export const Dialog = (props) => {
117
+ const DialogRoot = (props) => {
117
118
  var _a;
118
119
  const [innerOpen, innerOnOpenChange] = useState(props.defaultOpen);
119
120
  const open = (_a = props.open) !== null && _a !== void 0 ? _a : innerOpen;
@@ -131,7 +132,10 @@ export const DialogTrigger = DialogPrimitive.Trigger;
131
132
  export const DialogContent = Content;
132
133
  export const DialogTitle = StyledTitle;
133
134
  export const DialogDescription = StyledDescription;
134
- export const DialogClose = DialogPrimitive.Close;
135
+ export const DialogClose = forwardRef(function DialogClose(_a, ref) {
136
+ var { asChild = true, children } = _a, props = __rest(_a, ["asChild", "children"]);
137
+ return (_jsx(DialogPrimitive.DialogClose, Object.assign({ asChild: true, ref: ref }, props, { children: asChild ? children : _jsx(Button, { children: children !== null && children !== void 0 ? children : 'Close' }) })));
138
+ });
135
139
  export const DialogActions = withClassName('div', 'flex justify-end sticky w-full gap-3 items-center bg-white py-4 translate-y-6 flex-wrap', 'bottom--6', 'sm:bottom-0');
136
140
  export const DialogSelectTrigger = forwardRef(function DialogSelectTrigger(_a, ref) {
137
141
  var { children, className } = _a, props = __rest(_a, ["children", "className"]);
@@ -143,4 +147,15 @@ export const DialogSelectItem = forwardRef(function DialogSelectItem(_a, ref) {
143
147
  var { children } = _a, props = __rest(_a, ["children"]);
144
148
  return (_jsxs(DialogSelectItemRoot, Object.assign({}, props, { children: [_jsx("span", Object.assign({ className: "flex-1" }, { children: children })), _jsx(RadioGroupPrimitive.Indicator, Object.assign({ className: "flex-0-0-auto" }, { children: _jsx(CheckIcon, {}) }))] })));
145
149
  });
150
+ export const Dialog = Object.assign(DialogRoot, {
151
+ Trigger: DialogTrigger,
152
+ Content,
153
+ Title: StyledTitle,
154
+ Description: StyledDescription,
155
+ Close: DialogClose,
156
+ Actions: DialogActions,
157
+ SelectTrigger: DialogSelectTrigger,
158
+ SelectList: DialogSelectList,
159
+ SelectItem: DialogSelectItem,
160
+ });
146
161
  //# sourceMappingURL=Dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/components/dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;A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AAC,SAAS,kBAAC,SAAS,EAAC,eAAe,gBACvD,KAAC,SAAS,KAAG,IACkB,KACV,CACvB,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;IAC/C,OAAO,EAAE,aAAa;IACtB,OAAO;IACP,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,iBAAiB;IAC9B,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,aAAa;IACtB,aAAa,EAAE,mBAAmB;IAClC,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,gBAAgB;CAC5B,CAAC,CAAC"}
@@ -1,8 +1,35 @@
1
+ /// <reference types="react" resolution-mode="require"/>
1
2
  import type { StoryObj } from '@storybook/react';
2
3
  import { Dialog } from './Dialog.js';
3
4
  declare const meta: {
4
5
  title: string;
5
- component: (props: import("@radix-ui/react-dialog").DialogProps) => import("react/jsx-runtime").JSX.Element;
6
+ component: ((props: import("@radix-ui/react-dialog").DialogProps) => import("react/jsx-runtime").JSX.Element) & {
7
+ Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
8
+ Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
9
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
+ }, "ref"> & {
11
+ outerClassName?: string | undefined;
12
+ width?: "lg" | "md" | "sm" | undefined;
13
+ disableSheet?: boolean | undefined;
14
+ } & import("react").RefAttributes<HTMLDivElement>>;
15
+ Title: import("react").FunctionComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & {
16
+ ref?: ((instance: HTMLHeadingElement | null) => void) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
17
+ }>;
18
+ Description: import("react").FunctionComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & {
19
+ ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
20
+ }>;
21
+ Close: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
22
+ Actions: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
23
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
24
+ }>;
25
+ SelectTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
26
+ SelectList: import("react").FunctionComponent<Omit<import("@radix-ui/react-radio-group").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
27
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
28
+ }>;
29
+ SelectItem: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-radio-group").RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
30
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
31
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
32
+ };
6
33
  argTypes: {};
7
34
  parameters: {
8
35
  controls: {
@@ -3,7 +3,7 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
3
  export interface DropdownMenuItemProps extends DropdownMenuPrimitive.DropdownMenuItemProps {
4
4
  color?: 'default' | 'destructive';
5
5
  }
6
- export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps>;
6
+ export declare const DropdownMenuRoot: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps>;
7
7
  export declare const DropdownMenuTrigger: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
8
8
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
9
9
  }>;
@@ -33,3 +33,34 @@ export declare const DropdownMenuContent: ({ children, forceMount, ...props }: D
33
33
  export declare const DropdownMenuItemRightSlot: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
34
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
35
35
  }>;
36
+ export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps> & {
37
+ Content: ({ children, forceMount, ...props }: DropdownMenuPrimitive.DropdownMenuContentProps & {
38
+ forceMount?: boolean | undefined;
39
+ }) => import("react/jsx-runtime").JSX.Element;
40
+ Trigger: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
41
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
42
+ }>;
43
+ Item: import("react").ForwardRefExoticComponent<DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
44
+ CheckboxItem: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
45
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
46
+ }>;
47
+ RadioGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
48
+ RadioItem: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
49
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
50
+ }>;
51
+ ItemIndicator: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
52
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
53
+ }>;
54
+ Label: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
55
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
56
+ }>;
57
+ Separator: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
58
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
59
+ }>;
60
+ Arrow: import("react").FunctionComponent<Omit<DropdownMenuPrimitive.DropdownMenuArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
61
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
62
+ }>;
63
+ ItemRightSlot: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
64
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
65
+ }>;
66
+ };
@@ -33,7 +33,7 @@ const StyledArrow = withClassName(DropdownMenuPrimitive.Arrow, 'fill-white strok
33
33
  const StyledTrigger = withClassName(DropdownMenuPrimitive.Trigger, 'select-none');
34
34
  const StyledPortal = DropdownMenuPrimitive.Portal;
35
35
  // Exports
36
- export const DropdownMenu = DropdownMenuPrimitive.Root;
36
+ export const DropdownMenuRoot = DropdownMenuPrimitive.Root;
37
37
  export const DropdownMenuTrigger = StyledTrigger;
38
38
  export const DropdownMenuItem = StyledItem;
39
39
  export const DropdownMenuCheckboxItem = StyledCheckboxItem;
@@ -48,4 +48,17 @@ export const DropdownMenuContent = (_a) => {
48
48
  return (_jsx(StyledPortal, Object.assign({ forceMount: forceMount }, { children: _jsxs(StyledContent, Object.assign({}, props, { children: [_jsx("div", Object.assign({ className: "overflow-hidden rounded-xl" }, { children: children })), _jsx(StyledArrow, {})] })) })));
49
49
  };
50
50
  export const DropdownMenuItemRightSlot = withClassName('div', 'ml-auto');
51
+ export const DropdownMenu = Object.assign(DropdownMenuRoot, {
52
+ Content: DropdownMenuContent,
53
+ Trigger: StyledTrigger,
54
+ Item: StyledItem,
55
+ CheckboxItem: StyledCheckboxItem,
56
+ RadioGroup: DropdownMenuPrimitive.RadioGroup,
57
+ RadioItem: StyledRadioItem,
58
+ ItemIndicator: StyledItemIndicator,
59
+ Label: StyledLabel,
60
+ Separator: StyledSeparator,
61
+ Arrow: StyledArrow,
62
+ ItemRightSlot: DropdownMenuItemRightSlot,
63
+ });
51
64
  //# sourceMappingURL=DropdownMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.js","sourceRoot":"","sources":["../../../../src/components/dropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,aAAa,GAAG,aAAa,CAClC,qBAAqB,CAAC,OAAO,EAC7B,iEAAiE,EACjE,iFAAiF,EACjF,0DAA0D,EAC1D,6DAA6D,EAC7D,gFAAgF,EAChF,sCAAsC,EACtC,uBAAuB,CACvB,CAAC;AACF,MAAM,aAAa,GAAG,UAAU,CAC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,EAAE,eAAe;IAC1B,aAAa,EAAE,mBAAmB;IAClC,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,eAAe;IAC1B,KAAK,EAAE,WAAW;IAClB,aAAa,EAAE,yBAAyB;CACxC,CAAC,CAAC"}
@@ -3,7 +3,37 @@ import type { StoryObj } from '@storybook/react';
3
3
  import { DropdownMenu } from './DropdownMenu.js';
4
4
  declare const meta: {
5
5
  title: string;
6
- component: import("react").FC<import("@radix-ui/react-dropdown-menu").DropdownMenuProps>;
6
+ component: import("react").FC<import("@radix-ui/react-dropdown-menu").DropdownMenuProps> & {
7
+ Content: ({ children, forceMount, ...props }: import("@radix-ui/react-dropdown-menu").DropdownMenuContentProps & {
8
+ forceMount?: boolean | undefined;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ Trigger: import("react").FunctionComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
11
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
12
+ }>;
13
+ Item: import("react").ForwardRefExoticComponent<import("./DropdownMenu.js").DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
14
+ CheckboxItem: import("react").FunctionComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
15
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
16
+ }>;
17
+ RadioGroup: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
18
+ RadioItem: import("react").FunctionComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
19
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
20
+ }>;
21
+ ItemIndicator: import("react").FunctionComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuItemIndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
22
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
23
+ }>;
24
+ Label: import("react").FunctionComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
25
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
26
+ }>;
27
+ Separator: import("react").FunctionComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
28
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
29
+ }>;
30
+ Arrow: import("react").FunctionComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
31
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
32
+ }>;
33
+ ItemRightSlot: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
35
+ }>;
36
+ };
7
37
  argTypes: {};
8
38
  parameters: {
9
39
  controls: {
@@ -1,8 +1,7 @@
1
1
  // @unocss-include
2
2
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemRightSlot, DropdownMenuTrigger, } from './DropdownMenu.js';
3
+ import { DropdownMenu } from './DropdownMenu.js';
4
4
  import { Icon } from '../icon.js';
5
- import { DropdownMenuLabel } from '@radix-ui/react-dropdown-menu';
6
5
  const meta = {
7
6
  title: 'DropdownMenu',
8
7
  component: DropdownMenu,
@@ -14,7 +13,7 @@ const meta = {
14
13
  export default meta;
15
14
  export const Default = {
16
15
  args: {
17
- children: (_jsxs(_Fragment, { children: [_jsx(DropdownMenuTrigger, { children: "Open" }), _jsxs(DropdownMenuContent, { children: [_jsxs(DropdownMenuItem, Object.assign({ color: "destructive" }, { children: [_jsx(DropdownMenuLabel, { children: "Item 1" }), _jsx(DropdownMenuItemRightSlot, { children: _jsx(Icon, { name: "flag" }) })] })), _jsxs(DropdownMenuItem, { children: [_jsx(DropdownMenuLabel, { children: "Item 2" }), _jsx(DropdownMenuItemRightSlot, { children: _jsx(Icon, { name: "add_person" }) })] })] })] })),
16
+ children: (_jsxs(_Fragment, { children: [_jsx(DropdownMenu.Trigger, { children: "Open" }), _jsxs(DropdownMenu.Content, { children: [_jsxs(DropdownMenu.Item, Object.assign({ color: "destructive" }, { children: [_jsx(DropdownMenu.Label, { children: "Item 1" }), _jsx(DropdownMenu.ItemRightSlot, { children: _jsx(Icon, { name: "flag" }) })] })), _jsxs(DropdownMenu.Item, { children: [_jsx(DropdownMenu.Label, { children: "Item 2" }), _jsx(DropdownMenu.ItemRightSlot, { children: _jsx(Icon, { name: "add_person" }) })] })] })] })),
18
17
  },
19
18
  };
20
19
  //# sourceMappingURL=DropdownMenu.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.stories.js","sourceRoot":"","sources":["../../../../src/components/dropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EACN,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,IAAI,GAAG;IACZ,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACX,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC5B;CACmC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC7B,IAAI,EAAE;QACL,QAAQ,EAAE,CACT,8BACC,KAAC,mBAAmB,uBAA2B,EAC/C,MAAC,mBAAmB,eACnB,MAAC,gBAAgB,kBAAC,KAAK,EAAC,aAAa,iBACpC,KAAC,iBAAiB,yBAA2B,EAC7C,KAAC,yBAAyB,cACzB,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,GACO,KACV,EACnB,MAAC,gBAAgB,eAChB,KAAC,iBAAiB,yBAA2B,EAC7C,KAAC,yBAAyB,cACzB,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,GAAG,GACC,IACV,IACE,IACpB,CACH;KACD;CACD,CAAC"}
1
+ {"version":3,"file":"DropdownMenu.stories.js","sourceRoot":"","sources":["../../../../src/components/dropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,IAAI,GAAG;IACZ,KAAK,EAAE,cAAc;IACrB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE;QACX,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC5B;CACmC,CAAC;AAEtC,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC7B,IAAI,EAAE;QACL,QAAQ,EAAE,CACT,8BACC,KAAC,YAAY,CAAC,OAAO,uBAA4B,EACjD,MAAC,YAAY,CAAC,OAAO,eACpB,MAAC,YAAY,CAAC,IAAI,kBAAC,KAAK,EAAC,aAAa,iBACrC,KAAC,YAAY,CAAC,KAAK,yBAA4B,EAC/C,KAAC,YAAY,CAAC,aAAa,cAC1B,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,GACQ,KACV,EACpB,MAAC,YAAY,CAAC,IAAI,eACjB,KAAC,YAAY,CAAC,KAAK,yBAA4B,EAC/C,KAAC,YAAY,CAAC,aAAa,cAC1B,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,GAAG,GACE,IACV,IACE,IACrB,CACH;KACD;CACD,CAAC"}
@@ -14,7 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import classNames from 'clsx';
15
15
  import { forwardRef, useCallback, } from 'react';
16
16
  import { Slot } from '@radix-ui/react-slot';
17
- export const inputClassName = classNames('layer-components:px-5 layer-components:py-[5px] layer-components:text-md layer-components:font-sans layer-components:rounded-full layer-components:bg-white layer-components:select-auto layer-components:min-w-60px layer-components:color-black layer-components:border-default layer-components:shadow-sm-inset', 'layer-components:focus:outline-none layer-components:focus:bg-gray-1 layer-components:focus:ring-4 layer-components:focus:ring-white', 'layer-components:focus-visible:outline-none layer-components:focus-visible:ring-gray-dark-blend', 'layer-components:md:min-w-120px');
17
+ export const inputClassName = classNames('layer-components:px-5 layer-components:py-[5px] layer-components:text-md layer-components:font-sans layer-components:rounded-full layer-components:bg-white layer-components:select-auto layer-components:min-w-60px layer-components:color-black layer-components:border-solid layer-components:border-1 layer-components:border-gray-7 layer-components:shadow-sm-inset', 'layer-components:focus:outline-none layer-components:focus:bg-gray-1 layer-components:focus:ring-4 layer-components:focus:ring-white', 'layer-components:focus-visible:outline-none layer-components:focus-visible:ring-gray-dark-blend', 'layer-components:md:min-w-120px');
18
18
  export const Input = forwardRef(function Input(_a, ref) {
19
19
  var { className, autoSelect, onFocus, variant: _, asChild } = _a, props = __rest(_a, ["className", "autoSelect", "onFocus", "variant", "asChild"]);
20
20
  const handleFocus = useCallback((ev) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/components/input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,UAAU,MAAM,MAAM,CAAC;AAC9B,OAAO,EAIN,UAAU,EACV,WAAW,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CACvC,4IAA4I,EAC5I,mEAAmE,EACnE,oEAAoE,EACpE,mCAAmC,CACnC,CAAC;AASF,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAA+B,SAAS,KAAK,CAC3E,EAAiE,EACjE,GAAG;QADH,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,OAAY,EAAP,KAAK,cAA/D,4DAAiE,CAAF;IAG/D,MAAM,WAAW,GAAG,WAAW,CAC9B,CAAC,EAAgC,EAAE,EAAE;QACpC,IAAI,UAAU,EAAE;YACf,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;SACnB;QACD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,EAAE,CAAC,CAAC;IACf,CAAC,EACD,CAAC,OAAO,EAAE,UAAU,CAAC,CACrB,CAAC;IAEF,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IAE3C,OAAO,CACN,KAAC,SAAS,oBACL,KAAK,IACT,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,CAAC,EAChD,GAAG,EAAE,GAAG,IACP,CACF,CAAC;AACH,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/components/input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,UAAU,MAAM,MAAM,CAAC;AAC9B,OAAO,EAIN,UAAU,EACV,WAAW,GACX,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CACvC,iKAAiK,EACjK,mEAAmE,EACnE,oEAAoE,EACpE,mCAAmC,CACnC,CAAC;AASF,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAA+B,SAAS,KAAK,CAC3E,EAAiE,EACjE,GAAG;QADH,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,OAAY,EAAP,KAAK,cAA/D,4DAAiE,CAAF;IAG/D,MAAM,WAAW,GAAG,WAAW,CAC9B,CAAC,EAAgC,EAAE,EAAE;QACpC,IAAI,UAAU,EAAE;YACf,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;SACnB;QACD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,EAAE,CAAC,CAAC;IACf,CAAC,EACD,CAAC,OAAO,EAAE,UAAU,CAAC,CACrB,CAAC;IAEF,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IAE3C,OAAO,CACN,KAAC,SAAS,oBACL,KAAK,IACT,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,SAAS,CAAC,EAChD,GAAG,EAAE,GAAG,IACP,CACF,CAAC;AACH,CAAC,CAAC,CAAC"}
@@ -27,4 +27,19 @@ export declare const NavBarItemPip: import("react").FunctionComponent<Omit<impor
27
27
  export declare const NavBarRoot: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
28
28
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
29
29
  }>;
30
+ export declare const NavBar: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
31
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
32
+ }> & {
33
+ Item: import("react").ForwardRefExoticComponent<NavBarItemProps & import("react").RefAttributes<HTMLDivElement>>;
34
+ ItemIcon: import("react").ForwardRefExoticComponent<NavBarItemIconProps & import("react").RefAttributes<any>>;
35
+ ItemText: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
36
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
37
+ }>;
38
+ ItemIconWrapper: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
39
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
40
+ }>;
41
+ ItemPip: import("react").FunctionComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
42
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
43
+ }>;
44
+ };
30
45
  export {};
@@ -31,4 +31,11 @@ export const NavBarItemIcon = forwardRef(function NavBarItemIcon(_a, ref) {
31
31
  });
32
32
  export const NavBarItemPip = withClassName('div', 'layer-components:absolute layer-components:top-6px layer-components:right-6px layer-components:w-6px layer-components:h-6px layer-components:rounded-full layer-components:bg-attention layer-components:shadow-sm');
33
33
  export const NavBarRoot = withClassName('div', 'layer-components:grid layer-components:[grid-auto-columns:1fr] layer-components:[grid-auto-flow:column] layer-components:justify-items-center layer-components:w-full layer-components:rounded-0 layer-components:overflow-hidden layer-components:z-50 layer-components:p-1 layer-components:h-auto', 'pb-[calc(0.25rem+env(safe-area-inset-bottom,0px))]', 'layer-components:sm:bg-transparent layer-components:sm:flex layer-components:sm:flex-col layer-components:sm:rounded-0 layer-components:sm:border-none layer-components:sm:border-transparent layer-components:sm:shadow-none layer-components:sm:h-min-content layer-components:sm:overflow-y-auto layer-components:sm:overflow-x-hidden layer-components:sm:justify-start layer-components:sm:items-stretch layer-components:sm:gap-2 layer-components:sm:pb-10');
34
+ export const NavBar = Object.assign(NavBarRoot, {
35
+ Item: NavBarItem,
36
+ ItemIcon: NavBarItemIcon,
37
+ ItemText: NavBarItemText,
38
+ ItemIconWrapper: NavBarItemIconWrapper,
39
+ ItemPip: NavBarItemPip,
40
+ });
34
41
  //# sourceMappingURL=NavBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../src/components/navBar/NavBar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAa,UAAU,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAa,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CACxC,yNAAyN,EACzN,oFAAoF,EACpF,wCAAwC,EACxC,+DAA+D,EAC/D,uFAAuF,EACvF,qEAAqE,CACrE,CAAC;AASF,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CACnC,SAAS,UAAU,CAAC,EAAuC,EAAE,GAAG;QAA5C,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAW,EAAN,IAAI,cAArC,kCAAuC,CAAF;IACxD,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAEpC,OAAO,CACN,KAAC,IAAI,kBACJ,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,SAAS,CAAC,iBACpC,MAAM,IACf,IAAI,EACP,CACF,CAAC;AACH,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F,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CACzC,KAAK,EACL,+FAA+F,CAC/F,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CACtC,KAAK,EACL,+IAA+I,EAC/I,oDAAoD,EACpD,iMAAiM,CACjM,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE;IAC/C,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,cAAc;IACxB,eAAe,EAAE,qBAAqB;IACtC,OAAO,EAAE,aAAa;CACtB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" resolution-mode="require"/>
2
2
  import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
3
+ export declare const PopoverRoot: import("react").FC<PopoverPrimitive.PopoverProps>;
4
4
  export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
5
  export declare const PopoverArrow: import("react").FunctionComponent<Omit<PopoverPrimitive.PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
6
6
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
@@ -16,3 +16,20 @@ export declare const PopoverContent: import("react").ForwardRefExoticComponent<O
16
16
  padding?: "default" | "none" | undefined;
17
17
  radius?: "default" | "none" | "md" | undefined;
18
18
  } & import("react").RefAttributes<HTMLDivElement>>;
19
+ export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps> & {
20
+ Content: import("react").ForwardRefExoticComponent<Omit<Omit<PopoverPrimitive.PopoverContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
21
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
22
+ }, "ref"> & {
23
+ disableBlur?: boolean | undefined;
24
+ padding?: "default" | "none" | undefined;
25
+ radius?: "default" | "none" | "md" | undefined;
26
+ } & import("react").RefAttributes<HTMLDivElement>>;
27
+ Arrow: import("react").FunctionComponent<Omit<PopoverPrimitive.PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
28
+ ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
29
+ }>;
30
+ Close: import("react").FunctionComponent<Omit<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
31
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
32
+ }>;
33
+ Trigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
34
+ Anchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
35
+ };
@@ -20,7 +20,7 @@ const StyledContent = withClassName(PopoverPrimitive.Content, 'layer-components:
20
20
  const StyledArrow = withClassName(PopoverPrimitive.Arrow, 'layer-components:fill-white layer-components:stroke-black');
21
21
  const StyledClose = withClassName(PopoverPrimitive.Close, 'layer-components:[all:unset] layer-components:[font-family:inherit] layer-components:rounded-full layer-components:h-25px layer-components:w-25px layer-components:inline-flex layer-components:items-center layer-components:justify-center layer-components:color-dark-blend layer-components:absolute layer-components:top-5px layer-components:right-5px layer-components:hover:bg-light-blend layer-components:focus:shadow-focus');
22
22
  // Exports
23
- export const Popover = PopoverPrimitive.Root;
23
+ export const PopoverRoot = PopoverPrimitive.Root;
24
24
  export const PopoverTrigger = PopoverPrimitive.Trigger;
25
25
  export const PopoverArrow = StyledArrow;
26
26
  export const PopoverClose = StyledClose;
@@ -35,4 +35,11 @@ export const PopoverContent = forwardRef(function PopoverContent(_a, ref) {
35
35
  'layer-variants:rounded-md': radius === 'md',
36
36
  }, className) }, { children: children })) })));
37
37
  });
38
+ export const Popover = Object.assign(PopoverRoot, {
39
+ Content: PopoverContent,
40
+ Arrow: PopoverArrow,
41
+ Close: PopoverClose,
42
+ Trigger: PopoverTrigger,
43
+ Anchor: PopoverAnchor,
44
+ });
38
45
  //# sourceMappingURL=Popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../../src/components/popover/Popover.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAA4B,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,UAAU,MAAM,MAAM,CAAC;AAE9B,MAAM,aAAa,GAAG,aAAa,CAClC,gBAAgB,CAAC,OAAO,EACxB,2GAA2G,EAC3G,uBAAuB,EACvB,2EAA2E,EAC3E,0DAA0D,EAC1D,6DAA6D,EAC7D,sCAAsC,EACtC,0EAA0E,EAC1E,mEAAmE,EACnE,6DAA6D,CAC7D,CAAC;AAEF,MAAM,WAAW,GAAG,aAAa,CAChC,gBAAgB,CAAC,KAAK,EACtB,4CAA4C,CAC5C,CAAC;AAEF,MAAM,WAAW,GAAG,aAAa,CAChC,gBAAgB,CAAC,KAAK,EACtB,6MAA6M,CAC7M,CAAC;AAEF,UAAU;AACV,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC;AACvD,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;AACxC,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;AACxC,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,CAAC;AAErD,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAOtC,SAAS,cAAc,CACxB,EAQC,EACD,GAAG;QATH,EACC,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,MAAM,GAAG,SAAS,EAClB,OAAO,GAAG,SAAS,OAEnB,EADG,KAAK,cAPT,2EAQC,CADQ;IAIT,OAAO,CACN,KAAC,gBAAgB,CAAC,MAAM,kBAAC,UAAU,EAAE,UAAU,gBAC9C,KAAC,aAAa,oBACT,KAAK,IACT,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,CACpB;gBACC,8BAA8B,EAAE,OAAO,KAAK,MAAM;gBAClD,oBAAoB,EAAE,OAAO,KAAK,SAAS;gBAC3C,6BAA6B,EAAE,MAAM,KAAK,MAAM;gBAChD,2BAA2B,EAAE,MAAM,KAAK,SAAS;gBACjD,2BAA2B,EAAE,MAAM,KAAK,IAAI;aAC5C,EACD,SAAS,CACT,gBAEA,QAAQ,IACM,IACS,CAC1B,CAAC;AACH,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../../src/components/popover/Popover.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAA4B,UAAU,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,UAAU,MAAM,MAAM,CAAC;AAE9B,MAAM,aAAa,GAAG,aAAa,CAClC,gBAAgB,CAAC,OAAO,EACxB,2GAA2G,EAC3G,uBAAuB,EACvB,2EAA2E,EAC3E,0DAA0D,EAC1D,6DAA6D,EAC7D,sCAAsC,EACtC,0EAA0E,EAC1E,mEAAmE,EACnE,6DAA6D,CAC7D,CAAC;AAEF,MAAM,WAAW,GAAG,aAAa,CAChC,gBAAgB,CAAC,KAAK,EACtB,4CAA4C,CAC5C,CAAC;AAEF,MAAM,WAAW,GAAG,aAAa,CAChC,g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@ -18,4 +18,10 @@ export interface ScrollAreaProps extends Primitive.ScrollAreaProps {
18
18
  background?: ScrollAreaRootProps['background'];
19
19
  orientation?: 'vertical' | 'both';
20
20
  }
21
- export declare const ScrollArea: import("react").ForwardRefExoticComponent<ScrollAreaProps & import("react").RefAttributes<any>>;
21
+ export declare const ScrollArea: import("react").ForwardRefExoticComponent<ScrollAreaProps & import("react").RefAttributes<any>> & {
22
+ Root: import("react").ForwardRefExoticComponent<ScrollAreaRootProps & import("react").RefAttributes<any>>;
23
+ Viewport: import("react").FunctionComponent<Omit<Primitive.ScrollAreaViewportProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
24
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
25
+ }>;
26
+ Scrollbar: import("react").ForwardRefExoticComponent<Primitive.ScrollAreaScrollbarProps & import("react").RefAttributes<any>>;
27
+ };