@sia.soul/sia-react-ui 0.1.89 → 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-IOJ4CNH7.js → chunk-7BJPQCRG.js} +1 -1
- package/dist/{chunk-ZCRCLHBJ.js → chunk-AG2VFAZR.js} +2 -2
- package/dist/{chunk-V2WADR72.js → chunk-G5K72R4O.js} +516 -242
- package/dist/{chunk-2V7IYAA2.js → chunk-GLXGN5SO.js} +2 -2
- package/dist/{chunk-W2F4KFPT.js → chunk-OPYA3PMD.js} +1 -1
- package/dist/{core-CD0Fr3cM.d.ts → core-BGA9VB0L.d.ts} +2 -2
- package/dist/{core-BW2GUYC2.d.cts → core-OIIkAeiG.d.cts} +2 -2
- package/dist/core.cjs +1133 -859
- 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 +3327 -3053
- 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 -494
- package/dist/rich-text-editor.js +2 -2
- package/dist/select-date-range.cjs +928 -654
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
|
@@ -496,328 +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
|
] }),
|
|
584
|
-
//
|
|
855
|
+
// 保留齿轮原始路径;与其余图标一起通过统一几何规则调整主体大小。
|
|
585
856
|
settings: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
/* @__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" })
|
|
588
859
|
] }),
|
|
589
860
|
edit: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
590
|
-
/* @__PURE__ */
|
|
591
|
-
/* @__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" })
|
|
592
863
|
] }),
|
|
593
864
|
copy: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
594
|
-
/* @__PURE__ */
|
|
595
|
-
/* @__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" })
|
|
596
867
|
] }),
|
|
597
|
-
trash: /* @__PURE__ */
|
|
868
|
+
trash: /* @__PURE__ */ jsx3(Fragment2, { children: /* @__PURE__ */ jsx3("path", { d: "M4 7h16M9 3h6l1 4H8l1-4ZM6 7l1 14h10l1-14M10 11v6M14 11v6" }) }),
|
|
598
869
|
scissors: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
599
|
-
/* @__PURE__ */
|
|
600
|
-
/* @__PURE__ */
|
|
601
|
-
/* @__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" })
|
|
602
873
|
] }),
|
|
603
874
|
undo: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
/* @__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" })
|
|
606
877
|
] }),
|
|
607
878
|
redo: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
/* @__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" })
|
|
610
881
|
] }),
|
|
611
882
|
"zoom-in": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
612
|
-
/* @__PURE__ */
|
|
613
|
-
/* @__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" })
|
|
614
885
|
] }),
|
|
615
886
|
"zoom-out": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
/* @__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" })
|
|
618
889
|
] }),
|
|
619
890
|
// 图片变换工具使用独立图标,便于在预览及其他编辑界面复用。
|
|
620
|
-
"flip-horizontal": /* @__PURE__ */
|
|
621
|
-
"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" }) }),
|
|
622
893
|
"rotate-left": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
623
|
-
/* @__PURE__ */
|
|
624
|
-
/* @__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" })
|
|
625
896
|
] }),
|
|
626
897
|
"rotate-right": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
627
|
-
/* @__PURE__ */
|
|
628
|
-
/* @__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" })
|
|
629
900
|
] }),
|
|
630
|
-
download: /* @__PURE__ */
|
|
631
|
-
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" }) }),
|
|
632
903
|
refresh: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
633
|
-
/* @__PURE__ */
|
|
634
|
-
/* @__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" })
|
|
635
906
|
] }),
|
|
636
|
-
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" }),
|
|
637
908
|
calendar: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
638
|
-
/* @__PURE__ */
|
|
639
|
-
/* @__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" })
|
|
640
911
|
] }),
|
|
641
912
|
clock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
642
|
-
/* @__PURE__ */
|
|
643
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
914
|
+
/* @__PURE__ */ jsx3("path", { d: "M12 7v5l3.5 2" })
|
|
644
915
|
] }),
|
|
645
916
|
mail: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
646
|
-
/* @__PURE__ */
|
|
647
|
-
/* @__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" })
|
|
648
919
|
] }),
|
|
649
|
-
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" }),
|
|
650
921
|
link: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
651
|
-
/* @__PURE__ */
|
|
652
|
-
/* @__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" })
|
|
653
924
|
] }),
|
|
654
925
|
"external-link": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
655
|
-
/* @__PURE__ */
|
|
656
|
-
/* @__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" })
|
|
657
928
|
] }),
|
|
658
929
|
eye: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
659
|
-
/* @__PURE__ */
|
|
660
|
-
/* @__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" })
|
|
661
932
|
] }),
|
|
662
|
-
"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" }) }),
|
|
663
934
|
lock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
664
|
-
/* @__PURE__ */
|
|
665
|
-
/* @__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" })
|
|
666
937
|
] }),
|
|
667
938
|
unlock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
/* @__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" })
|
|
670
941
|
] }),
|
|
671
942
|
bell: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
672
|
-
/* @__PURE__ */
|
|
673
|
-
/* @__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" })
|
|
674
945
|
] }),
|
|
675
|
-
star: /* @__PURE__ */
|
|
676
|
-
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" }),
|
|
677
948
|
file: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ jsx3("path", { d: "M6 3h8l4 4v14H6V3Z" }),
|
|
950
|
+
/* @__PURE__ */ jsx3("path", { d: "M14 3v5h4" })
|
|
680
951
|
] }),
|
|
681
|
-
folder: /* @__PURE__ */
|
|
952
|
+
folder: /* @__PURE__ */ jsx3("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
|
|
682
953
|
image: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
-
/* @__PURE__ */
|
|
685
|
-
/* @__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" })
|
|
686
957
|
] }),
|
|
687
|
-
filter: /* @__PURE__ */
|
|
958
|
+
filter: /* @__PURE__ */ jsx3("path", { d: "M3 5h18l-7 8v6l-4 2v-8L3 5Z" }),
|
|
688
959
|
"sort-ascending": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
689
|
-
/* @__PURE__ */
|
|
690
|
-
/* @__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" })
|
|
691
962
|
] }),
|
|
692
963
|
"sort-descending": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
-
/* @__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" })
|
|
695
966
|
] }),
|
|
696
967
|
play: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
969
|
+
/* @__PURE__ */ jsx3("path", { d: "m10 8 6 4-6 4V8Z" })
|
|
699
970
|
] }),
|
|
700
971
|
pause: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */
|
|
972
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "12", r: "9" }),
|
|
973
|
+
/* @__PURE__ */ jsx3("path", { d: "M9.5 9v6M14.5 9v6" })
|
|
703
974
|
] }),
|
|
704
975
|
book: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
705
|
-
/* @__PURE__ */
|
|
706
|
-
/* @__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" })
|
|
707
978
|
] }),
|
|
708
979
|
component: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
709
|
-
/* @__PURE__ */
|
|
710
|
-
/* @__PURE__ */
|
|
711
|
-
/* @__PURE__ */
|
|
712
|
-
/* @__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" })
|
|
713
984
|
] }),
|
|
714
985
|
token: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
-
/* @__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" })
|
|
717
988
|
] }),
|
|
718
989
|
sun: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
/* @__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" })
|
|
721
992
|
] }),
|
|
722
|
-
moon: /* @__PURE__ */
|
|
723
|
-
code: /* @__PURE__ */
|
|
724
|
-
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" })
|
|
725
996
|
};
|
|
726
997
|
var iconPaths = { ...coreIconPaths, ...extendedIconPaths };
|
|
727
998
|
var ICON_NAMES = Object.freeze(Object.keys(iconPaths));
|
|
728
999
|
var filledIconPaths = {
|
|
729
1000
|
info: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
730
|
-
/* @__PURE__ */
|
|
731
|
-
/* @__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" })
|
|
732
1003
|
] }),
|
|
733
1004
|
question: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
734
|
-
/* @__PURE__ */
|
|
735
|
-
/* @__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" })
|
|
736
1007
|
] }),
|
|
737
1008
|
warning: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
/* @__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" })
|
|
740
1011
|
] }),
|
|
741
1012
|
"circle-check": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__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" })
|
|
744
1015
|
] }),
|
|
745
1016
|
"circle-close": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
/* @__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" })
|
|
748
1019
|
] }),
|
|
749
1020
|
"circle-plus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
/* @__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" })
|
|
752
1023
|
] }),
|
|
753
1024
|
"circle-minus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
754
|
-
/* @__PURE__ */
|
|
755
|
-
/* @__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" })
|
|
756
1027
|
] }),
|
|
757
|
-
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" }),
|
|
758
1029
|
user: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
/* @__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" })
|
|
761
1032
|
] }),
|
|
762
1033
|
users: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
766
|
-
] }),
|
|
767
|
-
trash: /* @__PURE__ */
|
|
768
|
-
bell: /* @__PURE__ */
|
|
769
|
-
star: /* @__PURE__ */
|
|
770
|
-
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" }),
|
|
771
1042
|
mail: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
/* @__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" })
|
|
774
1045
|
] }),
|
|
775
|
-
lock: /* @__PURE__ */
|
|
776
|
-
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" }),
|
|
777
1048
|
calendar: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
778
|
-
/* @__PURE__ */
|
|
779
|
-
/* @__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" })
|
|
780
1051
|
] }),
|
|
781
1052
|
clock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__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" })
|
|
784
1055
|
] }),
|
|
785
|
-
file: /* @__PURE__ */
|
|
786
|
-
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" }),
|
|
787
1058
|
image: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
/* @__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" })
|
|
791
1062
|
] }),
|
|
792
|
-
filter: /* @__PURE__ */
|
|
1063
|
+
filter: /* @__PURE__ */ jsx3("path", { d: "M2 4h20l-7.8 9v6.2L9.8 22v-9L2 4Z", fill: "currentColor", stroke: "none" }),
|
|
793
1064
|
play: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
/* @__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" })
|
|
796
1067
|
] }),
|
|
797
1068
|
pause: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
798
|
-
/* @__PURE__ */
|
|
799
|
-
/* @__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" })
|
|
800
1071
|
] }),
|
|
801
|
-
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" }),
|
|
802
1073
|
component: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
803
|
-
/* @__PURE__ */
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
/* @__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" })
|
|
807
1078
|
] }),
|
|
808
1079
|
token: /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
809
|
-
/* @__PURE__ */
|
|
810
|
-
/* @__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" })
|
|
811
1082
|
] })
|
|
812
1083
|
};
|
|
813
1084
|
var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
|
|
1085
|
+
var normalizedOutlinePaths = normalizeIconPaths(iconPaths, outlineIconBounds);
|
|
1086
|
+
var normalizedFilledPaths = normalizeIconPaths(filledIconPaths, filledIconBounds);
|
|
814
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) {
|
|
815
1088
|
const resolvedSize = typeof size === "number" ? `${size}px` : size;
|
|
816
1089
|
const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
|
|
817
1090
|
const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
|
|
818
1091
|
const filledPath = filledIconPaths[name];
|
|
819
1092
|
const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
|
|
820
|
-
|
|
1093
|
+
const geometry = resolvedVariant === "filled" ? normalizedFilledPaths[name] : normalizedOutlinePaths[name];
|
|
1094
|
+
return /* @__PURE__ */ jsx3(
|
|
821
1095
|
"span",
|
|
822
1096
|
{
|
|
823
1097
|
ref,
|
|
@@ -828,14 +1102,14 @@ var Icon = forwardRef(function Icon2({ name, size = "1em", strokeWidth = 1.8, ro
|
|
|
828
1102
|
"aria-hidden": label ? void 0 : true,
|
|
829
1103
|
style: mergedStyle,
|
|
830
1104
|
...withTitleTooltip(props),
|
|
831
|
-
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 })
|
|
832
1106
|
}
|
|
833
1107
|
);
|
|
834
1108
|
});
|
|
835
1109
|
|
|
836
1110
|
// src/components/Navigation.tsx
|
|
837
1111
|
import { useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
838
|
-
import { Fragment as Fragment3, jsx as
|
|
1112
|
+
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
839
1113
|
import { createElement } from "react";
|
|
840
1114
|
function MenuPopup({
|
|
841
1115
|
anchorRef,
|
|
@@ -866,7 +1140,7 @@ function MenuPopup({
|
|
|
866
1140
|
const timer = window.setTimeout(() => setMounted(false), 160);
|
|
867
1141
|
return () => window.clearTimeout(timer);
|
|
868
1142
|
}, [open]);
|
|
869
|
-
return /* @__PURE__ */
|
|
1143
|
+
return /* @__PURE__ */ jsx4(
|
|
870
1144
|
PopupPortal,
|
|
871
1145
|
{
|
|
872
1146
|
anchorRef,
|
|
@@ -878,7 +1152,7 @@ function MenuPopup({
|
|
|
878
1152
|
"data-sia-menu-owner": menuId,
|
|
879
1153
|
onMouseEnter,
|
|
880
1154
|
onMouseLeave,
|
|
881
|
-
children: /* @__PURE__ */
|
|
1155
|
+
children: /* @__PURE__ */ jsx4("ul", { className: "sia-menu__popup-list", role: "menu", children })
|
|
882
1156
|
}
|
|
883
1157
|
);
|
|
884
1158
|
}
|
|
@@ -911,7 +1185,7 @@ function MenuEntry({
|
|
|
911
1185
|
closeTimerRef.current = window.setTimeout(() => props.toggle(item.key, false), 100);
|
|
912
1186
|
}
|
|
913
1187
|
const hover = props.triggerSubMenuAction === "hover" && hasChildren && !inlineSubmenu;
|
|
914
|
-
const submenu = hasChildren ? /* @__PURE__ */
|
|
1188
|
+
const submenu = hasChildren ? /* @__PURE__ */ jsx4(MenuLevel, { items: item.children ?? [], level: level + 1, parents: [item.key, ...parents], props }) : null;
|
|
915
1189
|
const popupPlacement = props.mode === "horizontal" && level === 0 ? "bottom-start" : "right-start";
|
|
916
1190
|
return /* @__PURE__ */ jsxs3(
|
|
917
1191
|
"li",
|
|
@@ -936,14 +1210,14 @@ function MenuEntry({
|
|
|
936
1210
|
"aria-expanded": hasChildren ? isOpen : void 0,
|
|
937
1211
|
onClick: (event) => hasChildren ? props.toggle(item.key) : props.select(item, path, event),
|
|
938
1212
|
children: [
|
|
939
|
-
reserveIcon ? /* @__PURE__ */
|
|
940
|
-
!collapsed ? /* @__PURE__ */
|
|
941
|
-
!collapsed && item.extra ? /* @__PURE__ */
|
|
942
|
-
!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
|
|
943
1217
|
]
|
|
944
1218
|
}
|
|
945
1219
|
),
|
|
946
|
-
hasChildren ? inlineSubmenu ? /* @__PURE__ */
|
|
1220
|
+
hasChildren ? inlineSubmenu ? /* @__PURE__ */ jsx4("ul", { className: "sia-menu__submenu", role: "menu", "aria-hidden": !isOpen, children: submenu }) : /* @__PURE__ */ jsx4(
|
|
947
1221
|
MenuPopup,
|
|
948
1222
|
{
|
|
949
1223
|
anchorRef,
|
|
@@ -970,13 +1244,13 @@ function MenuLevel({
|
|
|
970
1244
|
props,
|
|
971
1245
|
reserveIcon = hasMenuIcon(items)
|
|
972
1246
|
}) {
|
|
973
|
-
return /* @__PURE__ */
|
|
974
|
-
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}`);
|
|
975
1249
|
if (item.type === "group") return /* @__PURE__ */ jsxs3("li", { className: "sia-menu__group", children: [
|
|
976
|
-
/* @__PURE__ */
|
|
977
|
-
/* @__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 }) })
|
|
978
1252
|
] }, item.key);
|
|
979
|
-
return /* @__PURE__ */
|
|
1253
|
+
return /* @__PURE__ */ jsx4(MenuEntry, { item, level, parents, props, reserveIcon }, item.key);
|
|
980
1254
|
}) });
|
|
981
1255
|
}
|
|
982
1256
|
function Menu({
|
|
@@ -1029,25 +1303,25 @@ function Menu({
|
|
|
1029
1303
|
else onSelect?.({ ...info, selectedKeys: [...next] });
|
|
1030
1304
|
if (mode !== "inline") setOpen([]);
|
|
1031
1305
|
}
|
|
1032
|
-
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 } }) });
|
|
1033
1307
|
}
|
|
1034
1308
|
function Steps({ items, current = 0, initial = 0, direction = "horizontal", type = "default", size = "default", status = "process", progressDot = false, onChange, className = "", ...props }) {
|
|
1035
|
-
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) => {
|
|
1036
1310
|
const index = rawIndex + initial;
|
|
1037
1311
|
const itemStatus = item.status ?? (index < current ? "finish" : index === current ? status : "wait");
|
|
1038
|
-
const dot = /* @__PURE__ */
|
|
1039
|
-
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);
|
|
1040
1314
|
return /* @__PURE__ */ jsxs3("button", { type: "button", className: `sia-steps__item sia-steps__item--${itemStatus}`, disabled: item.disabled || !onChange, onClick: () => onChange?.(index), children: [
|
|
1041
1315
|
/* @__PURE__ */ jsxs3("span", { className: "sia-steps__head", children: [
|
|
1042
|
-
/* @__PURE__ */
|
|
1043
|
-
/* @__PURE__ */
|
|
1316
|
+
/* @__PURE__ */ jsx4("span", { className: "sia-steps__icon", children: icon }),
|
|
1317
|
+
/* @__PURE__ */ jsx4("span", { className: "sia-steps__tail" })
|
|
1044
1318
|
] }),
|
|
1045
1319
|
/* @__PURE__ */ jsxs3("span", { className: "sia-steps__content", children: [
|
|
1046
1320
|
/* @__PURE__ */ jsxs3("span", { className: "sia-steps__title", children: [
|
|
1047
1321
|
item.title,
|
|
1048
|
-
item.subTitle ? /* @__PURE__ */
|
|
1322
|
+
item.subTitle ? /* @__PURE__ */ jsx4("small", { children: item.subTitle }) : null
|
|
1049
1323
|
] }),
|
|
1050
|
-
item.description ? /* @__PURE__ */
|
|
1324
|
+
item.description ? /* @__PURE__ */ jsx4("span", { className: "sia-steps__description", children: item.description }) : null
|
|
1051
1325
|
] })
|
|
1052
1326
|
] }, index);
|
|
1053
1327
|
}) });
|
|
@@ -1065,12 +1339,12 @@ function Segmented({ options, value, defaultValue, variant = "default", shape =
|
|
|
1065
1339
|
const next = event.key === "ArrowRight" || event.key === "ArrowDown" ? enabled[(index + 1) % enabled.length] : enabled[(index - 1 + enabled.length) % enabled.length];
|
|
1066
1340
|
if (next) setCurrent(next.value);
|
|
1067
1341
|
}
|
|
1068
|
-
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 }))) });
|
|
1069
1343
|
}
|
|
1070
1344
|
|
|
1071
1345
|
// src/components/Dropdown.tsx
|
|
1072
|
-
import { cloneElement, isValidElement, useEffect as useEffect2, useLayoutEffect as useLayoutEffect2, useRef as useRef2, useState as useState2 } from "react";
|
|
1073
|
-
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";
|
|
1074
1348
|
var placementMap = {
|
|
1075
1349
|
bottomLeft: "bottom-start",
|
|
1076
1350
|
bottomRight: "bottom-end",
|
|
@@ -1240,7 +1514,7 @@ function DropdownRoot({
|
|
|
1240
1514
|
updateOpen(true, "trigger");
|
|
1241
1515
|
}
|
|
1242
1516
|
}
|
|
1243
|
-
const menuNode = /* @__PURE__ */
|
|
1517
|
+
const menuNode = /* @__PURE__ */ jsx5(
|
|
1244
1518
|
Menu,
|
|
1245
1519
|
{
|
|
1246
1520
|
mode: "vertical",
|
|
@@ -1257,9 +1531,9 @@ function DropdownRoot({
|
|
|
1257
1531
|
className: "sia-dropdown__menu"
|
|
1258
1532
|
}
|
|
1259
1533
|
);
|
|
1260
|
-
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: [
|
|
1261
1535
|
children.props.children,
|
|
1262
|
-
/* @__PURE__ */
|
|
1536
|
+
/* @__PURE__ */ jsx5(Icon, { name: "chevron-down", size: 14, className: "sia-dropdown__trigger-icon" })
|
|
1263
1537
|
] })) : children;
|
|
1264
1538
|
return /* @__PURE__ */ jsxs4(
|
|
1265
1539
|
"span",
|
|
@@ -1277,7 +1551,7 @@ function DropdownRoot({
|
|
|
1277
1551
|
...withTitleTooltip(props),
|
|
1278
1552
|
children: [
|
|
1279
1553
|
triggerNode,
|
|
1280
|
-
/* @__PURE__ */
|
|
1554
|
+
/* @__PURE__ */ jsx5(
|
|
1281
1555
|
"span",
|
|
1282
1556
|
{
|
|
1283
1557
|
ref: contextAnchorRef,
|
|
@@ -1286,7 +1560,7 @@ function DropdownRoot({
|
|
|
1286
1560
|
"aria-hidden": "true"
|
|
1287
1561
|
}
|
|
1288
1562
|
),
|
|
1289
|
-
/* @__PURE__ */
|
|
1563
|
+
/* @__PURE__ */ jsx5(
|
|
1290
1564
|
PopupPortal,
|
|
1291
1565
|
{
|
|
1292
1566
|
ref: popupRef,
|
|
@@ -1324,14 +1598,14 @@ function DropdownButton({
|
|
|
1324
1598
|
...dropdownProps
|
|
1325
1599
|
}) {
|
|
1326
1600
|
return /* @__PURE__ */ jsxs4("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1327
|
-
/* @__PURE__ */
|
|
1328
|
-
/* @__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(
|
|
1329
1603
|
Button,
|
|
1330
1604
|
{
|
|
1331
1605
|
...buttonProps,
|
|
1332
1606
|
className: `sia-dropdown-button__arrow ${buttonProps?.className ?? ""}`.trim(),
|
|
1333
1607
|
disabled: disabled || dropdownDisabled,
|
|
1334
|
-
icon: /* @__PURE__ */
|
|
1608
|
+
icon: /* @__PURE__ */ jsx5(Icon, { name: "chevron-down", size: 14 }),
|
|
1335
1609
|
"aria-label": "\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
|
1336
1610
|
}
|
|
1337
1611
|
) })
|
|
@@ -1426,15 +1700,15 @@ function OverlayPortal({ children, container }) {
|
|
|
1426
1700
|
}
|
|
1427
1701
|
|
|
1428
1702
|
// src/components/Modal.tsx
|
|
1429
|
-
import { Fragment as Fragment4, jsx as
|
|
1703
|
+
import { Fragment as Fragment4, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1430
1704
|
var modalHandles = /* @__PURE__ */ new Set();
|
|
1431
1705
|
var MODAL_MOTION_DURATION = 220;
|
|
1432
1706
|
var typeIcons = {
|
|
1433
|
-
info: /* @__PURE__ */
|
|
1434
|
-
success: /* @__PURE__ */
|
|
1435
|
-
warning: /* @__PURE__ */
|
|
1436
|
-
error: /* @__PURE__ */
|
|
1437
|
-
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 })
|
|
1438
1712
|
};
|
|
1439
1713
|
var ModalRoot = forwardRef2(function Modal({
|
|
1440
1714
|
open,
|
|
@@ -1536,10 +1810,10 @@ var ModalRoot = forwardRef2(function Modal({
|
|
|
1536
1810
|
};
|
|
1537
1811
|
const loading = submitting || confirmLoading;
|
|
1538
1812
|
const defaultFooter = /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
1539
|
-
showCancel ? /* @__PURE__ */
|
|
1540
|
-
/* @__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 })
|
|
1541
1815
|
] });
|
|
1542
|
-
return /* @__PURE__ */
|
|
1816
|
+
return /* @__PURE__ */ jsx6(OverlayPortal, { container: getContainer, children: /* @__PURE__ */ jsx6(
|
|
1543
1817
|
"div",
|
|
1544
1818
|
{
|
|
1545
1819
|
className: `sia-modal-root${centered ? " sia-modal-root--centered" : ""}`,
|
|
@@ -1562,14 +1836,14 @@ var ModalRoot = forwardRef2(function Modal({
|
|
|
1562
1836
|
children: [
|
|
1563
1837
|
/* @__PURE__ */ jsxs5("div", { className: "sia-modal__header", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
|
|
1564
1838
|
/* @__PURE__ */ jsxs5("div", { className: "sia-modal__heading", children: [
|
|
1565
|
-
typeIcons[type] ? /* @__PURE__ */
|
|
1566
|
-
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
|
|
1567
1841
|
] }),
|
|
1568
|
-
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
|
|
1569
1843
|
] }),
|
|
1570
|
-
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,
|
|
1571
1845
|
footer !== null ? /* @__PURE__ */ jsxs5("div", { className: "sia-modal__footer", style: height !== void 0 ? { flexShrink: 0 } : void 0, children: [
|
|
1572
|
-
footer === void 0 && footerExtra != null ? /* @__PURE__ */
|
|
1846
|
+
footer === void 0 && footerExtra != null ? /* @__PURE__ */ jsx6("div", { style: { marginRight: "auto" }, children: footerExtra }) : null,
|
|
1573
1847
|
footer ?? defaultFooter
|
|
1574
1848
|
] }) : null
|
|
1575
1849
|
]
|
|
@@ -1607,7 +1881,7 @@ function openModal(config) {
|
|
|
1607
1881
|
mounted = true;
|
|
1608
1882
|
if (!currentOpen) render();
|
|
1609
1883
|
}, []);
|
|
1610
|
-
return /* @__PURE__ */
|
|
1884
|
+
return /* @__PURE__ */ jsx6(ModalRoot, { ...currentConfig, open: !mounted || currentOpen, onOpenChange: (nextOpen) => {
|
|
1611
1885
|
currentConfig.onOpenChange?.(nextOpen);
|
|
1612
1886
|
if (!nextOpen) closeWithMotion();
|
|
1613
1887
|
}, afterOpenChange: (nextOpen) => {
|
|
@@ -1619,7 +1893,7 @@ function openModal(config) {
|
|
|
1619
1893
|
} });
|
|
1620
1894
|
}
|
|
1621
1895
|
function render() {
|
|
1622
|
-
root.render(/* @__PURE__ */
|
|
1896
|
+
root.render(/* @__PURE__ */ jsx6(ModalInstance, {}));
|
|
1623
1897
|
}
|
|
1624
1898
|
const handle = {
|
|
1625
1899
|
destroy: closeWithMotion,
|
|
@@ -1665,7 +1939,7 @@ var Modal2 = Object.assign(ModalRoot, {
|
|
|
1665
1939
|
|
|
1666
1940
|
// src/components/Input.tsx
|
|
1667
1941
|
import { forwardRef as forwardRef3, useId as useId3, useRef as useRef5, useState as useState4 } from "react";
|
|
1668
|
-
import { Fragment as Fragment5, jsx as
|
|
1942
|
+
import { Fragment as Fragment5, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1669
1943
|
var Input = forwardRef3(function Input2({
|
|
1670
1944
|
label,
|
|
1671
1945
|
hint,
|
|
@@ -1732,7 +2006,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1732
2006
|
event.preventDefault();
|
|
1733
2007
|
localRef.current?.focus({ preventScroll: true });
|
|
1734
2008
|
}
|
|
1735
|
-
const input = /* @__PURE__ */
|
|
2009
|
+
const input = /* @__PURE__ */ jsx7(
|
|
1736
2010
|
"input",
|
|
1737
2011
|
{
|
|
1738
2012
|
...withTitleTooltip(props),
|
|
@@ -1750,14 +2024,14 @@ var Input = forwardRef3(function Input2({
|
|
|
1750
2024
|
}
|
|
1751
2025
|
);
|
|
1752
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: [
|
|
1753
|
-
prefix ? /* @__PURE__ */
|
|
2027
|
+
prefix ? /* @__PURE__ */ jsx7("span", { className: "sia-input-control__affix", children: prefix }) : null,
|
|
1754
2028
|
floatingPlaceholder ? /* @__PURE__ */ jsxs6("span", { className: "sia-input-control__input-wrap", children: [
|
|
1755
2029
|
input,
|
|
1756
|
-
/* @__PURE__ */
|
|
2030
|
+
/* @__PURE__ */ jsx7("span", { className: "sia-input-control__floating-placeholder", "aria-hidden": "true", children: placeholder })
|
|
1757
2031
|
] }) : input,
|
|
1758
|
-
allowClear && hasValue && !disabled ? /* @__PURE__ */
|
|
1759
|
-
suffix ? /* @__PURE__ */
|
|
1760
|
-
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(
|
|
1761
2035
|
"button",
|
|
1762
2036
|
{
|
|
1763
2037
|
type: "button",
|
|
@@ -1769,7 +2043,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1769
2043
|
setExpandedDraft(currentText);
|
|
1770
2044
|
setExpanded(true);
|
|
1771
2045
|
},
|
|
1772
|
-
children: /* @__PURE__ */
|
|
2046
|
+
children: /* @__PURE__ */ jsx7(Icon, { name: "expand", size: 15 })
|
|
1773
2047
|
}
|
|
1774
2048
|
) : null,
|
|
1775
2049
|
showCount ? /* @__PURE__ */ jsxs6("span", { className: `sia-input-control__count${maxLength !== void 0 && currentText.length >= maxLength ? " is-limit" : ""}`, "aria-live": "polite", children: [
|
|
@@ -1777,7 +2051,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1777
2051
|
maxLength !== void 0 ? `/${maxLength}` : null
|
|
1778
2052
|
] }) : null
|
|
1779
2053
|
] });
|
|
1780
|
-
const editor = expandable ? /* @__PURE__ */
|
|
2054
|
+
const editor = expandable ? /* @__PURE__ */ jsx7(
|
|
1781
2055
|
Modal2,
|
|
1782
2056
|
{
|
|
1783
2057
|
open: expanded,
|
|
@@ -1798,7 +2072,7 @@ var Input = forwardRef3(function Input2({
|
|
|
1798
2072
|
setUncontrolledValue(next);
|
|
1799
2073
|
setExpanded(false);
|
|
1800
2074
|
},
|
|
1801
|
-
children: /* @__PURE__ */
|
|
2075
|
+
children: /* @__PURE__ */ jsx7(
|
|
1802
2076
|
TextArea,
|
|
1803
2077
|
{
|
|
1804
2078
|
"aria-label": "\u5C55\u5F00\u7F16\u8F91\u5185\u5BB9",
|
|
@@ -1815,14 +2089,14 @@ var Input = forwardRef3(function Input2({
|
|
|
1815
2089
|
}
|
|
1816
2090
|
) : null;
|
|
1817
2091
|
if (!label && !hint) return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
1818
|
-
/* @__PURE__ */
|
|
2092
|
+
/* @__PURE__ */ jsx7("span", { className: `sia-field ${className}`.trim(), children: control }),
|
|
1819
2093
|
editor
|
|
1820
2094
|
] });
|
|
1821
2095
|
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
1822
2096
|
/* @__PURE__ */ jsxs6("span", { className: `sia-field ${className}`.trim(), children: [
|
|
1823
|
-
label ? /* @__PURE__ */
|
|
2097
|
+
label ? /* @__PURE__ */ jsx7("label", { className: "sia-field__label", htmlFor: inputId, children: label }) : null,
|
|
1824
2098
|
control,
|
|
1825
|
-
hint ? /* @__PURE__ */
|
|
2099
|
+
hint ? /* @__PURE__ */ jsx7("span", { id: hintId, className: `sia-field__hint sia-field__hint--${status}`, children: hint }) : null
|
|
1826
2100
|
] }),
|
|
1827
2101
|
editor
|
|
1828
2102
|
] });
|