@crowdin/app-project-module 3.0.0 → 3.0.1

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.
@@ -17466,184 +17466,373 @@
17466
17466
  }
17467
17467
 
17468
17468
  /**
17469
- * @license lucide-react v0.526.0 - ISC
17469
+ * @license lucide-react v1.44.0 - ISC
17470
17470
  *
17471
17471
  * This source code is licensed under the ISC license.
17472
17472
  * See the LICENSE file in the root directory of this source tree.
17473
17473
  */
17474
17474
 
17475
- const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
17476
- const toCamelCase = (string) => string.replace(
17477
- /^([A-Z])|[\s-_]+(\w)/g,
17478
- (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
17479
- );
17475
+ const toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
17476
+
17477
+ /**
17478
+ * @license lucide-react v1.44.0 - ISC
17479
+ *
17480
+ * This source code is licensed under the ISC license.
17481
+ * See the LICENSE file in the root directory of this source tree.
17482
+ */
17483
+
17484
+
17485
+ function toLucideIconData(iconName, iconNode, aliases = []) {
17486
+ if (iconNode == null) {
17487
+ throw new Error("[lucide]: iconNode is required when icon name is used");
17488
+ }
17489
+ return {
17490
+ name: toKebabCase(iconName),
17491
+ size: 24,
17492
+ node: iconNode,
17493
+ ...aliases.length > 0 ? { aliases } : {}
17494
+ };
17495
+ }
17496
+
17497
+ /**
17498
+ * @license lucide-react v1.44.0 - ISC
17499
+ *
17500
+ * This source code is licensed under the ISC license.
17501
+ * See the LICENSE file in the root directory of this source tree.
17502
+ */
17503
+
17504
+ const toCamelCase = (string) => {
17505
+ let out = "";
17506
+ let upperNext = false;
17507
+ for (const ch of string) {
17508
+ if (ch === "-" || ch === "_" || ch <= " ") {
17509
+ upperNext = out.length > 0;
17510
+ continue;
17511
+ }
17512
+ if (out.length === 0) {
17513
+ out += ch.toLowerCase();
17514
+ } else {
17515
+ out += upperNext ? ch.toUpperCase() : ch;
17516
+ }
17517
+ upperNext = false;
17518
+ }
17519
+ return out;
17520
+ };
17521
+
17522
+ /**
17523
+ * @license lucide-react v1.44.0 - ISC
17524
+ *
17525
+ * This source code is licensed under the ISC license.
17526
+ * See the LICENSE file in the root directory of this source tree.
17527
+ */
17528
+
17529
+
17480
17530
  const toPascalCase = (string) => {
17481
17531
  const camelCase = toCamelCase(string);
17482
17532
  return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
17483
17533
  };
17534
+
17535
+ /**
17536
+ * @license lucide-react v1.44.0 - ISC
17537
+ *
17538
+ * This source code is licensed under the ISC license.
17539
+ * See the LICENSE file in the root directory of this source tree.
17540
+ */
17541
+
17484
17542
  const mergeClasses = (...classes) => classes.filter((className, index, array) => {
17485
17543
  return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
17486
17544
  }).join(" ").trim();
17487
- const hasA11yProp = (props) => {
17488
- for (const prop in props) {
17489
- if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
17490
- return true;
17491
- }
17492
- }
17493
- };
17494
17545
 
17495
17546
  /**
17496
- * @license lucide-react v0.526.0 - ISC
17547
+ * @license lucide-react v1.44.0 - ISC
17497
17548
  *
17498
17549
  * This source code is licensed under the ISC license.
17499
17550
  * See the LICENSE file in the root directory of this source tree.
17500
17551
  */
17501
17552
 
