arco-clone-react 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,12 +22,10 @@ Test reports are automatically generated and deployed for every pull request.
22
22
  - Semantic versioning with automated releases
23
23
  - GitHub Actions CI/CD pipeline
24
24
 
25
- ## ~~Installation~~
26
-
27
- 🚨 to be configured later.
25
+ ## Installation
28
26
 
29
27
  ```bash
30
- npm install design-system-poc
28
+ npm install arco-clone-react
31
29
  ```
32
30
 
33
31
  ## Usage
package/dist/index.css CHANGED
@@ -496,6 +496,267 @@
496
496
  }
497
497
 
498
498
 
499
+ /* src/components/Drawer/Drawer.module.css */
500
+ /* Drawer Component Styles */
501
+
502
+ .drawerContainer {
503
+ position: fixed;
504
+ top: 0;
505
+ left: 0;
506
+ right: 0;
507
+ bottom: 0;
508
+ pointer-events: none;
509
+ }
510
+
511
+ .drawerContainer > * {
512
+ pointer-events: auto;
513
+ }
514
+
515
+ /* Overlay */
516
+ .overlay {
517
+ position: fixed;
518
+ top: 0;
519
+ left: 0;
520
+ right: 0;
521
+ bottom: 0;
522
+ background: rgba(0, 0, 0, 0.5);
523
+ animation: fadeIn 0.3s ease;
524
+ }
525
+
526
+ @keyframes fadeIn {
527
+ from {
528
+ opacity: 0;
529
+ }
530
+ to {
531
+ opacity: 1;
532
+ }
533
+ }
534
+
535
+ /* Drawer */
536
+ .drawer {
537
+ position: fixed;
538
+ background: var(--color-bg-white, #fff);
539
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
540
+ display: flex;
541
+ flex-direction: column;
542
+ outline: none;
543
+ }
544
+
545
+ /* Placement: Right (default) */
546
+ .drawer.right {
547
+ top: 0;
548
+ right: 0;
549
+ bottom: 0;
550
+ animation: slideInRight 0.3s ease;
551
+ }
552
+
553
+ @keyframes slideInRight {
554
+ from {
555
+ transform: translateX(100%);
556
+ }
557
+ to {
558
+ transform: translateX(0);
559
+ }
560
+ }
561
+
562
+ /* Placement: Left */
563
+ .drawer.left {
564
+ top: 0;
565
+ left: 0;
566
+ bottom: 0;
567
+ animation: slideInLeft 0.3s ease;
568
+ }
569
+
570
+ @keyframes slideInLeft {
571
+ from {
572
+ transform: translateX(-100%);
573
+ }
574
+ to {
575
+ transform: translateX(0);
576
+ }
577
+ }
578
+
579
+ /* Placement: Top */
580
+ .drawer.top {
581
+ top: 0;
582
+ left: 0;
583
+ right: 0;
584
+ animation: slideInTop 0.3s ease;
585
+ }
586
+
587
+ @keyframes slideInTop {
588
+ from {
589
+ transform: translateY(-100%);
590
+ }
591
+ to {
592
+ transform: translateY(0);
593
+ }
594
+ }
595
+
596
+ /* Placement: Bottom */
597
+ .drawer.bottom {
598
+ bottom: 0;
599
+ left: 0;
600
+ right: 0;
601
+ animation: slideInBottom 0.3s ease;
602
+ }
603
+
604
+ @keyframes slideInBottom {
605
+ from {
606
+ transform: translateY(100%);
607
+ }
608
+ to {
609
+ transform: translateY(0);
610
+ }
611
+ }
612
+
613
+ /* Size: Small */
614
+ .drawer.right.small,
615
+ .drawer.left.small {
616
+ width: 320px;
617
+ }
618
+
619
+ .drawer.top.small,
620
+ .drawer.bottom.small {
621
+ height: 240px;
622
+ }
623
+
624
+ /* Size: Medium (default) */
625
+ .drawer.right.medium,
626
+ .drawer.left.medium {
627
+ width: 480px;
628
+ }
629
+
630
+ .drawer.top.medium,
631
+ .drawer.bottom.medium {
632
+ height: 360px;
633
+ }
634
+
635
+ /* Size: Large */
636
+ .drawer.right.large,
637
+ .drawer.left.large {
638
+ width: 640px;
639
+ }
640
+
641
+ .drawer.top.large,
642
+ .drawer.bottom.large {
643
+ height: 480px;
644
+ }
645
+
646
+ /* Size: Full */
647
+ .drawer.right.full,
648
+ .drawer.left.full {
649
+ width: 100%;
650
+ }
651
+
652
+ .drawer.top.full,
653
+ .drawer.bottom.full {
654
+ height: 100%;
655
+ }
656
+
657
+ /* Header */
658
+ .header {
659
+ display: flex;
660
+ align-items: center;
661
+ justify-content: space-between;
662
+ padding: 1.5rem;
663
+ border-bottom: 1px solid var(--color-border, #e0e0e0);
664
+ flex-shrink: 0;
665
+ }
666
+
667
+ .title {
668
+ margin: 0;
669
+ font-size: 1.25rem;
670
+ font-weight: 600;
671
+ color: var(--color-text-primary, #333);
672
+ }
673
+
674
+ .closeButton {
675
+ display: flex;
676
+ align-items: center;
677
+ justify-content: center;
678
+ padding: 0.5rem;
679
+ background: transparent;
680
+ border: none;
681
+ border-radius: 0.25rem;
682
+ cursor: pointer;
683
+ color: var(--color-text-secondary, #666);
684
+ transition: all 0.2s ease;
685
+ margin-left: auto;
686
+ }
687
+
688
+ .closeButton:hover {
689
+ background: var(--color-bg-hover, rgba(0, 0, 0, 0.04));
690
+ color: var(--color-text-primary, #333);
691
+ }
692
+
693
+ .closeButton:focus-visible {
694
+ outline: 2px solid var(--color-primary, #1890ff);
695
+ outline-offset: 2px;
696
+ }
697
+
698
+ .closeButton:active {
699
+ transform: scale(0.95);
700
+ }
701
+
702
+ /* Body */
703
+ .body {
704
+ flex: 1;
705
+ overflow-y: auto;
706
+ padding: 1.5rem;
707
+ }
708
+
709
+ /* Footer */
710
+ .footer {
711
+ padding: 1rem 1.5rem;
712
+ border-top: 1px solid var(--color-border, #e0e0e0);
713
+ flex-shrink: 0;
714
+ }
715
+
716
+ /* Responsive */
717
+ @media (max-width: 768px) {
718
+ .drawer.right.small,
719
+ .drawer.left.small,
720
+ .drawer.right.medium,
721
+ .drawer.left.medium {
722
+ width: 100%;
723
+ }
724
+
725
+ .drawer.top.small,
726
+ .drawer.bottom.small,
727
+ .drawer.top.medium,
728
+ .drawer.bottom.medium {
729
+ height: 80%;
730
+ }
731
+
732
+ .drawer.right.large,
733
+ .drawer.left.large {
734
+ width: 100%;
735
+ }
736
+
737
+ .drawer.top.large,
738
+ .drawer.bottom.large {
739
+ height: 90%;
740
+ }
741
+
742
+ .header {
743
+ padding: 1rem;
744
+ }
745
+
746
+ .body {
747
+ padding: 1rem;
748
+ }
749
+
750
+ .footer {
751
+ padding: 0.75rem 1rem;
752
+ }
753
+
754
+ .title {
755
+ font-size: 1.125rem;
756
+ }
757
+ }
758
+
759
+
499
760
  /* src/components/Container/Container.module.css */
500
761
  /**
501
762
  * Container Component Styles
@@ -558,6 +819,142 @@
558
819
  }
559
820
 
560
821
 
822
+ /* src/components/Collapse/Collapse.module.css */
823
+ /**
824
+ * Collapse Component Styles
825
+ *
826
+ * Styling for Collapse component with smooth animations.
827
+ */
828
+
829
+ .collapse {
830
+ display: block;
831
+ background-color: #ffffff;
832
+ overflow: hidden;
833
+ }
834
+
835
+ .bordered {
836
+ border: 1px solid #e5e6eb;
837
+ border-radius: 4px;
838
+ }
839
+
840
+ .disabled {
841
+ opacity: 0.6;
842
+ cursor: not-allowed;
843
+ }
844
+
845
+ /* Header */
846
+ .header {
847
+ display: flex;
848
+ align-items: center;
849
+ gap: 8px;
850
+ cursor: pointer;
851
+ user-select: none;
852
+ transition: background-color 0.2s ease;
853
+ font-family:
854
+ 'Nunito Sans',
855
+ -apple-system,
856
+ BlinkMacSystemFont,
857
+ 'Segoe UI',
858
+ Roboto,
859
+ sans-serif;
860
+ font-weight: 600;
861
+ color: #1d2129;
862
+ }
863
+
864
+ .header:hover:not(.disabled .header) {
865
+ background-color: #f7f8fa;
866
+ }
867
+
868
+ .header:focus-visible {
869
+ outline: 2px solid #165dff;
870
+ outline-offset: -2px;
871
+ }
872
+
873
+ .disabled .header {
874
+ cursor: not-allowed;
875
+ }
876
+
877
+ /* Sizes */
878
+ .small .header {
879
+ padding: 8px 12px;
880
+ font-size: 12px;
881
+ }
882
+
883
+ .medium .header {
884
+ padding: 12px 16px;
885
+ font-size: 14px;
886
+ }
887
+
888
+ .large .header {
889
+ padding: 16px 20px;
890
+ font-size: 16px;
891
+ }
892
+
893
+ /* Icon */
894
+ .icon {
895
+ display: inline-flex;
896
+ align-items: center;
897
+ justify-content: center;
898
+ width: 16px;
899
+ height: 16px;
900
+ font-size: 10px;
901
+ color: #86909c;
902
+ transition: transform 0.3s ease;
903
+ flex-shrink: 0;
904
+ }
905
+
906
+ .expanded .icon {
907
+ transform: rotate(0deg);
908
+ }
909
+
910
+ .header:not(.expanded) .icon {
911
+ transform: rotate(-90deg);
912
+ }
913
+
914
+ /* Header content */
915
+ .headerContent {
916
+ flex: 1;
917
+ }
918
+
919
+ /* Content */
920
+ .content {
921
+ height: 0;
922
+ overflow: hidden;
923
+ transition: height 0.3s ease;
924
+ }
925
+
926
+ .contentExpanded {
927
+ overflow: visible;
928
+ }
929
+
930
+ .contentInner {
931
+ padding: 0 16px 16px 16px;
932
+ color: #4e5969;
933
+ font-family:
934
+ 'Nunito Sans',
935
+ -apple-system,
936
+ BlinkMacSystemFont,
937
+ 'Segoe UI',
938
+ Roboto,
939
+ sans-serif;
940
+ }
941
+
942
+ .small .contentInner {
943
+ padding: 0 12px 8px 12px;
944
+ font-size: 12px;
945
+ }
946
+
947
+ .medium .contentInner {
948
+ padding: 0 16px 12px 16px;
949
+ font-size: 14px;
950
+ }
951
+
952
+ .large .contentInner {
953
+ padding: 0 20px 16px 20px;
954
+ font-size: 16px;
955
+ }
956
+
957
+
561
958
  /* src/components/Carousel/Carousel.module.css */
562
959
  /* Carousel Component Styles */
563
960
 
@@ -1120,139 +1517,3 @@
1120
1517
  }
1121
1518
 
1122
1519
 
1123
- /* src/components/Collapse/Collapse.module.css */
1124
- /**
1125
- * Collapse Component Styles
1126
- *
1127
- * Styling for Collapse component with smooth animations.
1128
- */
1129
-
1130
- .collapse {
1131
- display: block;
1132
- background-color: #ffffff;
1133
- overflow: hidden;
1134
- }
1135
-
1136
- .bordered {
1137
- border: 1px solid #e5e6eb;
1138
- border-radius: 4px;
1139
- }
1140
-
1141
- .disabled {
1142
- opacity: 0.6;
1143
- cursor: not-allowed;
1144
- }
1145
-
1146
- /* Header */
1147
- .header {
1148
- display: flex;
1149
- align-items: center;
1150
- gap: 8px;
1151
- cursor: pointer;
1152
- user-select: none;
1153
- transition: background-color 0.2s ease;
1154
- font-family:
1155
- 'Nunito Sans',
1156
- -apple-system,
1157
- BlinkMacSystemFont,
1158
- 'Segoe UI',
1159
- Roboto,
1160
- sans-serif;
1161
- font-weight: 600;
1162
- color: #1d2129;
1163
- }
1164
-
1165
- .header:hover:not(.disabled .header) {
1166
- background-color: #f7f8fa;
1167
- }
1168
-
1169
- .header:focus-visible {
1170
- outline: 2px solid #165dff;
1171
- outline-offset: -2px;
1172
- }
1173
-
1174
- .disabled .header {
1175
- cursor: not-allowed;
1176
- }
1177
-
1178
- /* Sizes */
1179
- .small .header {
1180
- padding: 8px 12px;
1181
- font-size: 12px;
1182
- }
1183
-
1184
- .medium .header {
1185
- padding: 12px 16px;
1186
- font-size: 14px;
1187
- }
1188
-
1189
- .large .header {
1190
- padding: 16px 20px;
1191
- font-size: 16px;
1192
- }
1193
-
1194
- /* Icon */
1195
- .icon {
1196
- display: inline-flex;
1197
- align-items: center;
1198
- justify-content: center;
1199
- width: 16px;
1200
- height: 16px;
1201
- font-size: 10px;
1202
- color: #86909c;
1203
- transition: transform 0.3s ease;
1204
- flex-shrink: 0;
1205
- }
1206
-
1207
- .expanded .icon {
1208
- transform: rotate(0deg);
1209
- }
1210
-
1211
- .header:not(.expanded) .icon {
1212
- transform: rotate(-90deg);
1213
- }
1214
-
1215
- /* Header content */
1216
- .headerContent {
1217
- flex: 1;
1218
- }
1219
-
1220
- /* Content */
1221
- .content {
1222
- height: 0;
1223
- overflow: hidden;
1224
- transition: height 0.3s ease;
1225
- }
1226
-
1227
- .contentExpanded {
1228
- overflow: visible;
1229
- }
1230
-
1231
- .contentInner {
1232
- padding: 0 16px 16px 16px;
1233
- color: #4e5969;
1234
- font-family:
1235
- 'Nunito Sans',
1236
- -apple-system,
1237
- BlinkMacSystemFont,
1238
- 'Segoe UI',
1239
- Roboto,
1240
- sans-serif;
1241
- }
1242
-
1243
- .small .contentInner {
1244
- padding: 0 12px 8px 12px;
1245
- font-size: 12px;
1246
- }
1247
-
1248
- .medium .contentInner {
1249
- padding: 0 16px 12px 16px;
1250
- font-size: 14px;
1251
- }
1252
-
1253
- .large .contentInner {
1254
- padding: 0 20px 16px 20px;
1255
- font-size: 16px;
1256
- }
1257
-
1258
-