@nubitio/react-admin 0.5.24 → 0.5.26

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 +137 -0
  2. package/package.json +7 -7
package/dist/style.css CHANGED
@@ -4952,6 +4952,143 @@ html[data-density=compact] .nb-datagrid .nb-badge {
4952
4952
  box-shadow: none;
4953
4953
  }
4954
4954
  }
4955
+ .nb-datagrid__row--editing {
4956
+ background: color-mix(in srgb, var(--accent) 6%, var(--surface-0));
4957
+ }
4958
+ .nb-datagrid__row--editing td {
4959
+ cursor: default;
4960
+ }
4961
+
4962
+ .nb-datagrid__row--saving {
4963
+ opacity: 0.6;
4964
+ pointer-events: none;
4965
+ }
4966
+
4967
+ .nb-datagrid__edit-cell {
4968
+ padding: 3px 4px;
4969
+ vertical-align: middle;
4970
+ }
4971
+
4972
+ .nb-inline-cell {
4973
+ width: 100%;
4974
+ }
4975
+ .nb-inline-cell .nb-inline-control,
4976
+ .nb-inline-cell .nb-inline-control input,
4977
+ .nb-inline-cell .nb-inline-control select,
4978
+ .nb-inline-cell .nb-inline-control textarea {
4979
+ font-size: 13px;
4980
+ height: 30px;
4981
+ min-height: 30px;
4982
+ padding: 0 6px;
4983
+ border-radius: var(--radius-sm);
4984
+ box-sizing: border-box;
4985
+ width: 100%;
4986
+ }
4987
+ .nb-inline-cell .nb-inline-control textarea {
4988
+ height: 56px;
4989
+ padding: 4px 6px;
4990
+ resize: none;
4991
+ }
4992
+ .nb-inline-cell .nb-form-switch,
4993
+ .nb-inline-cell .nb-form-checkbox {
4994
+ margin: 0;
4995
+ }
4996
+ .nb-inline-cell .nb-lookup__trigger {
4997
+ height: 30px;
4998
+ font-size: 13px;
4999
+ }
5000
+ .nb-inline-cell.nb-inline-cell--error .nb-inline-control,
5001
+ .nb-inline-cell.nb-inline-cell--error .nb-inline-control input,
5002
+ .nb-inline-cell.nb-inline-cell--error .nb-inline-control select {
5003
+ border-color: var(--color-danger);
5004
+ }
5005
+
5006
+ .nb-datagrid__inline-actions {
5007
+ display: flex;
5008
+ align-items: center;
5009
+ justify-content: center;
5010
+ gap: 4px;
5011
+ }
5012
+
5013
+ .nb-datagrid__inline-btn {
5014
+ display: inline-flex;
5015
+ align-items: center;
5016
+ justify-content: center;
5017
+ width: 30px;
5018
+ height: 30px;
5019
+ border: 1px solid transparent;
5020
+ border-radius: var(--radius-sm);
5021
+ cursor: pointer;
5022
+ font-size: 15px;
5023
+ transition: background 0.1s, color 0.1s;
5024
+ }
5025
+ .nb-datagrid__inline-btn:disabled {
5026
+ opacity: 0.4;
5027
+ cursor: default;
5028
+ }
5029
+ .nb-datagrid__inline-btn--save {
5030
+ background: var(--accent);
5031
+ color: #fff;
5032
+ }
5033
+ .nb-datagrid__inline-btn--save:hover:not(:disabled) {
5034
+ background: color-mix(in srgb, var(--accent) 85%, #000);
5035
+ }
5036
+ .nb-datagrid__inline-btn--cancel {
5037
+ background: transparent;
5038
+ color: var(--text-secondary);
5039
+ border-color: var(--border-color);
5040
+ }
5041
+ .nb-datagrid__inline-btn--cancel:hover:not(:disabled) {
5042
+ background: var(--surface-2);
5043
+ color: var(--text-primary);
5044
+ }
5045
+
5046
+ .nb-datagrid__batch-bar {
5047
+ display: flex;
5048
+ align-items: center;
5049
+ gap: var(--space-3);
5050
+ padding: 8px 14px;
5051
+ background: color-mix(in srgb, var(--accent) 10%, var(--surface-0));
5052
+ border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
5053
+ font-size: 13px;
5054
+ }
5055
+
5056
+ .nb-datagrid__batch-bar-label {
5057
+ flex: 1;
5058
+ color: var(--text-secondary);
5059
+ }
5060
+
5061
+ .nb-datagrid__batch-bar-actions {
5062
+ display: flex;
5063
+ gap: var(--space-2);
5064
+ }
5065
+
5066
+ .nb-datagrid__batch-bar-btn {
5067
+ height: 30px;
5068
+ padding: 0 14px;
5069
+ border-radius: var(--radius-sm);
5070
+ font-size: 13px;
5071
+ font-weight: 500;
5072
+ cursor: pointer;
5073
+ transition: background 0.1s;
5074
+ }
5075
+ .nb-datagrid__batch-bar-btn--save {
5076
+ background: var(--accent);
5077
+ color: #fff;
5078
+ border: none;
5079
+ }
5080
+ .nb-datagrid__batch-bar-btn--save:hover {
5081
+ background: color-mix(in srgb, var(--accent) 85%, #000);
5082
+ }
5083
+ .nb-datagrid__batch-bar-btn--discard {
5084
+ background: transparent;
5085
+ color: var(--text-secondary);
5086
+ border: 1px solid var(--border-color);
5087
+ }
5088
+ .nb-datagrid__batch-bar-btn--discard:hover {
5089
+ background: var(--surface-2);
5090
+ color: var(--text-primary);
5091
+ }
4955
5092
  .nb-form {
4956
5093
  color: var(--text-primary);
4957
5094
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/react-admin",
3
- "version": "0.5.24",
3
+ "version": "0.5.26",
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/crud": "^0.5.24",
54
- "@nubitio/admin": "^0.5.24",
55
- "@nubitio/dashboard": "^0.5.24",
56
- "@nubitio/ui": "^0.5.24",
57
- "@nubitio/hydra": "^0.5.24",
58
- "@nubitio/core": "^0.5.24"
53
+ "@nubitio/admin": "^0.5.26",
54
+ "@nubitio/core": "^0.5.26",
55
+ "@nubitio/hydra": "^0.5.26",
56
+ "@nubitio/crud": "^0.5.26",
57
+ "@nubitio/dashboard": "^0.5.26",
58
+ "@nubitio/ui": "^0.5.26"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@tanstack/react-query": "^5.0.0",