@forgedevstack/bear 1.0.8 → 1.0.9

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 (193) hide show
  1. package/dist/components/ActivityItem/ActivityItem.cjs +1 -1
  2. package/dist/components/ActivityItem/ActivityItem.js +1 -0
  3. package/dist/components/Alert/Alert.const.cjs +1 -1
  4. package/dist/components/Alert/Alert.const.js +3 -2
  5. package/dist/components/AppBar/AppBar.cjs +1 -1
  6. package/dist/components/AppBar/AppBar.js +3 -2
  7. package/dist/components/Badge/Badge.cjs +1 -1
  8. package/dist/components/Badge/Badge.js +15 -14
  9. package/dist/components/BearLogo/EmberLogo.cjs +1 -1
  10. package/dist/components/BearLogo/EmberLogo.js +3 -2
  11. package/dist/components/BottomNavigation/BottomNavigation.cjs +1 -1
  12. package/dist/components/BottomNavigation/BottomNavigation.js +3 -2
  13. package/dist/components/Carousel/Carousel.cjs +1 -1
  14. package/dist/components/Carousel/Carousel.const.cjs +1 -0
  15. package/dist/components/Carousel/Carousel.const.d.ts +12 -0
  16. package/dist/components/Carousel/Carousel.const.js +9 -0
  17. package/dist/components/Carousel/Carousel.d.ts +14 -3
  18. package/dist/components/Carousel/Carousel.js +222 -75
  19. package/dist/components/Carousel/Carousel.types.d.ts +32 -2
  20. package/dist/components/Carousel/index.d.ts +1 -1
  21. package/dist/components/Chip/Chip.cjs +1 -1
  22. package/dist/components/Chip/Chip.js +3 -2
  23. package/dist/components/CodeEditor/CodeEditor.cjs +5 -0
  24. package/dist/components/CodeEditor/CodeEditor.const.cjs +1 -0
  25. package/dist/components/CodeEditor/CodeEditor.const.d.ts +21 -0
  26. package/dist/components/CodeEditor/CodeEditor.const.js +119 -0
  27. package/dist/components/CodeEditor/CodeEditor.d.ts +22 -0
  28. package/dist/components/CodeEditor/CodeEditor.js +250 -0
  29. package/dist/components/CodeEditor/CodeEditor.types.d.ts +80 -0
  30. package/dist/components/CodeEditor/CodeEditor.utils.cjs +1 -0
  31. package/dist/components/CodeEditor/CodeEditor.utils.d.ts +6 -0
  32. package/dist/components/CodeEditor/CodeEditor.utils.js +75 -0
  33. package/dist/components/CodeEditor/index.d.ts +2 -0
  34. package/dist/components/Columns/Columns.cjs +1 -1
  35. package/dist/components/Columns/Columns.js +9 -8
  36. package/dist/components/CountdownTimer/CountdownTimer.cjs +1 -0
  37. package/dist/components/CountdownTimer/CountdownTimer.const.cjs +1 -0
  38. package/dist/components/CountdownTimer/CountdownTimer.const.d.ts +27 -0
  39. package/dist/components/CountdownTimer/CountdownTimer.const.js +35 -0
  40. package/dist/components/CountdownTimer/CountdownTimer.d.ts +7 -0
  41. package/dist/components/CountdownTimer/CountdownTimer.js +115 -0
  42. package/dist/components/CountdownTimer/CountdownTimer.types.d.ts +56 -0
  43. package/dist/components/CountdownTimer/index.d.ts +2 -0
  44. package/dist/components/Cropper/Cropper.cjs +1 -0
  45. package/dist/components/Cropper/Cropper.const.cjs +1 -0
  46. package/dist/components/Cropper/Cropper.const.d.ts +31 -0
  47. package/dist/components/Cropper/Cropper.const.js +33 -0
  48. package/dist/components/Cropper/Cropper.d.ts +21 -0
  49. package/dist/components/Cropper/Cropper.js +362 -0
  50. package/dist/components/Cropper/Cropper.types.d.ts +72 -0
  51. package/dist/components/Cropper/index.d.ts +2 -0
  52. package/dist/components/DataTable/DataTable.cjs +1 -1
  53. package/dist/components/DataTable/DataTable.js +5 -4
  54. package/dist/components/Divider/Divider.cjs +1 -1
  55. package/dist/components/Divider/Divider.js +15 -14
  56. package/dist/components/Dock/Dock.cjs +1 -0
  57. package/dist/components/Dock/Dock.const.cjs +1 -0
  58. package/dist/components/Dock/Dock.const.d.ts +25 -0
  59. package/dist/components/Dock/Dock.const.js +22 -0
  60. package/dist/components/Dock/Dock.d.ts +7 -0
  61. package/dist/components/Dock/Dock.js +144 -0
  62. package/dist/components/Dock/Dock.types.d.ts +42 -0
  63. package/dist/components/Dock/index.d.ts +2 -0
  64. package/dist/components/EmptyState/EmptyState.cjs +1 -1
  65. package/dist/components/EmptyState/EmptyState.js +7 -6
  66. package/dist/components/GradientText/GradientText.cjs +1 -0
  67. package/dist/components/GradientText/GradientText.const.cjs +1 -0
  68. package/dist/components/GradientText/GradientText.const.d.ts +15 -0
  69. package/dist/components/GradientText/GradientText.const.js +36 -0
  70. package/dist/components/GradientText/GradientText.d.ts +7 -0
  71. package/dist/components/GradientText/GradientText.js +52 -0
  72. package/dist/components/GradientText/GradientText.types.d.ts +27 -0
  73. package/dist/components/GradientText/index.d.ts +2 -0
  74. package/dist/components/Highlight/Highlight.cjs +1 -1
  75. package/dist/components/Highlight/Highlight.const.cjs +1 -0
  76. package/dist/components/Highlight/Highlight.const.d.ts +8 -0
  77. package/dist/components/Highlight/Highlight.const.js +15 -0
  78. package/dist/components/Highlight/Highlight.d.ts +4 -0
  79. package/dist/components/Highlight/Highlight.js +32 -24
  80. package/dist/components/Highlight/Highlight.types.d.ts +9 -1
  81. package/dist/components/Highlight/index.d.ts +1 -1
  82. package/dist/components/Icon/Icon.cjs +1 -1
  83. package/dist/components/Icon/Icon.js +17 -16
  84. package/dist/components/Icon/index.cjs +1 -1
  85. package/dist/components/Icon/index.js +12 -11
  86. package/dist/components/Kbd/Kbd.cjs +1 -1
  87. package/dist/components/Kbd/Kbd.js +17 -16
  88. package/dist/components/Map/Map.cjs +1 -0
  89. package/dist/components/Map/Map.const.cjs +1 -0
  90. package/dist/components/Map/Map.const.d.ts +20 -0
  91. package/dist/components/Map/Map.const.js +26 -0
  92. package/dist/components/Map/Map.d.ts +20 -0
  93. package/dist/components/Map/Map.js +259 -0
  94. package/dist/components/Map/Map.types.d.ts +81 -0
  95. package/dist/components/Map/index.d.ts +2 -0
  96. package/dist/components/Marquee/Marquee.cjs +1 -0
  97. package/dist/components/Marquee/Marquee.const.cjs +1 -0
  98. package/dist/components/Marquee/Marquee.const.d.ts +11 -0
  99. package/dist/components/Marquee/Marquee.const.js +12 -0
  100. package/dist/components/Marquee/Marquee.d.ts +7 -0
  101. package/dist/components/Marquee/Marquee.js +106 -0
  102. package/dist/components/Marquee/Marquee.types.d.ts +32 -0
  103. package/dist/components/Marquee/index.d.ts +2 -0
  104. package/dist/components/Masonry/Masonry.cjs +1 -0
  105. package/dist/components/Masonry/Masonry.const.cjs +1 -0
  106. package/dist/components/Masonry/Masonry.const.d.ts +9 -0
  107. package/dist/components/Masonry/Masonry.const.js +9 -0
  108. package/dist/components/Masonry/Masonry.d.ts +7 -0
  109. package/dist/components/Masonry/Masonry.js +51 -0
  110. package/dist/components/Masonry/Masonry.types.d.ts +21 -0
  111. package/dist/components/Masonry/index.d.ts +2 -0
  112. package/dist/components/NavigableSelect/NavigableSelect.cjs +1 -0
  113. package/dist/components/NavigableSelect/NavigableSelect.const.cjs +1 -0
  114. package/dist/components/NavigableSelect/NavigableSelect.const.d.ts +23 -0
  115. package/dist/components/NavigableSelect/NavigableSelect.const.js +33 -0
  116. package/dist/components/NavigableSelect/NavigableSelect.d.ts +7 -0
  117. package/dist/components/NavigableSelect/NavigableSelect.js +361 -0
  118. package/dist/components/NavigableSelect/NavigableSelect.types.d.ts +56 -0
  119. package/dist/components/NavigableSelect/index.d.ts +2 -0
  120. package/dist/components/Progress/Progress.cjs +1 -1
  121. package/dist/components/Progress/Progress.js +3 -2
  122. package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
  123. package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.js +3 -2
  124. package/dist/components/ScrollArea/ScrollArea.cjs +1 -1
  125. package/dist/components/ScrollArea/ScrollArea.js +3 -2
  126. package/dist/components/Sidebar/Sidebar.cjs +1 -1
  127. package/dist/components/Sidebar/Sidebar.js +13 -12
  128. package/dist/components/Spinner/Spinner.cjs +1 -1
  129. package/dist/components/Spinner/Spinner.js +3 -2
  130. package/dist/components/Spotlight/Spotlight.cjs +1 -0
  131. package/dist/components/Spotlight/Spotlight.const.cjs +1 -0
  132. package/dist/components/Spotlight/Spotlight.const.d.ts +18 -0
  133. package/dist/components/Spotlight/Spotlight.const.js +9 -0
  134. package/dist/components/Spotlight/Spotlight.d.ts +7 -0
  135. package/dist/components/Spotlight/Spotlight.js +220 -0
  136. package/dist/components/Spotlight/Spotlight.types.d.ts +51 -0
  137. package/dist/components/Spotlight/index.d.ts +2 -0
  138. package/dist/components/StatCard/StatCard.cjs +1 -1
  139. package/dist/components/StatCard/StatCard.js +9 -8
  140. package/dist/components/Statistic/Statistic.cjs +1 -1
  141. package/dist/components/Statistic/Statistic.js +7 -6
  142. package/dist/components/Switch/Switch.cjs +1 -1
  143. package/dist/components/Switch/Switch.js +11 -10
  144. package/dist/components/TimePicker/components/TimePickerColumnsDropdown/TimePickerColumnsDropdown.cjs +1 -1
  145. package/dist/components/TimePicker/components/TimePickerColumnsDropdown/TimePickerColumnsDropdown.js +16 -15
  146. package/dist/components/TimePicker/helpers/ClockFaceSvg.cjs +1 -1
  147. package/dist/components/TimePicker/helpers/ClockFaceSvg.js +13 -12
  148. package/dist/components/Transition/Transition.cjs +1 -0
  149. package/dist/components/Transition/Transition.const.cjs +1 -0
  150. package/dist/components/Transition/Transition.const.d.ts +15 -0
  151. package/dist/components/Transition/Transition.const.js +73 -0
  152. package/dist/components/Transition/Transition.d.ts +37 -0
  153. package/dist/components/Transition/Transition.js +107 -0
  154. package/dist/components/Transition/Transition.types.d.ts +69 -0
  155. package/dist/components/Transition/index.d.ts +2 -0
  156. package/dist/components/Typewriter/Typewriter.cjs +1 -0
  157. package/dist/components/Typewriter/Typewriter.const.cjs +1 -0
  158. package/dist/components/Typewriter/Typewriter.const.d.ts +22 -0
  159. package/dist/components/Typewriter/Typewriter.const.js +11 -0
  160. package/dist/components/Typewriter/Typewriter.d.ts +7 -0
  161. package/dist/components/Typewriter/Typewriter.js +88 -0
  162. package/dist/components/Typewriter/Typewriter.types.d.ts +32 -0
  163. package/dist/components/Typewriter/index.d.ts +2 -0
  164. package/dist/components/Watermark/Watermark.cjs +1 -0
  165. package/dist/components/Watermark/Watermark.const.cjs +1 -0
  166. package/dist/components/Watermark/Watermark.const.d.ts +30 -0
  167. package/dist/components/Watermark/Watermark.const.js +18 -0
  168. package/dist/components/Watermark/Watermark.d.ts +7 -0
  169. package/dist/components/Watermark/Watermark.js +96 -0
  170. package/dist/components/Watermark/Watermark.types.d.ts +35 -0
  171. package/dist/components/Watermark/index.d.ts +2 -0
  172. package/dist/components/index.cjs +1 -1
  173. package/dist/components/index.d.ts +27 -1
  174. package/dist/components/index.js +231 -204
  175. package/dist/hooks/index.cjs +1 -1
  176. package/dist/hooks/index.d.ts +4 -0
  177. package/dist/hooks/index.js +24 -19
  178. package/dist/hooks/useAnimate.cjs +1 -0
  179. package/dist/hooks/useAnimate.d.ts +61 -0
  180. package/dist/hooks/useAnimate.js +125 -0
  181. package/dist/hooks/useResponsive.cjs +1 -0
  182. package/dist/hooks/useResponsive.d.ts +35 -0
  183. package/dist/hooks/useResponsive.js +74 -0
  184. package/dist/index.cjs +1 -1
  185. package/dist/index.js +324 -290
  186. package/dist/styles.css +1 -1
  187. package/dist/utils/createSlots.cjs +1 -0
  188. package/dist/utils/createSlots.d.ts +70 -0
  189. package/dist/utils/createSlots.js +65 -0
  190. package/dist/utils/index.cjs +1 -1
  191. package/dist/utils/index.d.ts +2 -0
  192. package/dist/utils/index.js +4 -2
  193. package/package.json +1 -1
