@syscore/ui-library 1.10.0 → 1.11.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.
package/dist/index.d.ts CHANGED
@@ -312,6 +312,7 @@ import { UtilityCompare } from '../client/components/icons/UtilityCompare';
312
312
  import { UtilityDrag } from '../client/components/icons/UtilityDrag';
313
313
  import { UtilityEdit } from '../client/components/icons/UtilityEdit';
314
314
  import { UtilityHome } from '../client/components/icons/UtilityHome';
315
+ import { UtilityMessage } from '../client/components/icons/UtilityMessage';
315
316
  import { UtilityOptions } from '../client/components/icons/UtilityOptions';
316
317
  import { UtilityPortfolio } from '../client/components/icons/UtilityPortfolio';
317
318
  import { UtilityReset } from '../client/components/icons/UtilityReset';
@@ -325,6 +326,7 @@ import { UtilitySort } from '../client/components/icons/UtilitySort';
325
326
  import { UtilityTarget } from '../client/components/icons/UtilityTarget';
326
327
  import { UtilityTargetActive } from '../client/components/icons/UtilityTargetActive';
327
328
  import { UtilityText } from '../client/components/icons/UtilityText';
329
+ import { UtilityTrash } from '../client/components/icons/UtilityTrash';
328
330
  import { UtilityTriangleInfo } from '../client/components/icons/UtilityTriangleInfo';
329
331
  import { WatermarkMemberOrg } from '../client/components/icons/WatermarkMemberOrg';
330
332
  import { WaterMarkWellProjects } from '../client/components/icons/WaterMarkWellProjects';
@@ -960,6 +962,8 @@ export { UtilityEdit }
960
962
 
961
963
  export { UtilityHome }
962
964
 
965
+ export { UtilityMessage }
966
+
963
967
  export { UtilityOptions }
964
968
 
965
969
  export { UtilityPortfolio }
@@ -986,6 +990,8 @@ export { UtilityTargetActive }
986
990
 
987
991
  export { UtilityText }
988
992
 
993
+ export { UtilityTrash }
994
+
989
995
  export { UtilityTriangleInfo }
990
996
 
991
997
  export { WatermarkMemberOrg }
package/dist/index.es.js CHANGED
@@ -315,20 +315,40 @@ const AccordionHeaderRow = React.forwardRef(({ title, className }, ref) => {
315
315
  });
316
316
  AccordionHeaderRow.displayName = "AccordionHeaderRow";
