@svadmin/ui 0.115.0 → 0.116.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/app.css CHANGED
@@ -5545,10 +5545,13 @@
5545
5545
  --text-2xl--line-height: calc(2 / 1.5);
5546
5546
  --text-3xl: 1.875rem;
5547
5547
  --text-3xl--line-height: calc(2.25 / 1.875);
5548
+ --text-4xl: 2.25rem;
5549
+ --text-4xl--line-height: calc(2.5 / 2.25);
5548
5550
  --font-weight-normal: 400;
5549
5551
  --font-weight-medium: 500;
5550
5552
  --font-weight-semibold: 600;
5551
5553
  --font-weight-bold: 700;
5554
+ --font-weight-extrabold: 800;
5552
5555
  --tracking-tight: -0.025em;
5553
5556
  --tracking-normal: 0em;
5554
5557
  --tracking-wide: 0.025em;
@@ -5626,9 +5629,15 @@
5626
5629
  .-top-0\.5 {
5627
5630
  top: calc(var(--spacing) * -0.5);
5628
5631
  }
5632
+ .-top-3 {
5633
+ top: calc(var(--spacing) * -3);
5634
+ }
5629
5635
  .-top-7 {
5630
5636
  top: calc(var(--spacing) * -7);
5631
5637
  }
5638
+ .-top-\[21px\] {
5639
+ top: calc(21px * -1);
5640
+ }
5632
5641
  .top-0 {
5633
5642
  top: 0px;
5634
5643
  }
@@ -5668,6 +5677,9 @@
5668
5677
  .right-2 {
5669
5678
  right: calc(var(--spacing) * 2);
5670
5679
  }
5680
+ .right-3 {
5681
+ right: calc(var(--spacing) * 3);
5682
+ }
5671
5683
  .right-4 {
5672
5684
  right: calc(var(--spacing) * 4);
5673
5685
  }
@@ -5698,6 +5710,9 @@
5698
5710
  .-left-7 {
5699
5711
  left: calc(var(--spacing) * -7);
5700
5712
  }
5713
+ .-left-\[11px\] {
5714
+ left: calc(11px * -1);
5715
+ }
5701
5716
  .left-0 {
5702
5717
  left: 0px;
5703
5718
  }
@@ -5791,6 +5806,12 @@
5791
5806
  .my-1 {
5792
5807
  margin-block: var(--spacing);
5793
5808
  }
5809
+ .my-1\.5 {
5810
+ margin-block: calc(var(--spacing) * 1.5);
5811
+ }
5812
+ .my-2\.5 {
5813
+ margin-block: calc(var(--spacing) * 2.5);
5814
+ }
5794
5815
  .my-6 {
5795
5816
  margin-block: calc(var(--spacing) * 6);
5796
5817
  }
@@ -5815,6 +5836,9 @@
5815
5836
  .mt-2 {
5816
5837
  margin-top: calc(var(--spacing) * 2);
5817
5838
  }
5839
+ .mt-2\.5 {
5840
+ margin-top: calc(var(--spacing) * 2.5);
5841
+ }
5818
5842
  .mt-3 {
5819
5843
  margin-top: calc(var(--spacing) * 3);
5820
5844
  }
@@ -5845,6 +5869,9 @@
5845
5869
  .-mr-1 {
5846
5870
  margin-right: calc(var(--spacing) * -1);
5847
5871
  }
5872
+ .mr-0\.5 {
5873
+ margin-right: calc(var(--spacing) * 0.5);
5874
+ }
5848
5875
  .mr-1 {
5849
5876
  margin-right: var(--spacing);
5850
5877
  }
@@ -5866,6 +5893,9 @@
5866
5893
  .mb-1 {
5867
5894
  margin-bottom: var(--spacing);
5868
5895
  }
5896
+ .mb-1\.5 {
5897
+ margin-bottom: calc(var(--spacing) * 1.5);
5898
+ }
5869
5899
  .mb-2 {
5870
5900
  margin-bottom: calc(var(--spacing) * 2);
5871
5901
  }
@@ -5997,6 +6027,9 @@
5997
6027
  width: calc(var(--spacing) * 14);
5998
6028
  height: calc(var(--spacing) * 14);
5999
6029
  }
