@nubitio/react-admin 0.9.10 → 0.11.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.
Files changed (2) hide show
  1. package/dist/style.css +134 -4
  2. package/package.json +7 -7
package/dist/style.css CHANGED
@@ -6668,14 +6668,30 @@ html[data-density=compact] .nb-datagrid .nb-badge {
6668
6668
  padding: 0;
6669
6669
  }
6670
6670
 
6671
+ .nb-form--with-detail {
6672
+ flex: 1 1 auto;
6673
+ min-height: 0;
6674
+ }
6675
+
6671
6676
  .nb-form__master-detail {
6672
6677
  align-items: stretch;
6673
6678
  display: grid;
6679
+ flex: 1 1 auto;
6674
6680
  gap: var(--space-4);
6675
- grid-template-columns: minmax(280px, 332px) minmax(560px, 1fr);
6681
+ grid-template-columns: minmax(0, 1fr);
6682
+ grid-template-rows: auto minmax(0, 1fr);
6676
6683
  min-height: 0;
6677
6684
  }
6678
6685
 
6686
+ .nb-form--page:not(.nb-form--detail-only) .nb-form__master-detail {
6687
+ grid-template-columns: minmax(280px, 332px) minmax(0, 1fr);
6688
+ grid-template-rows: minmax(0, 1fr);
6689
+ }
6690
+
6691
+ .nb-form--detail-only .nb-form__master-detail {
6692
+ grid-template-rows: minmax(0, 1fr);
6693
+ }
6694
+
6679
6695
  .nb-form--with-detail .nb-form__master-detail {
6680
6696
  overflow: visible;
6681
6697
  }
@@ -6693,7 +6709,7 @@ html[data-density=compact] .nb-datagrid .nb-badge {
6693
6709
  overflow: hidden;
6694
6710
  }
6695
6711
 