317
317
  const AccordionItem = React.forwardRef(
318
- ({ value, children, className, ...props }, ref) => {
318
+ ({ value, children, className, noBorderOnOpen, ...props }, ref) => {
319
319
  const { isExpanded: isExpandedFn } = useAccordion();
320
320
  const isExpanded = isExpandedFn(value);
321
321
  const itemContextValue = React.useMemo(
322
- () => ({ value, isExpanded }),
323
- [value, isExpanded]
322
+ () => ({ value, isExpanded, noBorderOnOpen }),
323
+ [value, isExpanded, noBorderOnOpen]
324
324
  );
325
- return /* @__PURE__ */ jsx(AccordionItemContext.Provider, { value: itemContextValue, children: /* @__PURE__ */ jsx("div", { ref, className: cn(className), ...props, children }) });
325
+ return /* @__PURE__ */ jsx(AccordionItemContext.Provider, { value: itemContextValue, children: /* @__PURE__ */ jsx(
326
+ "div",
327
+ {
328
+ ref,
329
+ className: cn(className),
330
+ style: noBorderOnOpen && isExpanded ? { borderBottom: "none" } : void 0,
331
+ ...props,
332
+ children
333
+ }
334
+ ) });
326
335
  }
327
336
  );
328
337
  AccordionItem.displayName = "AccordionItem";
329
338
  const AccordionHeader = React.forwardRef(
330
- ({ children, className, onClick, ...props }, ref) => {
331
- return /* @__PURE__ */ jsx("div", { ref, onClick, className: cn(className), ...props, children });
339
+ ({ children, className, onClick, transparentOnOpen, ...props }, ref) => {
340
+ const { isExpanded } = useAccordionItem();
341
+ return /* @__PURE__ */ jsx(
342
+ "div",
343
+ {
344
+ ref,
345
+ onClick,
346
+ className: cn(className),
347
+ style: transparentOnOpen && isExpanded ? { backgroundColor: "transparent" } : void 0,
348
+ ...props,
349
+ children
350
+ }
351
+ );
332
352
  }
333
353
  );
334
354
  AccordionHeader.displayName = "AccordionHeader";
@@ -367,7 +387,7 @@ const AccordionTrigger = React.forwardRef(({ className, onClick, ...props }, ref
367
387
  AccordionTrigger.displayName = "AccordionTrigger";
368
388
  const AccordionContent = React.forwardRef(
369
389
  ({ children, className, ...props }, ref) => {
370
- const { isExpanded } = useAccordionItem();
390
+ const { isExpanded, noBorderOnOpen } = useAccordionItem();
371
391
  return /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: isExpanded && /* @__PURE__ */ jsx(
372
392
  motion.div,
373
393
  {
@@ -376,7 +396,10 @@ const AccordionContent = React.forwardRef(
376
396
  exit: { height: 0, opacity: 0 },
377
397
  transition: { duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] },
378
398
  className: cn(className),
379
- style: { willChange: "opacity" },
399
+ style: {
400
+ willChange: "opacity",
401
+ ...noBorderOnOpen ? { borderTop: "none" } : {}
402
+ },
380
403
  children: /* @__PURE__ */ jsx("div", { ref, ...props, children })
381
404
  }
382
405
  ) });
@@ -5841,6 +5864,42 @@ const UtilityEdit = ({ className }) => {
5841
5864
  }
5842
5865
  );
5843
5866
  };
5867
+ const UtilityMessage = ({
5868
+ className
5869
+ }) => {
5870
+ return /* @__PURE__ */ jsx(
5871
+ "div",
5872
+ {
5873
+ className: cn(
5874
+ "size-4 flex items-center justify-center text-gray-500",
5875
+ className
5876
+ ),
5877
+ children: /* @__PURE__ */ jsx(
5878
+ "svg",
5879
+ {
5880
+ xmlns: "http://www.w3.org/2000/svg",
5881
+ width: "22",
5882
+ height: "21",
5883
+ viewBox: "0 0 22 21",
5884
+ fill: "none",
5885
+ className: cn("size-[14px] text-inherit"),
5886
+ children: /* @__PURE__ */ jsx(
5887
+ "path",
5888
+ {
5889
+ d: "M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H5.828C5.29761 17.0001 4.78899 17.2109 4.414 17.586L2.212 19.788C2.1127 19.8873 1.9862 19.9549 1.84849 19.9823C1.71077 20.0097 1.56803 19.9956 1.43831 19.9419C1.30858 19.8881 1.1977 19.7971 1.11969 19.6804C1.04167 19.5637 1.00002 19.4264 1 19.286V3C1 2.46957 1.21071 1.96086 1.58579 1.58579C1.96086 1.21071 2.46957 1 3 1H19C19.5304 1 20.0391 1.21071 20.4142 1.58579C20.7893 1.96086 21 2.46957 21 3V15Z",
5890
+ fill: "currentColor",
5891
+ "fill-opacity": "0.2",
5892
+ stroke: "currentColor",
5893
+ "stroke-width": "2",
5894
+ "stroke-linecap": "round",
5895
+ "stroke-linejoin": "round"
5896
+ }
5897
+ )
5898
+ }
5899
+ )
5900
+ }
5901
+ );
5902
+ };
5844
5903
  function UtilityHome({ className }) {
5845
5904
  return /* @__PURE__ */ jsx(
5846
5905
  "div",
@@ -6598,6 +6657,67 @@ function UtilityRevisionsHide({ className }) {
6598
6657
  }
6599
6658
  );
6600
6659
  }
6660
+ const UtilityTrash = ({ className }) => {
6661
+ return /* @__PURE__ */ jsx(
6662
+ "div",
6663
+ {
6664
+ className: cn(
6665
+ "size-4 flex items-center justify-center text-gray-500",
6666
+ className
6667
+ ),
6668
+ children: /* @__PURE__ */ jsxs(
6669
+ "svg",
6670
+ {
6671
+ width: "15",
6672
+ height: "16",
6673
+ viewBox: "0 0 15 16",
6674
+ fill: "none",
6675
+ xmlns: "http://www.w3.org/2000/svg",
6676
+ className: cn("size-[14px] text-inherit"),
6677
+ children: [
6678
+ /* @__PURE__ */ jsx(
6679
+ "path",
6680
+ {
6681
+ d: "M11.9504 3.5498V13.3498C11.9504 13.7211 11.8029 14.0772 11.5403 14.3398C11.2778 14.6023 10.9217 14.7498 10.5504 14.7498H3.55039C3.17909 14.7498 2.82299 14.6023 2.56044 14.3398C2.29789 14.0772 2.15039 13.7211 2.15039 13.3498V3.5498",
6682
+ fill: "white"
6683
+ }
6684
+ ),
6685
+ /* @__PURE__ */ jsx(
6686
+ "path",
6687
+ {
6688
+ d: "M11.9504 3.5498V13.3498C11.9504 13.7211 11.8029 14.0772 11.5403 14.3398C11.2778 14.6023 10.9217 14.7498 10.5504 14.7498H3.55039C3.17909 14.7498 2.82299 14.6023 2.56044 14.3398C2.29789 14.0772 2.15039 13.7211 2.15039 13.3498V3.5498",
6689
+ stroke: "currentColor",
6690
+ "stroke-width": "1.5",
6691
+ "stroke-linecap": "round",
6692
+ "stroke-linejoin": "round"
6693
+ }
6694
+ ),
6695
+ /* @__PURE__ */ jsx(
6696
+ "path",
6697
+ {
6698
+ d: "M0.75 3.5498H13.35",
6699
+ stroke: "currentColor",
6700
+ "stroke-width": "1.5",
6701
+ "stroke-linecap": "round",
6702
+ "stroke-linejoin": "round"
6703
+ }
6704
+ ),
6705
+ /* @__PURE__ */ jsx(
6706
+ "path",
6707
+ {
6708
+ d: "M4.25 3.55V2.15C4.25 1.7787 4.3975 1.4226 4.66005 1.16005C4.9226 0.8975 5.2787 0.75 5.65 0.75H8.45C8.8213 0.75 9.1774 0.8975 9.43995 1.16005C9.7025 1.4226 9.85 1.7787 9.85 2.15V3.55",
6709
+ stroke: "currentColor",
6710
+ "stroke-width": "1.5",
6711
+ "stroke-linecap": "round",
6712
+ "stroke-linejoin": "round"
6713
+ }
6714
+ )
6715
+ ]
6716
+ }
6717
+ )
6718
+ }
6719
+ );
6720
+ };
6601
6721
  const UtilityTriangleInfo = ({
6602
6722
  className
6603
6723
  }) => {
@@ -9888,6 +10008,7 @@ export {
9888
10008
  UtilityDrag,
9889
10009
  UtilityEdit,
9890
10010
  UtilityHome,
10011
+ UtilityMessage,
9891
10012
  UtilityOptions,
9892
10013
  UtilityPortfolio,
9893
10014
  UtilityReset,
@@ -9901,6 +10022,7 @@ export {
9901
10022
  UtilityTarget,
9902
10023
  UtilityTargetActive,
9903
10024
  UtilityText,
10025
+ UtilityTrash,
9904
10026
  UtilityTriangleInfo,
9905
10027
  WaterMarkWWWProducts,
9906
10028
  WaterMarkWellProjects,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syscore/ui-library",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "A comprehensive React component library built with Radix UI, Tailwind CSS, and TypeScript",
5
5
  "private": false,
6
6
  "type": "module",