6030
+ .h-0 {
6031
+ height: 0px;
6032
+ }
6000
6033
  .h-0\.5 {
6001
6034
  height: calc(var(--spacing) * 0.5);
6002
6035
  }
@@ -6216,6 +6249,9 @@
6216
6249
  .w-\(--bits-popover-anchor-width\) {
6217
6250
  width: var(--bits-popover-anchor-width);
6218
6251
  }
6252
+ .w-0 {
6253
+ width: 0px;
6254
+ }
6219
6255
  .w-0\.5 {
6220
6256
  width: calc(var(--spacing) * 0.5);
6221
6257
  }
@@ -6597,6 +6633,9 @@
6597
6633
  .cursor-grabbing {
6598
6634
  cursor: grabbing;
6599
6635
  }
6636
+ .cursor-help {
6637
+ cursor: help;
6638
+ }
6600
6639
  .cursor-move {
6601
6640
  cursor: move;
6602
6641
  }
@@ -6609,6 +6648,9 @@
6609
6648
  .cursor-row-resize {
6610
6649
  cursor: row-resize;
6611
6650
  }
6651
+ .cursor-wait {
6652
+ cursor: wait;
6653
+ }
6612
6654
  .cursor-zoom-in {
6613
6655
  cursor: zoom-in;
6614
6656
  }
@@ -6951,6 +6993,9 @@
6951
6993
  border-top-left-radius: calc(var(--radius) + 4px);
6952
6994
  border-top-right-radius: calc(var(--radius) + 4px);
6953
6995
  }
6996
+ .rounded-tr-\[3px\] {
6997
+ border-top-right-radius: 3px;
6998
+ }
6954
6999
  .border {
6955
7000
  border-style: var(--tw-border-style);
6956
7001
  border-width: 1px;
@@ -6983,6 +7028,10 @@
6983
7028
  border-top-style: var(--tw-border-style);
6984
7029
  border-top-width: 2px;
6985
7030
  }
7031
+ .border-t-\[22px\] {
7032
+ border-top-style: var(--tw-border-style);
7033
+ border-top-width: 22px;
7034
+ }
6986
7035
  .border-r {
6987
7036
  border-right-style: var(--tw-border-style);
6988
7037
  border-right-width: 1px;
@@ -7011,6 +7060,10 @@
7011
7060
  border-left-style: var(--tw-border-style);
7012
7061
  border-left-width: 3px;
7013
7062
  }
7063
+ .border-l-\[22px\] {
7064
+ border-left-style: var(--tw-border-style);
7065
+ border-left-width: 22px;
7066
+ }
7014
7067
  .border-dashed {
7015
7068
  --tw-border-style: dashed;
7016
7069
  border-style: dashed;
@@ -7212,6 +7265,9 @@
7212
7265
  .border-r-transparent {
7213
7266
  border-right-color: transparent;
7214
7267
  }
7268
+ .border-l-transparent {
7269
+ border-left-color: transparent;
7270
+ }
7215
7271
  .bg-accent {
7216
7272
  background-color: var(--accent);
7217
7273
  }
@@ -7452,6 +7508,12 @@
7452
7508
  background-color: color-mix(in oklab, var(--primary) 20%, transparent);
7453
7509
  }
7454
7510
  }
7511
+ .bg-primary\/90 {
7512
+ background-color: var(--primary);
7513
+ @supports (color: color-mix(in lab, red, red)) {
7514
+ background-color: color-mix(in oklab, var(--primary) 90%, transparent);
7515
+ }
7516
+ }
7455
7517
  .bg-secondary {
7456
7518
  background-color: var(--secondary);
7457
7519
  }
@@ -7557,6 +7619,9 @@
7557
7619
  .fill-warning {
7558
7620
  fill: var(--warning);
7559
7621
  }
7622
+ .stroke-\[2\.5\] {
7623
+ stroke-width: 2.5;
7624
+ }
7560
7625
  .object-contain {
7561
7626
  object-fit: contain;
7562
7627
  }
@@ -7722,6 +7787,9 @@
7722
7787
  .pt-2 {
7723
7788
  padding-top: calc(var(--spacing) * 2);
7724
7789
  }
