@moderneinc/neo-styled-components 4.1.0 → 4.1.1-next.30e35f

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.js CHANGED
@@ -478,7 +478,7 @@ const NeoActivityIndicatorCell = ({ event = 'commit-job', secondaryEvent, scene
478
478
  NeoActivityIndicatorCell.displayName = 'NeoActivityIndicatorCell';
479
479
 
480
480
  /**
481
- * @license lucide-react v0.577.0 - ISC
481
+ * @license lucide-react v1.7.0 - ISC
482
482
  *
483
483
  * This source code is licensed under the ISC license.
484
484
  * See the LICENSE file in the root directory of this source tree.
@@ -489,7 +489,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
489
489
  }).join(" ").trim();
490
490
 
491
491
  /**
492
- * @license lucide-react v0.577.0 - ISC
492
+ * @license lucide-react v1.7.0 - ISC
493
493
  *
494
494
  * This source code is licensed under the ISC license.
495
495
  * See the LICENSE file in the root directory of this source tree.
@@ -498,7 +498,7 @@ const mergeClasses = (...classes) => classes.filter((className, index, array) =>
498
498
  const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
499
499
 
500
500
  /**
501
- * @license lucide-react v0.577.0 - ISC
501
+ * @license lucide-react v1.7.0 - ISC
502
502
  *
503
503
  * This source code is licensed under the ISC license.
504
504
  * See the LICENSE file in the root directory of this source tree.
@@ -510,7 +510,7 @@ const toCamelCase = (string) => string.replace(
510
510
  );
511
511
 
512
512
  /**
513
- * @license lucide-react v0.577.0 - ISC
513
+ * @license lucide-react v1.7.0 - ISC
514
514
  *
515
515
  * This source code is licensed under the ISC license.
516
516
  * See the LICENSE file in the root directory of this source tree.
@@ -523,7 +523,7 @@ const toPascalCase = (string) => {
523
523
  };
524
524
 
525
525
  /**
526
- * @license lucide-react v0.577.0 - ISC
526
+ * @license lucide-react v1.7.0 - ISC
527
527
  *
528
528
  * This source code is licensed under the ISC license.
529
529
  * See the LICENSE file in the root directory of this source tree.
@@ -542,7 +542,7 @@ var defaultAttributes = {
542
542
  };
543
543
 
544
544
  /**
545
- * @license lucide-react v0.577.0 - ISC
545
+ * @license lucide-react v1.7.0 - ISC
546
546
  *
547
547
  * This source code is licensed under the ISC license.
548
548
  * See the LICENSE file in the root directory of this source tree.
@@ -557,46 +557,42 @@ const hasA11yProp = (props) => {
557
557
  return false;
558
558
  };
559
559
 
560
- /**
561
- * @license lucide-react v0.577.0 - ISC
562
- *
563
- * This source code is licensed under the ISC license.
564
- * See the LICENSE file in the root directory of this source tree.
565
- */
566
-
560
+ const LucideContext = React.createContext({});
561
+ const useLucideContext = () => React.useContext(LucideContext);
567
562
 
568
563
  const Icon = React.forwardRef(
569
- ({
570
- color = "currentColor",
571
- size = 24,
572
- strokeWidth = 2,
573
- absoluteStrokeWidth,
574
- className = "",
575
- children,
576
- iconNode,
577
- ...rest
578
- }, ref) => React.createElement(
579
- "svg",
580
- {
581
- ref,
582
- ...defaultAttributes,
583
- width: size,
584
- height: size,
585
- stroke: color,
586
- strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
587
- className: mergeClasses("lucide", className),
588
- ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
589
- ...rest
590
- },
591
- [
592
- ...iconNode.map(([tag, attrs]) => React.createElement(tag, attrs)),
593
- ...Array.isArray(children) ? children : [children]
594
- ]
595
- )
564
+ ({ color, size, strokeWidth, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => {
565
+ const {
566
+ size: contextSize = 24,
567
+ strokeWidth: contextStrokeWidth = 2,
568
+ absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
569
+ color: contextColor = "currentColor",
570
+ className: contextClass = ""
571
+ } = useLucideContext() ?? {};
572
+ const calculatedStrokeWidth = absoluteStrokeWidth ?? contextAbsoluteStrokeWidth ? Number(strokeWidth ?? contextStrokeWidth) * 24 / Number(size ?? contextSize) : strokeWidth ?? contextStrokeWidth;
573
+ return React.createElement(
574
+ "svg",
575
+ {
576
+ ref,
577
+ ...defaultAttributes,
578
+ width: size ?? contextSize ?? defaultAttributes.width,
579
+ height: size ?? contextSize ?? defaultAttributes.height,
580
+ stroke: color ?? contextColor,
581
+ strokeWidth: calculatedStrokeWidth,
582
+ className: mergeClasses("lucide", contextClass, className),
583
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
584
+ ...rest
585
+ },
586
+ [
587
+ ...iconNode.map(([tag, attrs]) => React.createElement(tag, attrs)),
588
+ ...Array.isArray(children) ? children : [children]
589
+ ]
590
+ );
591
+ }
596
592
  );
597
593
 
598
594
  /**
599
- * @license lucide-react v0.577.0 - ISC
595
+ * @license lucide-react v1.7.0 - ISC
600
596
  *
601
597
  * This source code is licensed under the ISC license.
602
598
  * See the LICENSE file in the root directory of this source tree.
@@ -621,7 +617,7 @@ const createLucideIcon = (iconName, iconNode) => {
621
617
  };
622
618
 
623
619
  /**
624
- * @license lucide-react v0.577.0 - ISC
620
+ * @license lucide-react v1.7.0 - ISC
625
621
  *
626
622
  * This source code is licensed under the ISC license.
627
623
  * See the LICENSE file in the root directory of this source tree.
@@ -635,7 +631,7 @@ const __iconNode$k = [
635
631
  const ArrowDown = createLucideIcon("arrow-down", __iconNode$k);
636
632
 
637
633
  /**
638
- * @license lucide-react v0.577.0 - ISC
634
+ * @license lucide-react v1.7.0 - ISC
639
635
  *
640
636
  * This source code is licensed under the ISC license.
641
637
  * See the LICENSE file in the root directory of this source tree.
@@ -649,7 +645,7 @@ const __iconNode$j = [
649
645
  const ArrowUp = createLucideIcon("arrow-up", __iconNode$j);
650
646
 
651
647
  /**
652
- * @license lucide-react v0.577.0 - ISC
648
+ * @license lucide-react v1.7.0 - ISC
653
649
  *
654
650
  * This source code is licensed under the ISC license.
655
651
  * See the LICENSE file in the root directory of this source tree.
@@ -670,7 +666,7 @@ const __iconNode$i = [
670
666
  const BadgeInfo = createLucideIcon("badge-info", __iconNode$i);
671
667
 
672
668
  /**
673
- * @license lucide-react v0.577.0 - ISC
669
+ * @license lucide-react v1.7.0 - ISC
674
670
  *
675
671
  * This source code is licensed under the ISC license.
676
672
  * See the LICENSE file in the root directory of this source tree.
@@ -692,7 +688,7 @@ const __iconNode$h = [
692
688
  const CalendarDays = createLucideIcon("calendar-days", __iconNode$h);
693
689
 
694
690
  /**
695
- * @license lucide-react v0.577.0 - ISC
691
+ * @license lucide-react v1.7.0 - ISC
696
692
  *
697
693
  * This source code is licensed under the ISC license.
698
694
  * See the LICENSE file in the root directory of this source tree.
@@ -703,7 +699,7 @@ const __iconNode$g = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
703
699
  const ChevronDown = createLucideIcon("chevron-down", __iconNode$g);
704
700
 
705
701
  /**
706
- * @license lucide-react v0.577.0 - ISC
702
+ * @license lucide-react v1.7.0 - ISC
707
703
  *
708
704
  * This source code is licensed under the ISC license.
709
705
  * See the LICENSE file in the root directory of this source tree.
@@ -714,7 +710,7 @@ const __iconNode$f = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
714
710
  const ChevronLeft = createLucideIcon("chevron-left", __iconNode$f);
715
711
 
716
712
  /**
717
- * @license lucide-react v0.577.0 - ISC
713
+ * @license lucide-react v1.7.0 - ISC
718
714
  *
719
715
  * This source code is licensed under the ISC license.
720
716
  * See the LICENSE file in the root directory of this source tree.
@@ -725,7 +721,7 @@ const __iconNode$e = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
725
721
  const ChevronRight = createLucideIcon("chevron-right", __iconNode$e);
726
722
 
727
723
  /**
728
- * @license lucide-react v0.577.0 - ISC
724
+ * @license lucide-react v1.7.0 - ISC
729
725
  *
730
726
  * This source code is licensed under the ISC license.
731
727
  * See the LICENSE file in the root directory of this source tree.
@@ -736,7 +732,7 @@ const __iconNode$d = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
736
732
  const ChevronUp = createLucideIcon("chevron-up", __iconNode$d);
737
733
 
738
734
  /**
739
- * @license lucide-react v0.577.0 - ISC
735
+ * @license lucide-react v1.7.0 - ISC
740
736
  *
741
737
  * This source code is licensed under the ISC license.
742
738
  * See the LICENSE file in the root directory of this source tree.
@@ -750,7 +746,7 @@ const __iconNode$c = [
750
746
  const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$c);
751
747
 
752
748
  /**
753
- * @license lucide-react v0.577.0 - ISC
749
+ * @license lucide-react v1.7.0 - ISC
754
750
  *
755
751
  * This source code is licensed under the ISC license.
756
752
  * See the LICENSE file in the root directory of this source tree.
@@ -765,7 +761,7 @@ const __iconNode$b = [
765
761
  const CircleAlert = createLucideIcon("circle-alert", __iconNode$b);
766
762
 
767
763
  /**
768
- * @license lucide-react v0.577.0 - ISC
764
+ * @license lucide-react v1.7.0 - ISC
769
765
  *
770
766
  * This source code is licensed under the ISC license.
771
767
  * See the LICENSE file in the root directory of this source tree.
@@ -779,7 +775,7 @@ const __iconNode$a = [
779
775
  const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$a);
780
776
 
781
777
  /**
782
- * @license lucide-react v0.577.0 - ISC
778
+ * @license lucide-react v1.7.0 - ISC
783
779
  *
784
780
  * This source code is licensed under the ISC license.
785
781
  * See the LICENSE file in the root directory of this source tree.
@@ -794,7 +790,7 @@ const __iconNode$9 = [
794
790
  const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$9);
795
791
 
796
792
  /**
797
- * @license lucide-react v0.577.0 - ISC
793
+ * @license lucide-react v1.7.0 - ISC
798
794
  *
799
795
  * This source code is licensed under the ISC license.
800
796
  * See the LICENSE file in the root directory of this source tree.
@@ -809,7 +805,7 @@ const __iconNode$8 = [
809
805
  const Columns3 = createLucideIcon("columns-3", __iconNode$8);
810
806
 
811
807
  /**
812
- * @license lucide-react v0.577.0 - ISC
808
+ * @license lucide-react v1.7.0 - ISC
813
809
  *
814
810
  * This source code is licensed under the ISC license.
815
811
  * See the LICENSE file in the root directory of this source tree.
@@ -824,7 +820,7 @@ const __iconNode$7 = [
824
820
  const ListFilter = createLucideIcon("list-filter", __iconNode$7);
825
821
 
826
822
  /**
827
- * @license lucide-react v0.577.0 - ISC
823
+ * @license lucide-react v1.7.0 - ISC
828
824
  *
829
825
  * This source code is licensed under the ISC license.
830
826
  * See the LICENSE file in the root directory of this source tree.
@@ -835,7 +831,7 @@ const __iconNode$6 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
835
831
  const Minus = createLucideIcon("minus", __iconNode$6);
836
832
 
837
833
  /**
838
- * @license lucide-react v0.577.0 - ISC
834
+ * @license lucide-react v1.7.0 - ISC
839
835
  *
840
836
  * This source code is licensed under the ISC license.
841
837
  * See the LICENSE file in the root directory of this source tree.
@@ -849,7 +845,7 @@ const __iconNode$5 = [
849
845
  const Plus = createLucideIcon("plus", __iconNode$5);
850
846
 
851
847
  /**
852
- * @license lucide-react v0.577.0 - ISC
848
+ * @license lucide-react v1.7.0 - ISC
853
849
  *
854
850
  * This source code is licensed under the ISC license.
855
851
  * See the LICENSE file in the root directory of this source tree.
@@ -863,7 +859,7 @@ const __iconNode$4 = [
863
859
  const Search = createLucideIcon("search", __iconNode$4);
864
860
 
865
861
  /**
866
- * @license lucide-react v0.577.0 - ISC
862
+ * @license lucide-react v1.7.0 - ISC
867
863
  *
868
864
  * This source code is licensed under the ISC license.
869
865
  * See the LICENSE file in the root directory of this source tree.
@@ -880,7 +876,7 @@ const __iconNode$3 = [
880
876
  const Trash2 = createLucideIcon("trash-2", __iconNode$3);
881
877
 
882
878
  /**
883
- * @license lucide-react v0.577.0 - ISC
879
+ * @license lucide-react v1.7.0 - ISC
884
880
  *
885
881
  * This source code is licensed under the ISC license.
886
882
  * See the LICENSE file in the root directory of this source tree.
@@ -901,7 +897,7 @@ const __iconNode$2 = [
901
897
  const TriangleAlert = createLucideIcon("triangle-alert", __iconNode$2);
902
898
 
903
899
  /**
904
- * @license lucide-react v0.577.0 - ISC
900
+ * @license lucide-react v1.7.0 - ISC
905
901
  *
906
902
  * This source code is licensed under the ISC license.
907
903
  * See the LICENSE file in the root directory of this source tree.
@@ -920,7 +916,7 @@ const __iconNode$1 = [
920
916
  const WifiOff = createLucideIcon("wifi-off", __iconNode$1);
921
917
 
922
918
  /**
923
- * @license lucide-react v0.577.0 - ISC
919
+ * @license lucide-react v1.7.0 - ISC
924
920
  *
925
921
  * This source code is licensed under the ISC license.
926
922
  * See the LICENSE file in the root directory of this source tree.