17502
- var defaultAttributes = {
17553
+ const defaultAttributes = {
17503
17554
  xmlns: "http://www.w3.org/2000/svg",
17504
17555
  width: 24,
17505
17556
  height: 24,
17506
17557
  viewBox: "0 0 24 24",
17507
17558
  fill: "none",
17508
17559
  stroke: "currentColor",
17509
- strokeWidth: 2,
17510
- strokeLinecap: "round",
17511
- strokeLinejoin: "round"
17560
+ "stroke-width": 2,
17561
+ "stroke-linecap": "round",
17562
+ "stroke-linejoin": "round"
17512
17563
  };
17513
17564
 
17514
17565
  /**
17515
- * @license lucide-react v0.526.0 - ISC
17566
+ * @license lucide-react v1.44.0 - ISC
17516
17567
  *
17517
17568
  * This source code is licensed under the ISC license.
17518
17569
  * See the LICENSE file in the root directory of this source tree.
17519
17570
  */
17520
17571
 
17521
17572
 
17573
+ function isDefined(value) {
17574
+ return value !== null && value !== void 0;
17575
+ }
17576
+ function buildLucideIconNode(icon, params = {}) {
17577
+ const attributeNames = params.attributeNames ?? {};
17578
+ const getAttributeName = (attributeName) => attributeNames[attributeName] ?? attributeName;
17579
+ const viewBoxWidth = icon.size ?? icon.width ?? defaultAttributes["width"];
17580
+ const viewBoxHeight = icon.size ?? icon.height ?? defaultAttributes["height"];
17581
+ const aliasClassNames = icon.aliases?.filter((alias) => typeof alias === "string" && alias.trim() !== "").map((alias) => `lucide-${alias}`) ?? [];
17582
+ const iconClassNames = [...icon.name ? [`lucide-${icon.name}`] : [], ...aliasClassNames];
17583
+ const classNamesFromClassName = params.className?.split(" ").filter(Boolean) ?? [];
17584
+ const className = params.includeDefaultClasses === false ? mergeClasses(...classNamesFromClassName) : mergeClasses("lucide", ...iconClassNames, ...classNamesFromClassName);
17585
+ const calculatedStrokeWidth = params.absoluteStrokeWidth ? Number(params.strokeWidth ?? defaultAttributes["stroke-width"]) * Number(icon.size ?? icon.width ?? defaultAttributes["width"]) / Number(params.size ?? params.width ?? defaultAttributes["width"]) : params.strokeWidth ?? defaultAttributes["stroke-width"];
17586
+ const attributes = {
17587
+ ...Object.entries(defaultAttributes).reduce((attrs, [attrName, value]) => {
17588
+ attrs[getAttributeName(attrName)] = value;
17589
+ return attrs;
17590
+ }, {}),
17591
+ ..."color" in params && params.color && {
17592
+ [getAttributeName("stroke")]: params.color
17593
+ },
17594
+ ..."size" in params && isDefined(params.size) && {
17595
+ [getAttributeName("width")]: params.size,
17596
+ [getAttributeName("height")]: params.size
17597
+ },
17598
+ ..."width" in params && isDefined(params.width) && {
17599
+ [getAttributeName("width")]: params.width
17600
+ },
17601
+ ..."height" in params && isDefined(params.height) && {
17602
+ [getAttributeName("height")]: params.height
17603
+ },
17604
+ [getAttributeName("stroke-width")]: calculatedStrokeWidth,
17605
+ ...className && {
17606
+ [getAttributeName("class")]: className
17607
+ },
17608
+ [getAttributeName("viewBox")]: `0 0 ${viewBoxWidth} ${viewBoxHeight}`,
17609
+ ...params.hasA11yProp === false ? {
17610
+ [getAttributeName("aria-hidden")]: "true"
17611
+ } : {},
17612
+ ..."attributes" in params && params.attributes
17613
+ };
17614
+ return [
17615
+ "svg",
17616
+ attributes,
17617
+ icon.node.map((child) => {
17618
+ const [name, attrs, children] = child;
17619
+ const nextAttrs = params.nonScalingStroke ? { [getAttributeName("vector-effect")]: "non-scaling-stroke", ...attrs } : attrs;
17620
+ return children ? [name, nextAttrs, children] : [name, nextAttrs];
17621
+ })
17622
+ ];
17623
+ }
17624
+
17625
+ /**
17626
+ * @license lucide-react v1.44.0 - ISC
17627
+ *
17628
+ * This source code is licensed under the ISC license.
17629
+ * See the LICENSE file in the root directory of this source tree.
17630
+ */
17631
+
17632
+
17633
+ function buildLucideIconForReact(icon, params = {}) {
17634
+ return buildLucideIconNode(icon, {
17635
+ ...params,
17636
+ attributeNames: {
17637
+ ...params.attributeNames,
17638
+ class: "className",
17639
+ "stroke-width": "strokeWidth",
17640
+ "stroke-linecap": "strokeLinecap",
17641
+ "stroke-linejoin": "strokeLinejoin",
17642
+ "vector-effect": "vectorEffect"
17643
+ }
17644
+ });
17645
+ }
17646
+
17647
+ /**
17648
+ * @license lucide-react v1.44.0 - ISC
17649
+ *
17650
+ * This source code is licensed under the ISC license.
17651
+ * See the LICENSE file in the root directory of this source tree.
17652
+ */
17653
+
17654
+ const hasA11yProp = (props) => {
17655
+ for (const prop in props) {
17656
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
17657
+ return true;
17658
+ }
17659
+ }
17660
+ return false;
17661
+ };
17662
+
17663
+ const LucideContext = reactExports.createContext({});
17664
+ const useLucideContext = () => reactExports.useContext(LucideContext);
17665
+
17522
17666
  const Icon = reactExports.forwardRef(
17523
17667
  ({
17524
- color = "currentColor",
17525
- size = 24,
17526
- strokeWidth = 2,
17668
+ color,
17669
+ size,
17670
+ width,
17671
+ height,
17672
+ strokeWidth,
17527
17673
  absoluteStrokeWidth,
17674
+ nonScalingStroke,
17528
17675
  className = "",
17529
17676
  children,
17530
- iconNode,
17531
- ...rest
17532
- }, ref) => reactExports.createElement(
17533
- "svg",
17534
- {
17535
- ref,
17536
- ...defaultAttributes,
17537
- width: size,
17538
- height: size,
17539
- stroke: color,
17540
- strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
17541
- className: mergeClasses("lucide", className),
17542
- ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
17543
- ...rest
17677
+ iconNode = [],
17678
+ icon = {
17679
+ node: iconNode,
17680
+ aliases: [],
17681
+ size: 24
17544
17682
  },
17545
- [
17546
- ...iconNode.map(([tag, attrs]) => reactExports.createElement(tag, attrs)),
17547
- ...Array.isArray(children) ? children : [children]
17548
- ]
17549
- )
17683
+ ...rest
17684
+ }, ref) => {
17685
+ const {
17686
+ size: contextSize = 24,
17687
+ strokeWidth: contextStrokeWidth = 2,
17688
+ absoluteStrokeWidth: contextAbsoluteStrokeWidth = false,
17689
+ nonScalingStroke: contextNonScalingStroke = false,
17690
+ color: contextColor = "currentColor",
17691
+ className: contextClass = ""
17692
+ } = useLucideContext() ?? {};
17693
+ const hasAccessibleProp = Boolean(children) || hasA11yProp(rest);
17694
+ const [name, svgAttributes, builtIconNode = []] = buildLucideIconForReact(icon, {
17695
+ color: color ?? contextColor,
17696
+ width: width ?? size ?? contextSize,
17697
+ height: height ?? size ?? contextSize,
17698
+ strokeWidth: strokeWidth ?? contextStrokeWidth,
17699
+ absoluteStrokeWidth: absoluteStrokeWidth ?? contextAbsoluteStrokeWidth,
17700
+ nonScalingStroke: nonScalingStroke ?? contextNonScalingStroke,
17701
+ className: mergeClasses(contextClass, className),
17702
+ hasA11yProp: hasAccessibleProp,
17703
+ attributes: rest
17704
+ });
17705
+ return reactExports.createElement(
17706
+ name,
17707
+ {
17708
+ ref,
17709
+ ...svgAttributes
17710
+ },
17711
+ [
17712
+ ...builtIconNode.map(([tag, attrs]) => reactExports.createElement(tag, attrs)),
17713
+ ...Array.isArray(children) ? children : [children]
17714
+ ]
17715
+ );
17716
+ }
17550
17717
  );