7790
+ .pt-2\.5 {
7791
+ padding-top: calc(var(--spacing) * 2.5);
7792
+ }
7725
7793
  .pt-3 {
7726
7794
  padding-top: calc(var(--spacing) * 3);
7727
7795
  }
@@ -7814,6 +7882,10 @@
7814
7882
  font-size: var(--text-3xl);
7815
7883
  line-height: var(--tw-leading, var(--text-3xl--line-height));
7816
7884
  }
7885
+ .text-4xl {
7886
+ font-size: var(--text-4xl);
7887
+ line-height: var(--tw-leading, var(--text-4xl--line-height));
7888
+ }
7817
7889
  .text-base {
7818
7890
  font-size: var(--text-base);
7819
7891
  line-height: var(--tw-leading, var(--text-base--line-height));
@@ -7922,6 +7994,10 @@
7922
7994
  --tw-font-weight: var(--font-weight-bold);
7923
7995
  font-weight: var(--font-weight-bold);
7924
7996
  }
7997
+ .font-extrabold {
7998
+ --tw-font-weight: var(--font-weight-extrabold);
7999
+ font-weight: var(--font-weight-extrabold);
8000
+ }
7925
8001
  .font-medium {
7926
8002
  --tw-font-weight: var(--font-weight-medium);
7927
8003
  font-weight: var(--font-weight-medium);
@@ -8019,6 +8095,12 @@
8019
8095
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
8020
8096
  }
8021
8097
  }
8098
+ .text-foreground\/90 {
8099
+ color: var(--foreground);
8100
+ @supports (color: color-mix(in lab, red, red)) {
8101
+ color: color-mix(in oklab, var(--foreground) 90%, transparent);
8102
+ }
8103
+ }
8022
8104
  .text-info {
8023
8105
  color: var(--info);
8024
8106
  }
@@ -8754,6 +8836,9 @@
8754
8836
  background-color: color-mix(in oklab, var(--muted) 70%, transparent);
8755
8837
  }
8756
8838
  }
8839
+ .hover\:bg-primary:hover {
8840
+ background-color: var(--primary);
8841
+ }
8757
8842
  .hover\:bg-primary\/20:hover {
8758
8843
  background-color: var(--primary);
8759
8844
  }
@@ -8952,6 +9037,10 @@
8952
9037
  --tw-ring-offset-width: 1px;
8953
9038
  --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
8954
9039
  }
9040
+ .focus-visible\:ring-offset-2:focus-visible {
9041
+ --tw-ring-offset-width: 2px;
9042
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
9043
+ }
8955
9044
  .focus-visible\:outline-none:focus-visible {
8956
9045
  --tw-outline-style: none;
8957
9046
  outline-style: none;
@@ -9238,6 +9327,10 @@
9238
9327
  font-size: var(--text-2xl);
9239
9328
  line-height: var(--tw-leading, var(--text-2xl--line-height));
9240
9329
  }
