@nubitio/ui 1.3.0 → 1.4.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/dist/style.css CHANGED
@@ -1421,6 +1421,16 @@ html[data-density=compact] .nb-dialog__footer {
1421
1421
  display: inline-flex;
1422
1422
  flex-shrink: 0;
1423
1423
  }
1424
+
1425
+ .nb-dropdown__value.nb-sr-only {
1426
+ border: 0;
1427
+ clip-path: inset(50%);
1428
+ height: 1px;
1429
+ overflow: hidden;
1430
+ position: absolute;
1431
+ white-space: nowrap;
1432
+ width: 1px;
1433
+ }
1424
1434
  .nb-combobox {
1425
1435
  --nb-combobox-action-size: calc(var(--control-height-form) - 8px);
1426
1436
  --nb-combobox-action-count: 1;
@@ -4757,3 +4767,153 @@ html[data-density=compact] .nb-drawer__footer {
4757
4767
  .nb-time-picker__segment[data-type=literal] {
4758
4768
  padding: 0;
4759
4769
  }
4770
+ .nb-tree-list {
4771
+ background: var(--surface-1);
4772
+ border: 1px solid var(--border-color);
4773
+ border-radius: var(--radius-lg);
4774
+ color: var(--text-primary);
4775
+ display: flex;
4776
+ flex-direction: column;
4777
+ min-height: 0;
4778
+ overflow: hidden;
4779
+ }
4780
+ .nb-tree-list__toolbar {
4781
+ align-items: center;
4782
+ border-bottom: 1px solid var(--border-color);
4783
+ display: flex;
4784
+ gap: var(--space-2);
4785
+ padding: var(--space-2) var(--space-3);
4786
+ }
4787
+ .nb-tree-list__filter {
4788
+ flex: 1;
4789
+ min-width: 0;
4790
+ }
4791
+ .nb-tree-list__filter input {
4792
+ background: var(--surface-1);
4793
+ border: 1px solid var(--border-color);
4794
+ border-radius: var(--radius-md);
4795
+ color: var(--text-primary);
4796
+ min-height: 36px;
4797
+ padding: 0 var(--space-3);
4798
+ width: 100%;
4799
+ }
4800
+ .nb-tree-list__clear-filter, .nb-tree-list__retry {
4801
+ background: transparent;
4802
+ border: 0;
4803
+ color: var(--accent-color);
4804
+ cursor: pointer;
4805
+ font: inherit;
4806
+ min-height: 32px;
4807
+ padding: 0 var(--space-2);
4808
+ }
4809
+ .nb-tree-list__scroll {
4810
+ min-width: 0;
4811
+ overflow: auto;
4812
+ }
4813
+ .nb-tree-list__table {
4814
+ border-collapse: separate;
4815
+ border-spacing: 0;
4816
+ min-width: 100%;
4817
+ width: max-content;
4818
+ }
4819
+ .nb-tree-list__table th {
4820
+ background: var(--surface-2);
4821
+ border-bottom: 1px solid var(--border-color);
4822
+ color: var(--text-secondary);
4823
+ font-size: var(--font-size-sm);
4824
+ font-weight: var(--font-weight-semibold);
4825
+ height: 40px;
4826
+ padding: 0 var(--space-3);
4827
+ position: sticky;
4828
+ text-align: start;
4829
+ top: 0;
4830
+ white-space: nowrap;
4831
+ z-index: 1;
4832
+ }
4833
+ .nb-tree-list__table td {
4834
+ border-bottom: 1px solid var(--border-subtle, var(--border-color));
4835
+ min-height: 40px;
4836
+ padding: var(--space-2) var(--space-3);
4837
+ white-space: nowrap;
4838
+ }
4839
+ .nb-tree-list__table tbody tr {
4840
+ outline: none;
4841
+ }
4842
+ .nb-tree-list__table tbody tr:hover {
4843
+ background: var(--surface-hover, var(--surface-2));
4844
+ }
4845
+ .nb-tree-list__table tbody tr:focus-visible {
4846
+ box-shadow: inset 0 0 0 2px var(--accent-color);
4847
+ }
4848
+ .nb-tree-list__table tbody tr[aria-selected=true] {
4849
+ background: color-mix(in srgb, var(--accent-color) 9%, var(--surface-1));
4850
+ }
4851
+ .nb-tree-list__selection-cell {
4852
+ text-align: center !important;
4853
+ width: 40px;
4854
+ }
4855
+ .nb-tree-list__sort {
4856
+ align-items: center;
4857
+ background: transparent;
4858
+ border: 0;
4859
+ color: inherit;
4860
+ cursor: pointer;
4861
+ display: inline-flex;
4862
+ font: inherit;
4863
+ gap: var(--space-2);
4864
+ min-height: 36px;
4865
+ padding: 0;
4866
+ }
4867
+ .nb-tree-list__indent {
4868
+ align-items: center;
4869
+ display: inline-flex;
4870
+ margin-inline-end: var(--space-2);
4871
+ padding-inline-start: calc(var(--nb-tree-depth, 0) * 22px);
4872
+ vertical-align: middle;
4873
+ }
4874
+ .nb-tree-list__spacer {
4875
+ display: inline-block;
4876
+ height: 28px;
4877
+ width: 28px;
4878
+ }
4879
+ .nb-tree-list__align--center {
4880
+ text-align: center !important;
4881
+ }
4882
+ .nb-tree-list__align--end {
4883
+ text-align: end !important;
4884
+ }
4885
+ .nb-tree-list__actions-cell {
4886
+ text-align: end;
4887
+ width: 48px;
4888
+ }
4889
+ .nb-tree-list__empty, .nb-tree-list__loading, .nb-tree-list__error {
4890
+ color: var(--text-secondary);
4891
+ padding: var(--space-5);
4892
+ }
4893
+ .nb-tree-list__error {
4894
+ color: var(--status-danger-text, var(--error-color));
4895
+ }
4896
+ .nb-tree-list__sr-only {
4897
+ clip: rect(0, 0, 0, 0);
4898
+ clip-path: inset(50%);
4899
+ height: 1px;
4900
+ overflow: hidden;
4901
+ position: absolute;
4902
+ white-space: nowrap;
4903
+ width: 1px;
4904
+ }
4905
+ .nb-tree-list--compact .nb-tree-list__table td {
4906
+ padding-bottom: 2px;
4907
+ padding-top: 2px;
4908
+ }
4909
+ .nb-tree-list--comfortable .nb-tree-list__table td {
4910
+ padding-bottom: var(--space-3);
4911
+ padding-top: var(--space-3);
4912
+ }
4913
+
4914
+ @media (max-width: 640px) {
4915
+ .nb-tree-list__table th,
4916
+ .nb-tree-list__table td {
4917
+ padding-inline: var(--space-2);
4918
+ }
4919
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/ui",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "description": "Visual primitives and theme system for the Nubit admin stack (dialogs, cards, toolbar, light/dark theme).",
6
6
  "license": "MIT",
@@ -57,6 +57,6 @@
57
57
  "@base-ui/react": "^1.9.0",
58
58
  "@internationalized/date": "^3.12.4",
59
59
  "react-aria-components": "^1.22.1",
60
- "react-dropzone": "^15.0.0"
60
+ "react-dropzone": "^20.2.1"
61
61
  }
62
62
  }