@nubitio/react-admin 0.5.14 → 0.5.16
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/style.css +267 -484
- package/package.json +6 -6
package/dist/style.css
CHANGED
|
@@ -754,6 +754,238 @@ html[data-density=compact] .nb-dialog__footer {
|
|
|
754
754
|
padding: var(--space-2) var(--space-3);
|
|
755
755
|
resize: vertical;
|
|
756
756
|
}
|
|
757
|
+
.nb-file-dropzone {
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-direction: column;
|
|
760
|
+
gap: var(--space-1);
|
|
761
|
+
width: 100%;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.nb-file-dropzone__zone {
|
|
765
|
+
align-items: center;
|
|
766
|
+
background: var(--surface-1);
|
|
767
|
+
border: 1px dashed var(--border-color);
|
|
768
|
+
border-radius: var(--radius-lg);
|
|
769
|
+
box-sizing: border-box;
|
|
770
|
+
cursor: pointer;
|
|
771
|
+
display: flex;
|
|
772
|
+
justify-content: center;
|
|
773
|
+
min-height: 112px;
|
|
774
|
+
overflow: hidden;
|
|
775
|
+
position: relative;
|
|
776
|
+
transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
|
|
777
|
+
width: 100%;
|
|
778
|
+
}
|
|
779
|
+
.nb-file-dropzone__zone:hover:not(.nb-file-dropzone__zone--disabled):not(.nb-file-dropzone__zone--filled) {
|
|
780
|
+
background: color-mix(in srgb, var(--accent-color) 4%, var(--surface-1));
|
|
781
|
+
border-color: var(--accent-color);
|
|
782
|
+
}
|
|
783
|
+
.nb-file-dropzone__zone--active {
|
|
784
|
+
background: color-mix(in srgb, var(--accent-color) 8%, var(--surface-1));
|
|
785
|
+
border-color: var(--accent-color);
|
|
786
|
+
}
|
|
787
|
+
.nb-file-dropzone__zone--filled {
|
|
788
|
+
border-style: solid;
|
|
789
|
+
cursor: default;
|
|
790
|
+
min-height: 88px;
|
|
791
|
+
}
|
|
792
|
+
.nb-file-dropzone__zone--uploading {
|
|
793
|
+
pointer-events: none;
|
|
794
|
+
}
|
|
795
|
+
.nb-file-dropzone__zone--disabled {
|
|
796
|
+
cursor: not-allowed;
|
|
797
|
+
opacity: 0.72;
|
|
798
|
+
}
|
|
799
|
+
.nb-file-dropzone__zone:focus-visible {
|
|
800
|
+
box-shadow: 0 0 0 3px var(--focus-ring-color);
|
|
801
|
+
outline: none;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.nb-file-dropzone--image .nb-file-dropzone__zone {
|
|
805
|
+
min-height: 168px;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
.nb-file-dropzone--image .nb-file-dropzone__zone--filled {
|
|
809
|
+
min-height: 180px;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
.nb-file-dropzone--invalid .nb-file-dropzone__zone {
|
|
813
|
+
border-color: var(--error-color);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.nb-file-dropzone__placeholder {
|
|
817
|
+
align-items: center;
|
|
818
|
+
display: flex;
|
|
819
|
+
flex-direction: column;
|
|
820
|
+
gap: var(--space-2);
|
|
821
|
+
max-width: 320px;
|
|
822
|
+
padding: var(--space-4);
|
|
823
|
+
text-align: center;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.nb-file-dropzone__icon {
|
|
827
|
+
align-items: center;
|
|
828
|
+
background: color-mix(in srgb, var(--accent-color) 10%, transparent);
|
|
829
|
+
border-radius: 999px;
|
|
830
|
+
color: var(--accent-color);
|
|
831
|
+
display: inline-flex;
|
|
832
|
+
font-size: 24px;
|
|
833
|
+
height: 48px;
|
|
834
|
+
justify-content: center;
|
|
835
|
+
width: 48px;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.nb-file-dropzone__title {
|
|
839
|
+
color: var(--text-primary);
|
|
840
|
+
font-size: var(--font-size-sm);
|
|
841
|
+
font-weight: var(--font-weight-semibold);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.nb-file-dropzone__hint {
|
|
845
|
+
color: var(--text-tertiary);
|
|
846
|
+
font-size: var(--font-size-xs);
|
|
847
|
+
line-height: var(--line-height-tight);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.nb-file-dropzone__preview {
|
|
851
|
+
display: block;
|
|
852
|
+
height: 100%;
|
|
853
|
+
max-height: 220px;
|
|
854
|
+
object-fit: contain;
|
|
855
|
+
width: 100%;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.nb-file-dropzone__file {
|
|
859
|
+
align-items: center;
|
|
860
|
+
display: flex;
|
|
861
|
+
gap: var(--space-3);
|
|
862
|
+
max-width: 100%;
|
|
863
|
+
padding: var(--space-3) var(--space-4);
|
|
864
|
+
width: 100%;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.nb-file-dropzone__file-icon {
|
|
868
|
+
align-items: center;
|
|
869
|
+
background: var(--surface-0);
|
|
870
|
+
border: 1px solid var(--border-subtle);
|
|
871
|
+
border-radius: var(--radius-md);
|
|
872
|
+
color: var(--accent-color);
|
|
873
|
+
display: inline-flex;
|
|
874
|
+
flex: 0 0 auto;
|
|
875
|
+
font-size: 22px;
|
|
876
|
+
height: 44px;
|
|
877
|
+
justify-content: center;
|
|
878
|
+
width: 44px;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.nb-file-dropzone__file-meta {
|
|
882
|
+
display: flex;
|
|
883
|
+
flex: 1 1 auto;
|
|
884
|
+
flex-direction: column;
|
|
885
|
+
gap: 2px;
|
|
886
|
+
min-width: 0;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.nb-file-dropzone__file-name {
|
|
890
|
+
color: var(--text-primary);
|
|
891
|
+
font-size: var(--font-size-sm);
|
|
892
|
+
font-weight: var(--font-weight-medium);
|
|
893
|
+
overflow: hidden;
|
|
894
|
+
text-overflow: ellipsis;
|
|
895
|
+
white-space: nowrap;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
.nb-file-dropzone__file-link {
|
|
899
|
+
color: var(--accent-color);
|
|
900
|
+
font-size: var(--font-size-xs);
|
|
901
|
+
text-decoration: none;
|
|
902
|
+
}
|
|
903
|
+
.nb-file-dropzone__file-link:hover {
|
|
904
|
+
text-decoration: underline;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.nb-file-dropzone__overlay {
|
|
908
|
+
align-items: center;
|
|
909
|
+
background: rgba(0, 0, 0, 0.42);
|
|
910
|
+
color: #fff;
|
|
911
|
+
display: flex;
|
|
912
|
+
flex-direction: column;
|
|
913
|
+
font-size: var(--font-size-sm);
|
|
914
|
+
gap: var(--space-2);
|
|
915
|
+
inset: 0;
|
|
916
|
+
justify-content: center;
|
|
917
|
+
position: absolute;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
.nb-file-dropzone__spinner {
|
|
921
|
+
animation: nb-file-dropzone-spin 700ms linear infinite;
|
|
922
|
+
border: 2px solid rgba(255, 255, 255, 0.35);
|
|
923
|
+
border-radius: 999px;
|
|
924
|
+
border-top-color: #fff;
|
|
925
|
+
height: 24px;
|
|
926
|
+
width: 24px;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
@keyframes nb-file-dropzone-spin {
|
|
930
|
+
to {
|
|
931
|
+
transform: rotate(360deg);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
.nb-file-dropzone__actions {
|
|
935
|
+
align-items: center;
|
|
936
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
|
|
937
|
+
bottom: 0;
|
|
938
|
+
display: flex;
|
|
939
|
+
gap: var(--space-2);
|
|
940
|
+
inset-inline: 0;
|
|
941
|
+
justify-content: center;
|
|
942
|
+
opacity: 0;
|
|
943
|
+
padding: var(--space-3);
|
|
944
|
+
position: absolute;
|
|
945
|
+
transition: opacity var(--transition-base);
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.nb-file-dropzone__zone--filled:hover .nb-file-dropzone__actions,
|
|
949
|
+
.nb-file-dropzone__zone--filled:focus-within .nb-file-dropzone__actions {
|
|
950
|
+
opacity: 1;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.nb-file-dropzone__action {
|
|
954
|
+
align-items: center;
|
|
955
|
+
background: var(--surface-1);
|
|
956
|
+
border: 1px solid var(--border-subtle);
|
|
957
|
+
border-radius: var(--radius-md);
|
|
958
|
+
color: var(--text-primary);
|
|
959
|
+
cursor: pointer;
|
|
960
|
+
display: inline-flex;
|
|
961
|
+
font: inherit;
|
|
962
|
+
font-size: var(--font-size-xs);
|
|
963
|
+
font-weight: var(--font-weight-medium);
|
|
964
|
+
gap: var(--space-1);
|
|
965
|
+
min-height: 28px;
|
|
966
|
+
padding: 0 var(--space-2);
|
|
967
|
+
transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
|
|
968
|
+
}
|
|
969
|
+
.nb-file-dropzone__action:hover {
|
|
970
|
+
border-color: var(--accent-color);
|
|
971
|
+
color: var(--accent-color);
|
|
972
|
+
}
|
|
973
|
+
.nb-file-dropzone__action--danger:hover {
|
|
974
|
+
border-color: var(--error-color);
|
|
975
|
+
color: var(--error-color);
|
|
976
|
+
}
|
|
977
|
+
.nb-file-dropzone__action:focus-visible {
|
|
978
|
+
box-shadow: 0 0 0 2px var(--focus-ring-color);
|
|
979
|
+
outline: none;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.nb-file-dropzone__error {
|
|
983
|
+
align-items: center;
|
|
984
|
+
color: var(--error-color);
|
|
985
|
+
display: inline-flex;
|
|
986
|
+
font-size: var(--font-size-xs);
|
|
987
|
+
gap: var(--space-1);
|
|
988
|
+
}
|
|
757
989
|
.nb-dropdown {
|
|
758
990
|
min-width: 0;
|
|
759
991
|
position: relative;
|
|
@@ -2828,6 +3060,15 @@ html[data-density=compact] .nb-drawer__footer {
|
|
|
2828
3060
|
width: 20px;
|
|
2829
3061
|
}
|
|
2830
3062
|
|
|
3063
|
+
.nb-timeline__marker--custom {
|
|
3064
|
+
font-size: var(--font-size-xs);
|
|
3065
|
+
font-weight: var(--font-weight-semibold);
|
|
3066
|
+
line-height: 1;
|
|
3067
|
+
}
|
|
3068
|
+
.nb-timeline__marker--custom.nb-timeline__marker--current::after {
|
|
3069
|
+
display: none;
|
|
3070
|
+
}
|
|
3071
|
+
|
|
2831
3072
|
.nb-timeline__marker--dot {
|
|
2832
3073
|
background: var(--surface-2);
|
|
2833
3074
|
border: 2px solid var(--accent-color);
|
|
@@ -4627,495 +4868,30 @@ html[data-density=compact] .nb-datagrid .nb-badge {
|
|
|
4627
4868
|
box-shadow: none;
|
|
4628
4869
|
}
|
|
4629
4870
|
}
|
|
4630
|
-
.nb-
|
|
4871
|
+
.nb-form {
|
|
4872
|
+
color: var(--text-primary);
|
|
4631
4873
|
display: flex;
|
|
4632
4874
|
flex-direction: column;
|
|
4633
|
-
gap: var(--space-
|
|
4634
|
-
|
|
4875
|
+
gap: var(--space-3);
|
|
4876
|
+
min-height: 0;
|
|
4877
|
+
padding: 20px 24px;
|
|
4635
4878
|
}
|
|
4636
4879
|
|
|
4637
|
-
.nb-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
border: 1px dashed var(--border-color);
|
|
4641
|
-
border-radius: var(--radius-lg);
|
|
4642
|
-
box-sizing: border-box;
|
|
4643
|
-
cursor: pointer;
|
|
4644
|
-
display: flex;
|
|
4645
|
-
justify-content: center;
|
|
4646
|
-
min-height: 112px;
|
|
4647
|
-
overflow: hidden;
|
|
4648
|
-
position: relative;
|
|
4649
|
-
transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
|
|
4650
|
-
width: 100%;
|
|
4651
|
-
}
|
|
4652
|
-
.nb-form__file-upload-zone:hover:not(.nb-form__file-upload-zone--disabled):not(.nb-form__file-upload-zone--filled) {
|
|
4653
|
-
background: color-mix(in srgb, var(--accent-color) 4%, var(--surface-1));
|
|
4654
|
-
border-color: var(--accent-color);
|
|
4655
|
-
}
|
|
4656
|
-
.nb-form__file-upload-zone--active {
|
|
4657
|
-
background: color-mix(in srgb, var(--accent-color) 8%, var(--surface-1));
|
|
4658
|
-
border-color: var(--accent-color);
|
|
4659
|
-
}
|
|
4660
|
-
.nb-form__file-upload-zone--filled {
|
|
4661
|
-
border-style: solid;
|
|
4662
|
-
cursor: default;
|
|
4663
|
-
min-height: 88px;
|
|
4664
|
-
}
|
|
4665
|
-
.nb-form__file-upload-zone--uploading {
|
|
4666
|
-
pointer-events: none;
|
|
4667
|
-
}
|
|
4668
|
-
.nb-form__file-upload-zone--disabled {
|
|
4669
|
-
cursor: not-allowed;
|
|
4670
|
-
opacity: 0.72;
|
|
4671
|
-
}
|
|
4672
|
-
.nb-form__file-upload-zone:focus-visible {
|
|
4673
|
-
box-shadow: 0 0 0 3px var(--focus-ring-color);
|
|
4674
|
-
outline: none;
|
|
4880
|
+
.nb-form:has(> .nb-form__tabs),
|
|
4881
|
+
.nb-form--with-detail {
|
|
4882
|
+
padding: 0;
|
|
4675
4883
|
}
|
|
4676
4884
|
|
|
4677
|
-
.nb-
|
|
4678
|
-
|
|
4885
|
+
.nb-form__master-detail {
|
|
4886
|
+
align-items: stretch;
|
|
4887
|
+
display: grid;
|
|
4888
|
+
gap: var(--space-4);
|
|
4889
|
+
grid-template-columns: minmax(280px, 332px) minmax(560px, 1fr);
|
|
4890
|
+
min-height: 0;
|
|
4679
4891
|
}
|
|
4680
4892
|
|
|
4681
|
-
.nb-
|
|
4682
|
-
|
|
4683
|
-
}
|
|
4684
|
-
|
|
4685
|
-
.nb-form__file-upload--invalid .nb-form__file-upload-zone {
|
|
4686
|
-
border-color: var(--error-color);
|
|
4687
|
-
}
|
|
4688
|
-
|
|
4689
|
-
.nb-form__file-upload-placeholder {
|
|
4690
|
-
align-items: center;
|
|
4691
|
-
display: flex;
|
|
4692
|
-
flex-direction: column;
|
|
4693
|
-
gap: var(--space-2);
|
|
4694
|
-
max-width: 320px;
|
|
4695
|
-
padding: var(--space-4);
|
|
4696
|
-
text-align: center;
|
|
4697
|
-
}
|
|
4698
|
-
|
|
4699
|
-
.nb-form__file-upload-icon {
|
|
4700
|
-
align-items: center;
|
|
4701
|
-
background: color-mix(in srgb, var(--accent-color) 10%, transparent);
|
|
4702
|
-
border-radius: 999px;
|
|
4703
|
-
color: var(--accent-color);
|
|
4704
|
-
display: inline-flex;
|
|
4705
|
-
font-size: 24px;
|
|
4706
|
-
height: 48px;
|
|
4707
|
-
justify-content: center;
|
|
4708
|
-
width: 48px;
|
|
4709
|
-
}
|
|
4710
|
-
|
|
4711
|
-
.nb-form__file-upload-title {
|
|
4712
|
-
color: var(--text-primary);
|
|
4713
|
-
font-size: var(--font-size-sm);
|
|
4714
|
-
font-weight: var(--font-weight-semibold);
|
|
4715
|
-
}
|
|
4716
|
-
|
|
4717
|
-
.nb-form__file-upload-hint {
|
|
4718
|
-
color: var(--text-tertiary);
|
|
4719
|
-
font-size: var(--font-size-xs);
|
|
4720
|
-
line-height: var(--line-height-tight);
|
|
4721
|
-
}
|
|
4722
|
-
|
|
4723
|
-
.nb-form__file-upload-preview {
|
|
4724
|
-
display: block;
|
|
4725
|
-
height: 100%;
|
|
4726
|
-
max-height: 220px;
|
|
4727
|
-
object-fit: contain;
|
|
4728
|
-
width: 100%;
|
|
4729
|
-
}
|
|
4730
|
-
|
|
4731
|
-
.nb-form__file-upload-file {
|
|
4732
|
-
align-items: center;
|
|
4733
|
-
display: flex;
|
|
4734
|
-
gap: var(--space-3);
|
|
4735
|
-
max-width: 100%;
|
|
4736
|
-
padding: var(--space-3) var(--space-4);
|
|
4737
|
-
width: 100%;
|
|
4738
|
-
}
|
|
4739
|
-
|
|
4740
|
-
.nb-form__file-upload-file-icon {
|
|
4741
|
-
align-items: center;
|
|
4742
|
-
background: var(--surface-0);
|
|
4743
|
-
border: 1px solid var(--border-subtle);
|
|
4744
|
-
border-radius: var(--radius-md);
|
|
4745
|
-
color: var(--accent-color);
|
|
4746
|
-
display: inline-flex;
|
|
4747
|
-
flex: 0 0 auto;
|
|
4748
|
-
font-size: 22px;
|
|
4749
|
-
height: 44px;
|
|
4750
|
-
justify-content: center;
|
|
4751
|
-
width: 44px;
|
|
4752
|
-
}
|
|
4753
|
-
|
|
4754
|
-
.nb-form__file-upload-file-meta {
|
|
4755
|
-
display: flex;
|
|
4756
|
-
flex: 1 1 auto;
|
|
4757
|
-
flex-direction: column;
|
|
4758
|
-
gap: 2px;
|
|
4759
|
-
min-width: 0;
|
|
4760
|
-
}
|
|
4761
|
-
|
|
4762
|
-
.nb-form__file-upload-file-name {
|
|
4763
|
-
color: var(--text-primary);
|
|
4764
|
-
font-size: var(--font-size-sm);
|
|
4765
|
-
font-weight: var(--font-weight-medium);
|
|
4766
|
-
overflow: hidden;
|
|
4767
|
-
text-overflow: ellipsis;
|
|
4768
|
-
white-space: nowrap;
|
|
4769
|
-
}
|
|
4770
|
-
|
|
4771
|
-
.nb-form__file-upload-file-link {
|
|
4772
|
-
color: var(--accent-color);
|
|
4773
|
-
font-size: var(--font-size-xs);
|
|
4774
|
-
text-decoration: none;
|
|
4775
|
-
}
|
|
4776
|
-
.nb-form__file-upload-file-link:hover {
|
|
4777
|
-
text-decoration: underline;
|
|
4778
|
-
}
|
|
4779
|
-
|
|
4780
|
-
.nb-form__file-upload-overlay {
|
|
4781
|
-
align-items: center;
|
|
4782
|
-
background: rgba(0, 0, 0, 0.42);
|
|
4783
|
-
color: #fff;
|
|
4784
|
-
display: flex;
|
|
4785
|
-
flex-direction: column;
|
|
4786
|
-
font-size: var(--font-size-sm);
|
|
4787
|
-
gap: var(--space-2);
|
|
4788
|
-
inset: 0;
|
|
4789
|
-
justify-content: center;
|
|
4790
|
-
position: absolute;
|
|
4791
|
-
}
|
|
4792
|
-
|
|
4793
|
-
.nb-form__file-upload-spinner {
|
|
4794
|
-
animation: nb-form-file-spin 700ms linear infinite;
|
|
4795
|
-
border: 2px solid rgba(255, 255, 255, 0.35);
|
|
4796
|
-
border-radius: 999px;
|
|
4797
|
-
border-top-color: #fff;
|
|
4798
|
-
height: 24px;
|
|
4799
|
-
width: 24px;
|
|
4800
|
-
}
|
|
4801
|
-
|
|
4802
|
-
@keyframes nb-form-file-spin {
|
|
4803
|
-
to {
|
|
4804
|
-
transform: rotate(360deg);
|
|
4805
|
-
}
|
|
4806
|
-
}
|
|
4807
|
-
.nb-form__file-upload-actions {
|
|
4808
|
-
align-items: center;
|
|
4809
|
-
background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
|
|
4810
|
-
bottom: 0;
|
|
4811
|
-
display: flex;
|
|
4812
|
-
gap: var(--space-2);
|
|
4813
|
-
inset-inline: 0;
|
|
4814
|
-
justify-content: center;
|
|
4815
|
-
opacity: 0;
|
|
4816
|
-
padding: var(--space-3);
|
|
4817
|
-
position: absolute;
|
|
4818
|
-
transition: opacity var(--transition-base);
|
|
4819
|
-
}
|
|
4820
|
-
|
|
4821
|
-
.nb-form__file-upload-zone--filled:hover .nb-form__file-upload-actions,
|
|
4822
|
-
.nb-form__file-upload-zone--filled:focus-within .nb-form__file-upload-actions {
|
|
4823
|
-
opacity: 1;
|
|
4824
|
-
}
|
|
4825
|
-
|
|
4826
|
-
.nb-form__file-upload-action {
|
|
4827
|
-
align-items: center;
|
|
4828
|
-
background: var(--surface-1);
|
|
4829
|
-
border: 1px solid var(--border-subtle);
|
|
4830
|
-
border-radius: var(--radius-md);
|
|
4831
|
-
color: var(--text-primary);
|
|
4832
|
-
cursor: pointer;
|
|
4833
|
-
display: inline-flex;
|
|
4834
|
-
font: inherit;
|
|
4835
|
-
font-size: var(--font-size-xs);
|
|
4836
|
-
font-weight: var(--font-weight-medium);
|
|
4837
|
-
gap: var(--space-1);
|
|
4838
|
-
min-height: 28px;
|
|
4839
|
-
padding: 0 var(--space-2);
|
|
4840
|
-
transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
|
|
4841
|
-
}
|
|
4842
|
-
.nb-form__file-upload-action:hover {
|
|
4843
|
-
border-color: var(--accent-color);
|
|
4844
|
-
color: var(--accent-color);
|
|
4845
|
-
}
|
|
4846
|
-
.nb-form__file-upload-action--danger:hover {
|
|
4847
|
-
border-color: var(--error-color);
|
|
4848
|
-
color: var(--error-color);
|
|
4849
|
-
}
|
|
4850
|
-
.nb-form__file-upload-action:focus-visible {
|
|
4851
|
-
box-shadow: 0 0 0 2px var(--focus-ring-color);
|
|
4852
|
-
outline: none;
|
|
4853
|
-
}
|
|
4854
|
-
|
|
4855
|
-
.nb-form__file-upload-error {
|
|
4856
|
-
align-items: center;
|
|
4857
|
-
color: var(--error-color);
|
|
4858
|
-
display: inline-flex;
|
|
4859
|
-
font-size: var(--font-size-xs);
|
|
4860
|
-
gap: var(--space-1);
|
|
4861
|
-
}
|
|
4862
|
-
.nb-form__file-upload {
|
|
4863
|
-
display: flex;
|
|
4864
|
-
flex-direction: column;
|
|
4865
|
-
gap: var(--space-1);
|
|
4866
|
-
width: 100%;
|
|
4867
|
-
}
|
|
4868
|
-
|
|
4869
|
-
.nb-form__file-upload-zone {
|
|
4870
|
-
align-items: center;
|
|
4871
|
-
background: var(--surface-1);
|
|
4872
|
-
border: 1px dashed var(--border-color);
|
|
4873
|
-
border-radius: var(--radius-lg);
|
|
4874
|
-
box-sizing: border-box;
|
|
4875
|
-
cursor: pointer;
|
|
4876
|
-
display: flex;
|
|
4877
|
-
justify-content: center;
|
|
4878
|
-
min-height: 112px;
|
|
4879
|
-
overflow: hidden;
|
|
4880
|
-
position: relative;
|
|
4881
|
-
transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
|
|
4882
|
-
width: 100%;
|
|
4883
|
-
}
|
|
4884
|
-
.nb-form__file-upload-zone:hover:not(.nb-form__file-upload-zone--disabled):not(.nb-form__file-upload-zone--filled) {
|
|
4885
|
-
background: color-mix(in srgb, var(--accent-color) 4%, var(--surface-1));
|
|
4886
|
-
border-color: var(--accent-color);
|
|
4887
|
-
}
|
|
4888
|
-
.nb-form__file-upload-zone--active {
|
|
4889
|
-
background: color-mix(in srgb, var(--accent-color) 8%, var(--surface-1));
|
|
4890
|
-
border-color: var(--accent-color);
|
|
4891
|
-
}
|
|
4892
|
-
.nb-form__file-upload-zone--filled {
|
|
4893
|
-
border-style: solid;
|
|
4894
|
-
cursor: default;
|
|
4895
|
-
min-height: 88px;
|
|
4896
|
-
}
|
|
4897
|
-
.nb-form__file-upload-zone--uploading {
|
|
4898
|
-
pointer-events: none;
|
|
4899
|
-
}
|
|
4900
|
-
.nb-form__file-upload-zone--disabled {
|
|
4901
|
-
cursor: not-allowed;
|
|
4902
|
-
opacity: 0.72;
|
|
4903
|
-
}
|
|
4904
|
-
.nb-form__file-upload-zone:focus-visible {
|
|
4905
|
-
box-shadow: 0 0 0 3px var(--focus-ring-color);
|
|
4906
|
-
outline: none;
|
|
4907
|
-
}
|
|
4908
|
-
|
|
4909
|
-
.nb-form__file-upload--image .nb-form__file-upload-zone {
|
|
4910
|
-
min-height: 168px;
|
|
4911
|
-
}
|
|
4912
|
-
|
|
4913
|
-
.nb-form__file-upload--image .nb-form__file-upload-zone--filled {
|
|
4914
|
-
min-height: 180px;
|
|
4915
|
-
}
|
|
4916
|
-
|
|
4917
|
-
.nb-form__file-upload--invalid .nb-form__file-upload-zone {
|
|
4918
|
-
border-color: var(--error-color);
|
|
4919
|
-
}
|
|
4920
|
-
|
|
4921
|
-
.nb-form__file-upload-placeholder {
|
|
4922
|
-
align-items: center;
|
|
4923
|
-
display: flex;
|
|
4924
|
-
flex-direction: column;
|
|
4925
|
-
gap: var(--space-2);
|
|
4926
|
-
max-width: 320px;
|
|
4927
|
-
padding: var(--space-4);
|
|
4928
|
-
text-align: center;
|
|
4929
|
-
}
|
|
4930
|
-
|
|
4931
|
-
.nb-form__file-upload-icon {
|
|
4932
|
-
align-items: center;
|
|
4933
|
-
background: color-mix(in srgb, var(--accent-color) 10%, transparent);
|
|
4934
|
-
border-radius: 999px;
|
|
4935
|
-
color: var(--accent-color);
|
|
4936
|
-
display: inline-flex;
|
|
4937
|
-
font-size: 24px;
|
|
4938
|
-
height: 48px;
|
|
4939
|
-
justify-content: center;
|
|
4940
|
-
width: 48px;
|
|
4941
|
-
}
|
|
4942
|
-
|
|
4943
|
-
.nb-form__file-upload-title {
|
|
4944
|
-
color: var(--text-primary);
|
|
4945
|
-
font-size: var(--font-size-sm);
|
|
4946
|
-
font-weight: var(--font-weight-semibold);
|
|
4947
|
-
}
|
|
4948
|
-
|
|
4949
|
-
.nb-form__file-upload-hint {
|
|
4950
|
-
color: var(--text-tertiary);
|
|
4951
|
-
font-size: var(--font-size-xs);
|
|
4952
|
-
line-height: var(--line-height-tight);
|
|
4953
|
-
}
|
|
4954
|
-
|
|
4955
|
-
.nb-form__file-upload-preview {
|
|
4956
|
-
display: block;
|
|
4957
|
-
height: 100%;
|
|
4958
|
-
max-height: 220px;
|
|
4959
|
-
object-fit: contain;
|
|
4960
|
-
width: 100%;
|
|
4961
|
-
}
|
|
4962
|
-
|
|
4963
|
-
.nb-form__file-upload-file {
|
|
4964
|
-
align-items: center;
|
|
4965
|
-
display: flex;
|
|
4966
|
-
gap: var(--space-3);
|
|
4967
|
-
max-width: 100%;
|
|
4968
|
-
padding: var(--space-3) var(--space-4);
|
|
4969
|
-
width: 100%;
|
|
4970
|
-
}
|
|
4971
|
-
|
|
4972
|
-
.nb-form__file-upload-file-icon {
|
|
4973
|
-
align-items: center;
|
|
4974
|
-
background: var(--surface-0);
|
|
4975
|
-
border: 1px solid var(--border-subtle);
|
|
4976
|
-
border-radius: var(--radius-md);
|
|
4977
|
-
color: var(--accent-color);
|
|
4978
|
-
display: inline-flex;
|
|
4979
|
-
flex: 0 0 auto;
|
|
4980
|
-
font-size: 22px;
|
|
4981
|
-
height: 44px;
|
|
4982
|
-
justify-content: center;
|
|
4983
|
-
width: 44px;
|
|
4984
|
-
}
|
|
4985
|
-
|
|
4986
|
-
.nb-form__file-upload-file-meta {
|
|
4987
|
-
display: flex;
|
|
4988
|
-
flex: 1 1 auto;
|
|
4989
|
-
flex-direction: column;
|
|
4990
|
-
gap: 2px;
|
|
4991
|
-
min-width: 0;
|
|
4992
|
-
}
|
|
4993
|
-
|
|
4994
|
-
.nb-form__file-upload-file-name {
|
|
4995
|
-
color: var(--text-primary);
|
|
4996
|
-
font-size: var(--font-size-sm);
|
|
4997
|
-
font-weight: var(--font-weight-medium);
|
|
4998
|
-
overflow: hidden;
|
|
4999
|
-
text-overflow: ellipsis;
|
|
5000
|
-
white-space: nowrap;
|
|
5001
|
-
}
|
|
5002
|
-
|
|
5003
|
-
.nb-form__file-upload-file-link {
|
|
5004
|
-
color: var(--accent-color);
|
|
5005
|
-
font-size: var(--font-size-xs);
|
|
5006
|
-
text-decoration: none;
|
|
5007
|
-
}
|
|
5008
|
-
.nb-form__file-upload-file-link:hover {
|
|
5009
|
-
text-decoration: underline;
|
|
5010
|
-
}
|
|
5011
|
-
|
|
5012
|
-
.nb-form__file-upload-overlay {
|
|
5013
|
-
align-items: center;
|
|
5014
|
-
background: rgba(0, 0, 0, 0.42);
|
|
5015
|
-
color: #fff;
|
|
5016
|
-
display: flex;
|
|
5017
|
-
flex-direction: column;
|
|
5018
|
-
font-size: var(--font-size-sm);
|
|
5019
|
-
gap: var(--space-2);
|
|
5020
|
-
inset: 0;
|
|
5021
|
-
justify-content: center;
|
|
5022
|
-
position: absolute;
|
|
5023
|
-
}
|
|
5024
|
-
|
|
5025
|
-
.nb-form__file-upload-spinner {
|
|
5026
|
-
animation: nb-form-file-spin 700ms linear infinite;
|
|
5027
|
-
border: 2px solid rgba(255, 255, 255, 0.35);
|
|
5028
|
-
border-radius: 999px;
|
|
5029
|
-
border-top-color: #fff;
|
|
5030
|
-
height: 24px;
|
|
5031
|
-
width: 24px;
|
|
5032
|
-
}
|
|
5033
|
-
|
|
5034
|
-
@keyframes nb-form-file-spin {
|
|
5035
|
-
to {
|
|
5036
|
-
transform: rotate(360deg);
|
|
5037
|
-
}
|
|
5038
|
-
}
|
|
5039
|
-
.nb-form__file-upload-actions {
|
|
5040
|
-
align-items: center;
|
|
5041
|
-
background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent);
|
|
5042
|
-
bottom: 0;
|
|
5043
|
-
display: flex;
|
|
5044
|
-
gap: var(--space-2);
|
|
5045
|
-
inset-inline: 0;
|
|
5046
|
-
justify-content: center;
|
|
5047
|
-
opacity: 0;
|
|
5048
|
-
padding: var(--space-3);
|
|
5049
|
-
position: absolute;
|
|
5050
|
-
transition: opacity var(--transition-base);
|
|
5051
|
-
}
|
|
5052
|
-
|
|
5053
|
-
.nb-form__file-upload-zone--filled:hover .nb-form__file-upload-actions,
|
|
5054
|
-
.nb-form__file-upload-zone--filled:focus-within .nb-form__file-upload-actions {
|
|
5055
|
-
opacity: 1;
|
|
5056
|
-
}
|
|
5057
|
-
|
|
5058
|
-
.nb-form__file-upload-action {
|
|
5059
|
-
align-items: center;
|
|
5060
|
-
background: var(--surface-1);
|
|
5061
|
-
border: 1px solid var(--border-subtle);
|
|
5062
|
-
border-radius: var(--radius-md);
|
|
5063
|
-
color: var(--text-primary);
|
|
5064
|
-
cursor: pointer;
|
|
5065
|
-
display: inline-flex;
|
|
5066
|
-
font: inherit;
|
|
5067
|
-
font-size: var(--font-size-xs);
|
|
5068
|
-
font-weight: var(--font-weight-medium);
|
|
5069
|
-
gap: var(--space-1);
|
|
5070
|
-
min-height: 28px;
|
|
5071
|
-
padding: 0 var(--space-2);
|
|
5072
|
-
transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
|
|
5073
|
-
}
|
|
5074
|
-
.nb-form__file-upload-action:hover {
|
|
5075
|
-
border-color: var(--accent-color);
|
|
5076
|
-
color: var(--accent-color);
|
|
5077
|
-
}
|
|
5078
|
-
.nb-form__file-upload-action--danger:hover {
|
|
5079
|
-
border-color: var(--error-color);
|
|
5080
|
-
color: var(--error-color);
|
|
5081
|
-
}
|
|
5082
|
-
.nb-form__file-upload-action:focus-visible {
|
|
5083
|
-
box-shadow: 0 0 0 2px var(--focus-ring-color);
|
|
5084
|
-
outline: none;
|
|
5085
|
-
}
|
|
5086
|
-
|
|
5087
|
-
.nb-form__file-upload-error {
|
|
5088
|
-
align-items: center;
|
|
5089
|
-
color: var(--error-color);
|
|
5090
|
-
display: inline-flex;
|
|
5091
|
-
font-size: var(--font-size-xs);
|
|
5092
|
-
gap: var(--space-1);
|
|
5093
|
-
}
|
|
5094
|
-
|
|
5095
|
-
.nb-form {
|
|
5096
|
-
color: var(--text-primary);
|
|
5097
|
-
display: flex;
|
|
5098
|
-
flex-direction: column;
|
|
5099
|
-
gap: var(--space-3);
|
|
5100
|
-
min-height: 0;
|
|
5101
|
-
padding: 20px 24px;
|
|
5102
|
-
}
|
|
5103
|
-
|
|
5104
|
-
.nb-form:has(> .nb-form__tabs),
|
|
5105
|
-
.nb-form--with-detail {
|
|
5106
|
-
padding: 0;
|
|
5107
|
-
}
|
|
5108
|
-
|
|
5109
|
-
.nb-form__master-detail {
|
|
5110
|
-
align-items: stretch;
|
|
5111
|
-
display: grid;
|
|
5112
|
-
gap: var(--space-4);
|
|
5113
|
-
grid-template-columns: minmax(280px, 332px) minmax(560px, 1fr);
|
|
5114
|
-
min-height: 0;
|
|
5115
|
-
}
|
|
5116
|
-
|
|
5117
|
-
.nb-form--with-detail .nb-form__master-detail {
|
|
5118
|
-
overflow: visible;
|
|
4893
|
+
.nb-form--with-detail .nb-form__master-detail {
|
|
4894
|
+
overflow: visible;
|
|
5119
4895
|
}
|
|
5120
4896
|
|
|
5121
4897
|
.nb-crud-page-shell__body .nb-form--with-detail {
|
|
@@ -5848,6 +5624,7 @@ html[data-density=compact] .nb-datagrid .nb-badge {
|
|
|
5848
5624
|
font-size: var(--font-size-sm);
|
|
5849
5625
|
font-weight: var(--font-weight-semibold);
|
|
5850
5626
|
min-height: 38px;
|
|
5627
|
+
overflow: visible;
|
|
5851
5628
|
padding: 8px;
|
|
5852
5629
|
vertical-align: middle;
|
|
5853
5630
|
}
|
|
@@ -5871,7 +5648,8 @@ html[data-density=compact] .nb-datagrid .nb-badge {
|
|
|
5871
5648
|
background: var(--surface-2);
|
|
5872
5649
|
border-top: 0;
|
|
5873
5650
|
flex: 0 0 auto;
|
|
5874
|
-
overflow:
|
|
5651
|
+
overflow-x: auto;
|
|
5652
|
+
overflow-y: hidden;
|
|
5875
5653
|
scrollbar-width: none;
|
|
5876
5654
|
}
|
|
5877
5655
|
.nb-form__detail-summary-wrap::-webkit-scrollbar {
|
|
@@ -5884,10 +5662,12 @@ html[data-density=compact] .nb-datagrid .nb-badge {
|
|
|
5884
5662
|
}
|
|
5885
5663
|
|
|
5886
5664
|
.nb-form__detail-summary-cell {
|
|
5887
|
-
align-items:
|
|
5665
|
+
align-items: flex-end;
|
|
5888
5666
|
display: inline-flex;
|
|
5889
|
-
|
|
5667
|
+
flex-direction: column;
|
|
5668
|
+
gap: 2px;
|
|
5890
5669
|
min-width: 100%;
|
|
5670
|
+
overflow: visible;
|
|
5891
5671
|
}
|
|
5892
5672
|
|
|
5893
5673
|
.nb-form__detail-summary-label {
|
|
@@ -5900,9 +5680,12 @@ html[data-density=compact] .nb-datagrid .nb-badge {
|
|
|
5900
5680
|
|
|
5901
5681
|
.nb-form__detail-summary-value {
|
|
5902
5682
|
color: var(--text-primary);
|
|
5683
|
+
display: block;
|
|
5903
5684
|
font-size: var(--font-size-md);
|
|
5904
5685
|
font-weight: var(--font-weight-bold);
|
|
5686
|
+
max-width: none;
|
|
5905
5687
|
white-space: nowrap;
|
|
5688
|
+
width: max-content;
|
|
5906
5689
|
}
|
|
5907
5690
|
|
|
5908
5691
|
.nb-form__detail-table td .nb-form__control,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nubitio/react-admin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Batteries-included admin stack: core runtime, CRUD, Hydra adapter, and AdminShell.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@nubitio/
|
|
54
|
-
"@nubitio/
|
|
55
|
-
"@nubitio/
|
|
56
|
-
"@nubitio/
|
|
57
|
-
"@nubitio/
|
|
53
|
+
"@nubitio/hydra": "^0.5.16",
|
|
54
|
+
"@nubitio/crud": "^0.5.16",
|
|
55
|
+
"@nubitio/ui": "^0.5.16",
|
|
56
|
+
"@nubitio/admin": "^0.5.16",
|
|
57
|
+
"@nubitio/core": "^0.5.16"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@tanstack/react-query": "^5.0.0",
|