9330
+ .sm\:text-3xl {
9331
+ font-size: var(--text-3xl);
9332
+ line-height: var(--tw-leading, var(--text-3xl--line-height));
9333
+ }
9241
9334
  .sm\:text-lg {
9242
9335
  font-size: var(--text-lg);
9243
9336
  line-height: var(--tw-leading, var(--text-lg--line-height));
@@ -5545,10 +5545,13 @@
5545
5545
  --text-2xl--line-height: calc(2 / 1.5);
5546
5546
  --text-3xl: 1.875rem;
5547
5547
  --text-3xl--line-height: calc(2.25 / 1.875);
5548
+ --text-4xl: 2.25rem;
5549
+ --text-4xl--line-height: calc(2.5 / 2.25);
5548
5550
  --font-weight-normal: 400;
5549
5551
  --font-weight-medium: 500;
5550
5552
  --font-weight-semibold: 600;
5551
5553
  --font-weight-bold: 700;
5554
+ --font-weight-extrabold: 800;
5552
5555
  --tracking-tight: -0.025em;
5553
5556
  --tracking-normal: 0em;
5554
5557
  --tracking-wide: 0.025em;
@@ -5626,9 +5629,15 @@
5626
5629
  .-top-0\.5 {
5627
5630
  top: calc(var(--spacing) * -0.5);
5628
5631
  }
5632
+ .-top-3 {
5633
+ top: calc(var(--spacing) * -3);
5634
+ }
5629
5635
  .-top-7 {
5630
5636
  top: calc(var(--spacing) * -7);
5631
5637
  }
5638
+ .-top-\[21px\] {
5639
+ top: calc(21px * -1);
5640
+ }
5632
5641
  .top-0 {
5633
5642
  top: 0px;
5634
5643
  }
@@ -5668,6 +5677,9 @@
5668
5677
  .right-2 {
5669
5678
  right: calc(var(--spacing) * 2);
5670
5679
  }
5680
+ .right-3 {
5681
+ right: calc(var(--spacing) * 3);
5682
+ }
5671
5683
  .right-4 {
5672
5684
  right: calc(var(--spacing) * 4);
5673
5685
  }
@@ -5698,6 +5710,9 @@
5698
5710
  .-left-7 {
5699
5711
  left: calc(var(--spacing) * -7);
5700
5712
  }
5713
+ .-left-\[11px\] {
5714
+ left: calc(11px * -1);
5715
+ }
5701
5716
  .left-0 {
5702
5717
  left: 0px;
5703
5718
  }
@@ -5791,6 +5806,12 @@
5791
5806
  .my-1 {
5792
5807
  margin-block: var(--spacing);
5793
5808
  }
5809
+ .my-1\.5 {
5810
+ margin-block: calc(var(--spacing) * 1.5);
5811
+ }
5812
+ .my-2\.5 {
5813
+ margin-block: calc(var(--spacing) * 2.5);
5814
+ }
5794
5815
  .my-6 {
5795
5816
  margin-block: calc(var(--spacing) * 6);
5796
5817
  }
@@ -5815,6 +5836,9 @@
5815
5836
  .mt-2 {
5816
5837
  margin-top: calc(var(--spacing) * 2);
5817
5838
  }
5839
+ .mt-2\.5 {
5840
+ margin-top: calc(var(--spacing) * 2.5);
5841
+ }
5818
5842
  .mt-3 {
5819
5843
  margin-top: calc(var(--spacing) * 3);
5820
5844
  }
@@ -5845,6 +5869,9 @@
5845
5869
  .-mr-1 {
5846
5870
  margin-right: calc(var(--spacing) * -1);
5847
5871
  }
5872
+ .mr-0\.5 {
5873
+ margin-right: calc(var(--spacing) * 0.5);
5874
+ }
5848
5875
  .mr-1 {
5849
5876
  margin-right: var(--spacing);
5850
5877
  }
@@ -5866,6 +5893,9 @@
5866
5893
  .mb-1 {
5867
5894
  margin-bottom: var(--spacing);
5868
5895
  }
5896
+ .mb-1\.5 {
5897
+ margin-bottom: calc(var(--spacing) * 1.5);
5898
+ }
5869
5899
  .mb-2 {
5870
5900
  margin-bottom: calc(var(--spacing) * 2);
5871
5901
  }
@@ -5997,6 +6027,9 @@
5997
6027
  width: calc(var(--spacing) * 14);
5998
6028
  height: calc(var(--spacing) * 14);
5999
6029
  }
6030
+ .h-0 {
6031
+ height: 0px;
6032
+ }
6000
6033
  .h-0\.5 {
6001
6034
  height: calc(var(--spacing) * 0.5);
6002
6035
  }
@@ -6216,6 +6249,9 @@
6216
6249
  .w-\(--bits-popover-anchor-width\) {
6217
6250
  width: var(--bits-popover-anchor-width);
6218
6251
  }
6252
+ .w-0 {
6253
+ width: 0px;
6254
+ }
6219
6255
  .w-0\.5 {
6220
6256
  width: calc(var(--spacing) * 0.5);
6221
6257
  }
@@ -6597,6 +6633,9 @@
6597
6633
  .cursor-grabbing {
6598
6634
  cursor: grabbing;
6599
6635
  }
6636
+ .cursor-help {
6637
+ cursor: help;
6638
+ }
6600
6639
  .cursor-move {
6601
6640
  cursor: move;
6602
6641
  }
@@ -6609,6 +6648,9 @@
6609
6648
  .cursor-row-resize {
6610
6649
  cursor: row-resize;
6611
6650
  }