6696
- .nb-form--with-detail .nb-form__master-panel {
6712
+ .nb-form--page:not(.nb-form--detail-only) .nb-form__master-panel {
6697
6713
  padding: 0 var(--space-5) 0 var(--space-4);
6698
6714
  }
6699
6715
 
@@ -6722,6 +6738,28 @@ html[data-density=compact] .nb-datagrid .nb-badge {
6722
6738
  overflow: hidden;
6723
6739
  }
6724
6740
 
6741
+ .nb-drawer__body:has(.nb-form--with-detail) {
6742
+ overflow: hidden;
6743
+ }
6744
+
6745
+ .nb-drawer__body .nb-form--with-detail {
6746
+ flex: 1 1 auto;
6747
+ height: 100%;
6748
+ min-height: 0;
6749
+ overflow: hidden;
6750
+ }
6751
+
6752
+ .nb-drawer__body .nb-form__master-detail {
6753
+ height: 100%;
6754
+ overflow: hidden;
6755
+ }
6756
+
6757
+ .nb-drawer__body .nb-form__detail {
6758
+ flex: 1 1 auto;
6759
+ height: 100%;
6760
+ min-height: 0;
6761
+ }
6762
+
6725
6763
  .nb-form__master-panel,
6726
6764
  .nb-form__detail-panel {
6727
6765
  min-height: 0;
@@ -6730,10 +6768,14 @@ html[data-density=compact] .nb-datagrid .nb-badge {
6730
6768
 
6731
6769
  .nb-form__master-panel {
6732
6770
  display: block;
6771
+ min-height: 0;
6733
6772
  }
6734
6773
 
6735
6774
  .nb-form__detail-panel {
6736
6775
  display: flex;
6776
+ flex: 1 1 auto;
6777
+ flex-direction: column;
6778
+ min-height: 0;
6737
6779
  }
6738
6780
 
6739
6781
  .nb-form__grid {
@@ -7117,12 +7159,18 @@ html[data-density=compact] .nb-datagrid .nb-badge {
7117
7159
  }
7118
7160
 
7119
7161
  .nb-form__detail {
7162
+ flex: 1 1 auto;
7120
7163
  height: auto;
7121
7164
  max-height: min(100dvh - 220px, 640px);
7122
7165
  min-height: 0;
7123
7166
  width: 100%;
7124
7167
  }
7125
7168
 
7169
+ .nb-drawer__body .nb-form__detail,
7170
+ .nb-crud-page-shell__body .nb-form__detail {
7171
+ max-height: none;
7172
+ }
7173
+
7126
7174
  .nb-form__section-title {
7127
7175
  color: var(--text-primary);
7128
7176
  font-size: 13px;
@@ -7583,8 +7631,10 @@ html[data-density=compact] .nb-datagrid .nb-badge {
7583
7631
  .nb-form {
7584
7632
  padding: 16px;
7585
7633
  }
7586
- .nb-form__master-detail {
7587
- grid-template-columns: 1fr;
7634
+ .nb-form__master-detail,
7635
+ .nb-form--page:not(.nb-form--detail-only) .nb-form__master-detail {
7636
+ grid-template-columns: minmax(0, 1fr);
7637
+ grid-template-rows: auto minmax(0, 1fr);
7588
7638
  }
7589
7639
  .nb-form__field {
7590
7640
  grid-column: span 12 !important;
@@ -8762,6 +8812,86 @@ html[data-density=comfortable] {
8762
8812
  content: "✓ ";
8763
8813
  font-weight: 700;
8764
8814
  }
8815
+ .nb-notification-panel {
8816
+ display: flex;
8817
+ flex-direction: column;
8818
+ max-height: 420px;
8819
+ width: 320px;
8820
+ }
8821
+
8822
+ .nb-notification-panel__header {
8823
+ align-items: center;
8824
+ border-bottom: 1px solid var(--border-color);
8825
+ display: flex;
8826
+ justify-content: space-between;
8827
+ padding: var(--space-3);
8828
+ }
8829
+
8830
+ .nb-notification-panel__title {
8831
+ font-size: var(--font-size-sm);
8832
+ font-weight: var(--font-weight-semibold);
8833
+ }
8834
+
8835
+ .nb-notification-panel__list {
8836
+ list-style: none;
8837
+ margin: 0;
8838
+ overflow-y: auto;
8839
+ padding: 0;
8840
+ }
8841
+
8842
+ .nb-notification-panel__item-button {
8843
+ background: none;
8844
+ border: 0;
8845
+ border-bottom: 1px solid var(--border-color);
8846
+ cursor: pointer;
8847
+ display: flex;
8848
+ flex-direction: column;
8849
+ gap: 2px;
8850
+ padding: var(--space-3);
8851
+ text-align: left;
8852
+ width: 100%;
8853
+ }
8854
+ .nb-notification-panel__item-button:hover {
8855
+ background: var(--surface-2);
8856
+ }
8857
+
8858
+ .nb-notification-panel__item:last-child .nb-notification-panel__item-button {
8859
+ border-bottom: 0;
8860
+ }
8861
+
8862
+ .nb-notification-panel__item--unread .nb-notification-panel__item-button {
8863
+ position: relative;
8864
+ }
8865
+ .nb-notification-panel__item--unread .nb-notification-panel__item-button::before {
8866
+ background: var(--accent-color);
8867
+ border-radius: 50%;
8868
+ content: "";
8869
+ height: 6px;
8870
+ left: var(--space-2);
8871
+ position: absolute;
8872
+ top: calc(var(--space-3) + 4px);
8873
+ width: 6px;
8874
+ }
8875
+ .nb-notification-panel__item--unread .nb-notification-panel__item-button .nb-notification-panel__item-subject,
8876
+ .nb-notification-panel__item--unread .nb-notification-panel__item-button .nb-notification-panel__item-body,
8877
+ .nb-notification-panel__item--unread .nb-notification-panel__item-button .nb-notification-panel__item-time {
8878
+ padding-left: var(--space-3);
8879
+ }
8880
+
8881
+ .nb-notification-panel__item-subject {
8882
+ font-size: var(--font-size-sm);
8883
+ font-weight: var(--font-weight-medium);
8884
+ }
8885
+
8886
+ .nb-notification-panel__item-body {
8887
+ color: var(--text-secondary);
8888
+ font-size: var(--font-size-sm);
8889
+ }
8890
+
8891
+ .nb-notification-panel__item-time {
8892
+ color: var(--text-secondary);
8893
+ font-size: var(--font-size-xxs);
8894
+ }
8765
8895
  .nb-toast-host {
8766
8896
  position: fixed;
8767
8897
  right: 1rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/react-admin",
3
- "version": "0.9.10",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "description": "Batteries-included admin stack: core runtime, CRUD, Hydra adapter, and AdminShell.",
6
6
  "license": "MIT",
@@ -50,12 +50,12 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@nubitio/admin": "^0.9.10",
54
- "@nubitio/core": "^0.9.10",
55
- "@nubitio/crud": "^0.9.10",
56
- "@nubitio/dashboard": "^0.9.10",
57
- "@nubitio/ui": "^0.9.10",
58
- "@nubitio/hydra": "^0.9.10"
53
+ "@nubitio/admin": "^0.11.0",
54
+ "@nubitio/crud": "^0.11.0",
55
+ "@nubitio/hydra": "^0.11.0",
56
+ "@nubitio/dashboard": "^0.11.0",
57
+ "@nubitio/core": "^0.11.0",
58
+ "@nubitio/ui": "^0.11.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@tanstack/react-query": "^5.0.0",