@pareto-engineering/design-system 4.0.0-alpha.39 → 4.0.0-alpha.41

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 (40) hide show
  1. package/dist/cjs/a/People/common/Person/Person.js +4 -4
  2. package/dist/cjs/a/People/styles.scss +10 -4
  3. package/dist/cjs/b/Card/common/Group/Group.js +1 -1
  4. package/dist/cjs/f/fields/EditorInput/EditorInput.js +191 -0
  5. package/dist/cjs/f/fields/EditorInput/common/Toolbar.js +193 -0
  6. package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +19 -0
  7. package/dist/cjs/f/fields/EditorInput/common/index.js +20 -0
  8. package/dist/cjs/f/fields/EditorInput/index.js +13 -0
  9. package/dist/cjs/f/fields/EditorInput/styles.scss +119 -0
  10. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +1 -1
  11. package/dist/cjs/f/fields/QueryCombobox/styles.scss +4 -1
  12. package/dist/cjs/f/fields/index.js +8 -1
  13. package/dist/es/a/People/common/Person/Person.js +4 -4
  14. package/dist/es/a/People/styles.scss +10 -4
  15. package/dist/es/b/Card/common/Group/Group.js +1 -1
  16. package/dist/es/f/fields/EditorInput/EditorInput.js +186 -0
  17. package/dist/es/f/fields/EditorInput/common/Toolbar.js +182 -0
  18. package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +11 -0
  19. package/dist/es/f/fields/EditorInput/common/index.js +2 -0
  20. package/dist/es/f/fields/EditorInput/index.js +2 -0
  21. package/dist/es/f/fields/EditorInput/styles.scss +119 -0
  22. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +1 -1
  23. package/dist/es/f/fields/QueryCombobox/styles.scss +4 -1
  24. package/dist/es/f/fields/index.js +2 -1
  25. package/package.json +5 -3
  26. package/src/stories/a/People.stories.jsx +20 -0
  27. package/src/stories/f/EditorInput.stories.jsx +88 -0
  28. package/src/ui/a/People/common/Person/Person.jsx +4 -4
  29. package/src/ui/a/People/styles.scss +10 -4
  30. package/src/ui/b/Card/common/Group/Group.jsx +1 -1
  31. package/src/ui/f/fields/EditorInput/EditorInput.jsx +237 -0
  32. package/src/ui/f/fields/EditorInput/common/Toolbar.jsx +254 -0
  33. package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +16 -0
  34. package/src/ui/f/fields/EditorInput/common/index.jsx +2 -0
  35. package/src/ui/f/fields/EditorInput/index.js +2 -0
  36. package/src/ui/f/fields/EditorInput/styles.scss +119 -0
  37. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +1 -0
  38. package/src/ui/f/fields/QueryCombobox/styles.scss +4 -1
  39. package/src/ui/f/fields/index.js +1 -0
  40. package/tests/__snapshots__/Storyshots.test.js.snap +703 -4
@@ -2280,6 +2280,41 @@ exports[`Storyshots a/People One Person 1`] = `
2280
2280
  </div>
2281
2281
  `;
2282
2282
 
2283
+ exports[`Storyshots a/People Without Role 1`] = `
2284
+ <div
2285
+ className="x-background-far b-x v1 p-v"
2286
+ >
2287
+ <div
2288
+ className="base people u1"
2289
+ style={
2290
+ {
2291
+ "--column-width": "12em",
2292
+ "--image-size": "3em",
2293
+ }
2294
+ }
2295
+ >
2296
+ <div
2297
+ className="base person y-background4"
2298
+ >
2299
+ <img
2300
+ alt="Camillie Arigo, undefined"
2301
+ className="image v50 mr-v"
2302
+ src="https://pareto-v1.s3.us-west-2.amazonaws.com/profile-pictures/Camille-Arigo.jpg"
2303
+ />
2304
+ <div
2305
+ className="details"
2306
+ >
2307
+ <p
2308
+ className="name"
2309
+ >
2310
+ Camillie Arigo
2311
+ </p>
2312
+ </div>
2313
+ </div>
2314
+ </div>
2315
+ </div>
2316
+ `;
2317
+
2283
2318
  exports[`Storyshots a/Popover Bottom Left 1`] = `
2284
2319
  <main
2285
2320
  className="u1 ph-u"
@@ -15861,7 +15896,7 @@ exports[`Storyshots f/FormInput With Query Combobox 1`] = `
15861
15896
  Search for a team
15862
15897
  </label>
15863
15898
  <div
