@w100n/documents 0.13.0 → 0.14.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 (52) hide show
  1. package/dist/{SheetView-3XTEV2VT.css → SheetView-43MPR64N.css} +5 -4
  2. package/dist/{SheetView-3XTEV2VT.css.map → SheetView-43MPR64N.css.map} +1 -1
  3. package/dist/{SheetView-3UAFXGZS.js → SheetView-4TPL7DES.js} +51 -10
  4. package/dist/SheetView-4TPL7DES.js.map +1 -0
  5. package/dist/{TextEditor-OLBLWC6F.js → TextEditor-VBHWUOZR.js} +636 -225
  6. package/dist/TextEditor-VBHWUOZR.js.map +1 -0
  7. package/dist/{chunk-L765DZPO.js → chunk-2CA3HQTI.js} +3 -3
  8. package/dist/{chunk-L765DZPO.js.map → chunk-2CA3HQTI.js.map} +1 -1
  9. package/dist/{chunk-MRP3EURG.js → chunk-5MH4WDW4.js} +133 -20
  10. package/dist/chunk-5MH4WDW4.js.map +1 -0
  11. package/dist/{chunk-WR3MT7KP.js → chunk-DR3TTJWZ.js} +374 -29
  12. package/dist/chunk-DR3TTJWZ.js.map +1 -0
  13. package/dist/{chunk-T7XCGDE5.js → chunk-RCQODE2Z.js} +2 -2
  14. package/dist/collab.cjs +487 -46
  15. package/dist/collab.cjs.map +1 -1
  16. package/dist/collab.d.cts +2 -2
  17. package/dist/collab.d.ts +2 -2
  18. package/dist/collab.js +2 -2
  19. package/dist/{grid-EI5JNZAA.js → grid-Q4XBPQFY.js} +3 -3
  20. package/dist/grid-Q4XBPQFY.js.map +1 -0
  21. package/dist/index.cjs +1449 -314
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.css +888 -171
  24. package/dist/index.css.map +1 -1
  25. package/dist/index.d.cts +9 -4
  26. package/dist/index.d.ts +9 -4
  27. package/dist/index.js +282 -32
  28. package/dist/index.js.map +1 -1
  29. package/dist/kinds.cjs +2 -2
  30. package/dist/kinds.cjs.map +1 -1
  31. package/dist/kinds.d.cts +2 -2
  32. package/dist/kinds.d.ts +2 -2
  33. package/dist/kinds.js +1 -1
  34. package/dist/memory.cjs +3 -0
  35. package/dist/memory.cjs.map +1 -1
  36. package/dist/memory.d.cts +1 -1
  37. package/dist/memory.d.ts +1 -1
  38. package/dist/memory.js +4 -1
  39. package/dist/memory.js.map +1 -1
  40. package/dist/{types-Er60M5kL.d.ts → types-BTsVooZw.d.cts} +2 -1
  41. package/dist/{types-Er60M5kL.d.cts → types-BTsVooZw.d.ts} +2 -1
  42. package/dist/write-BCI8yool.d.cts +16 -0
  43. package/dist/write-BCI8yool.d.ts +16 -0
  44. package/package.json +1 -1
  45. package/dist/SheetView-3UAFXGZS.js.map +0 -1
  46. package/dist/TextEditor-OLBLWC6F.js.map +0 -1
  47. package/dist/chunk-MRP3EURG.js.map +0 -1
  48. package/dist/chunk-WR3MT7KP.js.map +0 -1
  49. package/dist/grid-EI5JNZAA.js.map +0 -1
  50. package/dist/write-DaVtTJCS.d.cts +0 -6
  51. package/dist/write-DaVtTJCS.d.ts +0 -6
  52. /package/dist/{chunk-T7XCGDE5.js.map → chunk-RCQODE2Z.js.map} +0 -0
package/dist/index.css CHANGED
@@ -746,8 +746,8 @@
746
746
  }
747
747
  .w100n-docs-reopen-right {
748
748
  left: auto;
749
- right: 10px;
750
- top: 10px;
749
+ right: 7px;
750
+ top: 5px;
751
751
  }
752
752
  .w100n-docs-picker {
753
753
  position: relative;
@@ -1251,26 +1251,6 @@
1251
1251
  overflow-y: auto;
1252
1252
  padding: 12px;
1253
1253
  }
