@nubitio/react-admin 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/style.css +206 -61
  2. package/package.json +6 -6
package/dist/style.css CHANGED
@@ -2668,6 +2668,212 @@ html[data-density=compact] .nb-drawer__footer {
2668
2668
  width: 100vw !important;
2669
2669
  }
2670
2670
  }
2671
+ .nb-timeline-panel {
2672
+ display: flex;
2673
+ flex-direction: column;
2674
+ gap: var(--space-4);
2675
+ min-width: 0;
2676
+ }
2677
+
2678
+ .nb-timeline-panel--card {
2679
+ background: var(--surface-1);
2680
+ border: 1px solid var(--border-color);
2681
+ border-radius: var(--radius-lg);
2682
+ box-shadow: var(--shadow-sm);
2683
+ padding: var(--space-5);
2684
+ }
2685
+
2686
+ .nb-timeline-panel__header {
2687
+ display: flex;
2688
+ flex-direction: column;
2689
+ gap: var(--space-1);
2690
+ }
2691
+
2692
+ .nb-timeline-panel__title {
2693
+ color: var(--text-primary);
2694
+ font-size: var(--font-size-md);
2695
+ font-weight: var(--font-weight-semibold);
2696
+ line-height: var(--line-height-tight);
2697
+ margin: 0;
2698
+ }
2699
+
2700
+ .nb-timeline-panel__description {
2701
+ color: var(--text-secondary);
2702
+ font-size: var(--font-size-sm);
2703
+ line-height: var(--line-height-normal);
2704
+ margin: 0;
2705
+ }
2706
+
2707
+ .nb-timeline {
2708
+ display: flex;
2709
+ flex-direction: column;
2710
+ gap: 0;
2711
+ list-style: none;
2712
+ margin: 0;
2713
+ padding: 0;
2714
+ }
2715
+
2716
+ .nb-timeline__item {
2717
+ display: grid;
2718
+ gap: var(--space-3);
2719
+ grid-template-columns: 24px 1fr;
2720
+ padding-bottom: var(--space-4);
2721
+ position: relative;
2722
+ }
2723
+ .nb-timeline__item:last-child {
2724
+ padding-bottom: 0;
2725
+ }
2726
+ .nb-timeline__item:not(:last-child)::before {
2727
+ background: var(--border-color);
2728
+ bottom: 0;
2729
+ content: "";
2730
+ left: 11px;
2731
+ position: absolute;
2732
+ top: 24px;
2733
+ width: 2px;
2734
+ }
2735
+ .nb-timeline__item--complete:not(:last-child)::before {
2736
+ background: var(--accent-color);
2737
+ }
2738
+ .nb-timeline__item--current:not(:last-child)::before {
2739
+ background: var(--border-color);
2740
+ }
2741
+ .nb-timeline__item--pending .nb-timeline__label {
2742
+ color: var(--text-tertiary);
2743
+ }
2744
+
2745
+ .nb-timeline--log .nb-timeline__item {
2746
+ gap: var(--space-2);
2747
+ grid-template-columns: 16px 1fr;
2748
+ padding: var(--space-3) 0;
2749
+ }
2750
+ .nb-timeline--log .nb-timeline__item:not(:last-child) {
2751
+ border-bottom: 1px solid var(--border-color);
2752
+ padding-bottom: var(--space-3);
2753
+ }
2754
+ .nb-timeline--log .nb-timeline__item:not(:last-child)::before {
2755
+ left: 7px;
2756
+ top: 18px;
2757
+ }
2758
+ .nb-timeline--log .nb-timeline__item:last-child {
2759
+ padding-bottom: 0;
2760
+ }
2761
+
2762
+ .nb-timeline__marker-col {
2763
+ align-items: flex-start;
2764
+ display: flex;
2765
+ justify-content: center;
2766
+ padding-top: 2px;
2767
+ position: relative;
2768
+ z-index: 1;
2769
+ }
2770
+
2771
+ .nb-timeline__marker {
2772
+ align-items: center;
2773
+ border-radius: 50%;
2774
+ display: inline-flex;
2775
+ flex: 0 0 auto;
2776
+ justify-content: center;
2777
+ }
2778
+
2779
+ .nb-timeline__marker--complete {
2780
+ background: var(--accent-color);
2781
+ color: var(--surface-1);
2782
+ font-size: 11px;
2783
+ height: 20px;
2784
+ width: 20px;
2785
+ }
2786
+
2787
+ .nb-timeline__marker--current {
2788
+ background: var(--surface-1);
2789
+ border: 2px solid var(--accent-color);
2790
+ height: 20px;
2791
+ position: relative;
2792
+ width: 20px;
2793
+ }
2794
+ .nb-timeline__marker--current::after {
2795
+ background: var(--accent-color);
2796
+ border-radius: 50%;
2797
+ content: "";
2798
+ height: 8px;
2799
+ left: 50%;
2800
+ position: absolute;
2801
+ top: 50%;
2802
+ transform: translate(-50%, -50%);
2803
+ width: 8px;
2804
+ }
2805
+
2806
+ .nb-timeline__marker--pending {
2807
+ background: var(--surface-1);
2808
+ border: 2px solid var(--border-color);
2809
+ height: 20px;
2810
+ width: 20px;
2811
+ }
2812
+
2813
+ .nb-timeline__marker--error {
2814
+ background: var(--danger-color);
2815
+ color: var(--surface-1);
2816
+ font-size: 11px;
2817
+ height: 20px;
2818
+ width: 20px;
2819
+ }
2820
+
2821
+ .nb-timeline__marker--dot {
2822
+ background: var(--surface-2);
2823
+ border: 2px solid var(--accent-color);
2824
+ height: 12px;
2825
+ width: 12px;
2826
+ }
2827
+
2828
+ .nb-timeline__item--tone-success .nb-timeline__marker--dot {
2829
+ border-color: var(--success-color);
2830
+ }
2831
+
2832
+ .nb-timeline__item--tone-info .nb-timeline__marker--dot {
2833
+ border-color: var(--info-color, var(--accent-color));
2834
+ }
2835
+
2836
+ .nb-timeline__item--tone-danger .nb-timeline__marker--dot {
2837
+ border-color: var(--danger-color);
2838
+ }
2839
+
2840
+ .nb-timeline__item--tone-warning .nb-timeline__marker--dot {
2841
+ border-color: var(--warning-color);
2842
+ }
2843
+
2844
+ .nb-timeline__content {
2845
+ display: flex;
2846
+ flex-direction: column;
2847
+ gap: var(--space-2);
2848
+ min-width: 0;
2849
+ }
2850
+
2851
+ .nb-timeline__heading {
2852
+ display: flex;
2853
+ flex-direction: column;
2854
+ gap: var(--space-1);
2855
+ }
2856
+
2857
+ .nb-timeline--log .nb-timeline__heading {
2858
+ flex-direction: row;
2859
+ flex-wrap: wrap;
2860
+ align-items: center;
2861
+ gap: var(--space-2);
2862
+ }
2863
+
2864
+ .nb-timeline__label {
2865
+ color: var(--text-primary);
2866
+ font-size: var(--font-size-sm);
2867
+ font-weight: var(--font-weight-semibold);
2868
+ line-height: var(--line-height-tight);
2869
+ }
2870
+
2871
+ .nb-timeline__timestamp {
2872
+ color: var(--text-secondary);
2873
+ font-size: var(--font-size-xs);
2874
+ font-variant-numeric: tabular-nums;
2875
+ line-height: var(--line-height-normal);
2876
+ }
2671
2877
 