17551
17718
 
17552
17719
  /**
17553
- * @license lucide-react v0.526.0 - ISC
17720
+ * @license lucide-react v1.44.0 - ISC
17554
17721
  *
17555
17722
  * This source code is licensed under the ISC license.
17556
17723
  * See the LICENSE file in the root directory of this source tree.
17557
17724
  */
17558
17725
 
17559
17726
 
17560
- const createLucideIcon = (iconName, iconNode) => {
17727
+ function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
17728
+ const iconData = typeof iconDataOrName === "string" ? toLucideIconData(iconDataOrName, iconNode, aliases) : iconDataOrName;
17561
17729
  const Component = reactExports.forwardRef(
17562
17730
  ({ className, ...props }, ref) => reactExports.createElement(Icon, {
17563
17731
  ref,
17564
- iconNode,
17565
- className: mergeClasses(
17566
- `lucide-${toKebabCase(toPascalCase(iconName))}`,
17567
- `lucide-${iconName}`,
17568
- className
17569
- ),
17732
+ icon: iconData,
17733
+ className,
17570
17734
  ...props
17571
17735
  })
17572
17736
  );
17573
- Component.displayName = toPascalCase(iconName);
17737
+ if (iconData.name) {
17738
+ Component.displayName = toPascalCase(iconData.name);
17739
+ }
17574
17740
  return Component;
17575
- };
17741
+ }
17576
17742
 
17577
17743
  /**
17578
- * @license lucide-react v0.526.0 - ISC
17744
+ * @license lucide-react v1.44.0 - ISC
17579
17745
  *
17580
17746
  * This source code is licensed under the ISC license.
17581
17747
  * See the LICENSE file in the root directory of this source tree.
17582
17748
  */