6651
+ .cursor-wait {
6652
+ cursor: wait;
6653
+ }
6612
6654
  .cursor-zoom-in {
6613
6655
  cursor: zoom-in;
6614
6656
  }
@@ -6951,6 +6993,9 @@
6951
6993
  border-top-left-radius: calc(var(--radius) + 4px);
6952
6994
  border-top-right-radius: calc(var(--radius) + 4px);
6953
6995
  }
6996
+ .rounded-tr-\[3px\] {
6997
+ border-top-right-radius: 3px;
6998
+ }
6954
6999
  .border {
6955
7000
  border-style: var(--tw-border-style);
6956
7001
  border-width: 1px;
@@ -6983,6 +7028,10 @@
6983
7028
  border-top-style: var(--tw-border-style);
6984
7029
  border-top-width: 2px;
6985
7030
  }
7031
+ .border-t-\[22px\] {
7032
+ border-top-style: var(--tw-border-style);
7033
+ border-top-width: 22px;
7034
+ }
6986
7035
  .border-r {
6987
7036
  border-right-style: var(--tw-border-style);
6988
7037
  border-right-width: 1px;
@@ -7011,6 +7060,10 @@
7011
7060
  border-left-style: var(--tw-border-style);
7012
7061
  border-left-width: 3px;
7013
7062
  }
7063
+ .border-l-\[22px\] {
7064
+ border-left-style: var(--tw-border-style);
7065
+ border-left-width: 22px;
7066
+ }
7014
7067
  .border-dashed {
7015
7068
  --tw-border-style: dashed;
7016
7069
  border-style: dashed;
@@ -7212,6 +7265,9 @@
7212
7265
  .border-r-transparent {
7213
7266
  border-right-color: transparent;
7214
7267
  }
7268
+ .border-l-transparent {
7269
+ border-left-color: transparent;
7270
+ }
7215
7271
  .bg-accent {
7216
7272
  background-color: var(--accent);
7217
7273
  }
@@ -7452,6 +7508,12 @@
7452
7508
  background-color: color-mix(in oklab, var(--primary) 20%, transparent);
7453
7509
  }
7454
7510
  }
7511
+ .bg-primary\/90 {
7512
+ background-color: var(--primary);
7513
+ @supports (color: color-mix(in lab, red, red)) {
7514
+ background-color: color-mix(in oklab, var(--primary) 90%, transparent);
7515
+ }
7516
+ }
7455
7517
  .bg-secondary {
7456
7518
  background-color: var(--secondary);
7457
7519
  }
@@ -7557,6 +7619,9 @@
7557
7619
  .fill-warning {
7558
7620
  fill: var(--warning);
7559
7621
  }
7622
+ .stroke-\[2\.5\] {
7623
+ stroke-width: 2.5;
7624
+ }
7560
7625
  .object-contain {
7561
7626
  object-fit: contain;
7562
7627
  }
@@ -7722,6 +7787,9 @@
7722
7787
  .pt-2 {
7723
7788
  padding-top: calc(var(--spacing) * 2);
7724
7789
  }
7790
+ .pt-2\.5 {
7791
+ padding-top: calc(var(--spacing) * 2.5);
7792
+ }
7725
7793
  .pt-3 {
7726
7794
  padding-top: calc(var(--spacing) * 3);
7727
7795
  }
@@ -7814,6 +7882,10 @@
7814
7882
  font-size: var(--text-3xl);
7815
7883
  line-height: var(--tw-leading, var(--text-3xl--line-height));
7816
7884
  }
7885
+ .text-4xl {
7886
+ font-size: var(--text-4xl);
7887
+ line-height: var(--tw-leading, var(--text-4xl--line-height));
7888
+ }
7817
7889
  .text-base {
7818
7890
  font-size: var(--text-base);
7819
7891
  line-height: var(--tw-leading, var(--text-base--line-height));
@@ -7922,6 +7994,10 @@
7922
7994
  --tw-font-weight: var(--font-weight-bold);
7923
7995
  font-weight: var(--font-weight-bold);
7924
7996
  }
