@brightlocal/ui-components 0.1.3 → 0.1.4

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 (143) hide show
  1. package/dist/accordion.cjs +1 -1
  2. package/dist/accordion.js +1 -1
  3. package/dist/alert.cjs +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/blocks/data-table.cjs +1 -1
  6. package/dist/blocks/data-table.js +1 -1
  7. package/dist/blocks/sidebar.cjs +1 -1
  8. package/dist/blocks/sidebar.d.ts +37 -306
  9. package/dist/blocks/sidebar.d.ts.map +1 -1
  10. package/dist/blocks/sidebar.js +392 -489
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.js +1 -1
  13. package/dist/button.cjs +1 -1
  14. package/dist/button.js +1 -1
  15. package/dist/calendar.cjs +1 -1
  16. package/dist/calendar.d.ts +4 -1
  17. package/dist/calendar.d.ts.map +1 -1
  18. package/dist/calendar.js +33 -33
  19. package/dist/centred-layout.cjs +1 -1
  20. package/dist/centred-layout.d.ts +5 -18
  21. package/dist/centred-layout.d.ts.map +1 -1
  22. package/dist/centred-layout.js +21 -23
  23. package/dist/checkbox.cjs +1 -1
  24. package/dist/checkbox.js +1 -1
  25. package/dist/combobox.cjs +1 -1
  26. package/dist/combobox.d.ts +9 -17
  27. package/dist/combobox.d.ts.map +1 -1
  28. package/dist/combobox.js +104 -107
  29. package/dist/command.cjs +1 -1
  30. package/dist/command.js +1 -1
  31. package/dist/context-menu.cjs +1 -1
  32. package/dist/context-menu.js +1 -1
  33. package/dist/date-picker.cjs +1 -1
  34. package/dist/date-picker.js +1 -1
  35. package/dist/dialog.cjs +1 -1
  36. package/dist/dialog.js +1 -1
  37. package/dist/dropdown-menu.cjs +1 -1
  38. package/dist/dropdown-menu.js +1 -1
  39. package/dist/field.cjs +1 -1
  40. package/dist/field.d.ts +3 -0
  41. package/dist/field.d.ts.map +1 -1
  42. package/dist/field.js +5 -4
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.js +348 -363
  45. package/dist/input-otp.cjs +1 -1
  46. package/dist/input-otp.js +1 -1
  47. package/dist/input-password.cjs +1 -1
  48. package/dist/input-password.js +1 -1
  49. package/dist/link.cjs +1 -1
  50. package/dist/link.js +1 -1
  51. package/dist/logo.cjs +1 -1
  52. package/dist/logo.d.ts +6 -4
  53. package/dist/logo.d.ts.map +1 -1
  54. package/dist/logo.js +18 -21
  55. package/dist/menubar.cjs +1 -1
  56. package/dist/menubar.d.ts +3 -0
  57. package/dist/menubar.d.ts.map +1 -1
  58. package/dist/menubar.js +31 -30
  59. package/dist/navigation-menu.cjs +1 -1
  60. package/dist/navigation-menu.d.ts +6 -54
  61. package/dist/navigation-menu.d.ts.map +1 -1
  62. package/dist/navigation-menu.js +73 -84
  63. package/dist/pagination.cjs +1 -1
  64. package/dist/pagination.d.ts +8 -10
  65. package/dist/pagination.d.ts.map +1 -1
  66. package/dist/pagination.js +78 -86
  67. package/dist/radio-group.cjs +1 -1
  68. package/dist/radio-group.d.ts +6 -23
  69. package/dist/radio-group.d.ts.map +1 -1
  70. package/dist/radio-group.js +56 -66
  71. package/dist/resizable.cjs +1 -1
  72. package/dist/resizable.d.ts +19 -28
  73. package/dist/resizable.d.ts.map +1 -1
  74. package/dist/resizable.js +24 -40
  75. package/dist/select.cjs +1 -1
  76. package/dist/select.js +1 -1
  77. package/dist/separator.cjs +1 -1
  78. package/dist/separator.d.ts +4 -4
  79. package/dist/separator.d.ts.map +1 -1
  80. package/dist/separator.js +19 -21
  81. package/dist/sheet.cjs +1 -1
  82. package/dist/sheet.d.ts +5 -10
  83. package/dist/sheet.d.ts.map +1 -1
  84. package/dist/sheet.js +24 -26
  85. package/dist/sonner.cjs +1 -1
  86. package/dist/sonner.d.ts +17 -20
  87. package/dist/sonner.d.ts.map +1 -1
  88. package/dist/sonner.js +42 -45
  89. package/dist/switch.cjs +1 -1
  90. package/dist/switch.d.ts +2 -12
  91. package/dist/switch.d.ts.map +1 -1
  92. package/dist/switch.js +37 -41
  93. package/dist/table.cjs +1 -1
  94. package/dist/table.d.ts +16 -12
  95. package/dist/table.d.ts.map +1 -1
  96. package/dist/table.js +56 -58
  97. package/dist/tabs.d.ts +27 -3
  98. package/dist/tabs.d.ts.map +1 -1
  99. package/dist/toggle-group.cjs +1 -1
  100. package/dist/toggle-group.d.ts +57 -7
  101. package/dist/toggle-group.d.ts.map +1 -1
  102. package/dist/toggle-group.js +60 -67
  103. package/dist/toggle.cjs +1 -1
  104. package/dist/toggle.d.ts +12 -26
  105. package/dist/toggle.d.ts.map +1 -1
  106. package/dist/toggle.js +16 -20
  107. package/package.json +2 -2
  108. package/src/blocks/data-table.tsx +1 -1
  109. package/src/blocks/sidebar.tsx +157 -532
  110. package/src/components/accordion.tsx +1 -1
  111. package/src/components/alert.tsx +1 -1
  112. package/src/components/breadcrumb.tsx +1 -1
  113. package/src/components/button.tsx +1 -1
  114. package/src/components/calendar.tsx +6 -4
  115. package/src/components/centred-layout.tsx +11 -24
  116. package/src/components/checkbox.tsx +1 -1
  117. package/src/components/combobox.tsx +18 -26
  118. package/src/components/command.tsx +1 -1
  119. package/src/components/context-menu.tsx +1 -1
  120. package/src/components/date-picker.tsx +1 -1
  121. package/src/components/dialog.tsx +1 -1
  122. package/src/components/dropdown-menu.tsx +1 -1
  123. package/src/components/field.tsx +2 -0
  124. package/src/components/input-otp.tsx +1 -1
  125. package/src/components/input-password.tsx +1 -1
  126. package/src/components/link.tsx +1 -1
  127. package/src/components/logo.tsx +9 -7
  128. package/src/components/menubar.tsx +3 -1
  129. package/src/components/navigation-menu.tsx +37 -99
  130. package/src/components/pagination.tsx +13 -19
  131. package/src/components/radio-group.tsx +17 -38
  132. package/src/components/resizable.tsx +5 -43
  133. package/src/components/select.tsx +1 -1
  134. package/src/components/separator.tsx +5 -5
  135. package/src/components/sheet.tsx +6 -11
  136. package/src/components/sonner.tsx +24 -27
  137. package/src/components/switch.figma.tsx +7 -11
  138. package/src/components/switch.tsx +9 -19
  139. package/src/components/table.tsx +23 -18
  140. package/src/components/tabs.tsx +27 -3
  141. package/src/components/toggle-group.tsx +115 -86
  142. package/src/components/toggle.figma.tsx +13 -19
  143. package/src/components/toggle.tsx +20 -34
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOlE,QAAA,MAAM,kBAAkB;;8EAYtB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;8EAiC3B,CAAC;AA6DF;;GAEG;AACH,aAAK,iBAAiB;IACpB,gDAAgD;IAChD,OAAO,YAAY;IACnB,oDAAoD;IACpD,GAAG,QAAQ;IACX,kEAAkE;IAClE,iBAAiB,oBAAoB;IACrC,gEAAgE;IAChE,mBAAmB,sBAAsB;CAC1C;AAMD;;GAEG;AACH,UAAU,eACR,SACE,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,EAC/D,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,UAAU,mBACR,SACE,KAAK,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,EAC/D,YAAY,CAAC,OAAO,sBAAsB,CAAC;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SA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B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAUD,QAAA,MAAM,UAAU,wFA+Bf,CAAC;AAKF,QAAA,MAAM,cAAc,+FAsEnB,CAAC;AAKF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,KAAK,iBAAiB,EAAE,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,11 +1,11 @@
1
- import { jsx as r, jsxs as f } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import * as i from "@radix-ui/react-radio-group";
4
- import { Circle as y } from "lucide-react";
5
- import { cva as l } from "class-variance-authority";
6
- import { cn as g } from "@brightlocal/ui-components/lib/utils";
7
- import { Label as I } from "@brightlocal/ui-components/label";
8
- const w = l("grid", {
1
+ import { jsx as a, jsxs as f } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import * as o from "@radix-ui/react-radio-group";
4
+ import { Circle as x } from "@brightlocal/icons";
5
+ import { cva as c } from "class-variance-authority";
6
+ import { cn as p } from "@brightlocal/ui-components/lib/utils";
7
+ import { Label as v } from "@brightlocal/ui-components/label";
8
+ const k = c("grid", {
9
9
  variants: {
10
10
  variant: {
11
11
  default: ["gap-3"],
@@ -17,7 +17,7 @@ const w = l("grid", {
17
17
  defaultVariants: {
18
18
  variant: "default"
19
19
  }
20
- }), N = l(
20
+ }), y = c(
21
21
  "group relative flex cursor-pointer outline-none disabled:cursor-not-allowed disabled:opacity-50",
22
22
  {
23
23
  variants: {
@@ -50,7 +50,7 @@ const w = l("grid", {
50
50
  variant: "default"
51
51
  }
52
52
  }
53
- ), V = l(
53
+ ), w = c(
54
54
  "relative aspect-square size-4 shrink-0 rounded-full border transition-all",
55
55
  {
56
56
  variants: {
@@ -88,7 +88,7 @@ const w = l("grid", {
88
88
  variant: "default"
89
89
  }
90
90
  }
91
- ), C = l(
91
+ ), I = c(
92
92
  "text-foreground flex flex-col gap-1.5 leading-none",
93
93
  {
94
94
  variants: {
@@ -103,91 +103,81 @@ const w = l("grid", {
103
103
  variant: "default"
104
104
  }
105
105
  }
106
- );
107
- var z = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.BOX = "box", a.BOX_ICON_VERTICAL = "boxIconVertical", a.BOX_ICON_HORIZONTAL = "boxIconHorizontal", a))(z || {});
108
- const m = c.createContext({
106
+ ), m = n.createContext({
109
107
  variant: "default"
110
- /* DEFAULT */
111
- }), R = c.forwardRef(
108
+ }), V = n.forwardRef(
112
109
  ({
113
- className: a,
114
- variant: d = "default",
115
- dataHook: t,
116
- trackingEl: o,
117
- trackingLabel: s,
118
- ...n
110
+ className: l,
111
+ variant: i = "default",
112
+ dataHook: e,
113
+ trackingEl: t,
114
+ trackingLabel: d,
115
+ ...s
119
116
  }, u) => {
120
- const b = d || "default";
121
- return /* @__PURE__ */ r(m.Provider, { value: { variant: b }, children: /* @__PURE__ */ r(
122
- i.Root,
117
+ const b = i || "default";
118
+ return /* @__PURE__ */ a(m.Provider, { value: { variant: b }, children: /* @__PURE__ */ a(
119
+ o.Root,
123
120
  {
124
121
  ref: u,
125
- className: g(w({ variant: d }), a),
126
- "data-hook": t,
122
+ className: p(k({ variant: i }), l),
123
+ "data-hook": e,
127
124
  "data-slot": "radio-group",
128
- "data-tracking-el": o,
129
- "data-tracking-label": s,
130
- ...n
125
+ "data-tracking-el": t,
126
+ "data-tracking-label": d,
127
+ ...s
131
128
  }
132
129
  ) });
133
130
  }
134
131
  );
135
- R.displayName = i.Root.displayName;
136
- const H = c.forwardRef(
132
+ V.displayName = o.Root.displayName;
133
+ const N = n.forwardRef(
137
134
  ({
138
- className: a,
139
- variant: d,
140
- label: t,
141
- description: o,
142
- icon: s,
143
- children: n,
144
- dataHook: u,
145
- trackingEl: b,
146
- trackingLabel: h,
147
- ...x
148
- }, k) => {
149
- const v = c.useContext(m), e = d ?? v.variant ?? "default", p = e === "boxIconVertical" || e === "boxIconHorizontal";
135
+ className: l,
136
+ variant: i,
137
+ label: e,
138
+ description: t,
139
+ icon: d,
140
+ children: s,
141
+ ...u
142
+ }, b) => {
143
+ const h = n.useContext(m), r = i ?? h.variant ?? "default", g = r === "boxIconVertical" || r === "boxIconHorizontal";
150
144
  return /* @__PURE__ */ f(
151
- i.Item,
145
+ o.Item,
152
146
  {
153
- ref: k,
154
- className: g(N({ variant: e }), a),
155
- "data-hook": u,
147
+ ref: b,
148
+ className: p(y({ variant: r }), l),
156
149
  "data-slot": "radio-group-item",
157
- "data-tracking-el": b,
158
- "data-tracking-label": h,
159
- ...x,
150
+ ...u,
160
151
  children: [
161
- p && s && /* @__PURE__ */ r("div", { className: "relative flex shrink-0 items-center justify-center", children: s }),
162
- !p && /* @__PURE__ */ r("div", { className: V({ variant: e }), children: /* @__PURE__ */ r(
163
- i.Indicator,
152
+ g && d && /* @__PURE__ */ a("div", { className: "relative flex shrink-0 items-center justify-center", children: d }),
153
+ !g && /* @__PURE__ */ a("div", { className: w({ variant: r }), children: /* @__PURE__ */ a(
154
+ o.Indicator,
164
155
  {
165
156
  className: "absolute inset-0 flex items-center justify-center",
166
157
  "data-slot": "radio-group-indicator",
167
- children: /* @__PURE__ */ r(
168
- y,
158
+ children: /* @__PURE__ */ a(
159
+ x,
169
160
  {
170
- className: g(
161
+ className: p(
171
162
  "size-2",
172
- e === "default" ? "fill-primary text-primary" : "fill-background text-background"
163
+ r === "default" ? "fill-primary text-primary" : "fill-background text-background"
173
164
  )
174
165
  }
175
166
  )
176
167
  }
177
168
  ) }),
178
- (t || o || n) && /* @__PURE__ */ f("div", { className: C({ variant: e }), children: [
179
- t && /* @__PURE__ */ r(I, { className: "my-[1px] cursor-pointer", children: t }),
180
- o && /* @__PURE__ */ r("p", { className: "text-muted-foreground text-sm", children: o }),
181
- n
169
+ (e || t || s) && /* @__PURE__ */ f("div", { className: I({ variant: r }), children: [
170
+ e && /* @__PURE__ */ a(v, { className: "my-[1px] cursor-pointer", children: e }),
171
+ t && /* @__PURE__ */ a("p", { className: "text-muted-foreground text-sm", children: t }),
172
+ s
182
173
  ] })
183
174
  ]
184
175
  }
185
176
  );
186
177
  }
187
178
  );
188
- H.displayName = i.Item.displayName;
179
+ N.displayName = o.Item.displayName;
189
180
  export {
190
- R as RadioGroup,
191
- H as RadioGroupItem,
192
- z as RadioGroupVariant
181
+ V as RadioGroup,
182
+ N as RadioGroupItem
193
183
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),b=require("react"),g=require("lucide-react"),v=require("react-resizable-panels"),s=require("@brightlocal/ui-components/lib/utils");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const d=c(b),o=c(v),u=d.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:r,...l},n)=>i.jsx(o.PanelGroup,{ref:n,className:s.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),"data-hook":t,"data-slot":"resizable-panel-group","data-tracking-el":a,"data-tracking-label":r,...l}));u.displayName="ResizablePanelGroup";const f=d.forwardRef(({dataHook:e,trackingEl:t,trackingLabel:a,...r},l)=>i.jsx(o.Panel,{ref:l,"data-hook":e,"data-slot":"resizable-panel","data-tracking-el":t,"data-tracking-label":a,...r}));f.displayName="ResizablePanel";function p({withHandle:e,className:t,dataHook:a,trackingEl:r,trackingLabel:l,...n}){return i.jsx(o.PanelResizeHandle,{className:s.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),"data-hook":a,"data-slot":"resizable-handle","data-tracking-el":r,"data-tracking-label":l,...n,children:e&&i.jsx("div",{className:"border-border bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:i.jsx(g.GripVertical,{className:"h-2.5 w-2.5"})})})}p.displayName="ResizableHandle";exports.ResizableHandle=p;exports.ResizablePanel=f;exports.ResizablePanelGroup=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),b=require("react"),g=require("@brightlocal/icons"),v=require("react-resizable-panels"),n=require("@brightlocal/ui-components/lib/utils");function s(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const o=s(b),i=s(v),c=o.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:l,...f},p)=>r.jsx(i.PanelGroup,{ref:p,className:n.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),"data-hook":a,"data-slot":"resizable-panel-group","data-tracking-el":t,"data-tracking-label":l,...f}));c.displayName="ResizablePanelGroup";const d=o.forwardRef(({...e},a)=>r.jsx(i.Panel,{ref:a,"data-slot":"resizable-panel",...e}));d.displayName="ResizablePanel";function u({withHandle:e,className:a,...t}){return r.jsx(i.PanelResizeHandle,{className:n.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",a),"data-slot":"resizable-handle",...t,children:e&&r.jsx("div",{className:"border-border bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsx(g.GripVertical,{className:"h-2.5 w-2.5"})})})}u.displayName="ResizableHandle";exports.ResizableHandle=u;exports.ResizablePanel=d;exports.ResizablePanelGroup=c;
@@ -24,24 +24,27 @@ declare const ResizablePanelGroup: React.ForwardRefExoticComponent<Omit<Resizabl
24
24
  /**
25
25
  * Props for the ResizablePanel component.
26
26
  */
27
- interface ResizablePanelProps extends React.ComponentProps<typeof ResizablePrimitive.Panel> {
28
- /**
29
- * Data hook for automated testing
30
- */
31
- dataHook?: string;
32
- /**
33
- * Tracking element identifier for analytics
34
- */
35
- trackingEl?: string;
36
- /**
37
- * Tracking label for analytics context
38
- */
39
- trackingLabel?: string;
40
- }
27
+ type ResizablePanelProps = React.ComponentProps<typeof ResizablePrimitive.Panel>;
41
28
  /**
42
29
  * Individual resizable panel within a panel group.
43
30
  */
44
- declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<ResizablePanelProps, "ref"> & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
31
+ declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<Omit<React.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
32
+ className?: string;
33
+ collapsedSize?: number | undefined;
34
+ collapsible?: boolean | undefined;
35
+ defaultSize?: number | undefined;
36
+ id?: string;
37
+ maxSize?: number | undefined;
38
+ minSize?: number | undefined;
39
+ onCollapse?: ResizablePrimitive.PanelOnCollapse;
40
+ onExpand?: ResizablePrimitive.PanelOnExpand;
41
+ onResize?: ResizablePrimitive.PanelOnResize;
42
+ order?: number;
43
+ style?: object;
44
+ tagName?: keyof HTMLElementTagNameMap | undefined;
45
+ } & {
46
+ children?: import('react').ReactNode | undefined;
47
+ } & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>, "ref"> & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
45
48
  /**
46
49
  * Props for the ResizableHandle component.
47
50
  */
@@ -50,23 +53,11 @@ interface ResizableHandleProps extends React.ComponentProps<typeof ResizablePrim
50
53
  * Show a visible drag handle indicator
51
54
  */
52
55
  withHandle?: boolean;
53
- /**
54
- * Data hook for automated testing
55
- */
56
- dataHook?: string;
57
- /**
58
- * Tracking element identifier for analytics
59
- */
60
- trackingEl?: string;
61
- /**
62
- * Tracking label for analytics context
63
- */
64
- trackingLabel?: string;
65
56
  }
66
57
  /**
67
58
  * Draggable handle between resizable panels.
68
59
  */
69
- declare function ResizableHandle({ withHandle, className, dataHook, trackingEl, trackingLabel, ...props }: ResizableHandleProps): import("react/jsx-runtime").JSX.Element;
60
+ declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): import("react/jsx-runtime").JSX.Element;
70
61
  declare namespace ResizableHandle {
71
62
  var displayName: string;
72
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D;;GAEG;AACH,UAAU,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAC7D,OAAO,kBAAkB,CAAC,UAAU,CACrC;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,QAAA,MAAM,mBAAmB,6IAgBvB,CAAC;AAIH;;GAEG;AACH,UAAU,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CACxD,OAAO,kBAAkB,CAAC,KAAK,CAChC;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,QAAA,MAAM,cAAc,mIAYlB,CAAC;AAIH;;GAEG;AACH,UAAU,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CACzD,OAAO,kBAAkB,CAAC,iBAAiB,CAC5C;IACC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,iBAAS,eAAe,CAAC,EACvB,UAAU,EACV,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,EACb,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAoBtB;kBA3BQ,eAAe;;;AA+BxB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;AAEhE,YAAY,EACV,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,CAAC"}
1
+ {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../src/components/resizable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D;;GAEG;AACH,UAAU,wBAAyB,SAAQ,KAAK,CAAC,cAAc,CAC7D,OAAO,kBAAkB,CAAC,UAAU,CACrC;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,QAAA,MAAM,mBAAmB,6IAgBvB,CAAC;AAIH;;GAEG;AACH,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAC7C,OAAO,kBAAkB,CAAC,KAAK,CAChC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;0IAKlB,CAAC;AAIH;;GAEG;AACH,UAAU,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CACzD,OAAO,kBAAkB,CAAC,iBAAiB,CAC5C;IACC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,iBAAS,eAAe,CAAC,EACvB,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAiBtB;kBArBQ,eAAe;;;AAyBxB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;AAEhE,YAAY,EACV,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,CAAC"}
package/dist/resizable.js CHANGED
@@ -1,57 +1,41 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import * as d from "react";
3
- import { GripVertical as c } from "lucide-react";
4
- import * as n from "react-resizable-panels";
5
- import { cn as s } from "@brightlocal/ui-components/lib/utils";
6
- const f = d.forwardRef(({ className: a, dataHook: e, trackingEl: r, trackingLabel: t, ...l }, o) => /* @__PURE__ */ i(
7
- n.PanelGroup,
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { GripVertical as c } from "@brightlocal/icons";
4
+ import * as l from "react-resizable-panels";
5
+ import { cn as o } from "@brightlocal/ui-components/lib/utils";
6
+ const f = i.forwardRef(({ className: e, dataHook: a, trackingEl: t, trackingLabel: n, ...s }, d) => /* @__PURE__ */ r(
7
+ l.PanelGroup,
8
8
  {
9
- ref: o,
10
- className: s(
9
+ ref: d,
10
+ className: o(
11
11
  "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
12
- a
12
+ e
13
13
  ),
14
- "data-hook": e,
14
+ "data-hook": a,
15
15
  "data-slot": "resizable-panel-group",
16
- "data-tracking-el": r,
17
- "data-tracking-label": t,
18
- ...l
16
+ "data-tracking-el": t,
17
+ "data-tracking-label": n,
18
+ ...s
19
19
  }
20
20
  ));
21
21
  f.displayName = "ResizablePanelGroup";
22
- const p = d.forwardRef(({ dataHook: a, trackingEl: e, trackingLabel: r, ...t }, l) => /* @__PURE__ */ i(
23
- n.Panel,
24
- {
25
- ref: l,
26
- "data-hook": a,
27
- "data-slot": "resizable-panel",
28
- "data-tracking-el": e,
29
- "data-tracking-label": r,
30
- ...t
31
- }
32
- ));
22
+ const p = i.forwardRef(({ ...e }, a) => /* @__PURE__ */ r(l.Panel, { ref: a, "data-slot": "resizable-panel", ...e }));
33
23
  p.displayName = "ResizablePanel";
34
24
  function u({
35
- withHandle: a,
36
- className: e,
37
- dataHook: r,
38
- trackingEl: t,
39
- trackingLabel: l,
40
- ...o
25
+ withHandle: e,
26
+ className: a,
27
+ ...t
41
28
  }) {
42
- return /* @__PURE__ */ i(
43
- n.PanelResizeHandle,
29
+ return /* @__PURE__ */ r(
30
+ l.PanelResizeHandle,
44
31
  {
45
- className: s(
32
+ className: o(
46
33
  "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
47
- e
34
+ a
48
35
  ),
49
- "data-hook": r,
50
36
  "data-slot": "resizable-handle",
51
- "data-tracking-el": t,
52
- "data-tracking-label": l,
53
- ...o,
54
- children: a && /* @__PURE__ */ i("div", { className: "border-border bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ i(c, { className: "h-2.5 w-2.5" }) })
37
+ ...t,
38
+ children: e && /* @__PURE__ */ r("div", { className: "border-border bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ r(c, { className: "h-2.5 w-2.5" }) })
55
39
  }
56
40
  );
57
41
  }
package/dist/select.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),D=require("react"),P=require("@radix-ui/react-select"),p=require("lucide-react"),V=require("class-variance-authority"),s=require("@brightlocal/ui-components/lib/utils"),R=require("@brightlocal/ui-components/label");function j(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,l.get?l:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const u=j(D),a=j(P);function y({label:e,description:r,optional:o,placeholder:l,children:n,"aria-label":c,...m}){const d=u.useId(),f=`${d}-label`,k=`${d}-description`,g=r,C=e||g,S={placeholder:l,"aria-required":o?void 0:!0,"aria-label":c},T={...S,id:d},h=(i,B)=>u.isValidElement(i)&&i.type===b?u.cloneElement(i,B):i;return C?t.jsxs("div",{className:"flex flex-col gap-2",children:[e&&t.jsx(R.Label,{htmlFor:d,id:f,optional:o,children:e}),t.jsx(a.Root,{"data-slot":"select",...m,children:u.Children.map(n,i=>h(i,T))}),g&&t.jsx("p",{className:"text-muted-foreground text-sm",id:k,children:g})]}):t.jsx(a.Root,{"data-slot":"select",...m,children:u.Children.map(n,i=>h(i,S))})}y.displayName="Select";function N(e){return t.jsx(a.Group,{"data-slot":"select-group",...e})}N.displayName="SelectGroup";function w(e){return t.jsx(a.Value,{"data-slot":"select-value",...e})}w.displayName="SelectValue";const L=V.cva(["relative flex w-full h-9 items-center justify-between gap-2","px-3 py-2","border border-border rounded-sm outline-none transition-all","bg-neutral-50 border-neutral-300","dark:bg-white/5 dark:border-white/15","text-sm font-normal font-sans text-foreground","[&>span]:block [&>span]:truncate","data-[placeholder]:text-muted-foreground","focus-visible:outline-none focus-visible:border-ring dark:focus-visible:border-neutral-500 focus-visible:bg-background","focus-visible:shadow-default","data-[state=open]:border-ring","disabled:cursor-not-allowed disabled:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"]);function b({className:e,children:r,placeholder:o,dataHook:l,...n}){const c=n["aria-invalid"]===!0||n["aria-invalid"]==="true",m=n["aria-required"]===!0||n["aria-required"]==="true",d=n["aria-label"]||o||"Select an option",f=c?"border-destructive dark:border-destructive focus-visible:border-destructive focus-visible:shadow-destructive":"";return t.jsxs(a.Trigger,{...n,"aria-invalid":c?"true":void 0,"aria-label":d,"aria-required":m?"true":void 0,className:s.cn(L(),f,e),"data-hook":l,"data-slot":"select-trigger",children:[r,t.jsx(a.Icon,{asChild:!0,children:t.jsx(p.ChevronDownIcon,{className:"text-muted-foreground size-4"})})]})}b.displayName="SelectTrigger";function I({className:e,children:r,position:o="popper",...l}){const n=s.cn("relative z-50 overflow-hidden","min-w-[8rem]","rounded-md border border-border bg-popover shadow-md","text-popover-foreground","max-h-[var(--radix-select-content-available-height)]","origin-[var(--radix-select-content-transform-origin)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"),c=o==="popper"&&s.cn("data-[side=bottom]:translate-y-1","data-[side=left]:-translate-x-1","data-[side=right]:translate-x-1","data-[side=top]:-translate-y-1");return t.jsx(a.Portal,{children:t.jsxs(a.Content,{className:s.cn(n,c,e),"data-slot":"select-content",position:o,...l,children:[t.jsx(x,{}),t.jsx(a.Viewport,{className:s.cn("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),t.jsx(v,{})]})})}I.displayName="SelectContent";function z({className:e,...r}){return t.jsx(a.Label,{className:s.cn("text-muted-foreground px-2 py-1.5 text-xs font-medium",e),"data-slot":"select-label",...r})}z.displayName="SelectLabel";function _({className:e,children:r,...o}){const l=s.cn("relative flex w-full cursor-default select-none items-center gap-2","rounded py-1.5 pl-2 pr-8","text-sm font-normal leading-5 text-popover-foreground","focus:bg-accent focus:text-accent-foreground","hover:bg-accent/50 hover:text-accent-foreground","outline-none focus:outline-none","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-foreground");return t.jsxs(a.Item,{className:s.cn(l,e),"data-slot":"select-item",...o,children:[t.jsx("span",{className:"absolute right-2 flex size-4 items-center justify-center",children:t.jsx(a.ItemIndicator,{children:t.jsx(p.CheckIcon,{className:"size-4"})})}),t.jsx(a.ItemText,{children:r})]})}_.displayName="SelectItem";function q({className:e,...r}){return t.jsx(a.Separator,{className:s.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),"data-slot":"select-separator",...r})}q.displayName="SelectSeparator";function x({className:e,...r}){return t.jsx(a.ScrollUpButton,{className:s.cn("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...r,children:t.jsx(p.ChevronUpIcon,{className:"size-4"})})}x.displayName="SelectScrollUpButton";function v({className:e,...r}){return t.jsx(a.ScrollDownButton,{className:s.cn("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...r,children:t.jsx(p.ChevronDownIcon,{className:"size-4"})})}v.displayName="SelectScrollDownButton";exports.Select=y;exports.SelectContent=I;exports.SelectGroup=N;exports.SelectItem=_;exports.SelectLabel=z;exports.SelectScrollDownButton=v;exports.SelectScrollUpButton=x;exports.SelectSeparator=q;exports.SelectTrigger=b;exports.SelectValue=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),D=require("react"),P=require("@radix-ui/react-select"),p=require("@brightlocal/icons"),V=require("class-variance-authority"),s=require("@brightlocal/ui-components/lib/utils"),L=require("@brightlocal/ui-components/label");function j(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,l.get?l:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const u=j(D),a=j(P);function y({label:e,description:r,optional:o,placeholder:l,children:n,"aria-label":c,...m}){const d=u.useId(),f=`${d}-label`,k=`${d}-description`,g=r,C=e||g,S={placeholder:l,"aria-required":o?void 0:!0,"aria-label":c},T={...S,id:d},h=(i,B)=>u.isValidElement(i)&&i.type===b?u.cloneElement(i,B):i;return C?t.jsxs("div",{className:"flex flex-col gap-2",children:[e&&t.jsx(L.Label,{htmlFor:d,id:f,optional:o,children:e}),t.jsx(a.Root,{"data-slot":"select",...m,children:u.Children.map(n,i=>h(i,T))}),g&&t.jsx("p",{className:"text-muted-foreground text-sm",id:k,children:g})]}):t.jsx(a.Root,{"data-slot":"select",...m,children:u.Children.map(n,i=>h(i,S))})}y.displayName="Select";function N(e){return t.jsx(a.Group,{"data-slot":"select-group",...e})}N.displayName="SelectGroup";function w(e){return t.jsx(a.Value,{"data-slot":"select-value",...e})}w.displayName="SelectValue";const O=V.cva(["relative flex w-full h-9 items-center justify-between gap-2","px-3 py-2","border border-border rounded-sm outline-none transition-all","bg-neutral-50 border-neutral-300","dark:bg-white/5 dark:border-white/15","text-sm font-normal font-sans text-foreground","[&>span]:block [&>span]:truncate","data-[placeholder]:text-muted-foreground","focus-visible:outline-none focus-visible:border-ring dark:focus-visible:border-neutral-500 focus-visible:bg-background","focus-visible:shadow-default","data-[state=open]:border-ring","disabled:cursor-not-allowed disabled:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"]);function b({className:e,children:r,placeholder:o,dataHook:l,...n}){const c=n["aria-invalid"]===!0||n["aria-invalid"]==="true",m=n["aria-required"]===!0||n["aria-required"]==="true",d=n["aria-label"]||o||"Select an option",f=c?"border-destructive dark:border-destructive focus-visible:border-destructive focus-visible:shadow-destructive":"";return t.jsxs(a.Trigger,{...n,"aria-invalid":c?"true":void 0,"aria-label":d,"aria-required":m?"true":void 0,className:s.cn(O(),f,e),"data-hook":l,"data-slot":"select-trigger",children:[r,t.jsx(a.Icon,{asChild:!0,children:t.jsx(p.ChevronDownIcon,{className:"text-muted-foreground size-4"})})]})}b.displayName="SelectTrigger";function I({className:e,children:r,position:o="popper",...l}){const n=s.cn("relative z-50 overflow-hidden","min-w-[8rem]","rounded-md border border-border bg-popover shadow-md","text-popover-foreground","max-h-[var(--radix-select-content-available-height)]","origin-[var(--radix-select-content-transform-origin)]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"),c=o==="popper"&&s.cn("data-[side=bottom]:translate-y-1","data-[side=left]:-translate-x-1","data-[side=right]:translate-x-1","data-[side=top]:-translate-y-1");return t.jsx(a.Portal,{children:t.jsxs(a.Content,{className:s.cn(n,c,e),"data-slot":"select-content",position:o,...l,children:[t.jsx(x,{}),t.jsx(a.Viewport,{className:s.cn("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:r}),t.jsx(v,{})]})})}I.displayName="SelectContent";function z({className:e,...r}){return t.jsx(a.Label,{className:s.cn("text-muted-foreground px-2 py-1.5 text-xs font-medium",e),"data-slot":"select-label",...r})}z.displayName="SelectLabel";function _({className:e,children:r,...o}){const l=s.cn("relative flex w-full cursor-default select-none items-center gap-2","rounded py-1.5 pl-2 pr-8","text-sm font-normal leading-5 text-popover-foreground","focus:bg-accent focus:text-accent-foreground","hover:bg-accent/50 hover:text-accent-foreground","outline-none focus:outline-none","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-foreground");return t.jsxs(a.Item,{className:s.cn(l,e),"data-slot":"select-item",...o,children:[t.jsx("span",{className:"absolute right-2 flex size-4 items-center justify-center",children:t.jsx(a.ItemIndicator,{children:t.jsx(p.CheckIcon,{className:"size-4"})})}),t.jsx(a.ItemText,{children:r})]})}_.displayName="SelectItem";function q({className:e,...r}){return t.jsx(a.Separator,{className:s.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),"data-slot":"select-separator",...r})}q.displayName="SelectSeparator";function x({className:e,...r}){return t.jsx(a.ScrollUpButton,{className:s.cn("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...r,children:t.jsx(p.ChevronUpIcon,{className:"size-4"})})}x.displayName="SelectScrollUpButton";function v({className:e,...r}){return t.jsx(a.ScrollDownButton,{className:s.cn("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...r,children:t.jsx(p.ChevronDownIcon,{className:"size-4"})})}v.displayName="SelectScrollDownButton";exports.Select=y;exports.SelectContent=I;exports.SelectGroup=N;exports.SelectItem=_;exports.SelectLabel=z;exports.SelectScrollDownButton=v;exports.SelectScrollUpButton=x;exports.SelectSeparator=q;exports.SelectTrigger=b;exports.SelectValue=w;
package/dist/select.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
2
  import * as u from "react";
3
3
  import * as r from "@radix-ui/react-select";
4
- import { CheckIcon as k, ChevronDownIcon as h, ChevronUpIcon as C } from "lucide-react";
4
+ import { CheckIcon as k, ChevronDownIcon as h, ChevronUpIcon as C } from "@brightlocal/icons";
5
5
  import { cva as T } from "class-variance-authority";
6
6
  import { cn as n } from "@brightlocal/ui-components/lib/utils";
7
7
  import { Label as _ } from "@brightlocal/ui-components/label";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),x=require("react"),h=require("@radix-ui/react-separator"),l=require("@brightlocal/ui-components/lib/utils");function c(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return a.default=t,Object.freeze(a)}const d=c(x),g=c(h);var u=(t=>(t.HORIZONTAL="horizontal",t.VERTICAL="vertical",t))(u||{});const n=d.forwardRef(({className:t,orientation:a="horizontal",decorative:e=!0,dataHook:r,trackingEl:i,trackingLabel:s,...f},m)=>o.jsx(g.Root,{ref:m,className:l.cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),"data-hook":r,"data-slot":"separator","data-tracking-el":i,"data-tracking-label":s,decorative:e,orientation:a,...f}));n.displayName="Separator";const p=d.forwardRef(({className:t,children:a,dataHook:e,trackingEl:r,trackingLabel:i},s)=>o.jsxs("div",{ref:s,className:l.cn("flex items-center gap-2",t),"data-hook":e,"data-slot":"separator-with-text","data-tracking-el":r,"data-tracking-label":i,children:[o.jsx(n,{className:"flex-1"}),o.jsx("span",{className:"text-sidebar-foreground shrink-0 text-sm leading-none font-medium whitespace-nowrap",children:a}),o.jsx(n,{className:"flex-1"})]}));p.displayName="SeparatorWithText";exports.Separator=n;exports.SeparatorOrientation=u;exports.SeparatorWithText=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),m=require("react"),x=require("@radix-ui/react-separator"),l=require("@brightlocal/ui-components/lib/utils");function c(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return a.default=t,Object.freeze(a)}const d=c(m),g=c(x),n=d.forwardRef(({className:t,orientation:a="horizontal",decorative:e=!0,dataHook:r,trackingEl:i,trackingLabel:s,...u},f)=>o.jsx(g.Root,{ref:f,className:l.cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),"data-hook":r,"data-slot":"separator","data-tracking-el":i,"data-tracking-label":s,decorative:e,orientation:a,...u}));n.displayName="Separator";const p=d.forwardRef(({className:t,children:a,dataHook:e,trackingEl:r,trackingLabel:i},s)=>o.jsxs("div",{ref:s,className:l.cn("flex items-center gap-2",t),"data-hook":e,"data-slot":"separator-with-text","data-tracking-el":r,"data-tracking-label":i,children:[o.jsx(n,{className:"flex-1"}),o.jsx("span",{className:"text-sidebar-foreground shrink-0 text-sm leading-none font-medium whitespace-nowrap",children:a}),o.jsx(n,{className:"flex-1"})]}));p.displayName="SeparatorWithText";exports.Separator=n;exports.SeparatorWithText=p;
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
2
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
- export declare enum SeparatorOrientation {
4
- HORIZONTAL = "horizontal",
5
- VERTICAL = "vertical"
6
- }
3
+ /**
4
+ * Orientation variants for Separator
5
+ */
6
+ export type SeparatorOrientation = "horizontal" | "vertical";
7
7
  /**
8
8
  * Props for the Separator component.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../src/components/separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,oBAAY,oBAAoB;IAC9B,UAAU,eAAe;IACzB,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,UAAU,cAAe,SAAQ,KAAK,CAAC,cAAc,CACnD,OAAO,kBAAkB,CAAC,IAAI,CAC/B;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,QAAA,MAAM,SAA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pB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,+FAoBrB,CAAC;AAIH,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;AAExC,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,CAAC"}
package/dist/separator.js CHANGED
@@ -1,55 +1,53 @@
1
- import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import * as s from "react";
1
+ import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
+ import * as l from "react";
3
3
  import * as f from "@radix-ui/react-separator";
4
4
  import { cn as d } from "@brightlocal/ui-components/lib/utils";
5
- var h = /* @__PURE__ */ ((a) => (a.HORIZONTAL = "horizontal", a.VERTICAL = "vertical", a))(h || {});
6
- const n = s.forwardRef(
5
+ const s = l.forwardRef(
7
6
  ({
8
- className: a,
7
+ className: t,
9
8
  orientation: r = "horizontal",
10
9
  decorative: e = !0,
11
10
  dataHook: o,
12
11
  trackingEl: i,
13
- trackingLabel: l,
12
+ trackingLabel: n,
14
13
  ...m
15
- }, c) => /* @__PURE__ */ t(
14
+ }, p) => /* @__PURE__ */ a(
16
15
  f.Root,
17
16
  {
18
- ref: c,
17
+ ref: p,
19
18
  className: d(
20
19
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
21
- a
20
+ t
22
21
  ),
23
22
  "data-hook": o,
24
23
  "data-slot": "separator",
25
24
  "data-tracking-el": i,
26
- "data-tracking-label": l,
25
+ "data-tracking-label": n,
27
26
  decorative: e,
28
27
  orientation: r,
29
28
  ...m
30
29
  }
31
30
  )
32
31
  );
33
- n.displayName = "Separator";
34
- const x = s.forwardRef(({ className: a, children: r, dataHook: e, trackingEl: o, trackingLabel: i }, l) => /* @__PURE__ */ p(
32
+ s.displayName = "Separator";
33
+ const h = l.forwardRef(({ className: t, children: r, dataHook: e, trackingEl: o, trackingLabel: i }, n) => /* @__PURE__ */ c(
35
34
  "div",
36
35
  {
37
- ref: l,
38
- className: d("flex items-center gap-2", a),
36
+ ref: n,
37
+ className: d("flex items-center gap-2", t),
39
38
  "data-hook": e,
40
39
  "data-slot": "separator-with-text",
41
40
  "data-tracking-el": o,
42
41
  "data-tracking-label": i,
43
42
  children: [
44
- /* @__PURE__ */ t(n, { className: "flex-1" }),
45
- /* @__PURE__ */ t("span", { className: "text-sidebar-foreground shrink-0 text-sm leading-none font-medium whitespace-nowrap", children: r }),
46
- /* @__PURE__ */ t(n, { className: "flex-1" })
43
+ /* @__PURE__ */ a(s, { className: "flex-1" }),
44
+ /* @__PURE__ */ a("span", { className: "text-sidebar-foreground shrink-0 text-sm leading-none font-medium whitespace-nowrap", children: r }),
45
+ /* @__PURE__ */ a(s, { className: "flex-1" })
47
46
  ]
48
47
  }
49
48
  ));
50
- x.displayName = "SeparatorWithText";
49
+ h.displayName = "SeparatorWithText";
51
50
  export {
52
- n as Separator,
53
- h as SeparatorOrientation,
54
- x as SeparatorWithText
51
+ s as Separator,
52
+ h as SeparatorWithText
55
53
  };
package/dist/sheet.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),w=require("react"),T=require("@radix-ui/react-dialog"),R=require("class-variance-authority"),O=require("lucide-react"),n=require("@brightlocal/ui-components/lib/utils");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=c(w),s=c(T);var f=(e=>(e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e))(f||{});const C=R.cva(["bg-background","data-[state=open]:animate-in","data-[state=closed]:animate-out","fixed","z-50","flex","flex-col","gap-4","p-6","shadow-lg","transition","ease-in-out","data-[state=closed]:duration-300","data-[state=open]:duration-500"],{variants:{side:{top:["data-[state=closed]:slide-out-to-top","data-[state=open]:slide-in-from-top","inset-x-0","top-0","h-auto","border-b"],right:["data-[state=closed]:slide-out-to-right","data-[state=open]:slide-in-from-right","inset-y-0","right-0","h-full","w-3/4","border-l","sm:max-w-sm"],bottom:["data-[state=closed]:slide-out-to-bottom","data-[state=open]:slide-in-from-bottom","inset-x-0","bottom-0","h-auto","border-t"],left:["data-[state=closed]:slide-out-to-left","data-[state=open]:slide-in-from-left","inset-y-0","left-0","h-full","w-3/4","border-r","sm:max-w-sm"]}},defaultVariants:{side:"right"}});function h({...e}){return o.jsx(s.Root,{"data-slot":"sheet",modal:!0,...e})}h.displayName="Sheet";const u=r.forwardRef(({dataHook:e,...t},a)=>o.jsx(s.Trigger,{ref:a,"data-hook":e,"data-slot":"sheet-trigger",...t}));u.displayName="SheetTrigger";const m=r.forwardRef(({...e},t)=>o.jsx(s.Close,{ref:t,"data-slot":"sheet-close",...e}));m.displayName="SheetClose";function l({...e}){return o.jsx(s.Portal,{"data-slot":"sheet-portal",...e})}l.displayName="SheetPortal";const d=r.forwardRef(({className:e,...t},a)=>o.jsx(s.Overlay,{ref:a,className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),"data-slot":"sheet-overlay",...t}));d.displayName="SheetOverlay";const p=r.forwardRef(({className:e,children:t,side:a,dataHook:i,trackingEl:y,trackingLabel:j,...v},N)=>o.jsxs(l,{children:[o.jsx(d,{}),o.jsxs(s.Content,{ref:N,className:n.cn(C({side:a}),e),"data-hook":i,"data-slot":"sheet-content","data-tracking-el":y,"data-tracking-label":j,...v,children:[t,o.jsxs(s.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o.jsx(O.XIcon,{}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));p.displayName="SheetContent";const g=r.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:n.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"sheet-header",...t}));g.displayName="SheetHeader";const x=r.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:n.cn("mt-auto flex flex-col gap-2 sm:flex-row sm:justify-end",e),"data-slot":"sheet-footer",...t}));x.displayName="SheetFooter";const S=r.forwardRef(({className:e,...t},a)=>o.jsx(s.Title,{ref:a,className:n.cn("text-foreground text-lg font-semibold",e),"data-slot":"sheet-title",...t}));S.displayName="SheetTitle";const b=r.forwardRef(({className:e,...t},a)=>o.jsx(s.Description,{ref:a,className:n.cn("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t}));b.displayName="SheetDescription";exports.Sheet=h;exports.SheetClose=m;exports.SheetContent=p;exports.SheetDescription=b;exports.SheetFooter=x;exports.SheetHeader=g;exports.SheetOverlay=d;exports.SheetPortal=l;exports.SheetSide=f;exports.SheetTitle=S;exports.SheetTrigger=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("react"),w=require("@radix-ui/react-dialog"),R=require("class-variance-authority"),C=require("@brightlocal/icons"),n=require("@brightlocal/ui-components/lib/utils");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=c(N),s=c(w),O=R.cva(["bg-background","data-[state=open]:animate-in","data-[state=closed]:animate-out","fixed","z-50","flex","flex-col","gap-4","p-6","shadow-lg","transition","ease-in-out","data-[state=closed]:duration-300","data-[state=open]:duration-500"],{variants:{side:{top:["data-[state=closed]:slide-out-to-top","data-[state=open]:slide-in-from-top","inset-x-0","top-0","h-auto","border-b"],right:["data-[state=closed]:slide-out-to-right","data-[state=open]:slide-in-from-right","inset-y-0","right-0","h-full","w-3/4","border-l","sm:max-w-sm"],bottom:["data-[state=closed]:slide-out-to-bottom","data-[state=open]:slide-in-from-bottom","inset-x-0","bottom-0","h-auto","border-t"],left:["data-[state=closed]:slide-out-to-left","data-[state=open]:slide-in-from-left","inset-y-0","left-0","h-full","w-3/4","border-r","sm:max-w-sm"]}},defaultVariants:{side:"right"}});function f({...e}){return o.jsx(s.Root,{"data-slot":"sheet",modal:!0,...e})}f.displayName="Sheet";const h=r.forwardRef(({dataHook:e,...t},a)=>o.jsx(s.Trigger,{ref:a,"data-hook":e,"data-slot":"sheet-trigger",...t}));h.displayName="SheetTrigger";const u=r.forwardRef(({...e},t)=>o.jsx(s.Close,{ref:t,"data-slot":"sheet-close",...e}));u.displayName="SheetClose";function l({...e}){return o.jsx(s.Portal,{"data-slot":"sheet-portal",...e})}l.displayName="SheetPortal";const d=r.forwardRef(({className:e,...t},a)=>o.jsx(s.Overlay,{ref:a,className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),"data-slot":"sheet-overlay",...t}));d.displayName="SheetOverlay";const m=r.forwardRef(({className:e,children:t,side:a,dataHook:i,trackingEl:y,trackingLabel:b,...j},v)=>o.jsxs(l,{children:[o.jsx(d,{}),o.jsxs(s.Content,{ref:v,className:n.cn(O({side:a}),e),"data-hook":i,"data-slot":"sheet-content","data-tracking-el":y,"data-tracking-label":b,...j,children:[t,o.jsxs(s.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o.jsx(C.XIcon,{}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));m.displayName="SheetContent";const p=r.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:n.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"sheet-header",...t}));p.displayName="SheetHeader";const g=r.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:n.cn("mt-auto flex flex-col gap-2 sm:flex-row sm:justify-end",e),"data-slot":"sheet-footer",...t}));g.displayName="SheetFooter";const x=r.forwardRef(({className:e,...t},a)=>o.jsx(s.Title,{ref:a,className:n.cn("text-foreground text-lg font-semibold",e),"data-slot":"sheet-title",...t}));x.displayName="SheetTitle";const S=r.forwardRef(({className:e,...t},a)=>o.jsx(s.Description,{ref:a,className:n.cn("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t}));S.displayName="SheetDescription";exports.Sheet=f;exports.SheetClose=u;exports.SheetContent=m;exports.SheetDescription=S;exports.SheetFooter=g;exports.SheetHeader=p;exports.SheetOverlay=d;exports.SheetPortal=l;exports.SheetTitle=x;exports.SheetTrigger=h;
package/dist/sheet.d.ts CHANGED
@@ -3,17 +3,12 @@ import * as React from "react";
3
3
  import * as SheetPrimitive from "@radix-ui/react-dialog";
4
4
  /**
5
5
  * Available sheet side variants
6
+ * - top: Sheet slides in from the top
7
+ * - right: Sheet slides in from the right (default)
8
+ * - bottom: Sheet slides in from the bottom
9
+ * - left: Sheet slides in from the left
6
10
  */
7
- export declare enum SheetSide {
8
- /** Sheet slides in from the top */
9
- TOP = "top",
10
- /** Sheet slides in from the right (default) */
11
- RIGHT = "right",
12
- /** Sheet slides in from the bottom */
13
- BOTTOM = "bottom",
14
- /** Sheet slides in from the left */
15
- LEFT = "left"
16
- }
11
+ export type SheetSide = "top" | "right" | "bottom" | "left";
17
12
  declare const sheetContentVariants: (props?: ({
18
13
  side?: "left" | "right" | "top" | "bottom" | null | undefined;
19
14
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE;;GAEG;AACH,oBAAY,SAAS;IACnB,mCAAmC;IACnC,GAAG,QAAQ;IACX,+CAA+C;IAC/C,KAAK,UAAU;IACf,sCAAsC;IACtC,MAAM,WAAW;IACjB,oCAAoC;IACpC,IAAI,SAAS;CACd;AAED,QAAA,MAAM,oBAAoB;;8EA8DzB,CAAC;AAEF;;;GAGG;AACH,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAE5E;kBAFQ,KAAK;;;AAKd;;GAEG;AACH,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CACtD,OAAO,cAAc,CAAC,OAAO,CAC9B;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,0GAUhB,CAAC;AAGH;;;GAGG;AACH,QAAA,MAAM,UAAU,iKAKd,CAAC;AAGH;;;GAGG;AACH,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,MAAM,CAAC,2CAEpD;kBAJQ,WAAW;;;AAOpB;;;GAGG;AACH,QAAA,MAAM,YAAY,6JAahB,CAAC;AAGH;;GAEG;AACH,UAAU,iBACR,SACE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,EACnD,YAAY,CAAC,OAAO,oBAAoB,CAA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