@sia.soul/sia-react-ui 0.1.88 → 0.1.90
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/{chunk-RR7HW5HO.js → chunk-7BJPQCRG.js} +4 -3
- package/dist/{chunk-D752QGE6.js → chunk-AG2VFAZR.js} +2 -2
- package/dist/{chunk-U2WPN6TD.js → chunk-G5K72R4O.js} +516 -241
- package/dist/{chunk-QZG6XT65.js → chunk-GLXGN5SO.js} +2 -2
- package/dist/{chunk-CKX3AKMT.js → chunk-OPYA3PMD.js} +1 -1
- package/dist/{core-BU7dVRuz.d.ts → core-BGA9VB0L.d.ts} +10 -5
- package/dist/{core-DGaJTy1i.d.cts → core-OIIkAeiG.d.cts} +10 -5
- package/dist/core.cjs +1133 -858
- package/dist/core.css +1 -0
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +3 -3
- package/dist/index.cjs +3330 -3054
- package/dist/index.css +1 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/rich-text-editor.cjs +768 -493
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.cjs +928 -653
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
|
@@ -496,327 +496,602 @@ var extendedIconPaths = {
|
|
|
496
496
|
] })
|
|
497
497
|
};
|
|
498
498
|
|
|
499
|
+
// src/components/iconBounds.ts
|
|
500
|
+
var outlineIconBounds = {
|
|
501
|
+
"activity": [3, 6, 18, 13],
|
|
502
|
+
"align-center": [4, 6, 16, 12],
|
|
503
|
+
"align-justify": [4, 6, 16, 12],
|
|
504
|
+
"align-left": [4, 6, 16, 12],
|
|
505
|
+
"align-right": [4, 6, 16, 12],
|
|
506
|
+
"appstore": [3, 3, 18, 18],
|
|
507
|
+
"area-chart": [3, 5, 18, 15],
|
|
508
|
+
"arrow-down": [5, 3, 14, 18],
|
|
509
|
+
"arrow-left": [3, 5, 18, 14],
|
|
510
|
+
"arrow-right": [3, 5, 18, 14],
|
|
511
|
+
"arrow-up": [5, 3, 14, 18],
|
|
512
|
+
"bank": [3, 3, 18, 18],
|
|
513
|
+
"bar-chart": [3, 4, 18, 17],
|
|
514
|
+
"barcode": [4, 5, 16, 14],
|
|
515
|
+
"bell": [3, 3, 18, 18],
|
|
516
|
+
"bold": [7, 4, 11, 16],
|
|
517
|
+
"book": [4, 3, 16, 19],
|
|
518
|
+
"branches": [4, 3, 16, 18],
|
|
519
|
+
"bug": [5, 5, 14, 15],
|
|
520
|
+
"bulb": [5.000001, 2.255438, 14.000001, 18.744562],
|
|
521
|
+
"calculator": [5, 2, 14, 20],
|
|
522
|
+
"calendar": [3, 3, 18, 18],
|
|
523
|
+
"camera": [3, 4, 18, 16],
|
|
524
|
+
"car": [3, 4, 18, 16],
|
|
525
|
+
"check": [4, 6.5, 16, 11],
|
|
526
|
+
"chevron-down": [5, 8.5, 14, 7],
|
|
527
|
+
"chevron-left": [8.5, 5, 7, 14],
|
|
528
|
+
"chevron-right": [8.5, 5, 7, 14],
|
|
529
|
+
"chevron-up": [5, 8.5, 14, 7],
|
|
530
|
+
"circle-check": [3, 3, 18, 18],
|
|
531
|
+
"circle-close": [3, 3, 18, 18],
|
|
532
|
+
"circle-minus": [3, 3, 18, 18],
|
|
533
|
+
"circle-plus": [3, 3, 18, 18],
|
|
534
|
+
"clipboard": [5, 3, 14, 18],
|
|
535
|
+
"clipboard-check": [5, 3, 14, 18],
|
|
536
|
+
"clock": [3, 3, 18, 18],
|
|
537
|
+
"close": [5, 5, 14, 14],
|
|
538
|
+
"cloud": [1.267807, 5.290112, 20.99, 13.79396],
|
|
539
|
+
"cloud-download": [1.100703, 5.621803, 21.657103, 15.378197],
|
|
540
|
+
"cloud-upload": [1.100703, 5.621803, 21.657103, 15.378197],
|
|
541
|
+
"code": [3, 6, 18, 12],
|
|
542
|
+
"coffee": [4, 3, 18, 17],
|
|
543
|
+
"columns": [3, 4, 18, 16],
|
|
544
|
+
"comments": [3, 4, 18, 17],
|
|
545
|
+
"compass": [3, 3, 18, 18],
|
|
546
|
+
"component": [4, 4, 16, 16],
|
|
547
|
+
"copy": [4, 4, 16, 16],
|
|
548
|
+
"corner-up-left": [4, 5, 16, 14],
|
|
549
|
+
"corner-up-right": [4, 5, 16, 14],
|
|
550
|
+
"database": [4, 2, 16, 20],
|
|
551
|
+
"desktop": [3, 3, 18, 18],
|
|
552
|
+
"double-left": [5, 5, 14, 14],
|
|
553
|
+
"double-right": [5, 5, 14, 14],
|
|
554
|
+
"download": [4, 3, 16, 17],
|
|
555
|
+
"edit": [4, 4.171572, 16, 15.828428],
|
|
556
|
+
"eraser": [4, 5, 17, 15],
|
|
557
|
+
"expand": [4, 4, 16, 16],
|
|
558
|
+
"experiment": [3.720577, 3, 16.558847, 19.019615],
|
|
559
|
+
"external-link": [3, 4, 17, 17],
|
|
560
|
+
"eye": [2.5, 6, 19, 12],
|
|
561
|
+
"eye-off": [2.5, 3, 19, 18],
|
|
562
|
+
"fast-backward": [4, 6, 16, 12],
|
|
563
|
+
"fast-forward": [4, 6, 16, 12],
|
|
564
|
+
"file": [6, 3, 12, 18],
|
|
565
|
+
"file-check": [6, 3, 12, 18],
|
|
566
|
+
"file-plus": [6, 3, 12, 18],
|
|
567
|
+
"file-spreadsheet": [6, 3, 12, 18],
|
|
568
|
+
"file-warning": [6, 3, 12, 18],
|
|
569
|
+
"filter": [3, 5, 18, 16],
|
|
570
|
+
"flip-horizontal": [3, 3, 18, 18],
|
|
571
|
+
"flip-vertical": [3, 3, 18, 18],
|
|
572
|
+
"folder": [3, 6, 18, 13],
|
|
573
|
+
"folder-plus": [3, 6, 18, 13],
|
|
574
|
+
"frown": [3, 3, 18, 18],
|
|
575
|
+
"fullscreen": [4, 4, 16, 16],
|
|
576
|
+
"fullscreen-exit": [4, 4, 16, 16],
|
|
577
|
+
"game-backpack": [4, 1.5, 16, 19.5],
|
|
578
|
+
"game-cultivator": [7, 2, 10, 19],
|
|
579
|
+
"game-elixir-jar": [5, 3, 14, 18],
|
|
580
|
+
"game-flame": [4.5, 2.5, 15.000168, 19.950167],
|
|
581
|
+
"game-gem": [4, 4, 16, 17],
|
|
582
|
+
"game-herb": [4, 5.488038, 16, 15.511962],
|
|
583
|
+
"game-ingot": [3, 6, 18, 13.5],
|
|
584
|
+
"game-meditate": [4, 3, 16, 18],
|
|
585
|
+
"game-necklace": [5, 4, 14, 16],
|
|
586
|
+
"game-pants": [6, 3, 12, 18],
|
|
587
|
+
"game-pendant": [5, 4, 14, 16.6],
|
|
588
|
+
"game-pill": [4.510922, 4.522434, 14.966641, 14.966642],
|
|
589
|
+
"game-potion": [4.370614, 3, 15.258771, 18.002394],
|
|
590
|
+
"game-qi": [3, 3, 18, 18],
|
|
591
|
+
"game-robe": [4.5, 4, 15, 17],
|
|
592
|
+
"game-soul-elixir": [2.5, 2.5, 19, 19],
|
|
593
|
+
"game-spirit-wolf": [4, 4.2, 16.025938, 16.5],
|
|
594
|
+
"game-sword": [4, 3.5, 15.5, 16.5],
|
|
595
|
+
"game-swordsman": [7, 2.5, 12.900002, 18.5],
|
|
596
|
+
"gift": [3, 3.17335, 18, 17.826651],
|
|
597
|
+
"github": [3.699682, 3.977686, 16.600634, 18.022314],
|
|
598
|
+
"heart": [1.584567, 4.178144, 20.83729, 16.821857],
|
|
599
|
+
"help-circle": [3, 3, 18, 18],
|
|
600
|
+
"highlighter": [3, 4, 16, 16],
|
|
601
|
+
"home": [3.5, 4, 17, 16],
|
|
602
|
+
"image": [3, 4, 18, 16],
|
|
603
|
+
"info": [3, 3, 18, 18],
|
|
604
|
+
"italic": [6, 4, 12, 16],
|
|
605
|
+
"key": [4, 4, 15, 15],
|
|
606
|
+
"laptop": [3, 5, 18, 14],
|
|
607
|
+
"line-chart": [3, 5, 18, 15],
|
|
608
|
+
"link": [-0.034671, 4.964466, 24.070208, 14.070206],
|
|
609
|
+
"list-ordered": [4, 5, 17, 15],
|
|
610
|
+
"list-unordered": [4, 5.5, 17, 13],
|
|
611
|
+
"loader": [3, 3, 18, 18],
|
|
612
|
+
"location": [5, 2, 14, 20],
|
|
613
|
+
"lock": [4, 3, 16, 18],
|
|
614
|
+
"login": [5, 5, 12, 14],
|
|
615
|
+
"logout": [7, 5, 12, 14],
|
|
616
|
+
"mail": [3, 5, 18, 14],
|
|
617
|
+
"meh": [3, 3, 18, 18],
|
|
618
|
+
"menu": [4, 6, 16, 12],
|
|
619
|
+
"menu-fold": [4, 6, 16, 12],
|
|
620
|
+
"menu-unfold": [4, 6, 16, 12],
|
|
621
|
+
"message": [4, 4, 16, 17],
|
|
622
|
+
"microphone": [5, 3, 14, 18],
|
|
623
|
+
"minus": [4, 12, 16, 0],
|
|
624
|
+
"mobile": [7, 2, 10, 20],
|
|
625
|
+
"moon": [3.717114, 4, 16.282887, 16.282888],
|
|
626
|
+
"more-horizontal": [5, 12, 14.1, 0],
|
|
627
|
+
"more-vertical": [12, 5, 0, 14.1],
|
|
628
|
+
"move": [3, 3, 18, 18],
|
|
629
|
+
"notepad-file": [3.375, 1.875, 17.25, 20.25],
|
|
630
|
+
"notepad-folder": [1.875, 2.25, 20.2875, 19.5],
|
|
631
|
+
"notepad-virtual-folder": [0.75, 0.75, 22.5, 22.5],
|
|
632
|
+
"paperclip": [1.136039, 3, 21.106602, 18.86396],
|
|
633
|
+
"partition": [4, 1, 16, 20],
|
|
634
|
+
"pause": [3, 3, 18, 18],
|
|
635
|
+
"phone": [4.161916, 3.5, 16.338085, 16.338085],
|
|
636
|
+
"pie-chart": [2, 3, 18.5, 18],
|
|
637
|
+
"pin": [6.5, 3, 11, 18],
|
|
638
|
+
"pin-off": [3, 3, 18, 18],
|
|
639
|
+
"play": [3, 3, 18, 18],
|
|
640
|
+
"plus": [4, 4, 16, 16],
|
|
641
|
+
"power": [4, 3, 16.000002, 16.744997],
|
|
642
|
+
"printer": [4, 3, 16, 18],
|
|
643
|
+
"puzzle": [3, 3, 18, 18],
|
|
644
|
+
"qr-code": [3, 3, 18, 18],
|
|
645
|
+
"question": [3, 3, 18, 18],
|
|
646
|
+
"redo": [4, 7, 17, 12],
|
|
647
|
+
"refresh": [3.999998, 3.999709, 16.000002, 16.000002],
|
|
648
|
+
"rocket": [3, 3, 18, 18],
|
|
649
|
+
"rotate-left": [4, 3, 15.416197, 17],
|
|
650
|
+
"rotate-right": [4.583802, 3, 15.416199, 17],
|
|
651
|
+
"rows": [3, 4, 18, 16],
|
|
652
|
+
"save": [4, 3, 16, 18],
|
|
653
|
+
"scan": [3, 3, 18, 18],
|
|
654
|
+
"scissors": [3, 4, 17, 16],
|
|
655
|
+
"search": [4, 4, 17, 17],
|
|
656
|
+
"send": [3, 3, 18, 18],
|
|
657
|
+
"server": [3, 4, 18, 16],
|
|
658
|
+
"settings": [4, 4, 16, 16],
|
|
659
|
+
"share": [3, 2, 18, 20],
|
|
660
|
+
"shield": [4, 3, 16, 19],
|
|
661
|
+
"shield-check": [4, 3, 16, 19],
|
|
662
|
+
"shop": [3, 4, 18, 17],
|
|
663
|
+
"shopping-bag": [4, 3, 16, 18],
|
|
664
|
+
"shopping-cart": [3, 4, 17, 17],
|
|
665
|
+
"shrink": [5, 4, 14, 16],
|
|
666
|
+
"smile": [3, 3, 18, 18],
|
|
667
|
+
"sort-ascending": [3.5, 5, 17.5, 14],
|
|
668
|
+
"sort-descending": [3.5, 5, 17.5, 14],
|
|
669
|
+
"speaker-muted": [4, 6.4, 16.5, 11.200001],
|
|
670
|
+
"speaker-wave": [4, 6.4, 12.343426, 11.200001],
|
|
671
|
+
"square-check": [3, 3, 18, 18],
|
|
672
|
+
"square-close": [3, 3, 18, 18],
|
|
673
|
+
"square-minus": [3, 3, 18, 18],
|
|
674
|
+
"square-plus": [3, 3, 18, 18],
|
|
675
|
+
"star": [3, 3, 18, 17.200001],
|
|
676
|
+
"step-backward": [6, 5, 12, 14],
|
|
677
|
+
"step-forward": [6, 5, 12, 14],
|
|
678
|
+
"stop": [3, 3, 18, 18],
|
|
679
|
+
"strikethrough": [5, 4, 14, 16],
|
|
680
|
+
"sun": [2.5, 2.5, 19, 19],
|
|
681
|
+
"swap-horizontal": [4, 4, 16, 16],
|
|
682
|
+
"swap-vertical": [4, 4, 16, 16],
|
|
683
|
+
"tab-plus": [3, 4, 18, 16],
|
|
684
|
+
"table": [3, 4, 18, 16],
|
|
685
|
+
"tablet": [5, 2, 14, 20],
|
|
686
|
+
"tag": [3, 4, 18, 17],
|
|
687
|
+
"tags": [3, 4, 18, 17],
|
|
688
|
+
"target": [3, 3, 18, 18],
|
|
689
|
+
"tilde": [3, 9.214088, 18, 4.785912],
|
|
690
|
+
"token": [2.5, 2.5, 19, 19],
|
|
691
|
+
"tool": [4.870828, 2.816625, 16.750492, 16.804695],
|
|
692
|
+
"trash": [4, 3, 16, 18],
|
|
693
|
+
"trending-down": [4, 7, 16, 9],
|
|
694
|
+
"trending-up": [4, 8, 16, 9],
|
|
695
|
+
"trophy": [3.997966, 4, 16.004068, 16],
|
|
696
|
+
"truck": [3, 5, 18, 16],
|
|
697
|
+
"underline": [5, 4, 14, 17],
|
|
698
|
+
"undo": [3, 7, 17, 12],
|
|
699
|
+
"unlock": [4, 2.935554, 16, 18.064445],
|
|
700
|
+
"upload": [4, 4, 16, 16],
|
|
701
|
+
"user": [4.5, 4, 15, 17],
|
|
702
|
+
"user-minus": [3, 4, 19.5, 17],
|
|
703
|
+
"user-plus": [3, 4, 19.5, 17],
|
|
704
|
+
"users": [2.8, 4.5, 18.300001, 15.5],
|
|
705
|
+
"vertical-align-bottom": [4, 4, 16, 16],
|
|
706
|
+
"vertical-align-middle": [4, 4, 16, 16],
|
|
707
|
+
"vertical-align-top": [4, 4, 16, 16],
|
|
708
|
+
"video": [3, 5, 18, 14],
|
|
709
|
+
"volume-off": [4, 6, 18, 12],
|
|
710
|
+
"volume-up": [4, 6, 16.690525, 12],
|
|
711
|
+
"wallet": [3, 5, 18, 15],
|
|
712
|
+
"warning": [2.33137, 3.153565, 19.337257, 17.847614],
|
|
713
|
+
"wifi": [3, 5.723805, 18, 15.376196],
|
|
714
|
+
"zoom-in": [4, 4, 17, 17],
|
|
715
|
+
"zoom-out": [4, 4, 17, 17]
|
|
716
|
+
};
|
|
717
|
+
var filledIconBounds = {
|
|
718
|
+
"bell": [3, 2.499593, 18, 19.423376],
|
|
719
|
+
"book": [3, 1, 18, 22],
|
|
720
|
+
"calendar": [2.5, 2.5, 19, 19],
|
|
721
|
+
"circle-check": [2, 2, 20, 20],
|
|
722
|
+
"circle-close": [2, 2, 20, 20],
|
|
723
|
+
"circle-minus": [2, 2, 20, 20],
|
|
724
|
+
"circle-plus": [2, 2, 20, 20],
|
|
725
|
+
"clock": [2, 2, 20, 20],
|
|
726
|
+
"component": [3, 3, 18, 18],
|
|
727
|
+
"file": [5, 2.5, 14, 19.5],
|
|
728
|
+
"filter": [2, 4, 20, 18],
|
|
729
|
+
"folder": [2.5, 5, 19, 15],
|
|
730
|
+
"heart": [1.247845, 3.647845, 21.504313, 17.652155],
|
|
731
|
+
"home": [2.157447, 2.8, 19.500002, 18.200001],
|
|
732
|
+
"image": [2.5, 3.5, 19, 17],
|
|
733
|
+
"info": [2, 2, 20, 20],
|
|
734
|
+
"lock": [3, 2, 18, 20],
|
|
735
|
+
"mail": [2.5, 4.5, 19, 15],
|
|
736
|
+
"pause": [2, 2, 20, 20],
|
|
737
|
+
"play": [2, 2, 20, 20],
|
|
738
|
+
"question": [2, 2, 20, 20],
|
|
739
|
+
"star": [2.4, 2.199999, 19.200001, 18.200001],
|
|
740
|
+
"token": [1, 1, 22, 22],
|
|
741
|
+
"trash": [3, 3, 18, 18],
|
|
742
|
+
"unlock": [3, 1.979363, 18, 20.020638],
|
|
743
|
+
"user": [3.5, 3, 17, 18],
|
|
744
|
+
"users": [1.8, 4.2, 19.6, 16.799999],
|
|
745
|
+
"warning": [1.53137, 2.553565, 20.937256, 19.447613]
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
// src/components/iconGeometry.tsx
|
|
749
|
+
import { Children, cloneElement, isValidElement } from "react";
|
|
750
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
751
|
+
function compensateStroke(node, scale) {
|
|
752
|
+
return Children.map(node, (child) => {
|
|
753
|
+
if (!isValidElement(child)) return child;
|
|
754
|
+
const props = child.props;
|
|
755
|
+
return cloneElement(child, {
|
|
756
|
+
...props.strokeWidth === void 0 ? {} : { strokeWidth: Number(props.strokeWidth) / scale },
|
|
757
|
+
...props.children === void 0 ? {} : { children: compensateStroke(props.children, scale) }
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
function normalizeIconPaths(paths, bounds) {
|
|
762
|
+
return Object.fromEntries(Object.entries(paths).map(([name, node]) => {
|
|
763
|
+
const [x, y, width, height] = bounds[name];
|
|
764
|
+
const scale = 18 / Math.max(width, height);
|
|
765
|
+
const transform = `translate(${12 - (x + width / 2) * scale} ${12 - (y + height / 2) * scale}) scale(${scale})`;
|
|
766
|
+
return [name, { scale, node: /* @__PURE__ */ jsx2("g", { transform, children: compensateStroke(node, scale) }) }];
|
|
767
|
+
}));
|
|
768
|
+
}
|
|
769
|
+
|
|
499
770
|
// src/components/Icon.tsx
|
|
500
|
-
import { Fragment as Fragment2, jsx as
|
|
771
|
+
import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
501
772
|
var coreIconPaths = {
|
|
502
773
|
search: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ jsx3("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
|
|
775
|
+
/* @__PURE__ */ jsx3("path", { d: "m15.8 15.8 5.2 5.2" })
|
|
505
776
|
] }),
|
|
506
|
-
plus: /* @__PURE__ */
|
|
777
|
+
plus: /* @__PURE__ */ jsx3("path", { d: "M12 4v16M4 12h16" }),
|
|
507
778
|
// 数字区间用波浪线表达范围,避免箭头暗示跳转方向。
|
|
508
|
-
tilde: /* @__PURE__ */
|
|
509
|
-
minus: /* @__PURE__ */
|
|
510
|
-
close: /* @__PURE__ */
|
|
511
|
-
check: /* @__PURE__ */
|
|
779
|
+
tilde: /* @__PURE__ */ jsx3("path", { d: "M3 14c3-8 6-4 9-2s6 4 9-2" }),
|
|
780
|
+
minus: /* @__PURE__ */ jsx3("path", { d: "M4 12h16" }),
|
|
781
|
+
close: /* @__PURE__ */ jsx3("path", { d: "m5 5 14 14M19 5 5 19" }),
|
|
782
|
+
check: /* @__PURE__ */ jsx3("path", { d: "m4 12.5 5.2 5L20 6.5" }),
|
|
512
783
|
info: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
513
|
-
/* @__PURE__ */
|
|
514
|
-
/* @__PURE__ */
|
|
784
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
785
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 11v6M12 7.2v.1" })
|
|
515
786
|
] }),
|
|
516
787
|
question: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
517
|
-
/* @__PURE__ */
|
|
518
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
789
|
+
/* @__PURE__ */ jsx3("path", { d: "M9.8 9a2.4 2.4 0 1 1 3.5 2.2c-.9.5-1.3 1.1-1.3 2.1M12 16.8v.1" })
|
|
519
790
|
] }),
|
|
520
791
|
warning: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ jsx3("path", { d: "M10.3 4.1 2.6 18a2 2 0 0 0 1.8 3h15.2a2 2 0 0 0 1.8-3L13.7 4.1a2 2 0 0 0-3.4 0Z" }),
|
|
793
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 9v4M12 17v.1" })
|
|
523
794
|
] }),
|
|
524
795
|
"circle-check": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
/* @__PURE__ */
|
|
796
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
797
|
+
/* @__PURE__ */ jsx3("path", { d: "m8 12 2.7 2.7L16.5 9" })
|
|
527
798
|
] }),
|
|
528
799
|
"circle-close": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
529
|
-
/* @__PURE__ */
|
|
530
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
801
|
+
/* @__PURE__ */ jsx3("path", { d: "m9 9 6 6M15 9l-6 6" })
|
|
531
802
|
] }),
|
|
532
803
|
"circle-plus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
805
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 8v8M8 12h8" })
|
|
535
806
|
] }),
|
|
536
807
|
"circle-minus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
809
|
+
/* @__PURE__ */ jsx3("path", { d: "M8 12h8" })
|
|
539
810
|
] }),
|
|
540
|
-
"chevron-left": /* @__PURE__ */
|
|
541
|
-
"chevron-right": /* @__PURE__ */
|
|
542
|
-
"chevron-up": /* @__PURE__ */
|
|
543
|
-
"chevron-down": /* @__PURE__ */
|
|
811
|
+
"chevron-left": /* @__PURE__ */ jsx3("path", { d: "m15.5 5-7 7 7 7" }),
|
|
812
|
+
"chevron-right": /* @__PURE__ */ jsx3("path", { d: "m8.5 5 7 7-7 7" }),
|
|
813
|
+
"chevron-up": /* @__PURE__ */ jsx3("path", { d: "m5 15.5 7-7 7 7" }),
|
|
814
|
+
"chevron-down": /* @__PURE__ */ jsx3("path", { d: "m5 8.5 7 7 7-7" }),
|
|
544
815
|
"double-left": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
545
|
-
/* @__PURE__ */
|
|
546
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ jsx3("path", { d: "m12 5-7 7 7 7" }),
|
|
817
|
+
/* @__PURE__ */ jsx3("path", { d: "m19 5-7 7 7 7" })
|
|
547
818
|
] }),
|
|
548
819
|
"double-right": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
549
|
-
/* @__PURE__ */
|
|
550
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ jsx3("path", { d: "m5 5 7 7-7 7" }),
|
|
821
|
+
/* @__PURE__ */ jsx3("path", { d: "m12 5 7 7-7 7" })
|
|
551
822
|
] }),
|
|
552
823
|
"arrow-left": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ jsx3("path", { d: "m10 5-7 7 7 7" }),
|
|
825
|
+
/* @__PURE__ */ jsx3("path", { d: "M3 12h18" })
|
|
555
826
|
] }),
|
|
556
827
|
"arrow-right": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
557
|
-
/* @__PURE__ */
|
|
558
|
-
/* @__PURE__ */
|
|
828
|
+
/* @__PURE__ */ jsx3("path", { d: "m14 5 7 7-7 7" }),
|
|
829
|
+
/* @__PURE__ */ jsx3("path", { d: "M3 12h18" })
|
|
559
830
|
] }),
|
|
560
831
|
"arrow-up": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
561
|
-
/* @__PURE__ */
|
|
562
|
-
/* @__PURE__ */
|
|
832
|
+
/* @__PURE__ */ jsx3("path", { d: "m5 10 7-7 7 7" }),
|
|
833
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 3v18" })
|
|
563
834
|
] }),
|
|
564
835
|
"arrow-down": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ jsx3("path", { d: "m5 14 7 7 7-7" }),
|
|
837
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 3v18" })
|
|
567
838
|
] }),
|
|
568
|
-
menu: /* @__PURE__ */
|
|
569
|
-
"more-horizontal": /* @__PURE__ */
|
|
570
|
-
"more-vertical": /* @__PURE__ */
|
|
839
|
+
menu: /* @__PURE__ */ jsx3("path", { d: "M4 6h16M4 12h16M4 18h16" }),
|
|
840
|
+
"more-horizontal": /* @__PURE__ */ jsx3("path", { d: "M5 12h.1M12 12h.1M19 12h.1" }),
|
|
841
|
+
"more-vertical": /* @__PURE__ */ jsx3("path", { d: "M12 5v.1M12 12v.1M12 19v.1" }),
|
|
571
842
|
home: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ jsx3("path", { d: "m3.5 11 8.5-7 8.5 7" }),
|
|
844
|
+
/* @__PURE__ */ jsx3("path", { d: "M5.5 9.5V20h13V9.5M9.5 20v-6h5v6" })
|
|
574
845
|
] }),
|
|
575
846
|
user: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
576
|
-
/* @__PURE__ */
|
|
577
|
-
/* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "8", r: "4" }),
|
|
848
|
+
/* @__PURE__ */ jsx3("path", { d: "M4.5 21c.7-4.2 3.2-6.5 7.5-6.5s6.8 2.3 7.5 6.5" })
|
|
578
849
|
] }),
|
|
579
850
|
users: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
580
|
-
/* @__PURE__ */
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ jsx3("circle", { cx: "9", cy: "8", r: "3.5" }),
|
|
852
|
+
/* @__PURE__ */ jsx3("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
|
|
853
|
+
/* @__PURE__ */ jsx3("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
|
|
583
854
|
] }),
|
|
855
|
+
// 保留齿轮原始路径;与其余图标一起通过统一几何规则调整主体大小。
|
|
584
856
|
settings: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
585
|
-
/* @__PURE__ */
|
|
586
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "2.8" }),
|
|
858
|
+
/* @__PURE__ */ jsx3("path", { d: "M10.4 6.24 10.4 4 13.6 4 13.6 6.24 14.944 6.792 16.528 5.208 18.792 7.472 17.208 9.056 17.76 10.4 20 10.4 20 13.6 17.76 13.6 17.208 14.944 18.792 16.528 16.528 18.792 14.944 17.208 13.6 17.76 13.6 20 10.4 20 10.4 17.76 9.056 17.208 7.472 18.792 5.208 16.528 6.792 14.944 6.24 13.6 4 13.6 4 10.4 6.24 10.4 6.792 9.056 5.208 7.472 7.472 5.208 9.056 6.792Z" })
|
|
587
859
|
] }),
|
|
588
860
|
edit: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ jsx3("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
|
|
862
|
+
/* @__PURE__ */ jsx3("path", { d: "m13.5 6.5 4 4M4 20h16" })
|
|
591
863
|
] }),
|
|
592
864
|
copy: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
593
|
-
/* @__PURE__ */
|
|
594
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ jsx3("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2.5" }),
|
|
866
|
+
/* @__PURE__ */ jsx3("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
|
|
595
867
|
] }),
|
|
596
|
-
trash: /* @__PURE__ */
|
|
868
|
+
trash: /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3("path", { d: "M4 7h16M9 3h6l1 4H8l1-4ZM6 7l1 14h10l1-14M10 11v6M14 11v6" }) }),
|
|
597
869
|
scissors: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
598
|
-
/* @__PURE__ */
|
|
599
|
-
/* @__PURE__ */
|
|
600
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ jsx3("circle", { cx: "6", cy: "7", r: "3" }),
|
|
871
|
+
/* @__PURE__ */ jsx3("circle", { cx: "6", cy: "17", r: "3" }),
|
|
872
|
+
/* @__PURE__ */ jsx3("path", { d: "m8.7 8.3 11.3 6.2M8.7 15.7 20 9.5" })
|
|
601
873
|
] }),
|
|
602
874
|
undo: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
603
|
-
/* @__PURE__ */
|
|
604
|
-
/* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ jsx3("path", { d: "m8 7-5 5 5 5" }),
|
|
876
|
+
/* @__PURE__ */ jsx3("path", { d: "M3 12h10a7 7 0 0 1 7 7" })
|
|
605
877
|
] }),
|
|
606
878
|
redo: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ jsx3("path", { d: "m16 7 5 5-5 5" }),
|
|
880
|
+
/* @__PURE__ */ jsx3("path", { d: "M21 12H11a7 7 0 0 0-7 7" })
|
|
609
881
|
] }),
|
|
610
882
|
"zoom-in": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
611
|
-
/* @__PURE__ */
|
|
612
|
-
/* @__PURE__ */
|
|
883
|
+
/* @__PURE__ */ jsx3("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
|
|
884
|
+
/* @__PURE__ */ jsx3("path", { d: "m15.8 15.8 5.2 5.2M10.8 7.8v6M7.8 10.8h6" })
|
|
613
885
|
] }),
|
|
614
886
|
"zoom-out": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
-
/* @__PURE__ */
|
|
887
|
+
/* @__PURE__ */ jsx3("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
|
|
888
|
+
/* @__PURE__ */ jsx3("path", { d: "m15.8 15.8 5.2 5.2M7.8 10.8h6" })
|
|
617
889
|
] }),
|
|
618
890
|
// 图片变换工具使用独立图标,便于在预览及其他编辑界面复用。
|
|
619
|
-
"flip-horizontal": /* @__PURE__ */
|
|
620
|
-
"flip-vertical": /* @__PURE__ */
|
|
891
|
+
"flip-horizontal": /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3("path", { d: "M12 3v18M3 6h5v12H3zM16 6h5v12h-5z" }) }),
|
|
892
|
+
"flip-vertical": /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3("path", { d: "M3 12h18M6 3h12v5H6zM6 16h12v5H6z" }) }),
|
|
621
893
|
"rotate-left": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
-
/* @__PURE__ */
|
|
894
|
+
/* @__PURE__ */ jsx3("path", { d: "M4 9a8 8 0 1 1 0 6M4 3v6h6" }),
|
|
895
|
+
/* @__PURE__ */ jsx3("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
|
|
624
896
|
] }),
|
|
625
897
|
"rotate-right": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
626
|
-
/* @__PURE__ */
|
|
627
|
-
/* @__PURE__ */
|
|
898
|
+
/* @__PURE__ */ jsx3("path", { d: "M20 9a8 8 0 1 0 0 6M20 3v6h-6" }),
|
|
899
|
+
/* @__PURE__ */ jsx3("rect", { x: "9", y: "9", width: "6", height: "6", rx: "1" })
|
|
628
900
|
] }),
|
|
629
|
-
download: /* @__PURE__ */
|
|
630
|
-
upload: /* @__PURE__ */
|
|
901
|
+
download: /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3("path", { d: "M12 3v12M7 10l5 5 5-5M4 20h16" }) }),
|
|
902
|
+
upload: /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3("path", { d: "M12 16V4M7 9l5-5 5 5M4 20h16" }) }),
|
|
631
903
|
refresh: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
632
|
-
/* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */
|
|
904
|
+
/* @__PURE__ */ jsx3("path", { d: "M20 4v4.686h-4.686" }),
|
|
905
|
+
/* @__PURE__ */ jsx3("path", { d: "M20 8.686 17.657 6.343A8 8 0 1 0 20 12" })
|
|
634
906
|
] }),
|
|
635
|
-
loader: /* @__PURE__ */
|
|
907
|
+
loader: /* @__PURE__ */ jsx3("path", { d: "M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1" }),
|
|
636
908
|
calendar: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
-
/* @__PURE__ */
|
|
909
|
+
/* @__PURE__ */ jsx3("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
|
|
910
|
+
/* @__PURE__ */ jsx3("path", { d: "M8 3v4M16 3v4M3 10h18M7 14h2M11 14h2M15 14h2M7 18h2M11 18h2" })
|
|
639
911
|
] }),
|
|
640
912
|
clock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
641
|
-
/* @__PURE__ */
|
|
642
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
914
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 7v5l3.5 2" })
|
|
643
915
|
] }),
|
|
644
916
|
mail: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
645
|
-
/* @__PURE__ */
|
|
646
|
-
/* @__PURE__ */
|
|
917
|
+
/* @__PURE__ */ jsx3("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2.5" }),
|
|
918
|
+
/* @__PURE__ */ jsx3("path", { d: "m4 7 8 6 8-6" })
|
|
647
919
|
] }),
|
|
648
|
-
phone: /* @__PURE__ */
|
|
920
|
+
phone: /* @__PURE__ */ jsx3("path", { d: "M8.2 3.5 5.4 4.8c-1 .5-1.5 1.7-1.1 2.8 2.2 5.9 6.2 9.9 12.1 12.1 1.1.4 2.3-.1 2.8-1.1l1.3-2.8-4.2-2-1.4 2.1c-2.8-1.2-5.6-4-6.8-6.8l2.1-1.4-2-4.2Z" }),
|
|
649
921
|
link: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
650
|
-
/* @__PURE__ */
|
|
651
|
-
/* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ jsx3("path", { d: "m9.5 14.5 5-5" }),
|
|
923
|
+
/* @__PURE__ */ jsx3("path", { d: "M7.5 16.5 6 18a3.5 3.5 0 0 1-5-5l3-3a3.5 3.5 0 0 1 5 0M16.5 7.5 18 6a3.5 3.5 0 0 1 5 5l-3 3a3.5 3.5 0 0 1-5 0" })
|
|
652
924
|
] }),
|
|
653
925
|
"external-link": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
654
|
-
/* @__PURE__ */
|
|
655
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ jsx3("path", { d: "M14 4h6v6M20 4 11 13" }),
|
|
927
|
+
/* @__PURE__ */ jsx3("path", { d: "M19 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h6" })
|
|
656
928
|
] }),
|
|
657
929
|
eye: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
658
|
-
/* @__PURE__ */
|
|
659
|
-
/* @__PURE__ */
|
|
930
|
+
/* @__PURE__ */ jsx3("path", { d: "M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z" }),
|
|
931
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "3" })
|
|
660
932
|
] }),
|
|
661
|
-
"eye-off": /* @__PURE__ */
|
|
933
|
+
"eye-off": /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3("path", { d: "m3 3 18 18M10.6 6.1A10 10 0 0 1 12 6c6 0 9.5 6 9.5 6a14.5 14.5 0 0 1-2.2 3M6.4 6.4C3.9 8.2 2.5 12 2.5 12s3.5 6 9.5 6a9.7 9.7 0 0 0 3-.5M9.9 9.9a3 3 0 0 0 4.2 4.2" }) }),
|
|
662
934
|
lock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
-
/* @__PURE__ */
|
|
935
|
+
/* @__PURE__ */ jsx3("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
|
|
936
|
+
/* @__PURE__ */ jsx3("path", { d: "M8 10V7a4 4 0 0 1 8 0v3M12 14v3" })
|
|
665
937
|
] }),
|
|
666
938
|
unlock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
667
|
-
/* @__PURE__ */
|
|
668
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ jsx3("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
|
|
940
|
+
/* @__PURE__ */ jsx3("path", { d: "M8 10V7a4 4 0 0 1 7.5-2M12 14v3" })
|
|
669
941
|
] }),
|
|
670
942
|
bell: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
671
|
-
/* @__PURE__ */
|
|
672
|
-
/* @__PURE__ */
|
|
943
|
+
/* @__PURE__ */ jsx3("path", { d: "M18 9a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z" }),
|
|
944
|
+
/* @__PURE__ */ jsx3("path", { d: "M10 21h4" })
|
|
673
945
|
] }),
|
|
674
|
-
star: /* @__PURE__ */
|
|
675
|
-
heart: /* @__PURE__ */
|
|
946
|
+
star: /* @__PURE__ */ jsx3("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z" }),
|
|
947
|
+
heart: /* @__PURE__ */ jsx3("path", { d: "M20.8 5.8a5.5 5.5 0 0 0-7.8 0L12 6.9l-1-1.1a5.5 5.5 0 1 0-7.8 7.8L12 21l8.8-7.4a5.5 5.5 0 0 0 0-7.8Z" }),
|
|
676
948
|
file: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
677
|
-
/* @__PURE__ */
|
|
678
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ jsx3("path", { d: "M6 3h8l4 4v14H6V3Z" }),
|
|
950
|
+
/* @__PURE__ */ jsx3("path", { d: "M14 3v5h4" })
|
|
679
951
|
] }),
|
|
680
|
-
folder: /* @__PURE__ */
|
|
952
|
+
folder: /* @__PURE__ */ jsx3("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
|
|
681
953
|
image: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
682
|
-
/* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ jsx3("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
|
|
955
|
+
/* @__PURE__ */ jsx3("circle", { cx: "9", cy: "9", r: "2" }),
|
|
956
|
+
/* @__PURE__ */ jsx3("path", { d: "m4 17 4.5-4.5 3.5 3 2.5-2.5 5.5 5" })
|
|
685
957
|
] }),
|
|
686
|
-
filter: /* @__PURE__ */
|
|
958
|
+
filter: /* @__PURE__ */ jsx3("path", { d: "M3 5h18l-7 8v6l-4 2v-8L3 5Z" }),
|
|
687
959
|
"sort-ascending": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
688
|
-
/* @__PURE__ */
|
|
689
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ jsx3("path", { d: "M7 19V5M3.5 8.5 7 5l3.5 3.5" }),
|
|
961
|
+
/* @__PURE__ */ jsx3("path", { d: "M13 7h8M13 12h6M13 17h4" })
|
|
690
962
|
] }),
|
|
691
963
|
"sort-descending": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
-
/* @__PURE__ */
|
|
964
|
+
/* @__PURE__ */ jsx3("path", { d: "M7 5v14M3.5 15.5 7 19l3.5-3.5" }),
|
|
965
|
+
/* @__PURE__ */ jsx3("path", { d: "M13 7h4M13 12h6M13 17h8" })
|
|
694
966
|
] }),
|
|
695
967
|
play: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
969
|
+
/* @__PURE__ */ jsx3("path", { d: "m10 8 6 4-6 4V8Z" })
|
|
698
970
|
] }),
|
|
699
971
|
pause: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
973
|
+
/* @__PURE__ */ jsx3("path", { d: "M9.5 9v6M14.5 9v6" })
|
|
702
974
|
] }),
|
|
703
975
|
book: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ jsx3("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H11v17H6.5A2.5 2.5 0 0 0 4 22V5.5Z" }),
|
|
977
|
+
/* @__PURE__ */ jsx3("path", { d: "M20 5.5A2.5 2.5 0 0 0 17.5 3H13v17h4.5A2.5 2.5 0 0 1 20 22V5.5Z" })
|
|
706
978
|
] }),
|
|
707
979
|
component: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
-
/* @__PURE__ */
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ jsx3("rect", { x: "4", y: "4", width: "6", height: "6", rx: "1.5" }),
|
|
981
|
+
/* @__PURE__ */ jsx3("rect", { x: "14", y: "4", width: "6", height: "6", rx: "1.5" }),
|
|
982
|
+
/* @__PURE__ */ jsx3("rect", { x: "4", y: "14", width: "6", height: "6", rx: "1.5" }),
|
|
983
|
+
/* @__PURE__ */ jsx3("rect", { x: "14", y: "14", width: "6", height: "6", rx: "1.5" })
|
|
712
984
|
] }),
|
|
713
985
|
token: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
714
|
-
/* @__PURE__ */
|
|
715
|
-
/* @__PURE__ */
|
|
986
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "4" }),
|
|
987
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1" })
|
|
716
988
|
] }),
|
|
717
989
|
sun: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
718
|
-
/* @__PURE__ */
|
|
719
|
-
/* @__PURE__ */
|
|
990
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "3.6" }),
|
|
991
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M18.7 5.3l-1.4 1.4M6.7 17.3l-1.4 1.4" })
|
|
720
992
|
] }),
|
|
721
|
-
moon: /* @__PURE__ */
|
|
722
|
-
code: /* @__PURE__ */
|
|
723
|
-
github: /* @__PURE__ */
|
|
993
|
+
moon: /* @__PURE__ */ jsx3("path", { d: "M20 15.2A8 8 0 0 1 8.8 4 8.5 8.5 0 1 0 20 15.2Z" }),
|
|
994
|
+
code: /* @__PURE__ */ jsx3("path", { d: "m9 18-6-6 6-6M15 6l6 6-6 6" }),
|
|
995
|
+
github: /* @__PURE__ */ jsx3("path", { d: "M9 19c-4 1.2-4-2-5-2.5M14 22v-3.1c0-.9.3-1.5.8-1.9 2.7-.3 5.5-1.3 5.5-6A4.7 4.7 0 0 0 19 7.7 4.4 4.4 0 0 0 18.9 4S17.8 3.7 15 5.3a11.7 11.7 0 0 0-6 0C6.2 3.7 5.1 4 5.1 4A4.4 4.4 0 0 0 5 7.7 4.7 4.7 0 0 0 3.7 11c0 4.7 2.8 5.7 5.5 6 .5.4.8 1 .8 1.9V22" })
|
|
724
996
|
};
|
|
725
997
|
var iconPaths = { ...coreIconPaths, ...extendedIconPaths };
|
|
726
998
|
var ICON_NAMES = Object.freeze(Object.keys(iconPaths));
|
|
727
999
|
var filledIconPaths = {
|
|
728
1000
|
info: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
729
|
-
/* @__PURE__ */
|
|
730
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1002
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 10.5v6M12 7.2v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
731
1003
|
] }),
|
|
732
1004
|
question: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
733
|
-
/* @__PURE__ */
|
|
734
|
-
/* @__PURE__ */
|
|
1005
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1006
|
+
/* @__PURE__ */ jsx3("path", { d: "M9.6 9a2.5 2.5 0 1 1 3.6 2.3c-.8.5-1.2 1.1-1.2 2.1M12 16.8v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
735
1007
|
] }),
|
|
736
1008
|
warning: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
737
|
-
/* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ jsx3("path", { d: "M10.3 3.5 1.8 19a2 2 0 0 0 1.8 3h16.8a2 2 0 0 0 1.8-3L13.7 3.5a2 2 0 0 0-3.4 0Z", fill: "currentColor", stroke: "none" }),
|
|
1010
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 9v5M12 18v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
739
1011
|
] }),
|
|
740
1012
|
"circle-check": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1014
|
+
/* @__PURE__ */ jsx3("path", { d: "m7.5 12 3 3 6-6", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
743
1015
|
] }),
|
|
744
1016
|
"circle-close": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1018
|
+
/* @__PURE__ */ jsx3("path", { d: "m8.8 8.8 6.4 6.4M15.2 8.8l-6.4 6.4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
747
1019
|
] }),
|
|
748
1020
|
"circle-plus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
/* @__PURE__ */
|
|
1021
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1022
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 7.5v9M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
751
1023
|
] }),
|
|
752
1024
|
"circle-minus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
753
|
-
/* @__PURE__ */
|
|
754
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1026
|
+
/* @__PURE__ */ jsx3("path", { d: "M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
755
1027
|
] }),
|
|
756
|
-
home: /* @__PURE__ */
|
|
1028
|
+
home: /* @__PURE__ */ jsx3("path", { d: "M2.6 10.8 12 2.8l9.4 8a1 1 0 0 1-1.3 1.5l-.6-.5V21h-5.2v-6.2H9.7V21H4.5v-9.2l-.6.5a1 1 0 1 1-1.3-1.5Z", fill: "currentColor", stroke: "none" }),
|
|
757
1029
|
user: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
1030
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "7.5", r: "4.5", fill: "currentColor", stroke: "none" }),
|
|
1031
|
+
/* @__PURE__ */ jsx3("path", { d: "M3.5 21c.7-5 3.6-7.5 8.5-7.5s7.8 2.5 8.5 7.5H3.5Z", fill: "currentColor", stroke: "none" })
|
|
760
1032
|
] }),
|
|
761
1033
|
users: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
762
|
-
/* @__PURE__ */
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
] }),
|
|
766
|
-
trash: /* @__PURE__ */
|
|
767
|
-
bell: /* @__PURE__ */
|
|
768
|
-
star: /* @__PURE__ */
|
|
769
|
-
heart: /* @__PURE__ */
|
|
1034
|
+
/* @__PURE__ */ jsx3("circle", { cx: "8.5", cy: "8", r: "3.8", fill: "currentColor", stroke: "none" }),
|
|
1035
|
+
/* @__PURE__ */ jsx3("circle", { cx: "17", cy: "8.5", r: "3", fill: "currentColor", stroke: "none", opacity: ".7" }),
|
|
1036
|
+
/* @__PURE__ */ jsx3("path", { d: "M1.8 21c.6-4.6 2.8-7 6.7-7s6.1 2.4 6.7 7H1.8ZM14.4 15.2c3.9-.2 6.4 1.7 7 5.8h-4.5a9.9 9.9 0 0 0-2.5-5.8Z", fill: "currentColor", stroke: "none" })
|
|
1037
|
+
] }),
|
|
1038
|
+
trash: /* @__PURE__ */ jsx3("path", { d: "M8 3h8l1 3h4v2H3V6h4l1-3Zm-2.5 7h13l-1 11h-11l-1-11Z", fill: "currentColor", stroke: "none" }),
|
|
1039
|
+
bell: /* @__PURE__ */ jsx3("path", { d: "M12 2.5a2 2 0 0 1 2 1.6c3 .9 5 3.6 5 6.9v4.3l2 3.2H3l2-3.2V11c0-3.3 2-6 5-6.9a2 2 0 0 1 2-1.6ZM9.2 20h5.6a3 3 0 0 1-5.6 0Z", fill: "currentColor", stroke: "none" }),
|
|
1040
|
+
star: /* @__PURE__ */ jsx3("path", { d: "m12 2.2 3 6 6.6 1-4.8 4.6 1.1 6.6-5.9-3.1-5.9 3.1 1.1-6.6-4.8-4.6 6.6-1 3-6Z", fill: "currentColor", stroke: "none" }),
|
|
1041
|
+
heart: /* @__PURE__ */ jsx3("path", { d: "M12 21.3 3.1 13.7A5.8 5.8 0 0 1 11 5.2l1 1 1-1a5.8 5.8 0 0 1 7.9 8.5L12 21.3Z", fill: "currentColor", stroke: "none" }),
|
|
770
1042
|
mail: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
771
|
-
/* @__PURE__ */
|
|
772
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ jsx3("rect", { x: "2.5", y: "4.5", width: "19", height: "15", rx: "2.5", fill: "currentColor", stroke: "none" }),
|
|
1044
|
+
/* @__PURE__ */ jsx3("path", { d: "m4.5 7 7.5 5.8L19.5 7", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
|
|
773
1045
|
] }),
|
|
774
|
-
lock: /* @__PURE__ */
|
|
775
|
-
unlock: /* @__PURE__ */
|
|
1046
|
+
lock: /* @__PURE__ */ jsx3("path", { d: "M7 10V7a5 5 0 0 1 10 0v3h1.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Zm2.5 0h5V7a2.5 2.5 0 0 0-5 0v3Z", fill: "currentColor", stroke: "none" }),
|
|
1047
|
+
unlock: /* @__PURE__ */ jsx3("path", { d: "M7 10V7a5 5 0 0 1 9.5-2.2l-2.2 1.1A2.5 2.5 0 0 0 9.5 7v3h9A2.5 2.5 0 0 1 21 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Z", fill: "currentColor", stroke: "none" }),
|
|
776
1048
|
calendar: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ jsx3("rect", { x: "2.5", y: "4.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
|
|
1050
|
+
/* @__PURE__ */ jsx3("path", { d: "M3 9.5h18M8 2.5v4M16 2.5v4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
|
|
779
1051
|
] }),
|
|
780
1052
|
clock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
781
|
-
/* @__PURE__ */
|
|
782
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1054
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 6.5V12l4 2.3", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
|
|
783
1055
|
] }),
|
|
784
|
-
file: /* @__PURE__ */
|
|
785
|
-
folder: /* @__PURE__ */
|
|
1056
|
+
file: /* @__PURE__ */ jsx3("path", { d: "M5 2.5h10l4 4V22H5V2.5Zm9 1.8V8h3.7L14 4.3Z", fill: "currentColor", stroke: "none" }),
|
|
1057
|
+
folder: /* @__PURE__ */ jsx3("path", { d: "M2.5 5h7l2.2 2.5h9.8V20H2.5V5Z", fill: "currentColor", stroke: "none" }),
|
|
786
1058
|
image: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
1059
|
+
/* @__PURE__ */ jsx3("rect", { x: "2.5", y: "3.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
|
|
1060
|
+
/* @__PURE__ */ jsx3("path", { d: "m4.5 18 4.3-4.6 3.4 3 2.5-2.6 4.8 4.2", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.7" }),
|
|
1061
|
+
/* @__PURE__ */ jsx3("circle", { cx: "8", cy: "8.5", r: "1.7", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
|
|
790
1062
|
] }),
|
|
791
|
-
filter: /* @__PURE__ */
|
|
1063
|
+
filter: /* @__PURE__ */ jsx3("path", { d: "M2 4h20l-7.8 9v6.2L9.8 22v-9L2 4Z", fill: "currentColor", stroke: "none" }),
|
|
792
1064
|
play: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
1065
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1066
|
+
/* @__PURE__ */ jsx3("path", { d: "m10 7.8 6.5 4.2-6.5 4.2V7.8Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
|
|
795
1067
|
] }),
|
|
796
1068
|
pause: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
/* @__PURE__ */
|
|
1069
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
|
|
1070
|
+
/* @__PURE__ */ jsx3("path", { d: "M8.5 7.5h2.5v9H8.5v-9Zm4.5 0h2.5v9H13v-9Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
|
|
799
1071
|
] }),
|
|
800
|
-
book: /* @__PURE__ */
|
|
1072
|
+
book: /* @__PURE__ */ jsx3("path", { d: "M3 4.5A3.5 3.5 0 0 1 6.5 1H11v19H6.5A3.5 3.5 0 0 0 3 23V4.5ZM21 4.5A3.5 3.5 0 0 0 17.5 1H13v19h4.5A3.5 3.5 0 0 1 21 23V4.5Z", fill: "currentColor", stroke: "none" }),
|
|
801
1073
|
component: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
802
|
-
/* @__PURE__ */
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ jsx3("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
|
|
1075
|
+
/* @__PURE__ */ jsx3("rect", { x: "13", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
|
|
1076
|
+
/* @__PURE__ */ jsx3("rect", { x: "3", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
|
|
1077
|
+
/* @__PURE__ */ jsx3("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" })
|
|
806
1078
|
] }),
|
|
807
1079
|
token: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "5", fill: "currentColor", stroke: "none" }),
|
|
1081
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 1v4M12 19v4M1 12h4M19 12h4M4.2 4.2 7 7M17 17l2.8 2.8M19.8 4.2 17 7M7 17l-2.8 2.8", stroke: "currentColor", strokeWidth: "2.2" })
|
|
810
1082
|
] })
|
|
811
1083
|
};
|
|
812
1084
|
var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
|
|
1085
|
+
var normalizedOutlinePaths = normalizeIconPaths(iconPaths, outlineIconBounds);
|
|
1086
|
+
var normalizedFilledPaths = normalizeIconPaths(filledIconPaths, filledIconBounds);
|
|
813
1087
|
var Icon = forwardRef(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
|
|
814
1088
|
const resolvedSize = typeof size === "number" ? `${size}px` : size;
|
|
815
1089
|
const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
|
|
816
1090
|
const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
|
|
817
1091
|
const filledPath = filledIconPaths[name];
|
|
818
1092
|
const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
|
|
819
|
-
|
|
1093
|
+
const geometry = resolvedVariant === "filled" ? normalizedFilledPaths[name] : normalizedOutlinePaths[name];
|
|
1094
|
+
return /* @__PURE__ */ jsx3(
|
|
820
1095
|
"span",
|
|
821
1096
|
{
|
|
822
1097
|
ref,
|
|
@@ -827,14 +1102,14 @@ var Icon = forwardRef(function Icon2({ name, size = "1em", strokeWidth = 1.8, ro
|
|
|
827
1102
|
"aria-hidden": label ? void 0 : true,
|
|
828
1103
|
style: mergedStyle,
|
|
829
1104
|
...withTitleTooltip(props),
|
|
830
|
-
children: /* @__PURE__ */
|
|
1105
|
+
children: /* @__PURE__ */ jsx3("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: strokeWidth / geometry.scale, strokeLinecap: "round", strokeLinejoin: "round", focusable: "false", children: geometry.node })
|
|
831
1106
|
}
|
|
832
1107
|
);
|
|
833
1108
|
});
|
|
834
1109
|
|
|
835
1110
|
// src/components/Navigation.tsx
|
|
836
1111
|
import { useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
837
|
-
import { Fragment as Fragment3, jsx as
|
|
1112
|
+
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
838
1113
|
import { createElement } from "react";
|
|
839
1114
|
function MenuPopup({
|
|
840
1115
|
anchorRef,
|
|
@@ -865,7 +1140,7 @@ function MenuPopup({
|
|
|
865
1140
|
const timer = window.setTimeout(() => setMounted(false), 160);
|
|
866
1141
|
return () => window.clearTimeout(timer);
|
|
867
1142
|
}, [open]);
|
|
868
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ jsx4(
|
|
869
1144
|
PopupPortal,
|
|
870
1145
|
{
|
|
871
1146
|
anchorRef,
|
|
@@ -877,7 +1152,7 @@ function MenuPopup({
|
|
|
877
1152
|
"data-sia-menu-owner": menuId,
|
|
878
1153
|
onMouseEnter,
|
|
879
1154
|
onMouseLeave,
|
|
880
|
-
children: /* @__PURE__ */
|
|
1155
|
+
children: /* @__PURE__ */ jsx4("ul", { className: "sia-menu__popup-list", role: "menu", children })
|
|
881
1156
|
}
|
|
882
1157
|
);
|
|
883
1158
|
}
|
|
@@ -910,7 +1185,7 @@ function MenuEntry({
|
|
|
910
1185
|
closeTimerRef.current = window.setTimeout(() => props.toggle(item.key, false), 100);
|
|
911
1186
|
}
|
|
912
1187
|
const hover = props.triggerSubMenuAction === "hover" && hasChildren && !inlineSubmenu;
|
|
913
|
-
const submenu = hasChildren ? /* @__PURE__ */
|
|
1188
|
+
const submenu = hasChildren ? /* @__PURE__ */ jsx4(MenuLevel, { items: item.children ?? [], level: level + 1, parents: [item.key, ...parents], props }) : null;
|
|
914
1189
|
const popupPlacement = props.mode === "horizontal" && level === 0 ? "bottom-start" : "right-start";
|
|
915
1190
|
return /* @__PURE__ */ jsxs3(
|
|
916
1191
|
"li",
|
|
@@ -935,14 +1210,14 @@ function MenuEntry({
|
|
|
935
1210
|
"aria-expanded": hasChildren ? isOpen : void 0,
|
|
936
1211
|
onClick: (event) => hasChildren ? props.toggle(item.key) : props.select(item, path, event),
|
|
937
1212
|
children: [
|
|
938
|
-
reserveIcon ? /* @__PURE__ */
|
|
939
|
-
!collapsed ? /* @__PURE__ */
|
|
940
|
-
!collapsed && item.extra ? /* @__PURE__ */
|
|
941
|
-
!collapsed && hasChildren ? /* @__PURE__ */
|
|
1213
|
+
reserveIcon ? /* @__PURE__ */ jsx4("span", { className: "sia-menu__icon", "aria-hidden": !item.icon || void 0, children: item.icon }) : null,
|
|
1214
|
+
!collapsed ? /* @__PURE__ */ jsx4("span", { className: "sia-menu__label", children: item.label }) : null,
|
|
1215
|
+
!collapsed && item.extra ? /* @__PURE__ */ jsx4("span", { className: "sia-menu__extra", children: item.extra }) : null,
|
|
1216
|
+
!collapsed && hasChildren ? /* @__PURE__ */ jsx4(Icon, { className: "sia-menu__expand-icon", name: "chevron-down", size: 13 }) : null
|
|
942
1217
|
]
|
|
943
1218
|
}
|
|
944
1219
|
),
|
|
945
|
-
hasChildren ? inlineSubmenu ? /* @__PURE__ */
|
|
1220
|
+
hasChildren ? inlineSubmenu ? /* @__PURE__ */ jsx4("ul", { className: "sia-menu__submenu", role: "menu", "aria-hidden": !isOpen, children: submenu }) : /* @__PURE__ */ jsx4(
|
|
946
1221
|
MenuPopup,
|
|
947
1222
|
{
|
|
948
1223
|
anchorRef,
|
|
@@ -969,13 +1244,13 @@ function MenuLevel({
|
|
|
969
1244
|
props,
|
|
970
1245
|
reserveIcon = hasMenuIcon(items)
|
|
971
1246
|
}) {
|
|
972
|
-
return /* @__PURE__ */
|
|
973
|
-
if (item.type === "divider") return /* @__PURE__ */
|
|
1247
|
+
return /* @__PURE__ */ jsx4(Fragment3, { children: items.map((item, index) => {
|
|
1248
|
+
if (item.type === "divider") return /* @__PURE__ */ jsx4("li", { className: "sia-menu__divider", role: "separator" }, item.key || `divider-${index}`);
|
|
974
1249
|
if (item.type === "group") return /* @__PURE__ */ jsxs3("li", { className: "sia-menu__group", children: [
|
|
975
|
-
/* @__PURE__ */
|
|
976
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ jsx4("div", { className: "sia-menu__group-title", children: item.label }),
|
|
1251
|
+
/* @__PURE__ */ jsx4("ul", { role: "group", children: /* @__PURE__ */ jsx4(MenuLevel, { items: item.children ?? [], level: level + 1, parents: [...parents, item.key], props, reserveIcon }) })
|
|
977
1252
|
] }, item.key);
|
|
978
|
-
return /* @__PURE__ */
|
|
1253
|
+
return /* @__PURE__ */ jsx4(MenuEntry, { item, level, parents, props, reserveIcon }, item.key);
|
|
979
1254
|
}) });
|
|
980
1255
|
}
|
|
981
1256
|
function Menu({
|
|
@@ -1028,25 +1303,25 @@ function Menu({
|
|
|
1028
1303
|
else onSelect?.({ ...info, selectedKeys: [...next] });
|
|
1029
1304
|
if (mode !== "inline") setOpen([]);
|
|
1030
1305
|
}
|
|
1031
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ jsx4("ul", { ref: rootRef, className: `sia-menu sia-menu--${mode} sia-menu--${theme}${inlineCollapsed ? " sia-menu--collapsed" : ""} ${className}`.trim(), role: "menu", ...withTitleTooltip(rest), "data-sia-menu-owner": menuId, children: /* @__PURE__ */ jsx4(MenuLevel, { items, level: 0, parents: [], props: { menuId, mode, theme, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, selected, open, select, toggle } }) });
|
|
1032
1307
|
}
|
|
1033
1308
|
function Steps({ items, current = 0, initial = 0, direction = "horizontal", type = "default", size = "default", status = "process", progressDot = false, onChange, className = "", ...props }) {
|
|
1034
|
-
return /* @__PURE__ */
|
|
1309
|
+
return /* @__PURE__ */ jsx4("div", { className: `sia-steps sia-steps--${direction} sia-steps--${type} sia-steps--${size} ${className}`.trim(), ...withTitleTooltip(props), children: items.map((item, rawIndex) => {
|
|
1035
1310
|
const index = rawIndex + initial;
|
|
1036
1311
|
const itemStatus = item.status ?? (index < current ? "finish" : index === current ? status : "wait");
|
|
1037
|
-
const dot = /* @__PURE__ */
|
|
1038
|
-
const icon = progressDot ? typeof progressDot === "function" ? progressDot(dot, { index, status: itemStatus, title: item.title, description: item.description }) : dot : item.icon ?? (itemStatus === "finish" ? /* @__PURE__ */
|
|
1312
|
+
const dot = /* @__PURE__ */ jsx4("span", { className: "sia-steps__dot" });
|
|
1313
|
+
const icon = progressDot ? typeof progressDot === "function" ? progressDot(dot, { index, status: itemStatus, title: item.title, description: item.description }) : dot : item.icon ?? (itemStatus === "finish" ? /* @__PURE__ */ jsx4(Icon, { name: "check", size: 15 }) : itemStatus === "error" ? /* @__PURE__ */ jsx4(Icon, { name: "close", size: 14 }) : index + 1);
|
|
1039
1314
|
return /* @__PURE__ */ jsxs3("button", { type: "button", className: `sia-steps__item sia-steps__item--${itemStatus}`, disabled: item.disabled || !onChange, onClick: () => onChange?.(index), children: [
|
|
1040
1315
|
/* @__PURE__ */ jsxs3("span", { className: "sia-steps__head", children: [
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */
|
|
1316
|
+
/* @__PURE__ */ jsx4("span", { className: "sia-steps__icon", children: icon }),
|
|
1317
|
+
/* @__PURE__ */ jsx4("span", { className: "sia-steps__tail" })
|
|
1043
1318
|
] }),
|
|
1044
1319
|
/* @__PURE__ */ jsxs3("span", { className: "sia-steps__content", children: [
|
|
1045
1320
|
/* @__PURE__ */ jsxs3("span", { className: "sia-steps__title", children: [
|
|
1046
1321
|
item.title,
|
|
1047
|
-
item.subTitle ? /* @__PURE__ */
|
|
1322
|
+
item.subTitle ? /* @__PURE__ */ jsx4("small", { children: item.subTitle }) : null
|
|
1048
1323
|
] }),
|
|
1049
|
-
item.description ? /* @__PURE__ */
|
|
1324
|
+
item.description ? /* @__PURE__ */ jsx4("span", { className: "sia-steps__description", children: item.description }) : null
|
|
1050
1325
|
] })
|
|
1051
1326
|
] }, index);
|
|
1052
1327
|
}) });
|
|
@@ -1064,12 +1339,12 @@ function Segmented({ options, value, defaultValue, variant = "default", shape =
|
|
|
1064
1339
|
const next = event.key === "ArrowRight" || event.key === "ArrowDown" ? enabled[(index + 1) % enabled.length] : enabled[(index - 1 + enabled.length) % enabled.length];
|
|
1065
1340
|
if (next) setCurrent(next.value);
|
|
1066
1341
|
}
|
|
1067
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ jsx4("div", { className: `sia-segmented sia-segmented--${size}${variant === "zigzag" && !vertical && normalized.length === 2 ? ` sia-segmented--zigzag sia-segmented--shape-${shape}` : ""}${block ? " sia-segmented--block" : ""}${vertical ? " sia-segmented--vertical" : ""}${disabled ? " is-disabled" : ""} ${className}`.trim(), role: "radiogroup", onKeyDown: keyboard, ...withTitleTooltip(props), children: normalized.map((option) => /* @__PURE__ */ createElement("button", { type: "button", role: "radio", "aria-checked": option.value === current, ...withTitleTooltip({ title: option.title }), className: option.value === current ? "is-selected" : "", disabled: disabled || option.disabled, key: option.value, onClick: () => setCurrent(option.value) }, option.icon, /* @__PURE__ */ jsx4("span", { children: option.label ?? option.value }))) });
|
|
1068
1343
|
}
|
|
1069
1344
|
|
|
1070
1345
|
// src/components/Dropdown.tsx
|
|
1071
|
-
import { cloneElement, isValidElement, useEffect as useEffect2, useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
1072
|
-
import { jsx as
|
|
1346
|
+
import { cloneElement as cloneElement2, isValidElement as isValidElement2, useEffect as useEffect2, useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
1347
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1073
1348
|
var placementMap = {
|
|
1074
1349
|
bottomLeft: "bottom-start",
|
|
1075
1350
|
bottomRight: "bottom-end",
|
|
@@ -1239,7 +1514,7 @@ function DropdownRoot({
|
|
|
1239
1514
|
updateOpen(true, "trigger");
|
|
1240
1515
|
}
|
|
1241
1516
|
}
|
|
1242
|
-
const menuNode = /* @__PURE__ */
|
|
1517
|
+
const menuNode = /* @__PURE__ */ jsx5(
|
|
1243
1518
|
Menu,
|
|
1244
1519
|
{
|
|
1245
1520
|
mode: "vertical",
|
|
@@ -1256,9 +1531,9 @@ function DropdownRoot({
|
|
|
1256
1531
|
className: "sia-dropdown__menu"
|
|
1257
1532
|
}
|
|
1258
1533
|
);
|
|
1259
|
-
const triggerNode = showTriggerIcon &&
|
|
1534
|
+
const triggerNode = showTriggerIcon && isValidElement2(children) && children.type === Button && children.props.children !== void 0 && children.props.children !== null ? cloneElement2(children, {}, /* @__PURE__ */ jsxs4("span", { className: "sia-dropdown__trigger-content", children: [
|
|
1260
1535
|
children.props.children,
|
|
1261
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ jsx5(Icon, { name: "chevron-down", size: 14, className: "sia-dropdown__trigger-icon" })
|
|
1262
1537
|
] })) : children;
|
|
1263
1538
|
return /* @__PURE__ */ jsxs4(
|
|
1264
1539
|
"span",
|
|
@@ -1276,7 +1551,7 @@ function DropdownRoot({
|
|
|
1276
1551
|
...withTitleTooltip(props),
|
|
1277
1552
|
children: [
|
|
1278
1553
|
triggerNode,
|
|
1279
|
-
/* @__PURE__ */
|
|
1554
|
+
/* @__PURE__ */ jsx5(
|
|
1280
1555
|
"span",
|
|
1281
1556
|
{
|
|
1282
1557
|
ref: contextAnchorRef,
|
|
@@ -1285,7 +1560,7 @@ function DropdownRoot({
|
|
|
1285
1560
|
"aria-hidden": "true"
|
|
1286
1561
|
}
|
|
1287
1562
|
),
|
|
1288
|
-
/* @__PURE__ */
|
|
1563
|
+
/* @__PURE__ */ jsx5(
|
|
1289
1564
|
PopupPortal,
|
|
1290
1565
|
{
|
|
1291
1566
|
ref: popupRef,
|
|
@@ -1323,14 +1598,14 @@ function DropdownButton({
|
|
|
1323
1598
|
...dropdownProps
|
|
1324
1599
|
}) {
|
|
1325
1600
|
return /* @__PURE__ */ jsxs4("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1601
|
+
/* @__PURE__ */ jsx5(Button, { ...buttonProps, disabled: disabled || buttonDisabled, onClick, children }),
|
|
1602
|
+
/* @__PURE__ */ jsx5(DropdownRoot, { ...dropdownProps, disabled: disabled || dropdownDisabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ jsx5(
|
|
1328
1603
|
Button,
|
|
1329
1604
|
{
|
|
1330
1605
|
...buttonProps,
|
|
1331
1606
|
className: `sia-dropdown-button__arrow ${buttonProps?.className ?? ""}`.trim(),
|
|
1332
1607
|
disabled: disabled || dropdownDisabled,
|
|
1333
|
-
icon: /* @__PURE__ */
|
|
1608
|
+
icon: /* @__PURE__ */ jsx5(Icon, { name: "chevron-down", size: 14 }),
|
|
1334
1609
|
"aria-label": "\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
|
1335
1610
|
}
|
|
1336
1611
|
) })
|
|
@@ -1425,15 +1700,15 @@ function OverlayPortal({ children, container }) {
|
|
|
1425
1700
|
}
|
|
1426
1701
|
|
|
1427
1702
|
// src/components/Modal.tsx
|
|
1428
|
-
import { Fragment as Fragment4, jsx as
|
|
1703
|
+
import { Fragment as Fragment4, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1429
1704
|
var modalHandles = /* @__PURE__ */ new Set();
|
|
1430
1705
|
var MODAL_MOTION_DURATION = 220;
|
|
1431
1706
|
var typeIcons = {
|
|
1432
|
-
info: /* @__PURE__ */
|
|
1433
|
-
success: /* @__PURE__ */
|
|
1434
|
-
warning: /* @__PURE__ */
|
|
1435
|
-
error: /* @__PURE__ */
|
|
1436
|
-
confirm: /* @__PURE__ */
|
|
1707
|
+
info: /* @__PURE__ */ jsx6(Icon, { name: "info", size: 23 }),
|
|
1708
|
+
success: /* @__PURE__ */ jsx6(Icon, { name: "circle-check", size: 23 }),
|
|
1709
|
+
warning: /* @__PURE__ */ jsx6(Icon, { name: "warning", size: 23 }),
|
|
1710
|
+
error: /* @__PURE__ */ jsx6(Icon, { name: "circle-close", size: 23 }),
|
|
1711
|
+
confirm: /* @__PURE__ */ jsx6(Icon, { name: "question", size: 23 })
|
|
1437
1712
|
};
|
|
1438
1713
|
var ModalRoot = forwardRef2(function Modal({
|
|
1439
1714
|
open,
|
|
@@ -1535,10 +1810,10 @@ var ModalRoot = forwardRef2(function Modal({
|
|
|
1535
1810
|
};
|
|
1536
1811
|
const loading = submitting || confirmLoading;
|
|
1537
1812
|
const defaultFooter = /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
1538
|
-
showCancel ? /* @__PURE__ */
|
|
1539
|
-
/* @__PURE__ */
|
|
1813
|
+
showCancel ? /* @__PURE__ */ jsx6(Button, { ...cancelButtonProps, onClick: requestClose, disabled: loading || cancelButtonProps?.disabled, children: cancelText }) : null,
|
|
1814
|
+
/* @__PURE__ */ jsx6(Button, { variant: "primary", ...okButtonProps, onClick: handleOk, loading, children: okText })
|
|
1540
1815
|
] });
|
|
1541
|
-
return /* @__PURE__ */
|
|
1816
|
+
return /* @__PURE__ */ jsx6(OverlayPortal, { container: getContainer, children: /* @__PURE__ */ jsx6(
|
|
1542
1817
|
"div",
|
|
1543
1818
|
{
|
|
1544
1819
|
className: `sia-modal-root${centered ? " sia-modal-root--centered" : ""}`,
|
|
@@ -1561,14 +1836,14 @@ var ModalRoot = forwardRef2(function Modal({
|
|
|
1561
1836
|
children: [
|
|
1562
1837
|
/* @__PURE__ */ jsxs5("div", { className: "sia-modal__header", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
|
|
1563
1838
|
/* @__PURE__ */ jsxs5("div", { className: "sia-modal__heading", children: [
|
|
1564
|
-
typeIcons[type] ? /* @__PURE__ */
|
|
1565
|
-
title ? /* @__PURE__ */
|
|
1839
|
+
typeIcons[type] ? /* @__PURE__ */ jsx6("span", { className: "sia-modal__type-icon", "aria-hidden": "true", children: typeIcons[type] }) : null,
|
|
1840
|
+
title ? /* @__PURE__ */ jsx6("strong", { id: titleId, children: title }) : null
|
|
1566
1841
|
] }),
|
|
1567
|
-
closable ? /* @__PURE__ */
|
|
1842
|
+
closable ? /* @__PURE__ */ jsx6("button", { type: "button", className: "sia-modal__close", "aria-label": "\u5173\u95ED\u5BF9\u8BDD\u6846", onClick: requestClose, children: /* @__PURE__ */ jsx6(Icon, { name: "close", size: 17 }) }) : null
|
|
1568
1843
|
] }),
|
|
1569
|
-
children !== void 0 ? /* @__PURE__ */
|
|
1844
|
+
children !== void 0 ? /* @__PURE__ */ jsx6("div", { className: "sia-modal__body", style: height !== void 0 ? { flex: 1, minHeight: 0, overflow: "auto" } : void 0, children }) : null,
|
|
1570
1845
|
footer !== null ? /* @__PURE__ */ jsxs5("div", { className: "sia-modal__footer", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
|
|
1571
|
-
footer === void 0 && footerExtra != null ? /* @__PURE__ */
|
|
1846
|
+
footer === void 0 && footerExtra != null ? /* @__PURE__ */ jsx6("div", { style: { marginRight: "auto" }, children: footerExtra }) : null,
|
|
1572
1847
|
footer ?? defaultFooter
|
|
1573
1848
|
] }) : null
|
|
1574
1849
|
]
|
|
@@ -1606,7 +1881,7 @@ function openModal(config) {
|
|
|
1606
1881
|
mounted = true;
|
|
1607
1882
|
if (!currentOpen) render();
|
|
1608
1883
|
}, []);
|
|
1609
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ jsx6(ModalRoot, { ...currentConfig, open: !mounted || currentOpen, onOpenChange: (nextOpen) => {
|
|
1610
1885
|
currentConfig.onOpenChange?.(nextOpen);
|
|
1611
1886
|
if (!nextOpen) closeWithMotion();
|
|
1612
1887
|
}, afterOpenChange: (nextOpen) => {
|
|
@@ -1618,7 +1893,7 @@ function openModal(config) {
|
|
|
1618
1893
|
} });
|
|
1619
1894
|
}
|
|
1620
1895
|
function render() {
|
|
1621
|
-
root.render(/* @__PURE__ */
|
|
1896
|
+
root.render(/* @__PURE__ */ jsx6(ModalInstance, {}));
|
|
1622
1897
|
}
|
|
1623
1898
|
const handle = {
|
|
1624
1899
|
destroy: closeWithMotion,
|
|
@@ -1664,7 +1939,7 @@ var Modal2 = Object.assign(ModalRoot, {
|
|
|
1664
1939
|
|
|
1665
1940
|
// src/components/Input.tsx
|
|
1666
1941
|
import { forwardRef as forwardRef3, useId as useId3, useRef as useRef5, useState as useState4 } from "react";
|
|
1667
|
-
import { Fragment as Fragment5, jsx as
|
|
1942
|
+
import { Fragment as Fragment5, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1668
1943
|
var Input = forwardRef3(function Input2({
|
|
1669
1944
|
label,
|
|
1670
1945
|
hint,
|
|
@@ -1731,7 +2006,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1731
2006
|
event.preventDefault();
|
|
1732
2007
|
localRef.current?.focus({ preventScroll: true });
|
|
1733
2008
|
}
|
|
1734
|
-
const input = /* @__PURE__ */
|
|
2009
|
+
const input = /* @__PURE__ */ jsx7(
|
|
1735
2010
|
"input",
|
|
1736
2011
|
{
|
|
1737
2012
|
...withTitleTooltip(props),
|
|
@@ -1749,14 +2024,14 @@ var Input = forwardRef3(function Input2({
|
|
|
1749
2024
|
}
|
|
1750
2025
|
);
|
|
1751
2026
|
const control = /* @__PURE__ */ jsxs6("span", { onMouseDown: handleControlMouseDown, className: `sia-input-control sia-input-control--${size} sia-input-control--${status}${floatingPlaceholder ? " sia-input-control--floating" : ""}${floatingPlaceholder && hasValue ? " is-filled" : ""}${disabled ? " is-disabled" : ""}`, children: [
|
|
1752
|
-
prefix ? /* @__PURE__ */
|
|
2027
|
+
prefix ? /* @__PURE__ */ jsx7("span", { className: "sia-input-control__affix", children: prefix }) : null,
|
|
1753
2028
|
floatingPlaceholder ? /* @__PURE__ */ jsxs6("span", { className: "sia-input-control__input-wrap", children: [
|
|
1754
2029
|
input,
|
|
1755
|
-
/* @__PURE__ */
|
|
2030
|
+
/* @__PURE__ */ jsx7("span", { className: "sia-input-control__floating-placeholder", "aria-hidden": "true", children: placeholder })
|
|
1756
2031
|
] }) : input,
|
|
1757
|
-
allowClear && hasValue && !disabled ? /* @__PURE__ */
|
|
1758
|
-
suffix ? /* @__PURE__ */
|
|
1759
|
-
expandable && !disabled && !props.readOnly && (!props.type || props.type === "text") ? /* @__PURE__ */
|
|
2032
|
+
allowClear && hasValue && !disabled ? /* @__PURE__ */ jsx7("button", { className: "sia-input-control__clear", type: "button", "aria-label": "\u6E05\u7A7A\u8F93\u5165", onClick: clearValue, children: /* @__PURE__ */ jsx7(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
2033
|
+
suffix ? /* @__PURE__ */ jsx7("span", { className: "sia-input-control__affix", children: suffix }) : null,
|
|
2034
|
+
expandable && !disabled && !props.readOnly && (!props.type || props.type === "text") ? /* @__PURE__ */ jsx7(
|
|
1760
2035
|
"button",
|
|
1761
2036
|
{
|
|
1762
2037
|
type: "button",
|
|
@@ -1768,7 +2043,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1768
2043
|
setExpandedDraft(currentText);
|
|
1769
2044
|
setExpanded(true);
|
|
1770
2045
|
},
|
|
1771
|
-
children: /* @__PURE__ */
|
|
2046
|
+
children: /* @__PURE__ */ jsx7(Icon, { name: "expand", size: 15 })
|
|
1772
2047
|
}
|
|
1773
2048
|
) : null,
|
|
1774
2049
|
showCount ? /* @__PURE__ */ jsxs6("span", { className: `sia-input-control__count${maxLength !== void 0 && currentText.length >= maxLength ? " is-limit" : ""}`, "aria-live": "polite", children: [
|
|
@@ -1776,7 +2051,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1776
2051
|
maxLength !== void 0 ? `/${maxLength}` : null
|
|
1777
2052
|
] }) : null
|
|
1778
2053
|
] });
|
|
1779
|
-
const editor = expandable ? /* @__PURE__ */
|
|
2054
|
+
const editor = expandable ? /* @__PURE__ */ jsx7(
|
|
1780
2055
|
Modal2,
|
|
1781
2056
|
{
|
|
1782
2057
|
open: expanded,
|
|
@@ -1797,7 +2072,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1797
2072
|
setUncontrolledValue(next);
|
|
1798
2073
|
setExpanded(false);
|
|
1799
2074
|
},
|
|
1800
|
-
children: /* @__PURE__ */
|
|
2075
|
+
children: /* @__PURE__ */ jsx7(
|
|
1801
2076
|
TextArea,
|
|
1802
2077
|
{
|
|
1803
2078
|
"aria-label": "\u5C55\u5F00\u7F16\u8F91\u5185\u5BB9",
|
|
@@ -1814,14 +2089,14 @@ var Input = forwardRef3(function Input2({
|
|
|
1814
2089
|
}
|
|
1815
2090
|
) : null;
|
|
1816
2091
|
if (!label && !hint) return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
1817
|
-
/* @__PURE__ */
|
|
2092
|
+
/* @__PURE__ */ jsx7("span", { className: `sia-field ${className}`.trim(), children: control }),
|
|
1818
2093
|
editor
|
|
1819
2094
|
] });
|
|
1820
2095
|
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
1821
2096
|
/* @__PURE__ */ jsxs6("span", { className: `sia-field ${className}`.trim(), children: [
|
|
1822
|
-
label ? /* @__PURE__ */
|
|
2097
|
+
label ? /* @__PURE__ */ jsx7("label", { className: "sia-field__label", htmlFor: inputId, children: label }) : null,
|
|
1823
2098
|
control,
|
|
1824
|
-
hint ? /* @__PURE__ */
|
|
2099
|
+
hint ? /* @__PURE__ */ jsx7("span", { id: hintId, className: `sia-field__hint sia-field__hint--${status}`, children: hint }) : null
|
|
1825
2100
|
] }),
|
|
1826
2101
|
editor
|
|
1827
2102
|
] });
|