1254
- .w100n-docs-outline {
1255
- display: grid;
1256
- gap: 2px;
1257
- }
1258
- .w100n-docs-outline button {
1259
- padding: 6px 9px;
1260
- border-radius: 8px;
1261
- text-align: left;
1262
- overflow-wrap: anywhere;
1263
- }
1264
- .w100n-docs-outline button:hover {
1265
- background: var(--docs-hover);
1266
- }
1267
- .w100n-docs-outline button[data-level="2"] {
1268
- padding-left: 20px;
1269
- }
1270
- .w100n-docs-outline button[data-level="3"] {
1271
- padding-left: 32px;
1272
- color: var(--docs-muted);
1273
- }
1274
1254
  .w100n-docs-versions {
1275
1255
  display: grid;
1276
1256
  gap: 4px;
@@ -2911,11 +2891,12 @@ svg.w100n-pdf-marks {
2911
2891
  margin: 0 6px 0 4px;
2912
2892
  }
2913
2893
  .w100n-text-people .w100n-text-face {
2914
- width: 26px;
2915
- height: 26px;
2916
- margin-left: -6px;
2894
+ width: 28px;
2895
+ height: 28px;
2896
+ margin-left: 4px;
2917
2897
  overflow: hidden;
2918
- border-radius: 50%;
2898
+ border-radius: 28%;
2899
+ font-size: 10.5px;
2919
2900
  background:
2920
2901
  linear-gradient(
2921
2902
  145deg,
@@ -3673,176 +3654,911 @@ svg.w100n-pdf-marks {
3673
3654
  grid-template-columns: 1fr;
3674
3655
  }
3675
3656
  }
3676
-
3677
- /* src/sheets/sheets.css */
3678
- @font-face {
3679
- font-family: "Calibri";
3680
- font-weight: 400;
3681
- font-style: normal;
3682
- src:
3683
- local("Calibri"),
3684
- local("Carlito"),
3685
- local("Arial"),
3686
- local("ArialMT"),
3687
- local("Liberation Sans");
3657
+ .w100n-text-menus {
3658
+ display: flex;
3659
+ flex-wrap: wrap;
3660
+ gap: 2px;
3688
3661
  }
3689
- @font-face {
3690
- font-family: "Calibri";
3691
- font-weight: 400;
3692
- font-style: italic;
3693
- src:
3694
- local("Calibri Italic"),
3695
- local("Carlito Italic"),
3696
- local("Arial Italic"),
3697
- local("Arial-ItalicMT"),
3698
- local("Liberation Sans Italic");
3662
+ .w100n-text-ribbon .w100n-text-anchor > button.w100n-text-menu-button {
3663
+ width: auto;
3664
+ height: 28px;
3665
+ padding: 0 9px;
3666
+ color: var(--docs-text);
3667
+ font-size: 12.5px;
3668
+ font-weight: 550;
3699
3669
  }
3700
- @font-face {
3701
- font-family: "Calibri";
3702
- font-weight: 700;
3703
- font-style: normal;
3704
- src:
3705
- local("Calibri Bold"),
3706
- local("Carlito Bold"),
3707
- local("Arial Bold"),
3708
- local("Arial-BoldMT"),
3709
- local("Liberation Sans Bold");
3670
+ .w100n-text-ribbon .w100n-text-anchor > button.w100n-text-menu-button[aria-expanded=true] {
3671
+ background: var(--docs-soft);
3710
3672
  }
3711
- @font-face {
3712
- font-family: "Calibri";
3713
- font-weight: 700;
3714
- font-style: italic;
3715
- src:
3716
- local("Calibri Bold Italic"),
3717
- local("Carlito Bold Italic"),
3718
- local("Arial Bold Italic"),
3719
- local("Arial-BoldItalicMT"),
3720
- local("Liberation Sans Bold Italic");
3673
+ .w100n-text-menu {
3674
+ display: grid;
3675
+ gap: 1px;
3676
+ min-width: 240px;
3721
3677
  }
3722
- @font-face {
3723
- font-family: "Aptos";
3724
- font-weight: 400;
3725
- font-style: normal;
3726
- src:
3727
- local("Aptos"),
3728
- local("Arial"),
3729
- local("ArialMT"),
3730
- local("Liberation Sans");
3678
+ .w100n-docs .w100n-text-menu button {
3679
+ display: flex;
3680
+ align-items: center;
3681
+ gap: 10px;
3682
+ padding: 6px 10px;
3683
+ border-radius: 8px;
3684
+ color: var(--docs-text);
3685
+ font-size: 13px;
3686
+ text-align: left;
3731
3687
  }
3732
- @font-face {
3733
- font-family: "Aptos";
3734
- font-weight: 400;
3735
- font-style: italic;
3736
- src:
3737
- local("Aptos Italic"),
3738
- local("Arial Italic"),
3739
- local("Arial-ItalicMT"),
3740
- local("Liberation Sans Italic");
3688
+ .w100n-text-menu button:hover:not(:disabled) {
3689
+ background: var(--docs-hover);
3741
3690
  }
3742
- @font-face {
3743
- font-family: "Aptos";
3744
- font-weight: 700;
3745
- font-style: normal;
3746
- src:
3747
- local("Aptos Bold"),
3748
- local("Arial Bold"),
3749
- local("Arial-BoldMT"),
3750
- local("Liberation Sans Bold");
3691
+ .w100n-text-menu button:disabled {
3692
+ opacity: .45;
3751
3693
  }
3752
- @font-face {
3753
- font-family: "Aptos";
3754
- font-weight: 700;
3755
- font-style: italic;
3756
- src:
3757
- local("Aptos Bold Italic"),
3758
- local("Arial Bold Italic"),
3759
- local("Arial-BoldItalicMT"),
3760
- local("Liberation Sans Bold Italic");
3694
+ .w100n-text-menu button svg {
3695
+ width: 14px;
3696
+ height: 14px;
3697
+ color: var(--docs-accent);
3698
+ visibility: hidden;
3761
3699
  }
3762
- .w100n-sheet {
3763
- position: relative;
3700
+ .w100n-text-menu button[aria-checked=true] svg {
3701
+ visibility: visible;
3702
+ }
3703
+ .w100n-text-menu button span {
3764
3704
  flex: 1;
3765
- min-height: 0;
3766
- display: flex;
3767
- flex-direction: column;
3768
- gap: 8px;
3769
3705
  }
3770
- .w100n-sheet-ribbon {
3771
- align-self: center;
3772
- display: grid;
3773
- grid-template-columns: minmax(0, 1fr) auto;
3774
- align-items: start;
3775
- gap: 6px;
3776
- width: min(100%, 1240px);
3777
- padding: 4px;
3778
- border: 1px solid var(--docs-border);
3779
- border-radius: 12px;
3780
- background: var(--docs-card);
3781
- box-shadow: var(--docs-shadow);
3706
+ .w100n-text-menu kbd {
3707
+ color: var(--docs-dim);
3708
+ font:
3709
+ 11.5px ui-monospace,
3710
+ SFMono-Regular,
3711
+ Menlo,
3712
+ monospace;
3782
3713
  }
3783
- .w100n-sheet-tools {
3784
- display: flex;
3785
- flex-wrap: wrap;
3786
- align-items: center;
3787
- gap: 2px;
3714
+ .w100n-text-menu hr {
3715
+ width: 100%;
3716
+ margin: 4px 0;
3717
+ border: 0;
3718
+ border-top: 1px solid var(--docs-border);
3719
+ }
3720
+ .w100n-text-ribbon .w100n-text-anchor > button.w100n-text-picker[data-size=small] {
3721
+ width: 78px;
3722
+ }
3723
+ .w100n-text-grow {
3724
+ flex: 1;
3725
+ }
3726
+ @container (max-width: 560px) {
3727
+ .w100n-text-menus {
3728
+ flex-wrap: nowrap;
3729
+ min-width: 0;
3730
+ overflow-x: auto;
3731
+ scrollbar-width: none;
3732
+ }
3733
+ .w100n-text-menus > * {
3734
+ flex-shrink: 0;
3735
+ }
3736
+ .w100n-text-grow {
3737
+ display: none;
3738
+ }
3739
+ }
3740
+ .w100n-text-ribbon .w100n-text-anchor > button.w100n-text-picker[data-size=mid] {
3741
+ width: 118px;
3742
+ }
3743
+ .w100n-text-picker > span {
3788
3744
  min-width: 0;
3789
- min-height: 32px;
3745
+ overflow: hidden;
3746
+ text-overflow: ellipsis;
3790
3747
  }
3791
- .w100n-sheet-ribbon button:not(.w100n-docs-action) {
3792
- position: relative;
3793
- display: grid;
3794
- place-items: center;
3795
- width: 30px;
3796
- height: 30px;
3797
- border-radius: 8px;
3798
- color: var(--docs-muted);
3748
+ .w100n-text-styles hr {
3749
+ width: 100%;
3750
+ margin: 4px 0;
3751
+ border: 0;
3752
+ border-top: 1px solid var(--docs-border);
3799
3753
  }
3800
- .w100n-sheet-ribbon button:not(.w100n-docs-action):hover:not(:disabled) {
3801
- background: var(--docs-hover);
3802
- color: var(--docs-text);
3754
+ .w100n-text-pop.w100n-text-styles {
3755
+ max-height: 360px;
3756
+ overflow-y: auto;
3803
3757
  }
3804
- .w100n-docs .w100n-sheet-ribbon button[aria-pressed=true],
3805
- .w100n-docs .w100n-sheet-ribbon button[aria-expanded=true] {
3806
- color: #fff;
3758
+ .w100n-text-scroll[data-paint=true] .w100n-text-body {
3759
+ cursor: copy;
3760
+ }
3761
+ .w100n-docs-prose sup,
3762
+ .w100n-docs-prose sub {
3763
+ font-size: .75em;
3764
+ line-height: 0;
3765
+ }
3766
+ .w100n-docs .w100n-setup {
3767
+ width: min(460px, 100%);
3768
+ gap: 10px;
3769
+ }
3770
+ .w100n-new-tile[data-tone=blue] {
3807
3771
  background:
3808
3772
  linear-gradient(
3809
3773
  145deg,
3810
- #8b5cf6,
3811
- #6d28d9);
3812
- box-shadow: 0 6px 14px -6px #7c3aed99;
3774
+ #3b82f6,
3775
+ #1d4ed8);
3813
3776
  }
3814
- .w100n-sheet-gap {
3815
- width: 1px;
3816
- height: 20px;
3817
- margin: 0 5px;
3818
- background: var(--docs-border);
3777
+ .w100n-setup .w100n-docs-caption {
3778
+ padding: 0;
3779
+ font-size: 12px;
3780
+ color: var(--docs-muted);
3781
+ font-weight: 550;
3819
3782
  }
3820
- .w100n-sheet-end {
3783
+ .w100n-setup-grid {
3784
+ display: grid;
3785
+ grid-template-columns: repeat(4, minmax(0, 1fr));
3786
+ gap: 8px;
3787
+ }
3788
+ .w100n-setup-grid label,
3789
+ .w100n-setup-line {
3790
+ display: grid;
3791
+ gap: 4px;
3792
+ font-size: 12px;
3793
+ color: var(--docs-muted);
3794
+ }
3795
+ .w100n-docs .w100n-setup .w100n-docs-field {
3796
+ height: 32px;
3797
+ color: var(--docs-text);
3798
+ }
3799
+ .w100n-setup-check {
3821
3800
  display: flex;
3822
3801
  align-items: center;
3823
3802
  gap: 8px;
3824
- min-height: 32px;
3803
+ font-size: 13px;
3825
3804
  }
3826
- .w100n-sheet-muted {
3827
- max-width: 380px;
3828
- color: var(--docs-muted);
3829
- font-size: 12px;
3830
- line-height: 1.35;
3805
+ .w100n-setup-check input {
3806
+ width: 16px;
3807
+ height: 16px;
3808
+ accent-color: #7c3aed;
3831
3809
  }
3832
- .w100n-sheet-anchor {
3833
- position: relative;
3834
- display: inline-flex;
3810
+ .w100n-text-first {
3811
+ position: absolute;
3812
+ top: calc(var(--mt) / -2 - 7px);
3813
+ left: 0;
3814
+ right: 0;
3815
+ pointer-events: none;
3816
+ user-select: none;
3835
3817
  }
3836
- .w100n-sheet-bar {
3818
+ .w100n-text-head,
3819
+ .w100n-text-foot {
3837
3820
  position: absolute;
3838
- left: 8px;
3839
- right: 8px;
3840
- bottom: 4px;
3841
- height: 3px;
3842
- border-radius: 2px;
3821
+ left: var(--ml);
3822
+ max-width: 60%;
3823
+ overflow: hidden;
3824
+ color: #64748b;
3825
+ font-size: 10px;
3826
+ text-overflow: ellipsis;
3827
+ white-space: nowrap;
3843
3828
  }
3844
- .w100n-sheet-ribbon .w100n-sheet-anchor > button.w100n-sheet-picker {
3845
- display: flex;
3829
+ .w100n-text-first .w100n-text-head {
3830
+ left: 0;
3831
+ }
3832
+ .w100n-text-gap .w100n-text-head {
3833
+ bottom: calc(var(--mt) / 2 - 7px);
3834
+ }
3835
+ .w100n-text-gap .w100n-text-foot {
3836
+ top: auto;
3837
+ bottom: calc(var(--mt) + 24px + var(--mb) / 2 - 7px);
3838
+ }
3839
+ .w100n-text-gap.is-end .w100n-text-foot {
3840
+ bottom: calc(var(--mb) / -2 - 7px);
3841
+ }
3842
+ .w100n-text-body [data-resize-container] {
3843
+ position: relative;
3844
+ display: inline-block;
3845
+ max-width: 100%;
3846
+ }
3847
+ .w100n-text-body [data-resize-container]:has(img[data-wrap=left]) {
3848
+ float: left;
3849
+ margin: 4px 16px 8px 0;
3850
+ }
3851
+ .w100n-text-body [data-resize-container]:has(img[data-wrap=right]) {
3852
+ float: right;
3853
+ margin: 4px 0 8px 16px;
3854
+ }
3855
+ .w100n-text-body [data-resize-handle] {
3856
+ position: absolute;
3857
+ z-index: 2;
3858
+ width: 10px;
3859
+ height: 10px;
3860
+ border: 2px solid #7c3aed;
3861
+ border-radius: 3px;
3862
+ background: #fff;
3863
+ opacity: 0;
3864
+ }
3865
+ .w100n-text-body [data-resize-container]:hover [data-resize-handle],
3866
+ .w100n-text-body .ProseMirror-selectednode [data-resize-handle],
3867
+ .w100n-text-body [data-resize-state=true] [data-resize-handle] {
3868
+ opacity: 1;
3869
+ }
3870
+ .w100n-text-body [data-resize-handle=top-left] {
3871
+ top: -6px;
3872
+ left: -6px;
3873
+ cursor: nwse-resize;
3874
+ }
3875
+ .w100n-text-body [data-resize-handle=top-right] {
3876
+ top: -6px;
3877
+ right: -6px;
3878
+ cursor: nesw-resize;
3879
+ }
3880
+ .w100n-text-body [data-resize-handle=bottom-left] {
3881
+ bottom: -6px;
3882
+ left: -6px;
3883
+ cursor: nesw-resize;
3884
+ }
3885
+ .w100n-text-body [data-resize-handle=bottom-right] {
3886
+ bottom: -6px;
3887
+ right: -6px;
3888
+ cursor: nwse-resize;
3889
+ }
3890
+ .w100n-text-body .ProseMirror-selectednode img,
3891
+ .w100n-text-body [data-resize-container].ProseMirror-selectednode img {
3892
+ outline: 2px solid #7c3aed;
3893
+ outline-offset: 2px;
3894
+ }
3895
+ .w100n-text-body table[data-borders=none] :is(td, th) {
3896
+ border-color: transparent;
3897
+ outline: 1px dashed #e2e8f0;
3898
+ outline-offset: -1px;
3899
+ }
3900
+ .w100n-text-body .column-resize-handle {
3901
+ position: absolute;
3902
+ top: 0;
3903
+ right: -2px;
3904
+ bottom: -2px;
3905
+ width: 4px;
3906
+ background: #7c3aed;
3907
+ pointer-events: none;
3908
+ }
3909
+ .w100n-text-body.resize-cursor,
3910
+ .w100n-text-body .resize-cursor {
3911
+ cursor: col-resize;
3912
+ }
3913
+ .w100n-text-body .tableWrapper {
3914
+ overflow-x: auto;
3915
+ }
3916
+ .w100n-text-body :is(td, th) {
3917
+ position: relative;
3918
+ }
3919
+ .w100n-text-body .w100n-found {
3920
+ background: #fde68a;
3921
+ border-radius: 2px;
3922
+ }
3923
+ .w100n-text-body .w100n-found.is-current {
3924
+ background: #f59e0b;
3925
+ color: #fff;
3926
+ }
3927
+ .w100n-text-find {
3928
+ display: grid;
3929
+ gap: 8px;
3930
+ width: 340px;
3931
+ }
3932
+ .w100n-text-find .w100n-docs-row {
3933
+ gap: 6px;
3934
+ }
3935
+ .w100n-docs .w100n-text-find input:not([type]) {
3936
+ flex: 1;
3937
+ min-width: 0;
3938
+ height: 32px;
3939
+ padding: 0 10px;
3940
+ border: 1px solid var(--docs-border);
3941
+ border-radius: 9px;
3942
+ background: var(--docs-bg);
3943
+ color: var(--docs-text);
3944
+ }
3945
+ .w100n-text-find small {
3946
+ min-width: 56px;
3947
+ color: var(--docs-dim);
3948
+ font-size: 11.5px;
3949
+ text-align: right;
3950
+ white-space: nowrap;
3951
+ }
3952
+ .w100n-docs .w100n-text-find .w100n-docs-row > button:not(.w100n-docs-action):not(.w100n-pdf-link) {
3953
+ display: grid;
3954
+ place-items: center;
3955
+ width: 28px;
3956
+ height: 28px;
3957
+ border-radius: 8px;
3958
+ color: var(--docs-muted);
3959
+ }
3960
+ .w100n-text-find .w100n-docs-row > button:not(.w100n-docs-action):not(.w100n-pdf-link):hover:not(:disabled) {
3961
+ background: var(--docs-hover);
3962
+ }
3963
+ .w100n-docs-new {
3964
+ position: relative;
3965
+ }
3966
+ .w100n-docs .w100n-docs-new > .w100n-docs-action {
3967
+ height: 30px;
3968
+ padding: 0 10px;
3969
+ gap: 5px;
3970
+ }
3971
+ .w100n-docs-new .w100n-docs-menu {
3972
+ right: 0;
3973
+ left: auto;
3974
+ min-width: 210px;
3975
+ }
3976
+ .w100n-text-scroll {
3977
+ padding-bottom: 150px;
3978
+ }
3979
+ .w100n-docs .w100n-text-ribbon:is(.w100n-text-island, .w100n-text-corner) {
3980
+ position: absolute;
3981
+ z-index: 6;
3982
+ bottom: 14px;
3983
+ display: grid;
3984
+ gap: 4px;
3985
+ width: max-content;
3986
+ padding: 5px;
3987
+ border-radius: 13px;
3988
+ }
3989
+ .w100n-docs .w100n-text-ribbon.w100n-text-island {
3990
+ left: 0;
3991
+ right: 0;
3992
+ margin: 0 auto;
3993
+ max-width: calc(100% - 330px);
3994
+ }
3995
+ .w100n-docs .w100n-text-ribbon.w100n-text-corner {
3996
+ max-width: none;
3997
+ }
3998
+ .w100n-text-corner[data-side=left] {
3999
+ left: 14px;
4000
+ }
4001
+ .w100n-text-corner[data-side=right] {
4002
+ right: 14px;
4003
+ }
4004
+ .w100n-text-island > .w100n-text-tools + .w100n-text-tools {
4005
+ padding-top: 4px;
4006
+ border-top: 1px solid var(--docs-border);
4007
+ }
4008
+ .w100n-text-island .w100n-text-tools,
4009
+ .w100n-text-corner .w100n-text-tools {
4010
+ min-height: 34px;
4011
+ }
4012
+ .w100n-docs .w100n-text-ribbon:is(.w100n-text-island, .w100n-text-corner) :is(.w100n-text-tools, .w100n-text-anchor) > button:not(.w100n-docs-action, .w100n-text-picker, .w100n-text-word) {
4013
+ width: 34px;
4014
+ height: 34px;
4015
+ }
4016
+ .w100n-text-island .w100n-text-pop,
4017
+ .w100n-text-corner .w100n-text-pop {
4018
+ top: auto;
4019
+ bottom: calc(100% + 12px);
4020
+ }
4021
+ .w100n-text-corner[data-side=right] .w100n-text-pop {
4022
+ left: auto;
4023
+ right: 0;
4024
+ }
4025
+ .w100n-text-corner .w100n-text-anchor > button.w100n-text-picker[data-size=small] {
4026
+ width: 64px;
4027
+ border-color: transparent;
4028
+ justify-content: center;
4029
+ }
4030
+ .w100n-text-corner .w100n-text-picker svg {
4031
+ display: none;
4032
+ }
4033
+ .w100n-docs .w100n-text-ribbon.w100n-text-top {
4034
+ display: flex;
4035
+ align-items: center;
4036
+ justify-content: space-between;
4037
+ gap: 8px;
4038
+ }
4039
+ .w100n-docs .w100n-text-ribbon.w100n-text-docbar {
4040
+ display: flex;
4041
+ align-items: center;
4042
+ align-self: auto;
4043
+ width: auto;
4044
+ max-width: none;
4045
+ padding: 0;
4046
+ border: 0;
4047
+ border-radius: 0;
4048
+ background: none;
4049
+ box-shadow: none;
4050
+ }
4051
+ .w100n-docs .w100n-text-docbar .w100n-text-anchor > button.w100n-text-menu-button {
4052
+ height: 22px;
4053
+ padding: 0 6px;
4054
+ border-radius: 6px;
4055
+ color: var(--docs-muted);
4056
+ font-size: 12.5px;
4057
+ font-weight: 500;
4058
+ }
4059
+ .w100n-docs .w100n-text-docbar .w100n-text-anchor > button.w100n-text-menu-button:is(:hover, [aria-expanded=true]) {
4060
+ color: var(--docs-text);
4061
+ background: var(--docs-hover);
4062
+ }
4063
+ .w100n-docs-menus {
4064
+ margin-left: -6px;
4065
+ min-width: 0;
4066
+ }
4067
+ .w100n-docs-status {
4068
+ display: contents;
4069
+ }
4070
+ .w100n-text-ribbon .w100n-text-end > button.w100n-text-saved {
4071
+ display: inline-flex;
4072
+ align-items: center;
4073
+ gap: 6px;
4074
+ width: auto;
4075
+ height: 30px;
4076
+ padding: 0 10px;
4077
+ border-radius: 8px;
4078
+ color: #f87171;
4079
+ background: #f8717114;
4080
+ font-size: 12px;
4081
+ font-weight: 600;
4082
+ white-space: nowrap;
4083
+ }
4084
+ .w100n-text-saved svg {
4085
+ width: 15px;
4086
+ height: 15px;
4087
+ }
4088
+ @container (max-width: 900px) {
4089
+ .w100n-docs .w100n-text-ribbon.w100n-text-island {
4090
+ left: 8px;
4091
+ right: 8px;
4092
+ bottom: 8px;
4093
+ width: auto;
4094
+ max-width: none;
4095
+ }
4096
+ .w100n-text-island > .w100n-text-tools {
4097
+ flex-wrap: nowrap;
4098
+ overflow-x: auto;
4099
+ scrollbar-width: none;
4100
+ }
4101
+ .w100n-text-corner[data-side=left] {
4102
+ display: none;
4103
+ }
4104
+ .w100n-docs .w100n-text-ribbon.w100n-text-corner[data-side=right] {
4105
+ top: 54px;
4106
+ right: 8px;
4107
+ bottom: auto;
4108
+ }
4109
+ .w100n-docs-menus {
4110
+ overflow-x: auto;
4111
+ scrollbar-width: none;
4112
+ }
4113
+ }
4114
+ .w100n-docs-filters {
4115
+ display: flex;
4116
+ gap: 6px;
4117
+ min-width: 0;
4118
+ }
4119
+ .w100n-docs-filters .w100n-docs-search {
4120
+ flex: 1;
4121
+ min-width: 0;
4122
+ }
4123
+ .w100n-docs-types {
4124
+ position: relative;
4125
+ flex-shrink: 0;
4126
+ }
4127
+ .w100n-docs .w100n-docs-types > .w100n-docs-field {
4128
+ width: auto;
4129
+ }
4130
+ .w100n-docs .w100n-docs-types > .w100n-docs-field > svg:first-child {
4131
+ width: 15px;
4132
+ height: 15px;
4133
+ color: var(--docs-dim);
4134
+ }
4135
+ .w100n-docs .w100n-docs-types > .w100n-docs-field[data-on=true] {
4136
+ border-color: var(--docs-accent);
4137
+ box-shadow: 0 0 0 3px var(--docs-active);
4138
+ }
4139
+ .w100n-docs-types > .w100n-docs-field .w100n-docs-badge {
4140
+ height: 18px;
4141
+ padding: 0 6px;
4142
+ border-radius: 6px;
4143
+ }
4144
+ .w100n-docs-types .w100n-docs-menu {
4145
+ left: auto;
4146
+ width: 230px;
4147
+ }
4148
+ .w100n-docs-types .w100n-docs-tile {
4149
+ width: 20px;
4150
+ height: 20px;
4151
+ border-radius: 6px;
4152
+ box-shadow: none;
4153
+ }
4154
+ .w100n-docs-types .w100n-docs-tile svg {
4155
+ width: 12px;
4156
+ height: 12px;
4157
+ }
4158
+ .w100n-docs-box {
4159
+ display: grid;
4160
+ place-items: center;
4161
+ width: 16px;
4162
+ height: 16px;
4163
+ flex-shrink: 0;
4164
+ border: 1.5px solid var(--docs-line2);
4165
+ border-radius: 5px;
4166
+ }
4167
+ .w100n-docs-menu button[aria-selected=true] .w100n-docs-box {
4168
+ border-color: transparent;
4169
+ background:
4170
+ linear-gradient(
4171
+ 145deg,
4172
+ #8b5cf6,
4173
+ #6d28d9);
4174
+ color: #fff;
4175
+ }
4176
+ .w100n-docs-menu .w100n-docs-box svg {
4177
+ width: 11px;
4178
+ height: 11px;
4179
+ margin: 0;
4180
+ color: #fff;
4181
+ stroke-width: 3;
4182
+ }
4183
+ .w100n-docs-menu-foot {
4184
+ display: flex;
4185
+ justify-content: space-between;
4186
+ margin-top: 4px;
4187
+ padding-top: 4px;
4188
+ border-top: 1px solid var(--docs-border);
4189
+ }
4190
+ .w100n-docs-menu .w100n-docs-menu-foot button {
4191
+ width: auto;
4192
+ min-height: 28px;
4193
+ color: var(--docs-accent);
4194
+ font-weight: 600;
4195
+ }
4196
+ .w100n-docs-chips button svg {
4197
+ width: 12px;
4198
+ height: 12px;
4199
+ }
4200
+ .w100n-text-island .w100n-text-anchor > button.w100n-text-picker[data-size=mid] {
4201
+ width: 112px;
4202
+ }
4203
+ .w100n-text .ProseMirror > :first-child:not(.ProseMirror-widget),
4204
+ .w100n-text .ProseMirror > .w100n-text-first:first-child + * {
4205
+ margin-top: 0;
4206
+ }
4207
+ .w100n-docs-outline {
4208
+ display: grid;
4209
+ gap: 6px;
4210
+ padding: 4px 2px;
4211
+ }
4212
+ .w100n-docs-reading {
4213
+ display: flex;
4214
+ align-items: center;
4215
+ gap: 12px;
4216
+ margin: 2px 6px 10px;
4217
+ }
4218
+ .w100n-docs-reading span {
4219
+ flex: 1;
4220
+ height: 4px;
4221
+ overflow: hidden;
4222
+ border-radius: 2px;
4223
+ background: var(--docs-soft);
4224
+ }
4225
+ .w100n-docs-reading i {
4226
+ display: block;
4227
+ height: 100%;
4228
+ border-radius: 2px;
4229
+ background:
4230
+ linear-gradient(
4231
+ 90deg,
4232
+ #a78bfa,
4233
+ #7c3aed);
4234
+ }
4235
+ .w100n-docs-reading small {
4236
+ color: var(--docs-dim);
4237
+ font-size: 11.5px;
4238
+ font-variant-numeric: tabular-nums;
4239
+ white-space: nowrap;
4240
+ }
4241
+ .w100n-docs-outline .w100n-docs-search {
4242
+ margin-bottom: 8px;
4243
+ }
4244
+ .w100n-docs-chapter-row {
4245
+ display: flex;
4246
+ align-items: center;
4247
+ border-radius: 11px;
4248
+ }
4249
+ .w100n-docs-chapter-row:hover {
4250
+ background: var(--docs-hover);
4251
+ }
4252
+ .w100n-docs .w100n-docs-chapter-go {
4253
+ display: flex;
4254
+ flex: 1;
4255
+ align-items: center;
4256
+ gap: 14px;
4257
+ min-width: 0;
4258
+ padding: 9px 12px;
4259
+ color: var(--docs-text);
4260
+ text-align: left;
4261
+ }
4262
+ .w100n-docs-chapter-go b {
4263
+ min-width: 0;
4264
+ overflow: hidden;
4265
+ font-size: 13.5px;
4266
+ font-weight: 650;
4267
+ text-overflow: ellipsis;
4268
+ white-space: nowrap;
4269
+ }
4270
+ .w100n-docs-chapter-num {
4271
+ display: grid;
4272
+ place-items: center;
4273
+ width: 30px;
4274
+ height: 30px;
4275
+ flex-shrink: 0;
4276
+ border-radius: 9px;
4277
+ background: var(--docs-soft);
4278
+ color: var(--docs-muted);
4279
+ font-size: 12.5px;
4280
+ font-weight: 700;
4281
+ font-variant-numeric: tabular-nums;
4282
+ }
4283
+ .w100n-docs-chapter-num svg {
4284
+ width: 14px;
4285
+ height: 14px;
4286
+ }
4287
+ .w100n-docs-chapter[data-state=done] .w100n-docs-chapter-num {
4288
+ color: #fff;
4289
+ background:
4290
+ linear-gradient(
4291
+ 145deg,
4292
+ #34d399,
4293
+ #059669);
4294
+ }
4295
+ .w100n-docs-chapter[data-state=now] .w100n-docs-chapter-num {
4296
+ color: #fff;
4297
+ background:
4298
+ linear-gradient(
4299
+ 145deg,
4300
+ #a78bfa,
4301
+ #7c3aed);
4302
+ box-shadow: 0 6px 14px -6px #7c3aed99;
4303
+ }
4304
+ .w100n-docs .w100n-docs-chapter-fold {
4305
+ display: flex;
4306
+ align-items: center;
4307
+ gap: 10px;
4308
+ height: 40px;
4309
+ padding: 0 12px;
4310
+ color: var(--docs-dim);
4311
+ }
4312
+ .w100n-docs-chapter-fold:hover {
4313
+ color: var(--docs-text);
4314
+ }
4315
+ .w100n-docs-chapter-fold small {
4316
+ font-size: 12px;
4317
+ font-variant-numeric: tabular-nums;
4318
+ }
4319
+ .w100n-docs-chapter-fold svg {
4320
+ width: 15px;
4321
+ height: 15px;
4322
+ }
4323
+ .w100n-docs-sections {
4324
+ display: grid;
4325
+ gap: 4px;
4326
+ margin: 6px 0 12px 26px;
4327
+ padding-left: 18px;
4328
+ border-left: 1.5px solid var(--docs-line2);
4329
+ }
4330
+ .w100n-docs .w100n-docs-sections button {
4331
+ position: relative;
4332
+ display: flex;
4333
+ align-items: center;
4334
+ gap: 14px;
4335
+ padding: 9px 14px;
4336
+ border-radius: 10px;
4337
+ color: var(--docs-muted);
4338
+ font-size: 13px;
4339
+ text-align: left;
4340
+ overflow-wrap: anywhere;
4341
+ }
4342
+ .w100n-docs-sections button:hover {
4343
+ background: var(--docs-hover);
4344
+ color: var(--docs-text);
4345
+ }
4346
+ .w100n-docs .w100n-docs-sections button[data-level="2"] {
4347
+ padding-left: 34px;
4348
+ }
4349
+ .w100n-docs-sections button i {
4350
+ width: 7px;
4351
+ height: 7px;
4352
+ flex-shrink: 0;
4353
+ border-radius: 50%;
4354
+ background: var(--docs-line2);
4355
+ }
4356
+ .w100n-docs-sections button[data-state=done] i {
4357
+ background: #34d399;
4358
+ }
4359
+ .w100n-docs .w100n-docs-sections button[aria-current] {
4360
+ color: var(--docs-text);
4361
+ background: var(--docs-active);
4362
+ font-weight: 650;
4363
+ }
4364
+ .w100n-docs-sections button[aria-current] i {
4365
+ background: var(--docs-accent);
4366
+ box-shadow: 0 0 0 3px var(--docs-active);
4367
+ }
4368
+ .w100n-docs-sections button[aria-current]::before {
4369
+ content: "";
4370
+ position: absolute;
4371
+ top: 9px;
4372
+ bottom: 9px;
4373
+ left: -20px;
4374
+ width: 3px;
4375
+ border-radius: 2px;
4376
+ background: linear-gradient(#a78bfa, #7c3aed);
4377
+ }
4378
+ .w100n-docs .w100n-docs-rename {
4379
+ min-width: 0;
4380
+ width: min(420px, 100%);
4381
+ height: 24px;
4382
+ padding: 0 6px;
4383
+ margin-left: -6px;
4384
+ border: 1px solid var(--docs-accent);
4385
+ border-radius: 7px;
4386
+ outline: none;
4387
+ background: var(--docs-card);
4388
+ color: var(--docs-text);
4389
+ font: inherit;
4390
+ box-shadow: 0 0 0 3px var(--docs-active);
4391
+ }
4392
+
4393
+ /* src/sheets/sheets.css */
4394
+ @font-face {
4395
+ font-family: "Calibri";
4396
+ font-weight: 400;
4397
+ font-style: normal;
4398
+ src:
4399
+ local("Calibri"),
4400
+ local("Carlito"),
4401
+ local("Arial"),
4402
+ local("ArialMT"),
4403
+ local("Liberation Sans");
4404
+ }
4405
+ @font-face {
4406
+ font-family: "Calibri";
4407
+ font-weight: 400;
4408
+ font-style: italic;
4409
+ src:
4410
+ local("Calibri Italic"),
4411
+ local("Carlito Italic"),
4412
+ local("Arial Italic"),
4413
+ local("Arial-ItalicMT"),
4414
+ local("Liberation Sans Italic");
4415
+ }
4416
+ @font-face {
4417
+ font-family: "Calibri";
4418
+ font-weight: 700;
4419
+ font-style: normal;
4420
+ src:
4421
+ local("Calibri Bold"),
4422
+ local("Carlito Bold"),
4423
+ local("Arial Bold"),
4424
+ local("Arial-BoldMT"),
4425
+ local("Liberation Sans Bold");
4426
+ }
4427
+ @font-face {
4428
+ font-family: "Calibri";
4429
+ font-weight: 700;
4430
+ font-style: italic;
4431
+ src:
4432
+ local("Calibri Bold Italic"),
4433
+ local("Carlito Bold Italic"),
4434
+ local("Arial Bold Italic"),
4435
+ local("Arial-BoldItalicMT"),
4436
+ local("Liberation Sans Bold Italic");
4437
+ }
4438
+ @font-face {
4439
+ font-family: "Aptos";
4440
+ font-weight: 400;
4441
+ font-style: normal;
4442
+ src:
4443
+ local("Aptos"),
4444
+ local("Arial"),
4445
+ local("ArialMT"),
4446
+ local("Liberation Sans");
4447
+ }
4448
+ @font-face {
4449
+ font-family: "Aptos";
4450
+ font-weight: 400;
4451
+ font-style: italic;
4452
+ src:
4453
+ local("Aptos Italic"),
4454
+ local("Arial Italic"),
4455
+ local("Arial-ItalicMT"),
4456
+ local("Liberation Sans Italic");
4457
+ }
4458
+ @font-face {
4459
+ font-family: "Aptos";
4460
+ font-weight: 700;
4461
+ font-style: normal;
4462
+ src:
4463
+ local("Aptos Bold"),
4464
+ local("Arial Bold"),
4465
+ local("Arial-BoldMT"),
4466
+ local("Liberation Sans Bold");
4467
+ }
4468
+ @font-face {
4469
+ font-family: "Aptos";
4470
+ font-weight: 700;
4471
+ font-style: italic;
4472
+ src:
4473
+ local("Aptos Bold Italic"),
4474
+ local("Arial Bold Italic"),
4475
+ local("Arial-BoldItalicMT"),
4476
+ local("Liberation Sans Bold Italic");
4477
+ }
4478
+ .w100n-sheet {
4479
+ position: relative;
4480
+ flex: 1;
4481
+ min-height: 0;
4482
+ display: flex;
4483
+ flex-direction: column;
4484
+ gap: 8px;
4485
+ }
4486
+ .w100n-sheet-ribbon {
4487
+ align-self: center;
4488
+ display: grid;
4489
+ grid-template-columns: minmax(0, 1fr) auto;
4490
+ align-items: start;
4491
+ gap: 6px;
4492
+ width: min(100%, 1240px);
4493
+ padding: 4px;
4494
+ border: 1px solid var(--docs-border);
4495
+ border-radius: 12px;
4496
+ background: var(--docs-card);
4497
+ box-shadow: var(--docs-shadow);
4498
+ }
4499
+ .w100n-sheet-tools {
4500
+ display: flex;
4501
+ flex-wrap: wrap;
4502
+ align-items: center;
4503
+ gap: 2px;
4504
+ min-width: 0;
4505
+ min-height: 32px;
4506
+ }
4507
+ .w100n-sheet-ribbon button:not(.w100n-docs-action) {
4508
+ position: relative;
4509
+ display: grid;
4510
+ place-items: center;
4511
+ width: 30px;
4512
+ height: 30px;
4513
+ border-radius: 8px;
4514
+ color: var(--docs-muted);
4515
+ }
4516
+ .w100n-sheet-ribbon button:not(.w100n-docs-action):hover:not(:disabled) {
4517
+ background: var(--docs-hover);
4518
+ color: var(--docs-text);
4519
+ }
4520
+ .w100n-docs .w100n-sheet-ribbon button[aria-pressed=true],
4521
+ .w100n-docs .w100n-sheet-ribbon button[aria-expanded=true] {
4522
+ color: #fff;
4523
+ background:
4524
+ linear-gradient(
4525
+ 145deg,
4526
+ #8b5cf6,
4527
+ #6d28d9);
4528
+ box-shadow: 0 6px 14px -6px #7c3aed99;
4529
+ }
4530
+ .w100n-sheet-gap {
4531
+ width: 1px;
4532
+ height: 20px;
4533
+ margin: 0 5px;
4534
+ background: var(--docs-border);
4535
+ }
4536
+ .w100n-sheet-end {
4537
+ display: flex;
4538
+ align-items: center;
4539
+ gap: 8px;
4540
+ min-height: 32px;
4541
+ }
4542
+ .w100n-sheet-muted {
4543
+ max-width: 380px;
4544
+ color: var(--docs-muted);
4545
+ font-size: 12px;
4546
+ line-height: 1.35;
4547
+ }
4548
+ .w100n-sheet-anchor {
4549
+ position: relative;
4550
+ display: inline-flex;
4551
+ }
4552
+ .w100n-sheet-bar {
4553
+ position: absolute;
4554
+ left: 8px;
4555
+ right: 8px;
4556
+ bottom: 4px;
4557
+ height: 3px;
4558
+ border-radius: 2px;
4559
+ }
4560
+ .w100n-sheet-ribbon .w100n-sheet-anchor > button.w100n-sheet-picker {
4561
+ display: flex;
3846
4562
  justify-content: space-between;
3847
4563
  gap: 6px;
3848
4564
  width: 132px;
@@ -3941,8 +4657,9 @@ svg.w100n-pdf-marks {
3941
4657
  overflow: hidden;
3942
4658
  border: 1px solid var(--docs-border);
3943
4659
  border-radius: 13px;
3944
- background: var(--docs-card);
4660
+ background: #fff;
3945
4661
  box-shadow: var(--docs-shadow);
4662
+ color-scheme: light;
3946
4663
  }
3947
4664
  .w100n-sheet-grid,
3948
4665
  .w100n-sheet-host {
@@ -3962,8 +4679,8 @@ svg.w100n-pdf-marks {
3962
4679
  z-index: 5;
3963
4680
  display: grid;
3964
4681
  place-items: center;
3965
- background: var(--docs-card);
3966
- color: var(--docs-muted);
4682
+ background: #fff;
4683
+ color: #64748b;
3967
4684
  font-weight: 600;
3968
4685
  }
3969
4686
  .w100n-sheet-cover span {