2672
2878
  /* crud/dist/style.css */
2673
2879
  #wrapper {
@@ -5977,61 +6183,6 @@ html[data-density=compact] .nb-crud-page-shell__footer {
5977
6183
  margin: calc(var(--space-1) * -1) 0 0;
5978
6184
  }
5979
6185
 
5980
- .nb-audit-trail__timeline {
5981
- display: flex;
5982
- flex-direction: column;
5983
- gap: 0;
5984
- list-style: none;
5985
- margin: 0;
5986
- padding: 0;
5987
- }
5988
-
5989
- .nb-audit-trail__entry {
5990
- display: grid;
5991
- gap: var(--space-2);
5992
- grid-template-columns: 12px 1fr;
5993
- padding: var(--space-3) 0;
5994
- position: relative;
5995
- }
5996
- .nb-audit-trail__entry:not(:last-child) {
5997
- border-bottom: 1px solid var(--border-color);
5998
- }
5999
- .nb-audit-trail__entry::before {
6000
- background: var(--border-color);
6001
- bottom: 0;
6002
- content: "";
6003
- left: 5px;
6004
- position: absolute;
6005
- top: calc(var(--space-3) + 6px);
6006
- width: 2px;
6007
- }
6008
- .nb-audit-trail__entry:last-child::before {
6009
- display: none;
6010
- }
6011
-
6012
- .nb-audit-trail__marker {
6013
- background: var(--surface-2);
6014
- border: 2px solid var(--accent-color);
6015
- border-radius: 50%;
6016
- height: 12px;
6017
- margin-top: 4px;
6018
- position: relative;
6019
- width: 12px;
6020
- z-index: 1;
6021
- }
6022
-
6023
- .nb-audit-trail__entry--create .nb-audit-trail__marker {
6024
- border-color: var(--success-color);
6025
- }
6026
-
6027
- .nb-audit-trail__entry--update .nb-audit-trail__marker {
6028
- border-color: var(--info-color, var(--accent-color));
6029
- }
6030
-
6031
- .nb-audit-trail__entry--delete .nb-audit-trail__marker {
6032
- border-color: var(--danger-color);
6033
- }
6034
-
6035
6186
  .nb-audit-trail__meta {
6036
6187
  align-items: center;
6037
6188
  display: flex;
@@ -6039,12 +6190,6 @@ html[data-density=compact] .nb-crud-page-shell__footer {
6039
6190
  gap: var(--space-2);
6040
6191
  }
6041
6192
 
6042
- .nb-audit-trail__timestamp {
6043
- color: var(--text-secondary);
6044
- font-size: var(--font-size-xs, 0.75rem);
6045
- font-variant-numeric: tabular-nums;
6046
- }
6047
-
6048
6193
  .nb-audit-trail__user {
6049
6194
  color: var(--text-primary);
6050
6195
  font-size: var(--font-size-sm, 0.8125rem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/react-admin",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
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/admin": "^0.5.1",
54
- "@nubitio/hydra": "^0.5.1",
55
- "@nubitio/core": "^0.5.1",
56
- "@nubitio/ui": "^0.5.1",
57
- "@nubitio/crud": "^0.5.1"
53
+ "@nubitio/admin": "^0.5.2",
54
+ "@nubitio/hydra": "^0.5.2",
55
+ "@nubitio/core": "^0.5.2",
56
+ "@nubitio/crud": "^0.5.2",
57
+ "@nubitio/ui": "^0.5.2"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@tanstack/react-query": "^5.0.0",