17583
17749
 
17584
17750
 
17585
- const __iconNode$3 = [
17586
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
17587
- ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
17588
- ];
17589
- const CircleCheck = createLucideIcon("circle-check", __iconNode$3);
17751
+ const __iconData$3 = {
17752
+ name: "circle-check",
17753
+ size: 24,
17754
+ node: [
17755
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
17756
+ ["path", { d: "m16 9-5.5 5.5L8 12", key: "xofnsj" }]
17757
+ ],
17758
+ aliases: ["check-circle-2"]
17759
+ };
17760
+ __iconData$3.node;
17761
+ const CircleCheck = createLucideIcon(__iconData$3);
17590
17762
 
17591
17763
  /**
17592
- * @license lucide-react v0.526.0 - ISC
17764
+ * @license lucide-react v1.44.0 - ISC
17593
17765
  *
17594
17766
  * This source code is licensed under the ISC license.
17595
17767
  * See the LICENSE file in the root directory of this source tree.
17596
17768
  */
17597
17769
 
17598
17770
 
17599
- const __iconNode$2 = [
17600
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
17601
- ["path", { d: "M12 16v-4", key: "1dtifu" }],
17602
- ["path", { d: "M12 8h.01", key: "e9boi3" }]
17603
- ];
17604
- const Info = createLucideIcon("info", __iconNode$2);
17771
+ const __iconData$2 = {
17772
+ name: "info",
17773
+ size: 24,
17774
+ node: [
17775
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
17776
+ ["path", { d: "M12 16v-4", key: "1dtifu" }],
17777
+ ["path", { d: "M12 8h.01", key: "e9boi3" }]
17778
+ ]
17779
+ };
17780
+ __iconData$2.node;
17781
+ const Info = createLucideIcon(__iconData$2);
17605
17782
 
17606
17783
  /**
17607
- * @license lucide-react v0.526.0 - ISC
17784
+ * @license lucide-react v1.44.0 - ISC
17608
17785
  *
17609
17786
  * This source code is licensed under the ISC license.
17610
17787
  * See the LICENSE file in the root directory of this source tree.
17611
17788
  */
17612
17789
 
17613
17790
 
17614
- const __iconNode$1 = [
17615
- ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
17616
- [
17617
- "path",
17618
- {
17619
- d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",
17620
- key: "2d38gg"
17621
- }
17791
+ const __iconData$1 = {
17792
+ name: "octagon-x",
17793
+ size: 24,
17794
+ node: [
17795
+ ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
17796
+ [
17797
+ "path",
17798
+ {
17799
+ d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",
17800
+ key: "2d38gg"
17801
+ }
17802
+ ],
17803
+ ["path", { d: "m9 9 6 6", key: "z0biqf" }]
17622
17804
  ],
17623
- ["path", { d: "m9 9 6 6", key: "z0biqf" }]
17624
- ];
17625
- const OctagonX = createLucideIcon("octagon-x", __iconNode$1);
17805
+ aliases: ["x-octagon"]
17806
+ };
17807
+ __iconData$1.node;
17808
+ const OctagonX = createLucideIcon(__iconData$1);
17626
17809
 
17627
17810
  /**
17628
- * @license lucide-react v0.526.0 - ISC
17811
+ * @license lucide-react v1.44.0 - ISC
17629
17812
  *
17630
17813
  * This source code is licensed under the ISC license.
17631
17814
  * See the LICENSE file in the root directory of this source tree.
17632
17815
  */
17633
17816
 
17634
17817
 
17635
- const __iconNode = [
17636
- [
17637
- "path",
17638
- {
17639
- d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
17640
- key: "wmoenq"
17641
- }
17818
+ const __iconData = {
17819
+ name: "triangle-alert",
17820
+ size: 24,
17821
+ node: [
17822
+ [
17823
+ "path",
17824
+ {
17825
+ d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
17826
+ key: "wmoenq"
17827
+ }
17828
+ ],
17829
+ ["path", { d: "M12 9v4", key: "juzpu7" }],
17830
+ ["path", { d: "M12 17h.01", key: "p32p05" }]
17642
17831
  ],
17643
- ["path", { d: "M12 9v4", key: "juzpu7" }],
17644
- ["path", { d: "M12 17h.01", key: "p32p05" }]
17645
- ];
17646
- const TriangleAlert = createLucideIcon("triangle-alert", __iconNode);
17832
+ aliases: ["alert-triangle"]
17833
+ };
17834
+ __iconData.node;
17835
+ const TriangleAlert = createLucideIcon(__iconData);
17647
17836
 
17648
17837
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
17649
17838