@brightlocal/ui-components 0.4.0 → 0.5.0

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 (150) hide show
  1. package/README.md +2 -1
  2. package/dist/accordion.cjs +1 -1
  3. package/dist/accordion.js +2 -2
  4. package/dist/alert.cjs +1 -1
  5. package/dist/alert.js +64 -64
  6. package/dist/blocks/data-table.cjs +1 -1
  7. package/dist/blocks/data-table.js +47 -47
  8. package/dist/blocks/sidebar.cjs +1 -1
  9. package/dist/blocks/sidebar.d.ts.map +1 -1
  10. package/dist/blocks/sidebar.js +27 -26
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.js +34 -34
  13. package/dist/button.cjs +1 -1
  14. package/dist/button.d.ts.map +1 -1
  15. package/dist/button.js +58 -57
  16. package/dist/calendar.cjs +1 -1
  17. package/dist/calendar.d.ts.map +1 -1
  18. package/dist/calendar.js +19 -37
  19. package/dist/card.cjs +1 -1
  20. package/dist/card.d.ts +5 -0
  21. package/dist/card.d.ts.map +1 -1
  22. package/dist/card.js +49 -36
  23. package/dist/centred-layout.cjs +1 -1
  24. package/dist/centred-layout.d.ts +3 -8
  25. package/dist/centred-layout.d.ts.map +1 -1
  26. package/dist/centred-layout.js +33 -48
  27. package/dist/chart.cjs +2 -2
  28. package/dist/chart.d.ts +3 -1
  29. package/dist/chart.d.ts.map +1 -1
  30. package/dist/chart.js +21 -21
  31. package/dist/checkbox.cjs +1 -1
  32. package/dist/checkbox.js +9 -9
  33. package/dist/combobox.cjs +1 -1
  34. package/dist/combobox.d.ts +6 -1
  35. package/dist/combobox.d.ts.map +1 -1
  36. package/dist/combobox.js +126 -116
  37. package/dist/command.cjs +1 -1
  38. package/dist/command.js +35 -35
  39. package/dist/context-menu.cjs +1 -1
  40. package/dist/context-menu.js +3 -3
  41. package/dist/date-picker.cjs +1 -1
  42. package/dist/date-picker.js +7 -7
  43. package/dist/dialog.cjs +1 -1
  44. package/dist/dialog.js +22 -22
  45. package/dist/dropdown-menu.cjs +1 -1
  46. package/dist/dropdown-menu.d.ts.map +1 -1
  47. package/dist/dropdown-menu.js +47 -52
  48. package/dist/field.cjs +1 -1
  49. package/dist/field.d.ts.map +1 -1
  50. package/dist/field.js +50 -49
  51. package/dist/index.cjs +1 -1
  52. package/dist/index.d.ts +1 -0
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +334 -319
  55. package/dist/input-chip.d.ts.map +1 -1
  56. package/dist/input-chip.js +18 -25
  57. package/dist/input-group.cjs +1 -1
  58. package/dist/input-group.js +10 -10
  59. package/dist/input-otp.cjs +1 -1
  60. package/dist/input-otp.js +6 -6
  61. package/dist/input-password.cjs +1 -1
  62. package/dist/input-password.d.ts.map +1 -1
  63. package/dist/input-password.js +56 -56
  64. package/dist/input.cjs +1 -1
  65. package/dist/input.js +9 -9
  66. package/dist/label.cjs +1 -1
  67. package/dist/label.js +1 -1
  68. package/dist/link.cjs +1 -1
  69. package/dist/link.d.ts.map +1 -1
  70. package/dist/link.js +1 -8
  71. package/dist/logo.cjs +1 -1
  72. package/dist/logo.d.ts.map +1 -1
  73. package/dist/logo.js +30 -17
  74. package/dist/menubar.cjs +1 -1
  75. package/dist/menubar.js +13 -13
  76. package/dist/navigation-menu.cjs +1 -1
  77. package/dist/navigation-menu.d.ts.map +1 -1
  78. package/dist/navigation-menu.js +2 -1
  79. package/dist/pagination.cjs +1 -1
  80. package/dist/pagination.d.ts.map +1 -1
  81. package/dist/pagination.js +28 -28
  82. package/dist/radio-group.cjs +1 -1
  83. package/dist/radio-group.js +3 -3
  84. package/dist/rating.cjs +1 -1
  85. package/dist/rating.js +8 -8
  86. package/dist/resizable.cjs +1 -1
  87. package/dist/resizable.d.ts +1 -1
  88. package/dist/resizable.js +1 -1
  89. package/dist/select.cjs +1 -1
  90. package/dist/select.d.ts +1 -1
  91. package/dist/select.d.ts.map +1 -1
  92. package/dist/select.js +40 -44
  93. package/dist/sheet.cjs +1 -1
  94. package/dist/sheet.d.ts +1 -1
  95. package/dist/sheet.d.ts.map +1 -1
  96. package/dist/sheet.js +19 -19
  97. package/dist/sonner.cjs +1 -1
  98. package/dist/sonner.js +1 -1
  99. package/dist/switch.cjs +1 -1
  100. package/dist/switch.js +28 -28
  101. package/dist/tabs.cjs +1 -1
  102. package/dist/tabs.d.ts.map +1 -1
  103. package/dist/tabs.js +10 -12
  104. package/dist/toggle.cjs +1 -1
  105. package/dist/toggle.js +9 -9
  106. package/dist/typography.cjs +1 -0
  107. package/dist/typography.d.ts +176 -0
  108. package/dist/typography.d.ts.map +1 -0
  109. package/dist/typography.js +331 -0
  110. package/package.json +2 -2
  111. package/src/blocks/data-table.tsx +10 -10
  112. package/src/blocks/sidebar.tsx +16 -15
  113. package/src/components/accordion.tsx +2 -2
  114. package/src/components/alert.tsx +10 -10
  115. package/src/components/breadcrumb.tsx +3 -3
  116. package/src/components/button.tsx +7 -7
  117. package/src/components/calendar.tsx +4 -19
  118. package/src/components/card.tsx +24 -1
  119. package/src/components/centred-layout.tsx +6 -29
  120. package/src/components/chart.tsx +5 -5
  121. package/src/components/checkbox.tsx +3 -3
  122. package/src/components/combobox.tsx +20 -8
  123. package/src/components/command.tsx +5 -5
  124. package/src/components/context-menu.tsx +3 -3
  125. package/src/components/date-picker.tsx +1 -1
  126. package/src/components/dialog.tsx +3 -3
  127. package/src/components/dropdown-menu.tsx +7 -12
  128. package/src/components/field.tsx +36 -33
  129. package/src/components/input-chip.tsx +1 -4
  130. package/src/components/input-group.tsx +1 -1
  131. package/src/components/input-otp.tsx +3 -3
  132. package/src/components/input-password.tsx +2 -10
  133. package/src/components/input.tsx +1 -1
  134. package/src/components/label.tsx +1 -1
  135. package/src/components/link.tsx +1 -5
  136. package/src/components/logo.tsx +16 -9
  137. package/src/components/menubar.tsx +3 -3
  138. package/src/components/navigation-menu.tsx +2 -1
  139. package/src/components/pagination.tsx +4 -8
  140. package/src/components/radio-group.tsx +2 -2
  141. package/src/components/rating.tsx +2 -2
  142. package/src/components/resizable.tsx +1 -1
  143. package/src/components/select.tsx +8 -12
  144. package/src/components/sheet.tsx +5 -5
  145. package/src/components/sonner.tsx +1 -1
  146. package/src/components/switch.tsx +1 -1
  147. package/src/components/tabs.tsx +0 -2
  148. package/src/components/toggle.tsx +1 -1
  149. package/src/components/typography.tsx +678 -0
  150. package/src/index.ts +1 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),H=require("react"),k=require("date-fns"),M=require("@brightlocal/icons"),g=require("@brightlocal/ui-components/lib/utils"),L=require("./input.cjs"),S=require("@brightlocal/ui-components/calendar"),j=require("@brightlocal/ui-components/popover"),p=require("@brightlocal/ui-components/select");function A(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const D=A(H),v=D.createContext(null);function b(){const e=D.useContext(v);if(!e)throw new Error("DatePicker compound components must be used within DatePickerRoot");return e}function T({children:e,dataHook:n,trackingEl:t,trackingLabel:r,mode:s="single",date:d,onDateChange:u,dateRange:l,onDateRangeChange:c,placeholder:a,disabled:i,dateFormat:f,open:h,onOpenChange:P,defaultOpen:m=!1}){const[V,$]=D.useState(m),w=h!==void 0,x=w?h:V,y=D.useCallback(C=>{w||$(C),P?.(C)},[w,P]),_=D.useMemo(()=>({mode:s,open:x,setOpen:y,disabled:i,date:d,onDateChange:u,dateRange:l,onDateRangeChange:c,dateFormat:f??(s==="single"?"PPP":"PP"),placeholder:a??(s==="single"?"Pick a date":"Pick a date range"),dataHook:n,trackingEl:t,trackingLabel:r}),[s,x,y,i,d,u,l,c,f,a,n,t,r]);return o.jsx(v.Provider,{value:_,children:o.jsx(j.Popover,{open:x,onOpenChange:y,children:e})})}T.displayName="DatePickerRoot";const N=D.forwardRef(({className:e,children:n,id:t,...r},s)=>{const{mode:d,date:u,dateRange:l,dateFormat:c,placeholder:a,disabled:i,dataHook:f}=b(),P=d==="single"?u?k.format(u,c):null:l?.from?l.to?`${k.format(l.from,c)} - ${k.format(l.to,c)}`:k.format(l.from,c):null,m=P!==null;return o.jsx(j.PopoverTrigger,{asChild:!0,children:o.jsxs("button",{ref:s,"aria-label":r["aria-label"]??(d==="single"?"Select date":"Select date range"),className:g.cn(L.inputVariants({hasIcon:!0}),"relative cursor-pointer justify-start text-left",!m&&"text-muted-foreground",e),"data-hook":`${f}-trigger`,"data-slot":"date-picker-trigger",disabled:i,id:t,type:"button",...r,children:[o.jsx(M.Calendar,{className:g.cn("text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2",i&&"opacity-50"),"data-slot":"calendar-icon"}),n??(m?P:o.jsx("span",{children:a}))]})})});N.displayName="DatePickerTrigger";const R=D.forwardRef(({className:e,children:n,...t},r)=>{const{dataHook:s}=b();return o.jsx(j.PopoverContent,{ref:r,align:"start",className:g.cn("w-auto rounded-lg p-0",e),dataHook:`${s}-content`,...t,children:n})});R.displayName="DatePickerContent";function E({className:e,closeOnSelect:n=!0,...t}){const{mode:r,date:s,onDateChange:d,dateRange:u,onDateRangeChange:l,setOpen:c,disabled:a,dataHook:i}=b();return r==="single"?o.jsx(S.Calendar,{captionLayout:"dropdown",className:g.cn("border-0 shadow-none",e),dataHook:`${i}-calendar`,disabled:a,endMonth:new Date(2100,11,31),mode:"single",selected:s,startMonth:new Date(1900,0,1),onSelect:f=>{d?.(f),n&&c(!1)},...t}):o.jsx(S.Calendar,{captionLayout:"dropdown",className:g.cn("border-0 shadow-none",e),dataHook:`${i}-calendar`,disabled:a,endMonth:new Date(2100,11,31),mode:"range",selected:u,startMonth:new Date(1900,0,1),onSelect:l,...t})}E.displayName="DatePickerCalendar";const q=[{label:"Today",date:()=>new Date},{label:"Tomorrow",date:()=>{const e=new Date;return e.setDate(e.getDate()+1),e}},{label:"In 3 days",date:()=>{const e=new Date;return e.setDate(e.getDate()+3),e}},{label:"In a week",date:()=>{const e=new Date;return e.setDate(e.getDate()+7),e}}];function O({presets:e=q,placeholder:n="Select preset",className:t}){const{mode:r,date:s,onDateChange:d,disabled:u,dataHook:l}=b();if(r!=="single")return process.env.NODE_ENV!=="production"&&console.warn("DatePickerPresets only works with mode='single'"),null;const c=s?e.find(a=>a.date().toDateString()===s.toDateString())?.label:void 0;return o.jsxs(p.Select,{disabled:u,value:c,onValueChange:a=>{const i=e.find(f=>f.label===a);i&&d?.(i.date())},children:[o.jsx(p.SelectTrigger,{className:g.cn("w-full",t),dataHook:`${l}-preset-select`,children:o.jsx(p.SelectValue,{placeholder:n})}),o.jsx(p.SelectContent,{children:e.map(a=>o.jsx(p.SelectItem,{"data-hook":`${l}-preset-${a.label.toLowerCase().replace(/\s+/g,"-")}`,value:a.label,children:a.label},a.label))})]})}O.displayName="DatePickerPresets";exports.DEFAULT_DATE_PRESETS=q;exports.DatePickerCalendar=E;exports.DatePickerContent=R;exports.DatePickerPresets=O;exports.DatePickerRoot=T;exports.DatePickerTrigger=N;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),H=require("react"),k=require("date-fns"),M=require("@brightlocal/icons"),g=require("@brightlocal/ui-components/lib/utils"),L=require("./input.cjs"),S=require("@brightlocal/ui-components/calendar"),j=require("@brightlocal/ui-components/popover"),p=require("@brightlocal/ui-components/select");function A(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const D=A(H),v=D.createContext(null);function b(){const e=D.useContext(v);if(!e)throw new Error("DatePicker compound components must be used within DatePickerRoot");return e}function T({children:e,dataHook:n,trackingEl:t,trackingLabel:r,mode:s="single",date:d,onDateChange:u,dateRange:l,onDateRangeChange:c,placeholder:a,disabled:i,dateFormat:f,open:h,onOpenChange:P,defaultOpen:m=!1}){const[V,$]=D.useState(m),w=h!==void 0,x=w?h:V,y=D.useCallback(C=>{w||$(C),P?.(C)},[w,P]),_=D.useMemo(()=>({mode:s,open:x,setOpen:y,disabled:i,date:d,onDateChange:u,dateRange:l,onDateRangeChange:c,dateFormat:f??(s==="single"?"PPP":"PP"),placeholder:a??(s==="single"?"Pick a date":"Pick a date range"),dataHook:n,trackingEl:t,trackingLabel:r}),[s,x,y,i,d,u,l,c,f,a,n,t,r]);return o.jsx(v.Provider,{value:_,children:o.jsx(j.Popover,{open:x,onOpenChange:y,children:e})})}T.displayName="DatePickerRoot";const N=D.forwardRef(({className:e,children:n,id:t,...r},s)=>{const{mode:d,date:u,dateRange:l,dateFormat:c,placeholder:a,disabled:i,dataHook:f}=b(),P=d==="single"?u?k.format(u,c):null:l?.from?l.to?`${k.format(l.from,c)} - ${k.format(l.to,c)}`:k.format(l.from,c):null,m=P!==null;return o.jsx(j.PopoverTrigger,{asChild:!0,children:o.jsxs("button",{ref:s,"aria-label":r["aria-label"]??(d==="single"?"Select date":"Select date range"),className:g.cn(L.inputVariants({hasIcon:!0}),"relative cursor-pointer justify-start text-left",!m&&"text-muted-foreground",e),"data-hook":`${f}-trigger`,"data-slot":"date-picker-trigger",disabled:i,id:t,type:"button",...r,children:[o.jsx(M.Calendar,{className:g.cn("text-muted-foreground pointer-events-none absolute top-1/2 left-3 -translate-y-1/2",i&&"opacity-50"),"data-slot":"calendar-icon"}),n??(m?P:o.jsx("span",{children:a}))]})})});N.displayName="DatePickerTrigger";const R=D.forwardRef(({className:e,children:n,...t},r)=>{const{dataHook:s}=b();return o.jsx(j.PopoverContent,{ref:r,align:"start",className:g.cn("w-auto rounded-lg p-0",e),dataHook:`${s}-content`,...t,children:n})});R.displayName="DatePickerContent";function E({className:e,closeOnSelect:n=!0,...t}){const{mode:r,date:s,onDateChange:d,dateRange:u,onDateRangeChange:l,setOpen:c,disabled:a,dataHook:i}=b();return r==="single"?o.jsx(S.Calendar,{captionLayout:"dropdown",className:g.cn("border-0 shadow-none",e),dataHook:`${i}-calendar`,disabled:a,endMonth:new Date(2100,11,31),mode:"single",selected:s,startMonth:new Date(1900,0,1),onSelect:f=>{d?.(f),n&&c(!1)},...t}):o.jsx(S.Calendar,{captionLayout:"dropdown",className:g.cn("border-0 shadow-none",e),dataHook:`${i}-calendar`,disabled:a,endMonth:new Date(2100,11,31),mode:"range",selected:u,startMonth:new Date(1900,0,1),onSelect:l,...t})}E.displayName="DatePickerCalendar";const q=[{label:"Today",date:()=>new Date},{label:"Tomorrow",date:()=>{const e=new Date;return e.setDate(e.getDate()+1),e}},{label:"In 3 days",date:()=>{const e=new Date;return e.setDate(e.getDate()+3),e}},{label:"In a week",date:()=>{const e=new Date;return e.setDate(e.getDate()+7),e}}];function O({presets:e=q,placeholder:n="Select preset",className:t}){const{mode:r,date:s,onDateChange:d,disabled:u,dataHook:l}=b();if(r!=="single")return process.env.NODE_ENV!=="production"&&console.warn("DatePickerPresets only works with mode='single'"),null;const c=s?e.find(a=>a.date().toDateString()===s.toDateString())?.label:void 0;return o.jsxs(p.Select,{disabled:u,value:c,onValueChange:a=>{const i=e.find(f=>f.label===a);i&&d?.(i.date())},children:[o.jsx(p.SelectTrigger,{className:g.cn("w-full",t),dataHook:`${l}-preset-select`,children:o.jsx(p.SelectValue,{placeholder:n})}),o.jsx(p.SelectContent,{children:e.map(a=>o.jsx(p.SelectItem,{"data-hook":`${l}-preset-${a.label.toLowerCase().replace(/\s+/g,"-")}`,value:a.label,children:a.label},a.label))})]})}O.displayName="DatePickerPresets";exports.DEFAULT_DATE_PRESETS=q;exports.DatePickerCalendar=E;exports.DatePickerContent=R;exports.DatePickerPresets=O;exports.DatePickerRoot=T;exports.DatePickerTrigger=N;
@@ -99,7 +99,7 @@ const F = f.forwardRef(({ className: e, children: c, id: r, ...l }, a) => {
99
99
  V,
100
100
  {
101
101
  className: p(
102
- "text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2",
102
+ "text-muted-foreground pointer-events-none absolute top-1/2 left-3 -translate-y-1/2",
103
103
  i && "opacity-50"
104
104
  ),
105
105
  "data-slot": "calendar-icon"
@@ -126,7 +126,7 @@ const U = f.forwardRef(({ className: e, children: c, ...r }, l) => {
126
126
  );
127
127
  });
128
128
  U.displayName = "DatePickerContent";
129
- function z({
129
+ function q({
130
130
  className: e,
131
131
  closeOnSelect: c = !0,
132
132
  ...r
@@ -173,8 +173,8 @@ function z({
173
173
  }
174
174
  );
175
175
  }
176
- z.displayName = "DatePickerCalendar";
177
- const q = [
176
+ q.displayName = "DatePickerCalendar";
177
+ const z = [
178
178
  {
179
179
  label: "Today",
180
180
  date: () => /* @__PURE__ */ new Date()
@@ -202,7 +202,7 @@ const q = [
202
202
  }
203
203
  ];
204
204
  function B({
205
- presets: e = q,
205
+ presets: e = z,
206
206
  placeholder: c = "Select preset",
207
207
  className: r
208
208
  }) {
@@ -243,8 +243,8 @@ function B({
243
243
  }
244
244
  B.displayName = "DatePickerPresets";
245
245
  export {
246
- q as DEFAULT_DATE_PRESETS,
247
- z as DatePickerCalendar,
246
+ z as DEFAULT_DATE_PRESETS,
247
+ q as DatePickerCalendar,
248
248
  U as DatePickerContent,
249
249
  B as DatePickerPresets,
250
250
  A as DatePickerRoot,
package/dist/dialog.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),v=require("react"),w=require("@radix-ui/react-dialog"),h=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils");function c(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=c(v),s=c(w),g=s.Root;g.displayName="Dialog";const f=i.forwardRef(({dataHook:e,...a},t)=>o.jsx(s.Trigger,{ref:t,"data-hook":e,"data-slot":"dialog-trigger",...a}));f.displayName="DialogTrigger";function n({...e}){return o.jsx(s.Portal,{...e})}n.displayName="DialogPortal";const u=i.forwardRef(({...e},a)=>o.jsx(s.Close,{ref:a,"data-slot":"dialog-close",...e}));u.displayName="DialogClose";const d=i.forwardRef(({className:e,...a},t)=>o.jsx(s.Overlay,{ref:t,className:l.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":"dialog-overlay",...a}));d.displayName="DialogOverlay";const m=i.forwardRef(({className:e,children:a,dataHook:t,trackingEl:r,trackingLabel:b,...j},N)=>o.jsxs(n,{children:[o.jsx(d,{}),o.jsxs(s.Content,{ref:N,className:l.cn("bg-background text-foreground 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 border-card-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-xl border p-8 shadow-lg duration-200 sm:max-w-lg",e),"data-hook":t,"data-slot":"dialog-content","data-tracking-el":r,"data-tracking-label":b,...j,children:[a,o.jsxs(s.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-8 right-8 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(h.XIcon,{}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));m.displayName="DialogContent";const p=i.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:l.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...a}));p.displayName="DialogHeader";const D=i.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:l.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...a}));D.displayName="DialogFooter";const x=i.forwardRef(({className:e,...a},t)=>o.jsx(s.Title,{ref:t,className:l.cn("text-lg leading-none font-semibold",e),"data-slot":"dialog-title",...a}));x.displayName="DialogTitle";const y=i.forwardRef(({className:e,...a},t)=>o.jsx(s.Description,{ref:t,className:l.cn("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...a}));y.displayName="DialogDescription";exports.Dialog=g;exports.DialogClose=u;exports.DialogContent=m;exports.DialogDescription=y;exports.DialogFooter=D;exports.DialogHeader=p;exports.DialogOverlay=d;exports.DialogPortal=n;exports.DialogTitle=x;exports.DialogTrigger=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),v=require("react"),w=require("@radix-ui/react-dialog"),h=require("@brightlocal/icons"),s=require("@brightlocal/ui-components/lib/utils");function c(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const l=c(v),i=c(w),g=i.Root;g.displayName="Dialog";const f=l.forwardRef(({dataHook:e,...a},t)=>o.jsx(i.Trigger,{ref:t,"data-hook":e,"data-slot":"dialog-trigger",...a}));f.displayName="DialogTrigger";function n({...e}){return o.jsx(i.Portal,{...e})}n.displayName="DialogPortal";const u=l.forwardRef(({...e},a)=>o.jsx(i.Close,{ref:a,"data-slot":"dialog-close",...e}));u.displayName="DialogClose";const d=l.forwardRef(({className:e,...a},t)=>o.jsx(i.Overlay,{ref:t,className:s.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":"dialog-overlay",...a}));d.displayName="DialogOverlay";const m=l.forwardRef(({className:e,children:a,dataHook:t,trackingEl:r,trackingLabel:b,...j},N)=>o.jsxs(n,{children:[o.jsx(d,{}),o.jsxs(i.Content,{ref:N,className:s.cn("bg-background text-foreground 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 border-card-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-xl border p-8 shadow-lg duration-200 sm:max-w-lg",e),"data-hook":t,"data-slot":"dialog-content","data-tracking-el":r,"data-tracking-label":b,...j,children:[a,o.jsxs(i.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-8 right-8 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",children:[o.jsx(h.X,{}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));m.displayName="DialogContent";const p=l.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:s.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...a}));p.displayName="DialogHeader";const D=l.forwardRef(({className:e,...a},t)=>o.jsx("div",{ref:t,className:s.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...a}));D.displayName="DialogFooter";const x=l.forwardRef(({className:e,...a},t)=>o.jsx(i.Title,{ref:t,className:s.cn("text-lg leading-none font-semibold",e),"data-slot":"dialog-title",...a}));x.displayName="DialogTitle";const y=l.forwardRef(({className:e,...a},t)=>o.jsx(i.Description,{ref:t,className:s.cn("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...a}));y.displayName="DialogDescription";exports.Dialog=g;exports.DialogClose=u;exports.DialogContent=m;exports.DialogDescription=y;exports.DialogFooter=D;exports.DialogHeader=p;exports.DialogOverlay=d;exports.DialogPortal=n;exports.DialogTitle=x;exports.DialogTrigger=f;
package/dist/dialog.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
- import * as s from "react";
2
+ import * as i from "react";
3
3
  import * as l from "@radix-ui/react-dialog";
4
- import { XIcon as p } from "@brightlocal/icons";
5
- import { cn as i } from "@brightlocal/ui-components/lib/utils";
4
+ import { X as p } from "@brightlocal/icons";
5
+ import { cn as s } from "@brightlocal/ui-components/lib/utils";
6
6
  const u = l.Root;
7
7
  u.displayName = "Dialog";
8
- const D = s.forwardRef(({ dataHook: a, ...e }, o) => /* @__PURE__ */ t(
8
+ const D = i.forwardRef(({ dataHook: a, ...e }, o) => /* @__PURE__ */ t(
9
9
  l.Trigger,
10
10
  {
11
11
  ref: o,
@@ -21,13 +21,13 @@ function d({
21
21
  return /* @__PURE__ */ t(l.Portal, { ...a });
22
22
  }
23
23
  d.displayName = "DialogPortal";
24
- const x = s.forwardRef(({ ...a }, e) => /* @__PURE__ */ t(l.Close, { ref: e, "data-slot": "dialog-close", ...a }));
24
+ const x = i.forwardRef(({ ...a }, e) => /* @__PURE__ */ t(l.Close, { ref: e, "data-slot": "dialog-close", ...a }));
25
25
  x.displayName = "DialogClose";
26
- const n = s.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
26
+ const n = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
27
27
  l.Overlay,
28
28
  {
29
29
  ref: o,
30
- className: i(
30
+ className: s(
31
31
  "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",
32
32
  a
33
33
  ),
@@ -36,14 +36,14 @@ const n = s.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
36
36
  }
37
37
  ));
38
38
  n.displayName = "DialogOverlay";
39
- const y = s.forwardRef(
39
+ const y = i.forwardRef(
40
40
  ({ className: a, children: e, dataHook: o, trackingEl: g, trackingLabel: c, ...f }, m) => /* @__PURE__ */ r(d, { children: [
41
41
  /* @__PURE__ */ t(n, {}),
42
42
  /* @__PURE__ */ r(
43
43
  l.Content,
44
44
  {
45
45
  ref: m,
46
- className: i(
46
+ className: s(
47
47
  "bg-background text-foreground 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 border-card-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-8 rounded-xl border p-8 shadow-lg duration-200 sm:max-w-lg",
48
48
  a
49
49
  ),
@@ -54,7 +54,7 @@ const y = s.forwardRef(
54
54
  ...f,
55
55
  children: [
56
56
  e,
57
- /* @__PURE__ */ r(l.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-8 right-8 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: [
57
+ /* @__PURE__ */ r(l.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-8 right-8 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", children: [
58
58
  /* @__PURE__ */ t(p, {}),
59
59
  /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
60
60
  ] })
@@ -64,21 +64,21 @@ const y = s.forwardRef(
64
64
  ] })
65
65
  );
66
66
  y.displayName = "DialogContent";
67
- const N = s.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
67
+ const N = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
68
68
  "div",
69
69
  {
70
70
  ref: o,
71
- className: i("flex flex-col gap-2 text-center sm:text-left", a),
71
+ className: s("flex flex-col gap-2 text-center sm:text-left", a),
72
72
  "data-slot": "dialog-header",
73
73
  ...e
74
74
  }
75
75
  ));
76
76
  N.displayName = "DialogHeader";
77
- const v = s.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
77
+ const b = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
78
78
  "div",
79
79
  {
80
80
  ref: o,
81
- className: i(
81
+ className: s(
82
82
  "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
83
83
  a
84
84
  ),
@@ -86,22 +86,22 @@ const v = s.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
86
86
  ...e
87
87
  }
88
88
  ));
89
- v.displayName = "DialogFooter";
90
- const b = s.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
89
+ b.displayName = "DialogFooter";
90
+ const v = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
91
91
  l.Title,
92
92
  {
93
93
  ref: o,
94
- className: i("text-lg leading-none font-semibold", a),
94
+ className: s("text-lg leading-none font-semibold", a),
95
95
  "data-slot": "dialog-title",
96
96
  ...e
97
97
  }
98
98
  ));
99
- b.displayName = "DialogTitle";
100
- const w = s.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
99
+ v.displayName = "DialogTitle";
100
+ const w = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
101
101
  l.Description,
102
102
  {
103
103
  ref: o,
104
- className: i("text-muted-foreground text-sm", a),
104
+ className: s("text-muted-foreground text-sm", a),
105
105
  "data-slot": "dialog-description",
106
106
  ...e
107
107
  }
@@ -112,10 +112,10 @@ export {
112
112
  x as DialogClose,
113
113
  y as DialogContent,
114
114
  w as DialogDescription,
115
- v as DialogFooter,
115
+ b as DialogFooter,
116
116
  N as DialogHeader,
117
117
  n as DialogOverlay,
118
118
  d as DialogPortal,
119
- b as DialogTitle,
119
+ v as DialogTitle,
120
120
  D as DialogTrigger
121
121
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),T=require("react"),P=require("@radix-ui/react-dropdown-menu"),p=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=m(T),r=m(P);function g({...e}){return o.jsx(r.Root,{...e})}g.displayName="DropdownMenu";function f({...e}){return o.jsx(r.Portal,{...e})}f.displayName="DropdownMenuPortal";const w=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,...s},d)=>o.jsx(r.Trigger,{ref:d,className:e,"data-hook":t,"data-slot":"dropdown-menu-trigger","data-tracking-el":n,"data-tracking-label":a,...s}));w.displayName="DropdownMenuTrigger";const x=u.forwardRef(({className:e,sideOffset:t=4,align:n="start",dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsx(r.Portal,{children:o.jsx(r.Content,{ref:c,align:n,className:l.cn(["bg-popover text-popover-foreground","z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-x-hidden overflow-y-auto","rounded-md border p-1 shadow-md","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"],e),"data-hook":a,"data-slot":"dropdown-menu-content","data-tracking-el":s,"data-tracking-label":d,sideOffset:t,...i})}));x.displayName="DropdownMenuContent";function b({...e}){return o.jsx(r.Group,{...e})}b.displayName="DropdownMenuGroup";const h=u.forwardRef(({className:e,inset:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsx(r.Item,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 self-stretch select-none","rounded-sm px-2 py-1.5 text-sm leading-normal outline-hidden","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"],e),"data-hook":n,"data-inset":t,"data-slot":"dropdown-menu-item","data-tracking-el":a,"data-tracking-label":s,...d}));h.displayName="DropdownMenuItem";const v=u.forwardRef(({className:e,children:t,checked:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsxs(r.CheckboxItem,{ref:c,checked:n,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":a,"data-slot":"dropdown-menu-checkbox-item","data-tracking-el":s,"data-tracking-label":d,...i,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Check,{className:"size-4"})})}),t]}));v.displayName="DropdownMenuCheckboxItem";function D({...e}){return o.jsx(r.RadioGroup,{...e})}D.displayName="DropdownMenuRadioGroup";const M=u.forwardRef(({className:e,children:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsxs(r.RadioItem,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":n,"data-slot":"dropdown-menu-radio-item","data-tracking-el":a,"data-tracking-label":s,...d,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(p.Circle,{className:"size-2 fill-current"})})}),t]}));M.displayName="DropdownMenuRadioItem";const y=u.forwardRef(({className:e,inset:t,...n},a)=>o.jsx(r.Label,{ref:a,className:l.cn(["px-2 py-1.5 text-sm leading-normal font-semibold","data-[inset]:pl-8"],e),"data-inset":t,"data-slot":"dropdown-menu-label",...n}));y.displayName="DropdownMenuLabel";const j=u.forwardRef(({className:e,...t},n)=>o.jsx(r.Separator,{ref:n,className:l.cn(["bg-border -mx-1 my-1 h-px"],e),"data-slot":"dropdown-menu-separator",...t}));j.displayName="DropdownMenuSeparator";function N({className:e,...t}){return o.jsx("span",{className:l.cn(["text-popover-foreground ml-auto text-xs leading-normal opacity-60"],e),"data-slot":"dropdown-menu-shortcut",...t})}N.displayName="DropdownMenuShortcut";function k({...e}){return o.jsx(r.Sub,{...e})}k.displayName="DropdownMenuSub";const R=u.forwardRef(({className:e,inset:t,children:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},c)=>o.jsxs(r.SubTrigger,{ref:c,className:l.cn(["flex cursor-default items-center gap-2 select-none","rounded-sm px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0","[&_svg:not([class*='size-'])]:size-4"],e),"data-hook":a,"data-inset":t,"data-slot":"dropdown-menu-sub-trigger","data-tracking-el":s,"data-tracking-label":d,...i,children:[n,o.jsx(p.ChevronRight,{className:"ml-auto size-4"})]}));R.displayName="DropdownMenuSubTrigger";const S=u.forwardRef(({className:e,...t},n)=>o.jsx(r.SubContent,{ref:n,className:l.cn(["bg-popover text-popover-foreground","z-50 min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-hidden rounded-md border p-1 shadow-lg","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"],e),"data-slot":"dropdown-menu-sub-content",...t}));S.displayName="DropdownMenuSubContent";const z=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,avatar:s,title:d,description:i,disabled:c,ariaLabel:_,...C},I)=>o.jsxs(r.Trigger,{ref:I,"aria-label":_??d,className:l.cn(["flex items-center gap-2 rounded-lg border px-3 py-2","bg-popover shadow-sm","outline-none","hover:bg-accent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50"],e),"data-hook":t,"data-slot":"dropdown-menu-trigger-avatar","data-tracking-el":n,"data-tracking-label":a,disabled:c,...C,children:[s,o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start",children:[o.jsx("span",{className:"w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap",children:d}),i&&o.jsx("span",{className:"text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap",children:i})]}),o.jsx(p.ChevronsUpDown,{className:"text-muted-foreground size-4 opacity-50"})]}));z.displayName="DropdownMenuTriggerAvatar";exports.DropdownMenu=g;exports.DropdownMenuCheckboxItem=v;exports.DropdownMenuContent=x;exports.DropdownMenuGroup=b;exports.DropdownMenuItem=h;exports.DropdownMenuLabel=y;exports.DropdownMenuPortal=f;exports.DropdownMenuRadioGroup=D;exports.DropdownMenuRadioItem=M;exports.DropdownMenuSeparator=j;exports.DropdownMenuShortcut=N;exports.DropdownMenuSub=k;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=R;exports.DropdownMenuTrigger=w;exports.DropdownMenuTriggerAvatar=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),z=require("react"),P=require("@radix-ui/react-dropdown-menu"),c=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=m(z),r=m(P);function f({...e}){return o.jsx(r.Root,{...e})}f.displayName="DropdownMenu";function g({...e}){return o.jsx(r.Portal,{...e})}g.displayName="DropdownMenuPortal";const w=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,...s},d)=>o.jsx(r.Trigger,{ref:d,className:e,"data-hook":t,"data-slot":"dropdown-menu-trigger","data-tracking-el":n,"data-tracking-label":a,...s}));w.displayName="DropdownMenuTrigger";const x=u.forwardRef(({className:e,sideOffset:t=4,align:n="start",dataHook:a,trackingEl:s,trackingLabel:d,...i},p)=>o.jsx(r.Portal,{children:o.jsx(r.Content,{ref:p,align:n,className:l.cn(["bg-popover text-popover-foreground","z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-x-hidden overflow-y-auto","rounded-md border p-1 shadow-md","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"],e),"data-hook":a,"data-slot":"dropdown-menu-content","data-tracking-el":s,"data-tracking-label":d,sideOffset:t,...i})}));x.displayName="DropdownMenuContent";function b({...e}){return o.jsx(r.Group,{...e})}b.displayName="DropdownMenuGroup";const h=u.forwardRef(({className:e,inset:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsx(r.Item,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 self-stretch select-none","rounded-sm px-2 py-1.5 text-sm leading-normal outline-hidden","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":n,"data-inset":t,"data-slot":"dropdown-menu-item","data-tracking-el":a,"data-tracking-label":s,...d}));h.displayName="DropdownMenuItem";const D=u.forwardRef(({className:e,children:t,checked:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},p)=>o.jsxs(r.CheckboxItem,{ref:p,checked:n,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":a,"data-slot":"dropdown-menu-checkbox-item","data-tracking-el":s,"data-tracking-label":d,...i,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(c.Check,{})})}),t]}));D.displayName="DropdownMenuCheckboxItem";function M({...e}){return o.jsx(r.RadioGroup,{...e})}M.displayName="DropdownMenuRadioGroup";const v=u.forwardRef(({className:e,children:t,dataHook:n,trackingEl:a,trackingLabel:s,...d},i)=>o.jsxs(r.RadioItem,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":n,"data-slot":"dropdown-menu-radio-item","data-tracking-el":a,"data-tracking-label":s,...d,children:[o.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:o.jsx(r.ItemIndicator,{children:o.jsx(c.Circle,{className:"fill-current",size:8})})}),t]}));v.displayName="DropdownMenuRadioItem";const y=u.forwardRef(({className:e,inset:t,...n},a)=>o.jsx(r.Label,{ref:a,className:l.cn(["px-2 py-1.5 text-sm leading-normal font-semibold","data-[inset]:pl-8"],e),"data-inset":t,"data-slot":"dropdown-menu-label",...n}));y.displayName="DropdownMenuLabel";const j=u.forwardRef(({className:e,...t},n)=>o.jsx(r.Separator,{ref:n,className:l.cn(["bg-border -mx-1 my-1 h-px"],e),"data-slot":"dropdown-menu-separator",...t}));j.displayName="DropdownMenuSeparator";function N({className:e,...t}){return o.jsx("span",{className:l.cn(["text-popover-foreground ml-auto text-xs leading-normal opacity-60"],e),"data-slot":"dropdown-menu-shortcut",...t})}N.displayName="DropdownMenuShortcut";function k({...e}){return o.jsx(r.Sub,{...e})}k.displayName="DropdownMenuSub";const R=u.forwardRef(({className:e,inset:t,children:n,dataHook:a,trackingEl:s,trackingLabel:d,...i},p)=>o.jsxs(r.SubTrigger,{ref:p,className:l.cn(["flex cursor-default items-center gap-2 select-none","rounded-sm px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":a,"data-inset":t,"data-slot":"dropdown-menu-sub-trigger","data-tracking-el":s,"data-tracking-label":d,...i,children:[n,o.jsx(c.ChevronRight,{className:"ml-auto"})]}));R.displayName="DropdownMenuSubTrigger";const S=u.forwardRef(({className:e,...t},n)=>o.jsx(r.SubContent,{ref:n,className:l.cn(["bg-popover text-popover-foreground","z-50 min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-hidden rounded-md border p-1 shadow-lg","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"],e),"data-slot":"dropdown-menu-sub-content",...t}));S.displayName="DropdownMenuSubContent";const C=u.forwardRef(({className:e,dataHook:t,trackingEl:n,trackingLabel:a,avatar:s,title:d,description:i,disabled:p,ariaLabel:I,...T},_)=>o.jsxs(r.Trigger,{ref:_,"aria-label":I??d,className:l.cn(["flex items-center gap-2 rounded-lg border px-3 py-2","bg-popover shadow-sm","outline-none","hover:bg-accent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50"],e),"data-hook":t,"data-slot":"dropdown-menu-trigger-avatar","data-tracking-el":n,"data-tracking-label":a,disabled:p,...T,children:[s,o.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start",children:[o.jsx("span",{className:"w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap",children:d}),i&&o.jsx("span",{className:"text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap",children:i})]}),o.jsx(c.ChevronsUpDown,{className:"text-muted-foreground opacity-50"})]}));C.displayName="DropdownMenuTriggerAvatar";exports.DropdownMenu=f;exports.DropdownMenuCheckboxItem=D;exports.DropdownMenuContent=x;exports.DropdownMenuGroup=b;exports.DropdownMenuItem=h;exports.DropdownMenuLabel=y;exports.DropdownMenuPortal=g;exports.DropdownMenuRadioGroup=M;exports.DropdownMenuRadioItem=v;exports.DropdownMenuSeparator=j;exports.DropdownMenuShortcut=N;exports.DropdownMenuSub=k;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=R;exports.DropdownMenuTrigger=w;exports.DropdownMenuTriggerAvatar=C;
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAUvE;;GAEG;AACH,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,2CAEzD;kBAJQ,YAAY;;;AAQrB;;GAEG;AACH,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,MAAM,CAAC,2CAE3D;kBAJQ,kBAAkB;;;AAQ3B,KAAK,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAC5D,OAAO,qBAAqB,CAAC,OAAO,CACrC,GAAG;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB;IAjBvB;;OAEG;eACQ,MAAM;IACjB;;OAEG;iBACU,MAAM;IACnB;;OAEG;oBACa,MAAM;2CAqBtB,CAAC;AAIH,KAAK,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAC5D,OAAO,qBAAqB,CAAC,OAAO,CACrC,GAAG;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,QAA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qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,8BAA8B,GAC/B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as t, jsxs as u } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
2
  import * as l from "react";