@@ -0,0 +1,144 @@
1
+ import { jsx as t, jsxs as S } from "react/jsx-runtime";
2
+ import { useState as p, useRef as w, useCallback as m } from "react";
3
+ import { cn as b } from "../../utils/cn.js";
4
+ import { DEFAULT_ICON_SIZE as O, DEFAULT_MAGNIFIED_SIZE as A, DEFAULT_MAGNIFICATION_DISTANCE as C, DOCK_Z_INDEX as E, DOCK_PADDING as T, TOOLTIP_POSITION_CLASSES as L, SPRING_DURATION as B, ICON_SCALE_RATIO as M, DOCK_POSITION_CLASSES as F } from "./Dock.const.js";
5
+ const j = (l, n, r, a, s) => {
6
+ if (n < 0) return a;
7
+ const i = Math.abs(l - n);
8
+ if (i > r) return a;
9
+ const c = 1 - i / (r + 1);
10
+ return a + (s - a) * c;
11
+ }, z = (l) => {
12
+ const {
13
+ items: n,
14
+ position: r = "bottom",
15
+ iconSize: a = O,
16
+ magnifiedSize: s = A,
17
+ magnification: i = !0,
18
+ magnificationDistance: c = C,
19
+ showLabels: _ = !0,
20
+ className: h,
21
+ style: x,
22
+ testId: D
23
+ } = l, [u, g] = p(-1), [I, f] = p(""), y = w(null), N = r === "left" || r === "right", k = m((e, o) => {
24
+ g(e), f(o.label);
25
+ }, []), v = m(() => {
26
+ g(-1), f("");
27
+ }, []);
28
+ return /* @__PURE__ */ t(
29
+ "div",
30
+ {
31
+ ref: y,
32
+ className: b(
33
+ "Bear-Dock",
34
+ "bear-flex bear-items-end bear-gap-1",
35
+ "bear-rounded-2xl bear-px-2 bear-py-1.5",
36
+ "bear-bg-white/80 dark:bear-bg-gray-900/80",
37
+ "bear-backdrop-blur-xl",
38
+ "bear-border bear-border-gray-200/50 dark:bear-border-gray-700/50",
39
+ "bear-shadow-lg",
40
+ F[r],
41
+ N && "bear-items-center",
42
+ h
43
+ ),
44
+ style: {
45
+ padding: T,
46
+ zIndex: E,
47
+ ...x
48
+ },
49
+ "data-testid": D,
50
+ role: "toolbar",
51
+ "aria-label": "Dock",
52
+ onMouseLeave: v,
53
+ children: n.map((e, o) => {
54
+ const d = i ? j(o, u, c, a, s) : a;
55
+ return /* @__PURE__ */ S(
56
+ "div",
57
+ {
58
+ className: "Bear-Dock__item bear-relative bear-flex bear-flex-col bear-items-center",
59
+ children: [
60
+ _ && u === o && I && /* @__PURE__ */ t(
61
+ "div",
62
+ {
63
+ className: b(
64
+ "Bear-Dock__tooltip",
65
+ "bear-absolute bear-whitespace-nowrap",
66
+ "bear-px-2 bear-py-1 bear-rounded-lg",
67
+ "bear-bg-gray-900 dark:bear-bg-gray-100",
68
+ "bear-text-white dark:bear-text-gray-900",
69
+ "bear-text-xs bear-font-medium",
70
+ "bear-shadow-md bear-pointer-events-none",
71
+ L[r]
72
+ ),
73
+ role: "tooltip",
74
+ children: e.label
75
+ }
76
+ ),
77
+ /* @__PURE__ */ t(
78
+ "button",
79
+ {
80
+ className: b(
81
+ "Bear-Dock__button",
82
+ "bear-flex bear-items-center bear-justify-center bear-rounded-xl",
83
+ "bear-transition-all bear-origin-bottom",
84
+ "hover:bear-cursor-pointer",
85
+ e.active && "bear-ring-2 bear-ring-offset-1",
86
+ e.disabled && "bear-opacity-40 bear-cursor-not-allowed"
87
+ ),
88
+ style: {
89
+ width: d,
90
+ height: d,
91
+ transitionDuration: `${B}ms`,
92
+ transitionTimingFunction: "cubic-bezier(0.25, 0.1, 0.25, 1)"
93
+ },
94
+ onClick: e.disabled ? void 0 : e.onClick,
95
+ onMouseEnter: () => k(o, e),
96
+ disabled: e.disabled,
97
+ "aria-label": e.label,
98
+ children: /* @__PURE__ */ t(
99
+ "span",
100
+ {
101
+ className: b(
102
+ "Bear-Dock__icon",
103
+ "bear-flex bear-items-center bear-justify-center",
104
+ "bear-w-full bear-h-full bear-rounded-xl",
105
+ "bear-transition-transform",
106
+ e.active ? "bear-bg-[var(--bear-primary-500)] bear-text-white" : "bear-bg-gray-100 dark:bear-bg-gray-800"
107
+ ),
108
+ style: { fontSize: d * M },
109
+ children: e.icon
110
+ }
111
+ )
112
+ }
113
+ ),
114
+ e.badge !== void 0 && /* @__PURE__ */ t("span", { className: b(
115
+ "Bear-Dock__badge",
116
+ "bear-absolute bear--top-1 bear--right-1",
117
+ "bear-min-w-[18px] bear-h-[18px]",
118
+ "bear-flex bear-items-center bear-justify-center",
119
+ "bear-rounded-full bear-text-[10px] bear-font-bold",
120
+ "bear-text-white bear-leading-none bear-px-1",
121
+ "bear-bg-[var(--bear-danger-500,#ef4444)]"
122
+ ), children: e.badge }),
123
+ e.active && r === "bottom" && /* @__PURE__ */ t(
124
+ "div",
125
+ {
126
+ className: b(
127
+ "Bear-Dock__dot",
128
+ "bear-w-1 bear-h-1 bear-rounded-full bear-mt-0.5",
129
+ "bear-bg-[var(--bear-primary-500)]"
130
+ ),
131
+ "aria-hidden": "true"
132
+ }
133
+ )
134
+ ]
135
+ },
136
+ e.id
137
+ );
138
+ })
139
+ }
140
+ );
141
+ };
142
+ export {
143
+ z as Dock
144
+ };
@@ -0,0 +1,42 @@
1
+ import { ReactNode } from 'react';
2
+ export type DockPosition = 'bottom' | 'top' | 'left' | 'right';
3
+ export interface DockItem {
4
+ /** Unique ID */
5
+ id: string;
6
+ /** Icon content */
7
+ icon: ReactNode;
8
+ /** Tooltip label */
9
+ label: string;
10
+ /** Click handler */
11
+ onClick?: () => void;
12
+ /** Whether item is active */
13
+ active?: boolean;
14
+ /** Badge content */
15
+ badge?: string | number;
16
+ /** Whether item is disabled */
17
+ disabled?: boolean;
18
+ /** Href for link items */
19
+ href?: string;
20
+ }
21
+ export interface DockProps {
22
+ /** Dock items */
23
+ items: DockItem[];
24
+ /** Position on screen */
25
+ position?: DockPosition;
26
+ /** Base icon size in pixels */
27
+ iconSize?: number;
28
+ /** Maximum magnified size in pixels */
29
+ magnifiedSize?: number;
30
+ /** Enable magnification on hover */
31
+ magnification?: boolean;
32
+ /** Distance for magnification effect (how many neighbors) */
33
+ magnificationDistance?: number;
34
+ /** Whether to show labels on hover */
35
+ showLabels?: boolean;
36
+ /** Custom class name */
37
+ className?: string;
38
+ /** Custom style */
39
+ style?: React.CSSProperties;
40
+ /** Test ID */
41
+ testId?: string;
42
+ }
@@ -0,0 +1,2 @@
1
+ export { Dock } from './Dock';
2
+ export type { DockProps, DockItem, DockPosition } from './Dock.types';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../utils/cn.cjs"),x=({className:b})=>e.jsx("svg",{className:b,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})}),o=({icon:b,title:c,description:s,action:l,secondaryAction:n,className:d,size:a="md",variant:i="default"})=>{const r={sm:{icon:"bear-w-12 bear-h-12",title:"bear-text-lg",desc:"bear-text-sm",padding:"bear-py-6 bear-px-4"},md:{icon:"bear-w-16 bear-h-16",title:"bear-text-xl",desc:"bear-text-base",padding:"bear-py-10 bear-px-6"},lg:{icon:"bear-w-20 bear-h-20",title:"bear-text-2xl",desc:"bear-text-lg",padding:"bear-py-14 bear-px-8"}};return e.jsxs("div",{className:t.cn("bear-flex bear-flex-col bear-items-center bear-text-center",r[a].padding,i==="card"&&"bear-bg-zinc-800/50 bear-rounded-xl bear-border bear-border-zinc-700",d),children:[e.jsx("div",{className:t.cn("bear-text-zinc-600 bear-mb-4",r[a].icon),children:b||e.jsx(x,{className:"bear-w-full bear-h-full"})}),e.jsx("h3",{className:t.cn("bear-font-semibold bear-text-white bear-mb-2",r[a].title),children:c}),s&&e.jsx("p",{className:t.cn("bear-text-zinc-400 bear-max-w-md bear-mb-6",r[a].desc),children:s}),(l||n)&&e.jsxs("div",{className:"bear-flex bear-items-center bear-gap-3",children:[l,n]})]})};exports.EmptyState=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../utils/cn.cjs");require("react");const x=({className:b})=>e.jsx("svg",{className:b,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})}),o=({icon:b,title:c,description:s,action:l,secondaryAction:n,className:i,size:a="md",variant:d="default"})=>{const r={sm:{icon:"bear-w-12 bear-h-12",title:"bear-text-lg",desc:"bear-text-sm",padding:"bear-py-6 bear-px-4"},md:{icon:"bear-w-16 bear-h-16",title:"bear-text-xl",desc:"bear-text-base",padding:"bear-py-10 bear-px-6"},lg:{icon:"bear-w-20 bear-h-20",title:"bear-text-2xl",desc:"bear-text-lg",padding:"bear-py-14 bear-px-8"}};return e.jsxs("div",{className:t.cn("bear-flex bear-flex-col bear-items-center bear-text-center",r[a].padding,d==="card"&&"bear-bg-zinc-800/50 bear-rounded-xl bear-border bear-border-zinc-700",i),children:[e.jsx("div",{className:t.cn("bear-text-zinc-600 bear-mb-4",r[a].icon),children:b||e.jsx(x,{className:"bear-w-full bear-h-full"})}),e.jsx("h3",{className:t.cn("bear-font-semibold bear-text-white bear-mb-2",r[a].title),children:c}),s&&e.jsx("p",{className:t.cn("bear-text-zinc-400 bear-max-w-md bear-mb-6",r[a].desc),children:s}),(l||n)&&e.jsxs("div",{className:"bear-flex bear-items-center bear-gap-3",children:[l,n]})]})};exports.EmptyState=o;
@@ -1,12 +1,13 @@
1
1
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
2
  import { cn as t } from "../../utils/cn.js";