7997
+ .font-extrabold {
7998
+ --tw-font-weight: var(--font-weight-extrabold);
7999
+ font-weight: var(--font-weight-extrabold);
8000
+ }
7925
8001
  .font-medium {
7926
8002
  --tw-font-weight: var(--font-weight-medium);
7927
8003
  font-weight: var(--font-weight-medium);
@@ -8019,6 +8095,12 @@
8019
8095
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
8020
8096
  }
8021
8097
  }
8098
+ .text-foreground\/90 {
8099
+ color: var(--foreground);
8100
+ @supports (color: color-mix(in lab, red, red)) {
8101
+ color: color-mix(in oklab, var(--foreground) 90%, transparent);
8102
+ }
8103
+ }
8022
8104
  .text-info {
8023
8105
  color: var(--info);
8024
8106
  }
@@ -8754,6 +8836,9 @@
8754
8836
  background-color: color-mix(in oklab, var(--muted) 70%, transparent);
8755
8837
  }
8756
8838
  }
8839
+ .hover\:bg-primary:hover {
8840
+ background-color: var(--primary);
8841
+ }
8757
8842
  .hover\:bg-primary\/20:hover {
8758
8843
  background-color: var(--primary);
8759
8844
  }
@@ -8952,6 +9037,10 @@
8952
9037
  --tw-ring-offset-width: 1px;
8953
9038
  --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
8954
9039
  }
9040
+ .focus-visible\:ring-offset-2:focus-visible {
9041
+ --tw-ring-offset-width: 2px;
9042
+ --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
9043
+ }
8955
9044
  .focus-visible\:outline-none:focus-visible {
8956
9045
  --tw-outline-style: none;
8957
9046
  outline-style: none;
@@ -9238,6 +9327,10 @@
9238
9327
  font-size: var(--text-2xl);
9239
9328
  line-height: var(--tw-leading, var(--text-2xl--line-height));
9240
9329
  }