3
3
  import * as n from "@radix-ui/react-dropdown-menu";
4
4
  import { Check as w, Circle as b, ChevronRight as h, ChevronsUpDown as x } from "@brightlocal/icons";
@@ -9,13 +9,13 @@ function v({
9
9
  return /* @__PURE__ */ t(n.Root, { ...e });
10
10
  }
11
11
  v.displayName = "DropdownMenu";
12
- function N({
12
+ function D({
13
13
  ...e
14
14
  }) {
15
15
  return /* @__PURE__ */ t(n.Portal, { ...e });
16
16
  }
17
- N.displayName = "DropdownMenuPortal";
18
- const D = l.forwardRef(({ className: e, dataHook: o, trackingEl: a, trackingLabel: r, ...s }, d) => /* @__PURE__ */ t(
17
+ D.displayName = "DropdownMenuPortal";
18
+ const N = l.forwardRef(({ className: e, dataHook: o, trackingEl: a, trackingLabel: r, ...s }, d) => /* @__PURE__ */ t(
19
19
  n.Trigger,
20
20
  {
21
21
  ref: d,
@@ -27,7 +27,7 @@ const D = l.forwardRef(({ className: e, dataHook: o, trackingEl: a, trackingLabe
27
27
  ...s
28
28
  }
29
29
  ));
30
- D.displayName = "DropdownMenuTrigger";
30
+ N.displayName = "DropdownMenuTrigger";
31
31
  const M = l.forwardRef(
32
32
  ({
33
33
  className: e,
@@ -37,10 +37,10 @@ const M = l.forwardRef(
37
37
  trackingEl: s,
38
38
  trackingLabel: d,
39
39
  ...i
40
- }, c) => /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
40
+ }, u) => /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(
41
41
  n.Content,
42
42
  {
43
- ref: c,
43
+ ref: u,
44
44
  align: a,
45
45
  className: p(
46
46
  [
@@ -92,9 +92,7 @@ const k = l.forwardRef(
92
92
  // Inset (indentation)
93
93
  "data-[inset]:pl-8",
94
94
  // Icon styling
95
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
96
- "[&_svg:not([class*='size-'])]:size-4",
97
- "[&_svg:not([class*='text-'])]:text-muted-foreground"
95
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
98
96
  ],
99
97
  e
100
98
  ),
@@ -108,7 +106,7 @@ const k = l.forwardRef(
108
106
  )
109
107
  );
110
108
  k.displayName = "DropdownMenuItem";
111
- const z = l.forwardRef(
109
+ const R = l.forwardRef(
112
110
  ({
113
111
  className: e,
114
112
  children: o,
@@ -117,10 +115,10 @@ const z = l.forwardRef(
117
115
  trackingEl: s,
118
116
  trackingLabel: d,
119
117
  ...i
120
- }, c) => /* @__PURE__ */ u(
118
+ }, u) => /* @__PURE__ */ c(
121
119
  n.CheckboxItem,
122
120
  {
123
- ref: c,
121
+ ref: u,
124
122
  checked: a,
125
123
  className: p(
126
124
  [
@@ -129,8 +127,7 @@ const z = l.forwardRef(
129
127
  "focus:bg-accent focus:text-accent-foreground",
130
128
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
131
129
  // Icon styling
132
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
133
- "[&_svg:not([class*='size-'])]:size-4"
130
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
134
131
  ],
135
132
  e
136
133
  ),
@@ -140,21 +137,21 @@ const z = l.forwardRef(
140
137
  "data-tracking-label": d,
141
138
  ...i,
142
139
  children: [
143
- /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(w, { className: "size-4" }) }) }),
140
+ /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(w, {}) }) }),
144
141
  o
145
142
  ]
146
143
  }
147
144
  )
148
145
  );
149
- z.displayName = "DropdownMenuCheckboxItem";
150
- function R({
146
+ R.displayName = "DropdownMenuCheckboxItem";
147
+ function S({
151
148
  ...e
152
149
  }) {
153
150
  return /* @__PURE__ */ t(n.RadioGroup, { ...e });
154
151
  }
155
- R.displayName = "DropdownMenuRadioGroup";
156
- const S = l.forwardRef(
157
- ({ className: e, children: o, dataHook: a, trackingEl: r, trackingLabel: s, ...d }, i) => /* @__PURE__ */ u(
152
+ S.displayName = "DropdownMenuRadioGroup";
153
+ const C = l.forwardRef(
154
+ ({ className: e, children: o, dataHook: a, trackingEl: r, trackingLabel: s, ...d }, i) => /* @__PURE__ */ c(
158
155
  n.RadioItem,
159
156
  {
160
157
  ref: i,
@@ -165,8 +162,7 @@ const S = l.forwardRef(
165
162
  "focus:bg-accent focus:text-accent-foreground",
166
163
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
167
164
  // Icon styling
168
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
169
- "[&_svg:not([class*='size-'])]:size-4"
165
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
170
166
  ],
171
167
  e
172
168
  ),
@@ -176,14 +172,14 @@ const S = l.forwardRef(
176
172
  "data-tracking-label": s,
177
173
  ...d,
178
174
  children: [
179
- /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(b, { className: "size-2 fill-current" }) }) }),
175
+ /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.ItemIndicator, { children: /* @__PURE__ */ t(b, { className: "fill-current", size: 8 }) }) }),
180
176
  o
181
177
  ]
182
178
  }
183
179
  )
184
180
  );
185
- S.displayName = "DropdownMenuRadioItem";
186
- const C = l.forwardRef(({ className: e, inset: o, ...a }, r) => /* @__PURE__ */ t(
181
+ C.displayName = "DropdownMenuRadioItem";
182
+ const I = l.forwardRef(({ className: e, inset: o, ...a }, r) => /* @__PURE__ */ t(
187
183
  n.Label,
188
184
  {
189
185
  ref: r,
@@ -199,8 +195,8 @@ const C = l.forwardRef(({ className: e, inset: o, ...a }, r) => /* @__PURE__ */
199
195
  ...a
200
196
  }
201
197
  ));
202
- C.displayName = "DropdownMenuLabel";
203
- const I = l.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ t(
198
+ I.displayName = "DropdownMenuLabel";
199
+ const z = l.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ t(
204
200
  n.Separator,
205
201
  {
206
202
  ref: a,
@@ -209,8 +205,8 @@ const I = l.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ t(
209
205
  ...o
210
206
  }
211
207
  ));
212
- I.displayName = "DropdownMenuSeparator";
213
- function _({
208
+ z.displayName = "DropdownMenuSeparator";
209
+ function T({
214
210
  className: e,
215
211
  ...o
216
212
  }) {
@@ -226,13 +222,13 @@ function _({
226
222
  }
227
223
  );
228
224
  }
229
- _.displayName = "DropdownMenuShortcut";
230
- function T({
225
+ T.displayName = "DropdownMenuShortcut";
226
+ function _({
231
227
  ...e
232
228
  }) {
233
229
  return /* @__PURE__ */ t(n.Sub, { ...e });
234
230
  }
235
- T.displayName = "DropdownMenuSub";
231
+ _.displayName = "DropdownMenuSub";
236
232
  const G = l.forwardRef(
237
233
  ({
238
234
  className: e,
@@ -242,10 +238,10 @@ const G = l.forwardRef(
242
238
  trackingEl: s,
243
239
  trackingLabel: d,
244
240
  ...i
245
- }, c) => /* @__PURE__ */ u(
241
+ }, u) => /* @__PURE__ */ c(
246
242
  n.SubTrigger,
247
243
  {
248
- ref: c,
244
+ ref: u,
249
245
  className: p(
250
246
  [
251
247
  "flex cursor-default items-center gap-2 select-none",
@@ -254,8 +250,7 @@ const G = l.forwardRef(
254
250
  "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
255
251
  "data-[inset]:pl-8",
256
252
  // Icon styling
257
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
258
- "[&_svg:not([class*='size-'])]:size-4"
253
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0"
259
254
  ],
260
255
  e
261
256
  ),
@@ -267,7 +262,7 @@ const G = l.forwardRef(
267
262
  ...i,
268
263
  children: [
269
264
  a,
270
- /* @__PURE__ */ t(h, { className: "ml-auto size-4" })
265
+ /* @__PURE__ */ t(h, { className: "ml-auto" })
271
266
  ]
272
267
  }
273
268
  )
@@ -308,10 +303,10 @@ const j = l.forwardRef(
308
303
  avatar: s,
309
304
  title: d,
310
305
  description: i,
311
- disabled: c,
306
+ disabled: u,
312
307
  ariaLabel: m,
313
308
  ...f
314
- }, g) => /* @__PURE__ */ u(
309
+ }, g) => /* @__PURE__ */ c(
315
310
  n.Trigger,
316
311
  {
317
312
  ref: g,
@@ -331,15 +326,15 @@ const j = l.forwardRef(
331
326
  "data-slot": "dropdown-menu-trigger-avatar",
332
327
  "data-tracking-el": a,
333
328
  "data-tracking-label": r,
334
- disabled: c,
329
+ disabled: u,
335
330
  ...f,
336
331
  children: [
337
332
  s,
338
- /* @__PURE__ */ u("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
333
+ /* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
339
334
  /* @__PURE__ */ t("span", { className: "w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap", children: d }),
340
335
  i && /* @__PURE__ */ t("span", { className: "text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap", children: i })
341
336
  ] }),
342
- /* @__PURE__ */ t(x, { className: "text-muted-foreground size-4 opacity-50" })
337
+ /* @__PURE__ */ t(x, { className: "text-muted-foreground opacity-50" })
343
338
  ]
344
339
  }
345
340
  )
@@ -347,19 +342,19 @@ const j = l.forwardRef(
347
342
  j.displayName = "DropdownMenuTriggerAvatar";
348
343
  export {
349
344
  v as DropdownMenu,
350
- z as DropdownMenuCheckboxItem,
345
+ R as DropdownMenuCheckboxItem,
351
346
  M as DropdownMenuContent,
352
347
  y as DropdownMenuGroup,
353
348
  k as DropdownMenuItem,
354
- C as DropdownMenuLabel,
355
- N as DropdownMenuPortal,
356
- R as DropdownMenuRadioGroup,
357
- S as DropdownMenuRadioItem,
358
- I as DropdownMenuSeparator,
359
- _ as DropdownMenuShortcut,
360
- T as DropdownMenuSub,
349
+ I as DropdownMenuLabel,
350
+ D as DropdownMenuPortal,
351
+ S as DropdownMenuRadioGroup,
352
+ C as DropdownMenuRadioItem,
353
+ z as DropdownMenuSeparator,
354
+ T as DropdownMenuShortcut,
355
+ _ as DropdownMenuSub,
361
356
  P as DropdownMenuSubContent,
362
357
  G as DropdownMenuSubTrigger,
363
- D as DropdownMenuTrigger,
358
+ N as DropdownMenuTrigger,
364
359
  j as DropdownMenuTriggerAvatar
365
360
  };
package/dist/field.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),g=require("class-variance-authority"),p=require("@brightlocal/icons"),o=require("@brightlocal/ui-components/lib/utils"),m=require("./description.cjs"),h=require("@brightlocal/ui-components/label");function s({className:t,...e}){return l.jsx("fieldset",{className:o.cn("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",t),"data-slot":"field-set",...e})}s.displayName="FieldSet";const x=["legend","label"];function b({className:t,variant:e="legend",...a}){return l.jsx("legend",{className:o.cn("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",t),"data-slot":"field-legend","data-variant":e,...a})}function F({className:t,...e}){return l.jsx("div",{className:o.cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",t),"data-slot":"field-group",...e})}const v=g.cva("group/field flex w-full gap-2",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["grid grid-cols-[auto_1fr] items-center","[&>[data-slot=field-description]]:col-start-2 [&>[data-slot=field-error]]:col-start-2","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:grid @md/field-group:grid-cols-[auto_1fr] @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-description]]:col-start-2 @md/field-group:[&>[data-slot=field-error]]:col-start-2","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function j({className:t,orientation:e="vertical",...a}){return l.jsx("div",{className:o.cn(v({orientation:e}),t),"data-orientation":e,"data-slot":"field",role:"group",...a})}function k({className:t,...e}){return l.jsx("div",{className:o.cn("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",t),"data-slot":"field-content",...e})}function N({className:t,htmlFor:e,dataHook:a,...r}){return l.jsx(h.Label,{className:o.cn("group/field-label peer/field-label w-fit","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",t),"data-hook":a,"data-slot":"field-label",htmlFor:e,...r})}function y({className:t,dataHook:e,...a}){return l.jsx(m.Description,{className:o.cn("mt-2","group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",t),"data-hook":e,"data-slot":"field-description",...a})}function w({icon:t=p.AlertCircle,className:e,...a}){return l.jsx(t,{"aria-hidden":"true",className:o.cn("inline-block size-4 shrink-0 align-text-bottom",e),...a})}function L({className:t,dataHook:e,children:a,errors:r,...n}){const i=r?.filter(d=>!!d?.message);if(!a&&(!i||i.length===0))return null;const c=o.cn("text-destructive-foreground text-sm font-normal leading-5","mt-2","group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",t),f=i&&i.length>1;return l.jsx("div",{className:c,"data-hook":e,"data-slot":"field-error",role:"alert",...n,children:f?l.jsx("ul",{className:"list-disc space-y-1 pl-4",children:i.map((d,u)=>l.jsx("li",{children:d.message},u))}):l.jsx("p",{className:"m-0",children:a||i?.[0]?.message})})}exports.Field=j;exports.FieldContent=k;exports.FieldDescription=y;exports.FieldError=L;exports.FieldErrorIcon=w;exports.FieldGroup=F;exports.FieldLabel=N;exports.FieldLegend=b;exports.FieldSet=s;exports.fieldLegendVariants=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),g=require("class-variance-authority"),p=require("@brightlocal/icons"),o=require("@brightlocal/ui-components/lib/utils"),m=require("./description.cjs"),h=require("@brightlocal/ui-components/label");function s({className:t,...e}){return l.jsx("fieldset",{className:o.cn("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",t),"data-slot":"field-set",...e})}s.displayName="FieldSet";const x=["legend","label"];function b({className:t,variant:e="legend",...a}){return l.jsx("legend",{className:o.cn("mb-3 font-medium","data-[variant=legend]:text-base","data-[variant=label]:text-sm",t),"data-slot":"field-legend","data-variant":e,...a})}function F({className:t,...e}){return l.jsx("div",{className:o.cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",t),"data-slot":"field-group",...e})}const v=g.cva(["group/field flex w-full gap-2","has-[>[role=checkbox]]:[&_[data-slot=field-label]]:leading-normal"],{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["grid grid-cols-[auto_1fr] items-center gap-x-2","[&>[data-slot=field-description]]:col-start-2 [&>[data-slot=field-error]]:col-start-2","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:grid @md/field-group:grid-cols-[auto_1fr] @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-description]]:col-start-2 @md/field-group:[&>[data-slot=field-error]]:col-start-2","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function j({className:t,orientation:e="vertical",...a}){return l.jsx("div",{className:o.cn(v({orientation:e}),t),"data-orientation":e,"data-slot":"field",role:"group",...a})}function k({className:t,...e}){return l.jsx("div",{className:o.cn("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",t),"data-slot":"field-content",...e})}function N({className:t,htmlFor:e,dataHook:a,...i}){return l.jsx(h.Label,{className:o.cn("group/field-label peer/field-label w-fit","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",t),"data-hook":a,"data-slot":"field-label",htmlFor:e,...i})}function y({className:t,dataHook:e,...a}){return l.jsx(m.Description,{className:o.cn("mt-2","group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",t),"data-hook":e,"data-slot":"field-description",...a})}function w({icon:t=p.AlertCircle,className:e,...a}){return l.jsx(t,{"aria-hidden":"true",className:o.cn("inline-block shrink-0 align-text-bottom",e),...a})}function L({className:t,dataHook:e,children:a,errors:i,...n}){const r=i?.filter(d=>!!d?.message);if(!a&&(!r||r.length===0))return null;const c=o.cn("text-destructive-foreground text-sm font-normal leading-5","mt-2","group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",t),f=r&&r.length>1;return l.jsx("div",{className:c,"data-hook":e,"data-slot":"field-error",role:"alert",...n,children:f?l.jsx("ul",{className:"list-disc space-y-1 pl-4",children:r.map((d,u)=>l.jsx("li",{children:d.message},u))}):l.jsx("p",{className:"m-0",children:a||r?.[0]?.message})})}exports.Field=j;exports.FieldContent=k;exports.FieldDescription=y;exports.FieldError=L;exports.FieldErrorIcon=w;exports.FieldGroup=F;exports.FieldLabel=N;exports.FieldLegend=b;exports.FieldSet=s;exports.fieldLegendVariants=x;
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/components/field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGnE,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAY1E;kBAZQ,QAAQ;;;AAgBjB,UAAU,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,mBAAmB,EAAE,gBAAgB,CAAC,SAAS,CAAC,EAAwB,CAAC;AAE/E,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,OAAkB,EAClB,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAclB;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,QAAA,MAAM,aAAa;;8EAmBjB,CAAC;AAEH;;GAEG;AACH,UAAU,UACR,SAAQ,KA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