3
- const m = ({ className: b }) => /* @__PURE__ */ e("svg", { className: b, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4" }) }), h = ({
3
+ import "react";
4
+ const m = ({ className: b }) => /* @__PURE__ */ e("svg", { className: b, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4" }) }), f = ({
4
5
  icon: b,
5
- title: s,
6
+ title: i,
6
7
  description: l,
7
8
  action: d,
8
9
  secondaryAction: n,
9
- className: i,
10
+ className: s,
10
11
  size: a = "md",
11
12
  variant: o = "default"
12
13
  }) => {
@@ -19,10 +20,10 @@ const m = ({ className: b }) => /* @__PURE__ */ e("svg", { className: b, fill: "
19
20
  "bear-flex bear-flex-col bear-items-center bear-text-center",
20
21
  r[a].padding,
21
22
  o === "card" && "bear-bg-zinc-800/50 bear-rounded-xl bear-border bear-border-zinc-700",
22
- i
23
+ s
23
24
  ), children: [
24
25
  /* @__PURE__ */ e("div", { className: t("bear-text-zinc-600 bear-mb-4", r[a].icon), children: b || /* @__PURE__ */ e(m, { className: "bear-w-full bear-h-full" }) }),
25
- /* @__PURE__ */ e("h3", { className: t("bear-font-semibold bear-text-white bear-mb-2", r[a].title), children: s }),
26
+ /* @__PURE__ */ e("h3", { className: t("bear-font-semibold bear-text-white bear-mb-2", r[a].title), children: i }),
26
27
  l && /* @__PURE__ */ e("p", { className: t("bear-text-zinc-400 bear-max-w-md bear-mb-6", r[a].desc), children: l }),
27
28
  (d || n) && /* @__PURE__ */ c("div", { className: "bear-flex bear-items-center bear-gap-3", children: [
28
29
  d,
@@ -31,5 +32,5 @@ const m = ({ className: b }) => /* @__PURE__ */ e("svg", { className: b, fill: "
31
32
  ] });
32
33
  };
33
34
  export {
34
- h as EmptyState
35
+ f as EmptyState
35
36
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime"),s=require("react"),b=require("../../utils/cn.cjs"),e=require("./GradientText.const.cjs"),I=c=>{const{children:d,preset:i="primary",colors:t,direction:a="to-r",animate:r=!1,animationSpeed:l=e.DEFAULT_ANIMATION_SPEED,as:T="span",weight:u="bold",className:E,style:g,testId:m}=c,n=s.useMemo(()=>t&&t.length>0?t:e.GRADIENT_PRESETS[i]??e.GRADIENT_PRESETS.primary,[t,i]),A=s.useMemo(()=>{const o=e.DIRECTION_MAP[a]??"to right";if(!r)return`linear-gradient(${o}, ${n.join(", ")})`;const S=Array.from({length:e.COLOR_REPEAT_COUNT},()=>n).flat();return`linear-gradient(${o}, ${S.join(", ")})`},[n,a,r]);return _.jsx(T,{className:b.cn("Bear-GradientText","bear-inline-block",r&&"Bear-GradientText--animated",E),style:{background:A,backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontWeight:e.WEIGHT_MAP[u]??e.DEFAULT_WEIGHT,...r&&{backgroundSize:e.ANIMATED_BG_SIZE,animation:`bear-gradient-shift ${l}s ease infinite`},...g},"data-testid":m,children:d})};exports.GradientText=I;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={primary:["var(--bear-primary-400, #f472b6)","var(--bear-primary-600, #db2777)"],sunset:["#f97316","#ef4444","#ec4899"],ocean:["#06b6d4","#3b82f6","#8b5cf6"],forest:["#22c55e","#10b981","#14b8a6"],fire:["#fbbf24","#f97316","#ef4444"],purple:["#a855f7","#7c3aed","#6366f1"],neon:["#22d3ee","#a78bfa","#f472b6"],candy:["#f472b6","#fb923c","#fbbf24"],aurora:["#34d399","#22d3ee","#818cf8","#c084fc"],midnight:["#6366f1","#8b5cf6","#a78bfa"]},o={"to-r":"to right","to-l":"to left","to-t":"to top","to-b":"to bottom","to-tr":"to top right","to-tl":"to top left","to-br":"to bottom right","to-bl":"to bottom left"},b=3,e="200% 200%",f={normal:400,medium:500,semibold:600,bold:700,extrabold:800},E=700,r=3;exports.ANIMATED_BG_SIZE=e;exports.COLOR_REPEAT_COUNT=r;exports.DEFAULT_ANIMATION_SPEED=b;exports.DEFAULT_WEIGHT=E;exports.DIRECTION_MAP=o;exports.GRADIENT_PRESETS=t;exports.WEIGHT_MAP=f;
@@ -0,0 +1,15 @@
1
+ import { GradientPreset, GradientDirection } from './GradientText.types';
2
+ /** Gradient presets — primary uses CSS variables for theme integration */
3
+ export declare const GRADIENT_PRESETS: Record<GradientPreset, string[]>;
4
+ /** Direction to CSS gradient mapping */
5
+ export declare const DIRECTION_MAP: Record<GradientDirection, string>;
6
+ /** Default animation speed in seconds */
7
+ export declare const DEFAULT_ANIMATION_SPEED = 3;
8
+ /** Animated background size */
9
+ export declare const ANIMATED_BG_SIZE = "200% 200%";
10
+ /** Font weight map */
11
+ export declare const WEIGHT_MAP: Record<string, number>;
12
+ /** Default font weight */
13
+ export declare const DEFAULT_WEIGHT = 700;
14
+ /** Number of color repetitions for seamless animation */
15
+ export declare const COLOR_REPEAT_COUNT = 3;
@@ -0,0 +1,36 @@
1
+ const t = {
2
+ primary: ["var(--bear-primary-400, #f472b6)", "var(--bear-primary-600, #db2777)"],
3
+ sunset: ["#f97316", "#ef4444", "#ec4899"],
4
+ ocean: ["#06b6d4", "#3b82f6", "#8b5cf6"],
5
+ forest: ["#22c55e", "#10b981", "#14b8a6"],
6
+ fire: ["#fbbf24", "#f97316", "#ef4444"],
7
+ purple: ["#a855f7", "#7c3aed", "#6366f1"],
8
+ neon: ["#22d3ee", "#a78bfa", "#f472b6"],
9
+ candy: ["#f472b6", "#fb923c", "#fbbf24"],
10
+ aurora: ["#34d399", "#22d3ee", "#818cf8", "#c084fc"],
11
+ midnight: ["#6366f1", "#8b5cf6", "#a78bfa"]
12
+ }, o = {
13
+ "to-r": "to right",
14
+ "to-l": "to left",
15
+ "to-t": "to top",
16
+ "to-b": "to bottom",
17
+ "to-tr": "to top right",
18
+ "to-tl": "to top left",
19
+ "to-br": "to bottom right",
20
+ "to-bl": "to bottom left"
21
+ }, b = 3, f = "200% 200%", e = {
22
+ normal: 400,
23
+ medium: 500,
24
+ semibold: 600,
25
+ bold: 700,
26
+ extrabold: 800
27
+ }, r = 700, a = 3;
28
+ export {
29
+ f as ANIMATED_BG_SIZE,
30
+ a as COLOR_REPEAT_COUNT,
31
+ b as DEFAULT_ANIMATION_SPEED,
32
+ r as DEFAULT_WEIGHT,
33
+ o as DIRECTION_MAP,
34
+ t as GRADIENT_PRESETS,
35
+ e as WEIGHT_MAP
36
+ };
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { GradientTextProps } from './GradientText.types';
3
+ /**
4
+ * GradientText - Text with gradient colors.
5
+ * 10 built-in presets, custom colors, animation, and theme integration via BearProvider.
6
+ */
7
+ export declare const GradientText: FC<GradientTextProps>;
@@ -0,0 +1,52 @@
1
+ import { jsx as A } from "react/jsx-runtime";
2
+ import { useMemo as o } from "react";
3
+ import { cn as I } from "../../utils/cn.js";
4
+ import { DEFAULT_ANIMATION_SPEED as _, GRADIENT_PRESETS as s, DIRECTION_MAP as b, COLOR_REPEAT_COUNT as x, ANIMATED_BG_SIZE as C, WEIGHT_MAP as N, DEFAULT_WEIGHT as S } from "./GradientText.const.js";
5
+ const y = (l) => {
6
+ const {
7
+ children: d,
8
+ preset: i = "primary",
9
+ colors: t,
10
+ direction: n = "to-r",
11
+ animate: e = !1,
12
+ animationSpeed: c = _,
13
+ as: m = "span",
14
+ weight: T = "bold",
15
+ className: g,
16
+ style: p,
17
+ testId: E
18
+ } = l, r = o(() => t && t.length > 0 ? t : s[i] ?? s.primary, [t, i]), f = o(() => {
19
+ const a = b[n] ?? "to right";
20
+ if (!e) return `linear-gradient(${a}, ${r.join(", ")})`;
21
+ const u = Array.from({ length: x }, () => r).flat();
22
+ return `linear-gradient(${a}, ${u.join(", ")})`;
23
+ }, [r, n, e]);
24
+ return /* @__PURE__ */ A(
25
+ m,
26
+ {
27
+ className: I(
28
+ "Bear-GradientText",
29
+ "bear-inline-block",
30
+ e && "Bear-GradientText--animated",
31
+ g
32
+ ),
33
+ style: {
34
+ background: f,
35
+ backgroundClip: "text",
36
+ WebkitBackgroundClip: "text",
37
+ WebkitTextFillColor: "transparent",
38
+ fontWeight: N[T] ?? S,
39
+ ...e && {
40
+ backgroundSize: C,
41
+ animation: `bear-gradient-shift ${c}s ease infinite`
42
+ },
43
+ ...p
44
+ },
45
+ "data-testid": E,
46
+ children: d
47
+ }
48
+ );
49
+ };
50
+ export {
51
+ y as GradientText
52
+ };
@@ -0,0 +1,27 @@
1
+ import { ReactNode } from 'react';
2
+ export type GradientDirection = 'to-r' | 'to-l' | 'to-t' | 'to-b' | 'to-tr' | 'to-tl' | 'to-br' | 'to-bl';
3
+ export type GradientPreset = 'primary' | 'sunset' | 'ocean' | 'forest' | 'fire' | 'purple' | 'neon' | 'candy' | 'aurora' | 'midnight';
4
+ export interface GradientTextProps {
5
+ /** Content to render with gradient */
6
+ children: ReactNode;
7
+ /** Gradient preset name */
8
+ preset?: GradientPreset | (string & {});
9
+ /** Custom colors array (overrides preset) */
10
+ colors?: string[];
11
+ /** Gradient direction */
12
+ direction?: GradientDirection;
13
+ /** Whether to animate the gradient */
14
+ animate?: boolean;
15
+ /** Animation speed in seconds */
16
+ animationSpeed?: number;
17
+ /** HTML tag to render */
18
+ as?: 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
19
+ /** Font weight */
20
+ weight?: 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold';
21
+ /** Custom class name */
22
+ className?: string;
23
+ /** Custom style */
24
+ style?: React.CSSProperties;
25
+ /** Test ID */
26
+ testId?: string;
27
+ }
@@ -0,0 +1,2 @@
1
+ export { GradientText } from './GradientText';
2
+ export type { GradientTextProps, GradientPreset, GradientDirection } from './GradientText.types';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("react"),b={yellow:"bg-yellow-200 dark:bg-yellow-500/30",pink:"bg-pink-200 dark:bg-pink-500/30",blue:"bg-blue-200 dark:bg-blue-500/30",green:"bg-green-200 dark:bg-green-500/30",purple:"bg-purple-200 dark:bg-purple-500/30",orange:"bg-orange-200 dark:bg-orange-500/30"},e=t.forwardRef(({children:r,color:g="yellow",animated:l=!1,className:a="",...i},n)=>o.jsx("span",{ref:n,className:`bear-highlight px-1 rounded ${b[g]} ${l?"animate-pulse":""} ${a}`.trim(),...i,children:r}));e.displayName="Highlight";exports.Highlight=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),h=require("react"),u=require("../../utils/cn.cjs"),e=require("./Highlight.const.cjs"),t=h.forwardRef((r,s)=>{const{children:i,color:a=e.DEFAULT_COLOR,animated:n=!1,className:c,testId:o,...l}=r,g=e.HIGHLIGHT_COLOR_CLASSES[a]??e.HIGHLIGHT_COLOR_CLASSES[e.DEFAULT_COLOR];return d.jsx("span",{ref:s,className:u.cn("Bear-Highlight","bear-px-1 bear-rounded",g,n&&"bear-animate-pulse",c),"data-testid":o,...l,children:i})});t.displayName="Highlight";exports.Highlight=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={primary:"bear-bg-[var(--bear-primary-100,#fce7f3)] dark:bear-bg-[var(--bear-primary-900,#831843)]/30",yellow:"bear-bg-yellow-200 dark:bear-bg-yellow-500/30",pink:"bear-bg-pink-200 dark:bear-bg-pink-500/30",blue:"bear-bg-blue-200 dark:bear-bg-blue-500/30",green:"bear-bg-green-200 dark:bear-bg-green-500/30",purple:"bear-bg-purple-200 dark:bear-bg-purple-500/30",orange:"bear-bg-orange-200 dark:bear-bg-orange-500/30",red:"bear-bg-red-200 dark:bear-bg-red-500/30",cyan:"bear-bg-cyan-200 dark:bear-bg-cyan-500/30"},e="yellow";exports.DEFAULT_COLOR=e;exports.HIGHLIGHT_COLOR_CLASSES=r;
@@ -0,0 +1,8 @@
1
+ import { HighlightColor } from './Highlight.types';
2
+ /**
3
+ * Highlight color classes — uses CSS variables for theme integration.
4
+ * 'primary' maps to BearProvider's primary color.
5
+ */
6
+ export declare const HIGHLIGHT_COLOR_CLASSES: Record<HighlightColor, string>;
7
+ /** Default highlight color */
8
+ export declare const DEFAULT_COLOR: HighlightColor;
@@ -0,0 +1,15 @@
1
+ const r = {
2
+ primary: "bear-bg-[var(--bear-primary-100,#fce7f3)] dark:bear-bg-[var(--bear-primary-900,#831843)]/30",
3
+ yellow: "bear-bg-yellow-200 dark:bear-bg-yellow-500/30",
4
+ pink: "bear-bg-pink-200 dark:bear-bg-pink-500/30",
5
+ blue: "bear-bg-blue-200 dark:bear-bg-blue-500/30",
6
+ green: "bear-bg-green-200 dark:bear-bg-green-500/30",
7
+ purple: "bear-bg-purple-200 dark:bear-bg-purple-500/30",
8
+ orange: "bear-bg-orange-200 dark:bear-bg-orange-500/30",
9
+ red: "bear-bg-red-200 dark:bear-bg-red-500/30",
10
+ cyan: "bear-bg-cyan-200 dark:bear-bg-cyan-500/30"
11
+ }, e = "yellow";
12
+ export {
13
+ e as DEFAULT_COLOR,
14
+ r as HIGHLIGHT_COLOR_CLASSES
15
+ };
@@ -1,2 +1,6 @@
1
1
  import { HighlightProps } from './Highlight.types';
2
+ /**
3
+ * Highlight - Inline text highlight with theme-aware colors.
4
+ * 'primary' color uses BearProvider's primary palette.
5
+ */
2
6
  export declare const Highlight: import('react').ForwardRefExoticComponent<HighlightProps & import('react').RefAttributes<HTMLSpanElement>>;
@@ -1,28 +1,36 @@
1
- import { jsx as b } from "react/jsx-runtime";
1
+ import { jsx as d } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- const n = {
4
- yellow: "bg-yellow-200 dark:bg-yellow-500/30",
5
- pink: "bg-pink-200 dark:bg-pink-500/30",
6
- blue: "bg-blue-200 dark:bg-blue-500/30",
7
- green: "bg-green-200 dark:bg-green-500/30",
8
- purple: "bg-purple-200 dark:bg-purple-500/30",
9
- orange: "bg-orange-200 dark:bg-orange-500/30"
10
- }, i = p(({
11
- children: e,
12
- color: r = "yellow",
13
- animated: g = !1,
14
- className: l = "",
15
- ...a
16
- }, o) => /* @__PURE__ */ b(
17
- "span",
18
- {
19
- ref: o,
20
- className: `bear-highlight px-1 rounded ${n[r]} ${g ? "animate-pulse" : ""} ${l}`.trim(),
21
- ...a,
22
- children: e
3
+ import { cn as f } from "../../utils/cn.js";
4
+ import { DEFAULT_COLOR as r, HIGHLIGHT_COLOR_CLASSES as t } from "./Highlight.const.js";
5
+ const h = p(
6
+ (a, e) => {
7
+ const {
8
+ children: o,
9
+ color: s = r,
10
+ animated: i = !1,
11
+ className: m,
12
+ testId: l,
13
+ ...n
14
+ } = a, c = t[s] ?? t[r];
15
+ return /* @__PURE__ */ d(
16
+ "span",
17
+ {
18
+ ref: e,
19
+ className: f(
20
+ "Bear-Highlight",
21
+ "bear-px-1 bear-rounded",
22
+ c,
23
+ i && "bear-animate-pulse",
24
+ m
25
+ ),
26
+ "data-testid": l,
27
+ ...n,
28
+ children: o
29
+ }
30
+ );
23
31
  }
24
- ));
25
- i.displayName = "Highlight";
32
+ );
33
+ h.displayName = "Highlight";
26
34
  export {
27
- i as Highlight
35
+ h as Highlight
28
36
  };
@@ -1,6 +1,14 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
+ export type HighlightColor = 'primary' | 'yellow' | 'pink' | 'blue' | 'green' | 'purple' | 'orange' | 'red' | 'cyan';
2
3
  export interface HighlightProps extends HTMLAttributes<HTMLSpanElement> {
4
+ /** Content to highlight */
3
5
  children?: ReactNode;
4
- color?: 'yellow' | 'pink' | 'blue' | 'green' | 'purple' | 'orange';
6
+ /** Highlight color 'primary' uses theme color from BearProvider */
7
+ color?: HighlightColor;
8
+ /** Whether to animate with pulse */
5
9
  animated?: boolean;
10
+ /** Additional class name */
11
+ className?: string;
12
+ /** Test ID */
13
+ testId?: string;
6
14
  }
@@ -1,2 +1,2 @@
1
1
  export { Highlight } from './Highlight';
2
- export type { HighlightProps } from './Highlight.types';
2
+ export type { HighlightProps, HighlightColor } from './Highlight.types';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),u=require("../../utils/cn.cjs"),d={xs:12,sm:16,md:20,lg:24,xl:32},m=({size:e="md",color:t="currentColor",strokeWidth:o=2,spin:r=!1,className:s,children:i,testId:a,...c})=>{const n=typeof e=="number"?e:d[e];return l.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",className:u.cn("bear-inline-block bear-shrink-0",r&&"bear-animate-spin",s),"data-testid":a,...c,children:i})};exports.Icon=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),u=require("../../utils/cn.cjs");require("react");const d={xs:12,sm:16,md:20,lg:24,xl:32},m=({size:e="md",color:r="currentColor",strokeWidth:t=2,spin:o=!1,className:s,children:i,testId:a,...c})=>{const n=typeof e=="number"?e:d[e];return l.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",className:u.cn("bear-inline-block bear-shrink-0",o&&"bear-animate-spin",s),"data-testid":a,...c,children:i})};exports.Icon=m;
@@ -1,44 +1,45 @@
1
- import { jsx as m } from "react/jsx-runtime";
1
+ import { jsx as l } from "react/jsx-runtime";
2
2
  import { cn as c } from "../../utils/cn.js";
3
- const d = {
3
+ import "react";
4
+ const p = {
4
5
  xs: 12,
5
6
  sm: 16,
6
7
  md: 20,
7
8
  lg: 24,
8
9
  xl: 32
9
- }, b = ({
10
+ }, f = ({
10
11
  size: e = "md",
11
- color: n = "currentColor",
12
- strokeWidth: r = 2,
12
+ color: r = "currentColor",
13
+ strokeWidth: n = 2,
13
14
  spin: t = !1,
14
- className: s,
15
- children: i,
15
+ className: i,
16
+ children: s,
16
17
  testId: a,
17
- ...l
18
+ ...m
18
19
  }) => {
19
- const o = typeof e == "number" ? e : d[e];
20
- return /* @__PURE__ */ m(
20
+ const o = typeof e == "number" ? e : p[e];
21
+ return /* @__PURE__ */ l(
21
22
  "svg",
22
23
  {
23
24
  width: o,
24
25
  height: o,
25
26
  viewBox: "0 0 24 24",
26
27
  fill: "none",
27
- stroke: n,
28
- strokeWidth: r,
28
+ stroke: r,
29
+ strokeWidth: n,
29
30
  strokeLinecap: "round",
30
31
  strokeLinejoin: "round",
31
32
  className: c(
32
33
  "bear-inline-block bear-shrink-0",
33
34
  t && "bear-animate-spin",
34
- s
35
+ i
35
36
  ),
36
37
  "data-testid": a,
37
- ...l,
38
- children: i
38
+ ...m,
39
+ children: s
39
40
  }
40
41
  );
41
42
  };
42
43
  export {
43
- b as Icon
44
+ f as Icon
44
45
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const n=require("./icons/action.cjs"),o=require("./icons/navigation.cjs"),t=require("./icons/content.cjs"),r=require("./icons/communication.cjs"),c=require("./icons/status.cjs"),i=require("./icons/media.cjs"),s=require("./icons/editor.cjs"),e=require("./icons/misc.cjs"),I=c.CheckIcon,h=o.CloseIcon,C=n.EditIcon,v=o.ChevronDownIcon,u=o.ChevronRightIcon,a=o.ChevronLeftIcon,g=o.ChevronsLeftIcon,d=o.ChevronsRightIcon,q=e.XIcon,f={...n,...o,...t,...r,...c,...i,...s,...e,Action:n,Navigation:o,Content:t,Communication:r,Status:c,Media:i,Editor:s,Misc:e};exports.BearIcons=f;exports.CheckIcon=I;exports.ChevronDownIcon=v;exports.ChevronLeftIcon=a;exports.ChevronRightIcon=u;exports.ChevronsLeftIcon=g;exports.ChevronsRightIcon=d;exports.CloseIcon=h;exports.EditIcon=C;exports.XIcon=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const n=require("./icons/action.cjs"),o=require("./icons/navigation.cjs"),t=require("./icons/content.cjs"),r=require("./icons/communication.cjs"),e=require("./icons/status.cjs"),i=require("./icons/media.cjs"),s=require("./icons/editor.cjs"),c=require("./icons/misc.cjs"),I=e.CheckIcon,h=o.CloseIcon,C=n.EditIcon,v=o.ChevronDownIcon,u=o.ChevronRightIcon,a=o.ChevronLeftIcon,g=o.ChevronsLeftIcon,q=o.ChevronsRightIcon,d=c.XIcon,f={...n,...o,...t,...r,...e,...i,...s,...c,Action:n,Navigation:o,Content:t,Communication:r,Status:e,Media:i,Editor:s,Misc:c};exports.BearIcons=f;exports.CheckIcon=I;exports.ChevronDownIcon=v;exports.ChevronLeftIcon=a;exports.ChevronRightIcon=u;exports.ChevronsLeftIcon=g;exports.ChevronsRightIcon=q;exports.CloseIcon=h;exports.EditIcon=C;exports.XIcon=d;
@@ -1,4 +1,5 @@
1
1
  import "react/jsx-runtime";
2
+ import "react";
2
3
  import * as o from "./icons/action.js";
3
4
  import { EditIcon as m } from "./icons/action.js";
4
5
  import * as n from "./icons/navigation.js";
@@ -11,7 +12,7 @@ import * as s from "./icons/media.js";
11
12
  import * as i from "./icons/editor.js";
12
13
  import * as e from "./icons/misc.js";
13
14
  import { XIcon as $ } from "./icons/misc.js";
14
- const E = p, k = a, l = m, w = I, D = h, X = C, M = f, x = v, A = $, B = {
15
+ const k = p, l = a, w = m, D = I, X = h, M = C, x = f, A = v, B = $, N = {
15
16
  // Flat access to common icons (shortcuts)
16
17
  ...o,
17
18
  ...n,
@@ -32,14 +33,14 @@ const E = p, k = a, l = m, w = I, D = h, X = C, M = f, x = v, A = $, B = {
32
33
  Misc: e
33
34
  };
34
35
  export {
35
- B as BearIcons,
36
- E as CheckIcon,
37
- w as ChevronDownIcon,
38
- X as ChevronLeftIcon,
39
- D as ChevronRightIcon,
40
- M as ChevronsLeftIcon,
41
- x as ChevronsRightIcon,
42
- k as CloseIcon,
43
- l as EditIcon,
44
- A as XIcon
36
+ N as BearIcons,
37
+ k as CheckIcon,
38
+ D as ChevronDownIcon,
39
+ M as ChevronLeftIcon,
40
+ X as ChevronRightIcon,
41
+ x as ChevronsLeftIcon,
42
+ A as ChevronsRightIcon,
43
+ l as CloseIcon,
44
+ w as EditIcon,
45
+ B as XIcon
45
46
  };