15864
- className="base input-wrapper base combobox form-input"
15899
+ className="base input-wrapper base combobox form-input y-interactive"
15865
15900
  style={
15866
15901
  {
15867
15902
  "--column-span": "var(--columns)",
@@ -18378,6 +18413,670 @@ exports[`Storyshots f/fields/ChoicesInput With Default Formik Value 1`] = `
18378
18413
  </form>
18379
18414
  `;
18380
18415
 
18416
+ exports[`Storyshots f/fields/EditorInput Base 1`] = `
18417
+ <form
18418
+ action="#"
18419
+ onReset={[Function]}
18420
+ onSubmit={[Function]}
18421
+ >
18422
+ <div
18423
+ className="grid"
18424
+ >
18425
+ <label
18426
+ className="base form-label x-paragraph"
18427
+ htmlFor="instructions"
18428
+ style={
18429
+ {
18430
+ "--column-span": "var(--columns)",
18431
+ "--column-span-md": "var(--columns)",
18432
+ }
18433
+ }
18434
+ >
18435
+ Project Instructions
18436
+ </label>
18437
+ <div
18438
+ className="base input-wrapper base editor-input y-paragraph"
18439
+ style={
18440
+ {
18441
+ "--column-span": "var(--columns)",
18442
+ "--column-span-md": "var(--columns)",
18443
+ "--resize": "vertical",
18444
+ "--rows": "10em",
18445
+ }
18446
+ }
18447
+ >
18448
+ <div
18449
+ className="base toolbar"
18450
+ >
18451
+ <div
18452
+ className="group"
18453
+ >
18454
+ <button
18455
+ onClick={[Function]}
18456
+ type="button"
18457
+ >
18458
+ <span
18459
+ className="icon"
18460
+ >
18461
+ |
18462
+ </span>
18463
+ </button>
18464
+ <button
18465
+ onClick={[Function]}
18466
+ type="button"
18467
+ >
18468
+ <span
18469
+ className="icon"
18470
+ >
18471
+ }
18472
+ </span>
18473
+ </button>
18474
+ <button
18475
+ onClick={[Function]}
18476
+ type="button"
18477
+ >
18478
+ <span
18479
+ className="icon"
18480
+ >
18481
+ ~
18482
+ </span>
18483
+ </button>
18484
+ <button
18485
+ onClick={[Function]}
18486
+ type="button"
18487
+ >
18488
+ <span
18489
+ className="icon"
18490
+ >
18491
+ ?
18492
+ </span>
18493
+ </button>
18494
+ <button
18495
+ onClick={[Function]}
18496
+ type="button"
18497
+ >
18498
+ <span
18499
+ className="icon"
18500
+ >
18501
+ ]
18502
+ </span>
18503
+ </button>
18504
+ <button
18505
+ onClick={[Function]}
18506
+ type="button"
18507
+ >
18508
+ <span
18509
+ className="icon"
18510
+ >
18511
+ .
18512
+ </span>
18513
+ </button>
18514
+ <button
18515
+ onClick={[Function]}
18516
+ type="button"
18517
+ >
18518
+ <span
18519
+ className="icon"
18520
+ >
18521
+ -
18522
+ </span>
18523
+ </button>
18524
+ </div>
18525
+ <div
18526
+ className="group"
18527
+ >
18528
+ <button
18529
+ onClick={[Function]}
18530
+ type="button"
18531
+ >
18532
+ <span
18533
+ className="icon"
18534
+ >
18535
+ ^
18536
+ </span>
18537
+ </button>
18538
+ <button
18539
+ onClick={[Function]}
18540
+ type="button"
18541
+ >
18542
+ <span
18543
+ className="icon"
18544
+ >
18545
+ _
18546
+ </span>
18547
+ </button>
18548
+ <button
18549
+ onClick={[Function]}
18550
+ type="button"
18551
+ >
18552
+ <span
18553
+ className="icon"
18554
+ >
18555
+ \`
18556
+ </span>
18557
+ </button>
18558
+ <button
18559
+ onClick={[Function]}
18560
+ type="button"
18561
+ >
18562
+ <span
18563
+ className="icon"
18564
+ >
18565
+ {
18566
+ </span>
18567
+ </button>
18568
+ </div>
18569
+ <div
18570
+ className="group"
18571
+ >
18572
+ <button
18573
+ onClick={[Function]}
18574
+ type="button"
18575
+ >
18576
+ <span
18577
+ className="icon"
18578
+ >
18579
+ \\
18580
+ </span>
18581
+ </button>
18582
+ <button
18583
+ className="flip"
18584
+ onClick={[Function]}
18585
+ type="button"
18586
+ >
18587
+ <span
18588
+ className="icon"
18589
+ >
18590
+ \\
18591
+ </span>
18592
+ </button>
18593
+ </div>
18594
+ </div>
18595
+ <div
18596
+ className="content-editable"
18597
+ contentEditable={true}
18598
+ id="instructions"
18599
+ role="textbox"
18600
+ spellCheck={true}
18601
+ />
18602
+ </div>
18603
+ <div
18604
+ className="debugger"
18605
+ >
18606
+ <button
18607
+ className="base button x-main2"
18608
+ onClick={[Function]}
18609
+ type="button"
18610
+ >
18611
+ Open FormDebugger
18612
+ </button>
18613
+ </div>
18614
+ </div>
18615
+ </form>
18616
+ `;
18617
+
18618
+ exports[`Storyshots f/fields/EditorInput Disabled 1`] = `
18619
+ <form
18620
+ action="#"
18621
+ onReset={[Function]}
18622
+ onSubmit={[Function]}
18623
+ >
18624
+ <div
18625
+ className="grid"
18626
+ >
18627
+ <label
18628
+ className="base form-label x-paragraph"
18629
+ htmlFor="instructions"
18630
+ style={
18631
+ {
18632
+ "--column-span": "var(--columns)",
18633
+ "--column-span-md": "var(--columns)",
18634
+ }
18635
+ }
18636
+ >
18637
+ Project Instructions
18638
+ </label>
18639
+ <div
18640
+ className="base input-wrapper base editor-input y-paragraph disabled"
18641
+ style={
18642
+ {
18643
+ "--column-span": "var(--columns)",
18644
+ "--column-span-md": "var(--columns)",
18645
+ "--resize": "vertical",
18646
+ "--rows": "10em",
18647
+ }
18648
+ }
18649
+ >
18650
+ <div
18651
+ aria-autocomplete="none"
18652
+ aria-readonly={true}
18653
+ className="content-editable"
18654
+ contentEditable={false}
18655
+ id="instructions"
18656
+ role="textbox"
18657
+ spellCheck={true}
18658
+ />
18659
+ </div>
18660
+ <div
18661
+ className="debugger"
18662
+ >
18663
+ <button
18664
+ className="base button x-main2"
18665
+ onClick={[Function]}
18666
+ type="button"
18667
+ >
18668
+ Open FormDebugger
18669
+ </button>
18670
+ </div>
18671
+ </div>
18672
+ </form>
18673
+ `;
18674
+
18675
+ exports[`Storyshots f/fields/EditorInput On Single Row 1`] = `
18676
+ <form
18677
+ action="#"
18678
+ onReset={[Function]}
18679
+ onSubmit={[Function]}
18680
+ >
18681
+ <div
18682
+ className="grid"
18683
+ >
18684
+ <label
18685
+ className="base form-label x-paragraph"
18686
+ htmlFor="instructions"
18687
+ style={
18688
+ {
18689
+ "--column-span": 4,
18690
+ "--column-span-md": 4,
18691
+ }
18692
+ }
18693
+ >
18694
+ Project Instructions
18695
+ </label>
18696
+ <div
18697
+ className="base input-wrapper base editor-input y-paragraph"
18698
+ style={
18699
+ {
18700
+ "--column-span": 4,
18701
+ "--column-span-md": 10,
18702
+ "--resize": "vertical",
18703
+ "--rows": "10em",
18704
+ }
18705
+ }
18706
+ >
18707
+ <div
18708
+ className="base toolbar"
18709
+ >
18710
+ <div
18711
+ className="group"
18712
+ >
18713
+ <button
18714
+ onClick={[Function]}
18715
+ type="button"
18716
+ >
18717
+ <span
18718
+ className="icon"
18719
+ >
18720
+ |
18721
+ </span>
18722
+ </button>
18723
+ <button
18724
+ onClick={[Function]}
18725
+ type="button"
18726
+ >
18727
+ <span
18728
+ className="icon"
18729
+ >
18730
+ }
18731
+ </span>
18732
+ </button>
18733
+ <button
18734
+ onClick={[Function]}
18735
+ type="button"
18736
+ >
18737
+ <span
18738
+ className="icon"
18739
+ >
18740
+ ~
18741
+ </span>
18742
+ </button>
18743
+ <button
18744
+ onClick={[Function]}
18745
+ type="button"
18746
+ >
18747
+ <span
18748
+ className="icon"
18749
+ >
18750
+ ?
18751
+ </span>
18752
+ </button>
18753
+ <button
18754
+ onClick={[Function]}
18755
+ type="button"
18756
+ >
18757
+ <span
18758
+ className="icon"
18759
+ >
18760
+ ]
18761
+ </span>
18762
+ </button>
18763
+ <button
18764
+ onClick={[Function]}
18765
+ type="button"
18766
+ >
18767
+ <span
18768
+ className="icon"
18769
+ >
18770
+ .
18771
+ </span>
18772
+ </button>
18773
+ <button
18774
+ onClick={[Function]}
18775
+ type="button"
18776
+ >
18777
+ <span
18778
+ className="icon"
18779
+ >
18780
+ -
18781
+ </span>
18782
+ </button>
18783
+ </div>
18784
+ <div
18785
+ className="group"
18786
+ >
18787
+ <button
18788
+ onClick={[Function]}
18789
+ type="button"
18790
+ >
18791
+ <span
18792
+ className="icon"
18793
+ >
18794
+ ^
18795
+ </span>
18796
+ </button>
18797
+ <button
18798
+ onClick={[Function]}
18799
+ type="button"
18800
+ >
18801
+ <span
18802
+ className="icon"
18803
+ >
18804
+ _
18805
+ </span>
18806
+ </button>
18807
+ <button
18808
+ onClick={[Function]}
18809
+ type="button"
18810
+ >
18811
+ <span
18812
+ className="icon"
18813
+ >
18814
+ \`
18815
+ </span>
18816
+ </button>
18817
+ <button
18818
+ onClick={[Function]}
18819
+ type="button"
18820
+ >
18821
+ <span
18822
+ className="icon"
18823
+ >
18824
+ {
18825
+ </span>
18826
+ </button>
18827
+ </div>
18828
+ <div
18829
+ className="group"
18830
+ >
18831
+ <button
18832
+ onClick={[Function]}
18833
+ type="button"
18834
+ >
18835
+ <span
18836
+ className="icon"
18837
+ >
18838
+ \\
18839
+ </span>
18840
+ </button>
18841
+ <button
18842
+ className="flip"
18843
+ onClick={[Function]}
18844
+ type="button"
18845
+ >
18846
+ <span
18847
+ className="icon"
18848
+ >
18849
+ \\
18850
+ </span>
18851
+ </button>
18852
+ </div>
18853
+ </div>
18854
+ <div
18855
+ className="content-editable"
18856
+ contentEditable={true}
18857
+ id="instructions"
18858
+ role="textbox"
18859
+ spellCheck={true}
18860
+ />
18861
+ </div>
18862
+ <div
18863
+ className="debugger"
18864
+ >
18865
+ <button
18866
+ className="base button x-main2"
18867
+ onClick={[Function]}
18868
+ type="button"
18869
+ >
18870
+ Open FormDebugger
18871
+ </button>
18872
+ </div>
18873
+ </div>
18874
+ </form>
18875
+ `;
18876
+
18877
+ exports[`Storyshots f/fields/EditorInput Optional 1`] = `
18878
+ <form
18879
+ action="#"
18880
+ onReset={[Function]}
18881
+ onSubmit={[Function]}
18882
+ >
18883
+ <div
18884
+ className="grid"
18885
+ >
18886
+ <label
18887
+ className="base form-label x-paragraph"
18888
+ htmlFor="instructions"
18889
+ style={
18890
+ {
18891
+ "--column-span": "var(--columns)",
18892
+ "--column-span-md": "var(--columns)",
18893
+ }
18894
+ }
18895
+ >
18896
+ Project Instructions
18897
+ (Optional)
18898
+ </label>
18899
+ <div
18900
+ className="base input-wrapper base editor-input y-paragraph"
18901
+ style={
18902
+ {
18903
+ "--column-span": "var(--columns)",
18904
+ "--column-span-md": "var(--columns)",
18905
+ "--resize": "vertical",
18906
+ "--rows": "10em",
18907
+ }
18908
+ }
18909
+ >
18910
+ <div
18911
+ className="base toolbar"
18912
+ >
18913
+ <div
18914
+ className="group"
18915
+ >
18916
+ <button
18917
+ onClick={[Function]}
18918
+ type="button"
18919
+ >
18920
+ <span
18921
+ className="icon"
18922
+ >
18923
+ |
18924
+ </span>
18925
+ </button>
18926
+ <button
18927
+ onClick={[Function]}
18928
+ type="button"
18929
+ >
18930
+ <span
18931
+ className="icon"
18932
+ >
18933
+ }
18934
+ </span>
18935
+ </button>
18936
+ <button
18937
+ onClick={[Function]}
18938
+ type="button"
18939
+ >
18940
+ <span
18941
+ className="icon"
18942
+ >
18943
+ ~
18944
+ </span>
18945
+ </button>
18946
+ <button
18947
+ onClick={[Function]}
18948
+ type="button"
18949
+ >
18950
+ <span
18951
+ className="icon"
18952
+ >
18953
+ ?
18954
+ </span>
18955
+ </button>
18956
+ <button
18957
+ onClick={[Function]}
18958
+ type="button"
18959
+ >
18960
+ <span
18961
+ className="icon"
18962
+ >
18963
+ ]
18964
+ </span>
18965
+ </button>
18966
+ <button
18967
+ onClick={[Function]}
18968
+ type="button"
18969
+ >
18970
+ <span
18971
+ className="icon"
18972
+ >
18973
+ .
18974
+ </span>
18975
+ </button>
18976
+ <button
18977
+ onClick={[Function]}
18978
+ type="button"
18979
+ >
18980
+ <span
18981
+ className="icon"
18982
+ >
18983
+ -
18984
+ </span>
18985
+ </button>
18986
+ </div>
18987
+ <div
18988
+ className="group"
18989
+ >
18990
+ <button
18991
+ onClick={[Function]}
18992
+ type="button"
18993
+ >
18994
+ <span
18995
+ className="icon"
18996
+ >
18997
+ ^
18998
+ </span>
18999
+ </button>
19000
+ <button
19001
+ onClick={[Function]}
19002
+ type="button"
19003
+ >
19004
+ <span
19005
+ className="icon"
19006
+ >
19007
+ _
19008
+ </span>
19009
+ </button>
19010
+ <button
19011
+ onClick={[Function]}
19012
+ type="button"
19013
+ >
19014
+ <span
19015
+ className="icon"
19016
+ >
19017
+ \`
19018
+ </span>
19019
+ </button>
19020
+ <button
19021
+ onClick={[Function]}
19022
+ type="button"
19023
+ >
19024
+ <span
19025
+ className="icon"
19026
+ >
19027
+ {
19028
+ </span>
19029
+ </button>
19030
+ </div>
19031
+ <div
19032
+ className="group"
19033
+ >
19034
+ <button
19035
+ onClick={[Function]}
19036
+ type="button"
19037
+ >
19038
+ <span
19039
+ className="icon"
19040
+ >
19041
+ \\
19042
+ </span>
19043
+ </button>
19044
+ <button
19045
+ className="flip"
19046
+ onClick={[Function]}
19047
+ type="button"
19048
+ >
19049
+ <span
19050
+ className="icon"
19051
+ >
19052
+ \\
19053
+ </span>
19054
+ </button>
19055
+ </div>
19056
+ </div>
19057
+ <div
19058
+ className="content-editable"
19059
+ contentEditable={true}
19060
+ id="instructions"
19061
+ role="textbox"
19062
+ spellCheck={true}
19063
+ />
19064
+ </div>
19065
+ <div
19066
+ className="debugger"
19067
+ >
19068
+ <button
19069
+ className="base button x-main2"
19070
+ onClick={[Function]}
19071
+ type="button"
19072
+ >
19073
+ Open FormDebugger
19074
+ </button>
19075
+ </div>
19076
+ </div>
19077
+ </form>
19078
+ `;
19079
+
18381
19080
  exports[`Storyshots f/fields/LinkInput Base 1`] = `
18382
19081
  <form
18383
19082
  action="#"
@@ -19300,7 +19999,7 @@ exports[`Storyshots f/fields/QueryCombobox Optional 1`] = `
19300
19999
  (Optional)
19301
20000
  </label>
19302
20001
  <div
19303
- className="base input-wrapper base combobox"
20002
+ className="base input-wrapper base combobox y-interactive"
19304
20003
  style={
19305
20004
  {
19306
20005
  "--column-span": "var(--columns)",
@@ -19382,7 +20081,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
19382
20081
  Search for a team
19383
20082
  </label>
19384
20083
  <div
19385
- className="base input-wrapper base combobox"
20084
+ className="base input-wrapper base combobox y-interactive"
19386
20085
  style={
19387
20086
  {
19388
20087
  "--column-span": "var(--columns)",
@@ -19464,7 +20163,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
19464
20163
  Search for a team
19465
20164
  </label>
19466
20165
  <div
19467
- className="base input-wrapper base combobox"
20166
+ className="base input-wrapper base combobox y-interactive"
19468
20167
  style={
19469
20168
  {
19470
20169
  "--column-span": "var(--columns)",