9330
+ .sm\:text-3xl {
9331
+ font-size: var(--text-3xl);
9332
+ line-height: var(--tw-leading, var(--text-3xl--line-height));
9333
+ }
9241
9334
  .sm\:text-lg {
9242
9335
  font-size: var(--text-lg);
9243
9336
  line-height: var(--tw-leading, var(--text-lg--line-height));
@@ -11,7 +11,7 @@
11
11
  const resources = $derived(adminContext.resources.filter((resource) => resource.meta?.['aboutVisible'] !== false));
12
12
  const providerNames = $derived(adminContext.getDataProviderNames());
13
13
  let { version: suppliedVersion, headingLevel = 'h1' }: { version?: string; headingLevel?: 'h1' | 'h2' } = $props();
14
- const buildVersion = "0.115.0";
14
+ const buildVersion = "0.116.0";
15
15
  const version = $derived(suppliedVersion ?? (
16
16
  buildVersion.startsWith('__')
17
17
  ? (i18n.locale === 'zh-CN' ? '开发构建(未提供版本)' : 'Development build (version unavailable)')
@@ -1,7 +1,8 @@
1
1
  <script lang="ts">
2
2
  import { useTranslation } from '@svadmin/core/i18n';
3
3
  import { getTheme, setTheme, getColorTheme, setColorTheme, getColorPresets } from '@svadmin/core';
4
- import { Check, Monitor, Moon, Sun } from '@lucide/svelte';
4
+ import { Check, Monitor, Moon, Sun, Layout, PanelLeft, Columns } from '@lucide/svelte';
5
+ import { uiPreferences, updateUiPreferences, type NavigationMode, type ContentWidth } from '../ui-preferences.svelte.js';
5
6
  import SettingsGroup from './content/SettingsGroup.svelte';
6
7
  import SettingsFieldRow from './content/SettingsFieldRow.svelte';
7
8
  import ContentPageHeader from './content/ContentPageHeader.svelte';
@@ -14,6 +15,15 @@
14
15
  { value: 'dark' as const, icon: Moon, label: 'settings.dark' },
15
16
  { value: 'system' as const, icon: Monitor, label: 'settings.systemTheme' },
16
17
  ];
18
+ const navOptions: Array<{ value: NavigationMode; icon: typeof PanelLeft; label: string }> = [
19
+ { value: 'side', icon: PanelLeft, label: 'settings.navSide' },
20
+ { value: 'top', icon: Layout, label: 'settings.navTop' },
21
+ { value: 'mix', icon: Columns, label: 'settings.navMix' },
22
+ ];
23
+ const widthOptions: Array<{ value: ContentWidth; label: string }> = [
24
+ { value: 'fixed', label: 'settings.widthFixed' },
25
+ { value: 'fluid', label: 'settings.widthFluid' },
26
+ ];
17
27
  let currentTheme = $derived(getTheme());
18
28
  let currentColor = $derived(getColorTheme());
19
29
  let currentLocale = $derived(i18n.locale);
@@ -96,6 +106,65 @@
96
106
  </div>
97
107
  {/snippet}
98
108
  </SettingsFieldRow>
109
+ <SettingsFieldRow label={i18n.t('settings.navigationLayout')}>
110
+ {#snippet control()}
111
+ <div class="flex overflow-hidden rounded-md border border-input">
112
+ {#each navOptions as option (option.value)}
113
+ {@const active = uiPreferences.navigation === option.value}
114
+ <button
115
+ type="button"
116
+ aria-pressed={active}
117
+ class="flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium transition-colors {active ? 'bg-primary text-primary-foreground' : 'bg-background text-muted-foreground hover:bg-accent'}"
118
+ onclick={() => updateUiPreferences({ navigation: option.value })}
119
+ >
120
+ <option.icon class="size-3.5" />
121
+ <span>{i18n.t(option.label)}</span>
122
+ </button>
123
+ {/each}
124
+ </div>
125
+ {/snippet}
126
+ </SettingsFieldRow>
127
+ <SettingsFieldRow label={i18n.t('settings.contentWidth')}>
128
+ {#snippet control()}
129
+ <div class="flex overflow-hidden rounded-md border border-input">
130
+ {#each widthOptions as option (option.value)}
131
+ {@const active = uiPreferences.contentWidth === option.value}
132
+ <button
133
+ type="button"
134
+ aria-pressed={active}
135
+ class="px-3 py-1.5 text-xs font-medium transition-colors {active ? 'bg-primary text-primary-foreground' : 'bg-background text-muted-foreground hover:bg-accent'}"
136
+ onclick={() => updateUiPreferences({ contentWidth: option.value })}
137
+ >
138
+ {i18n.t(option.label)}
139
+ </button>
140
+ {/each}
141
+ </div>
142
+ {/snippet}
143
+ </SettingsFieldRow>
144
+ <SettingsFieldRow label={i18n.t('settings.colorWeak')} description={i18n.t('settings.colorWeakDescription')}>
145
+ {#snippet control()}
146
+ <button
147
+ type="button"
148
+ aria-pressed={uiPreferences.colorWeak}
149
+ class="px-3 py-1.5 text-xs font-medium rounded-md border transition-colors {uiPreferences.colorWeak ? 'border-primary bg-primary text-primary-foreground' : 'border-input bg-background text-muted-foreground hover:bg-accent'}"
150
+ onclick={() => updateUiPreferences({ colorWeak: !uiPreferences.colorWeak })}
151
+ >
152
+ {uiPreferences.colorWeak ? i18n.t('settings.enabled') : i18n.t('settings.disabled')}
153
+ </button>
154
+ {/snippet}
155
+ </SettingsFieldRow>
156
+ <SettingsFieldRow label={i18n.t('settings.pageTransition')} description={i18n.t('settings.pageTransitionDescription')}>
157
+ {#snippet control()}
158
+ <button
159
+ type="button"
160
+ aria-pressed={uiPreferences.pageTransition}
161
+ class="px-3 py-1.5 text-xs font-medium rounded-md border transition-colors {uiPreferences.pageTransition ? 'border-primary bg-primary text-primary-foreground' : 'border-input bg-background text-muted-foreground hover:bg-accent'}"
162
+ onclick={() => updateUiPreferences({ pageTransition: !uiPreferences.pageTransition })}
163
+ >
164
+ {uiPreferences.pageTransition ? i18n.t('settings.enabled') : i18n.t('settings.disabled')}
165
+ </button>
166
+ {/snippet}
167
+ </SettingsFieldRow>
99
168
  </div>
100
169
  </SettingsGroup>
101
170
  </div>