@pareto-engineering/design-system 2.0.0-alpha.46 → 2.0.0-alpha.49

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 (44) hide show
  1. package/dist/cjs/f/FormInput/FormInput.js +7 -0
  2. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +33 -11
  3. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +20 -9
  4. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +40 -17
  5. package/dist/cjs/f/fields/QueryCombobox/common/index.js +9 -1
  6. package/dist/cjs/f/fields/QueryCombobox/styles.scss +11 -5
  7. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +201 -0
  8. package/dist/cjs/f/fields/QuerySelect/index.js +15 -0
  9. package/dist/cjs/f/fields/QuerySelect/styles.scss +21 -0
  10. package/dist/cjs/f/fields/SelectInput/SelectInput.js +15 -3
  11. package/dist/cjs/f/fields/SelectInput/styles.scss +27 -14
  12. package/dist/cjs/f/fields/index.js +9 -1
  13. package/dist/es/f/FormInput/FormInput.js +8 -1
  14. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +34 -12
  15. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +20 -9
  16. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +40 -17
  17. package/dist/es/f/fields/QueryCombobox/common/index.js +2 -1
  18. package/dist/es/f/fields/QueryCombobox/styles.scss +11 -5
  19. package/dist/es/f/fields/QuerySelect/QuerySelect.js +179 -0
  20. package/dist/es/f/fields/QuerySelect/index.js +2 -0
  21. package/dist/es/f/fields/QuerySelect/styles.scss +21 -0
  22. package/dist/es/f/fields/SelectInput/SelectInput.js +14 -3
  23. package/dist/es/f/fields/SelectInput/styles.scss +27 -14
  24. package/dist/es/f/fields/index.js +2 -1
  25. package/package.json +2 -2
  26. package/src/__snapshots__/Storyshots.test.js.snap +783 -237
  27. package/src/local.scss +3 -3
  28. package/src/stories/f/FormInput.stories.jsx +122 -4
  29. package/src/stories/f/QueryCombobox.stories.jsx +59 -10
  30. package/src/stories/f/QuerySelect.stories.jsx +134 -0
  31. package/src/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +122 -0
  32. package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +122 -0
  33. package/src/ui/f/FormInput/FormInput.jsx +10 -0
  34. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +34 -14
  35. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +15 -7
  36. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +318 -0
  37. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +2 -0
  38. package/src/ui/f/fields/QueryCombobox/common/index.js +1 -0
  39. package/src/ui/f/fields/QueryCombobox/styles.scss +11 -5
  40. package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +200 -0
  41. package/src/ui/f/fields/QuerySelect/index.js +2 -0
  42. package/src/ui/f/fields/SelectInput/SelectInput.jsx +16 -3
  43. package/src/ui/f/fields/SelectInput/styles.scss +27 -14
  44. package/src/ui/f/fields/index.js +1 -0
@@ -2663,7 +2663,7 @@ exports[`Storyshots a/Timestamp Distance Format 1`] = `
2663
2663
  className="base timestamp"
2664
2664
  onClick={[Function]}
2665
2665
  >
2666
- in 4 months
2666
+ in 3 months
2667
2667
  </p>
2668
2668
  `;
2669
2669
 
@@ -10366,34 +10366,38 @@ exports[`Storyshots f/FormInput Base 1`] = `
10366
10366
  >
10367
10367
  What do you want for dinner ?
10368
10368
  </label>
10369
- <select
10370
- className="input"
10371
- disabled={false}
10372
- id="food"
10373
- name="food"
10374
- onBlur={[Function]}
10375
- onChange={[Function]}
10376
- value=""
10369
+ <div
10370
+ className="select-wrapper"
10377
10371
  >
10378
- <option
10379
- disabled={false}
10380
- value="italian"
10381
- >
10382
- A nice pizza
10383
- </option>
10384
- <option
10385
- disabled={false}
10386
- value="turkish"
10387
- >
10388
- A delicious kebab
10389
- </option>
10390
- <option
10372
+ <select
10373
+ className="input"
10391
10374
  disabled={false}
10392
- value="french"
10375
+ id="food"
10376
+ name="food"
10377
+ onBlur={[Function]}
10378
+ onChange={[Function]}
10379
+ value=""
10393
10380
  >
10394
- A three course delicate french meal
10395
- </option>
10396
- </select>
10381
+ <option
10382
+ disabled={false}
10383
+ value="italian"
10384
+ >
10385
+ A nice pizza
10386
+ </option>
10387
+ <option
10388
+ disabled={false}
10389
+ value="turkish"
10390
+ >
10391
+ A delicious kebab
10392
+ </option>
10393
+ <option
10394
+ disabled={false}
10395
+ value="french"
10396
+ >
10397
+ A three course delicate french meal
10398
+ </option>
10399
+ </select>
10400
+ </div>
10397
10401
  </div>
10398
10402
  <div
10399
10403
  className="debugger"
@@ -10555,34 +10559,38 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
10555
10559
  >
10556
10560
  What do you want for dinner ?
10557
10561
  </label>
10558
- <select
10559
- className="input"
10560
- disabled={true}
10561
- id="food"
10562
- name="food"
10563
- onBlur={[Function]}
10564
- onChange={[Function]}
10565
- value=""
10562
+ <div
10563
+ className="select-wrapper"
10566
10564
  >
10567
- <option
10568
- disabled={false}
10569
- value="italian"
10570
- >
10571
- A nice pizza
10572
- </option>
10573
- <option
10574
- disabled={false}
10575
- value="turkish"
10576
- >
10577
- A delicious kebab
10578
- </option>
10579
- <option
10580
- disabled={false}
10581
- value="french"
10565
+ <select
10566
+ className="input"
10567
+ disabled={true}
10568
+ id="food"
10569
+ name="food"
10570
+ onBlur={[Function]}
10571
+ onChange={[Function]}
10572
+ value=""
10582
10573
  >
10583
- A three course delicate french meal
10584
- </option>
10585
- </select>
10574
+ <option
10575
+ disabled={false}
10576
+ value="italian"
10577
+ >
10578
+ A nice pizza
10579
+ </option>
10580
+ <option
10581
+ disabled={false}
10582
+ value="turkish"
10583
+ >
10584
+ A delicious kebab
10585
+ </option>
10586
+ <option
10587
+ disabled={false}
10588
+ value="french"
10589
+ >
10590
+ A three course delicate french meal
10591
+ </option>
10592
+ </select>
10593
+ </div>
10586
10594
  </div>
10587
10595
  <div
10588
10596
  className="debugger"
@@ -10637,6 +10645,142 @@ exports[`Storyshots f/FormInput Extensible Form Input 1`] = `
10637
10645
  </form>
10638
10646
  `;
10639
10647
 
10648
+ exports[`Storyshots f/FormInput With Prefetched Query Select 1`] = `
10649
+ <form
10650
+ action="#"
10651
+ onReset={[Function]}
10652
+ onSubmit={[Function]}
10653
+ >
10654
+ <div
10655
+ className="base text-input form-input y-background2"
10656
+ >
10657
+ <label
10658
+ className="base label v50 mb-v x-main2"
10659
+ htmlFor="firstName"
10660
+ >
10661
+ What's your first name ?
10662
+ </label>
10663
+ <input
10664
+ className="input"
10665
+ disabled={false}
10666
+ id="firstName"
10667
+ name="firstName"
10668
+ onBlur={[Function]}
10669
+ onChange={[Function]}
10670
+ type="text"
10671
+ value="Test"
10672
+ />
10673
+ </div>
10674
+ <div
10675
+ className="base choices-input form-input x-background2 y-main2"
10676
+ style={
10677
+ Object {
10678
+ "--grid-columns-desktop": 3,
10679
+ "--grid-columns-mobile": 2,
10680
+ }
10681
+ }
10682
+ >
10683
+ <p
10684
+ className="base label x-main2"
10685
+ >
10686
+ What are your favourite colors ?
10687
+ </p>
10688
+ <div
10689
+ className="choices"
10690
+ >
10691
+ <div
10692
+ className="base choice"
10693
+ >
10694
+ <input
10695
+ disabled={false}
10696
+ id="undefined-red"
10697
+ name="colors"
10698
+ onBlur={[Function]}
10699
+ onChange={[Function]}
10700
+ type="radio"
10701
+ value="red"
10702
+ />
10703
+ <label
10704
+ htmlFor="undefined-red"
10705
+ >
10706
+ Color Red
10707
+ </label>
10708
+ </div>
10709
+ <div
10710
+ className="base choice"
10711
+ >
10712
+ <input
10713
+ disabled={false}
10714
+ id="undefined-blue"
10715
+ name="colors"
10716
+ onBlur={[Function]}
10717
+ onChange={[Function]}
10718
+ type="radio"
10719
+ value="blue"
10720
+ />
10721
+ <label
10722
+ htmlFor="undefined-blue"
10723
+ >
10724
+ Color Blue
10725
+ </label>
10726
+ </div>
10727
+ <div
10728
+ className="base choice"
10729
+ >
10730
+ <input
10731
+ disabled={false}
10732
+ id="undefined-green"
10733
+ name="colors"
10734
+ onBlur={[Function]}
10735
+ onChange={[Function]}
10736
+ type="radio"
10737
+ value="green"
10738
+ />
10739
+ <label
10740
+ htmlFor="undefined-green"
10741
+ >
10742
+ Color Green
10743
+ </label>
10744
+ </div>
10745
+ </div>
10746
+ </div>
10747
+ <div
10748
+ className="base select-input form-input y-background2"
10749
+ >
10750
+ <label
10751
+ className="base label x-main2"
10752
+ htmlFor="status"
10753
+ >
10754
+ Select Task Status
10755
+ </label>
10756
+ <div
10757
+ className="select-wrapper"
10758
+ >
10759
+ <select
10760
+ className="input"
10761
+ disabled={false}
10762
+ id="status"
10763
+ name="status"
10764
+ onBlur={[Function]}
10765
+ onChange={[Function]}
10766
+ value=""
10767
+ />
10768
+ </div>
10769
+ </div>
10770
+ <div
10771
+ className="debugger"
10772
+ >
10773
+ <button
10774
+ className="base button x-main2"
10775
+ onClick={[Function]}
10776
+ type="button"
10777
+ >
10778
+ Open FormDebugger
10779
+ </button>
10780
+ </div>
10781
+ </form>
10782
+ `;
10783
+
10640
10784
  exports[`Storyshots f/FormInput With Query Combobox 1`] = `
10641
10785
  <form
10642
10786
  action="#"
@@ -10737,7 +10881,7 @@ exports[`Storyshots f/FormInput With Query Combobox 1`] = `
10737
10881
  </div>
10738
10882
  </div>
10739
10883
  <div
10740
- className="base combobox form-input y-background2 x-main2"
10884
+ className="base combobox form-input y-background2"
10741
10885
  >
10742
10886
  <label
10743
10887
  className="base label x-main2"
@@ -10778,6 +10922,49 @@ exports[`Storyshots f/FormInput With Query Combobox 1`] = `
10778
10922
  />
10779
10923
  </div>
10780
10924
  </div>
10925
+ <div
10926
+ className="base multiple-combobox form-input y-background2"
10927
+ >
10928
+ <label
10929
+ className="base label x-main2"
10930
+ htmlFor="teams"
10931
+ id="downshift-1-label"
10932
+ >
10933
+ Search for teams
10934
+ </label>
10935
+ <div
10936
+ aria-expanded={false}
10937
+ aria-haspopup="listbox"
10938
+ aria-owns="downshift-1-menu"
10939
+ className="input-wrapper"
10940
+ role="combobox"
10941
+ >
10942
+ <input
10943
+ aria-autocomplete="list"
10944
+ aria-controls="downshift-1-menu"
10945
+ aria-labelledby="downshift-1-label"
10946
+ autoComplete="off"
10947
+ className="input"
10948
+ id="downshift-1-input"
10949
+ onBlur={[Function]}
10950
+ onChange={[Function]}
10951
+ onClick={[Function]}
10952
+ onKeyDown={[Function]}
10953
+ value=""
10954
+ />
10955
+ </div>
10956
+ <div
10957
+ className="base popover x-background1 bottom left"
10958
+ >
10959
+ <ul
10960
+ aria-labelledby="downshift-1-label"
10961
+ className="base menu"
10962
+ id="downshift-1-menu"
10963
+ onMouseLeave={[Function]}
10964
+ role="listbox"
10965
+ />
10966
+ </div>
10967
+ </div>
10781
10968
  <div
10782
10969
  className="debugger"
10783
10970
  >
@@ -11353,6 +11540,216 @@ exports[`Storyshots f/fields/ChoicesInput Multiple With Grid 1`] = `
11353
11540
  </form>
11354
11541
  `;
11355
11542
 
11543
+ exports[`Storyshots f/fields/QueryCombobox Multiple Select 1`] = `
11544
+ <form
11545
+ action="#"
11546
+ onReset={[Function]}
11547
+ onSubmit={[Function]}
11548
+ >
11549
+ <div
11550
+ className="base multiple-combobox y-background2"
11551
+ >
11552
+ <label
11553
+ className="base label x-main2"
11554
+ htmlFor="teams"
11555
+ id="downshift-4-label"
11556
+ >
11557
+ Search for a team
11558
+ </label>
11559
+ <div
11560
+ aria-expanded={false}
11561
+ aria-haspopup="listbox"
11562
+ aria-owns="downshift-4-menu"
11563
+ className="input-wrapper"
11564
+ role="combobox"
11565
+ >
11566
+ <input
11567
+ aria-autocomplete="list"
11568
+ aria-controls="downshift-4-menu"
11569
+ aria-labelledby="downshift-4-label"
11570
+ autoComplete="off"
11571
+ className="input"
11572
+ id="downshift-4-input"
11573
+ onBlur={[Function]}
11574
+ onChange={[Function]}
11575
+ onClick={[Function]}
11576
+ onKeyDown={[Function]}
11577
+ value=""
11578
+ />
11579
+ </div>
11580
+ <div
11581
+ className="base popover x-background1 bottom left"
11582
+ >
11583
+ <ul
11584
+ aria-labelledby="downshift-4-label"
11585
+ className="base menu"
11586
+ id="downshift-4-menu"
11587
+ onMouseLeave={[Function]}
11588
+ role="listbox"
11589
+ />
11590
+ </div>
11591
+ </div>
11592
+ <div
11593
+ style={
11594
+ Object {
11595
+ "alignItems": "flex-end",
11596
+ "display": "flex",
11597
+ "flexDirection": "column",
11598
+ }
11599
+ }
11600
+ >
11601
+ <div
11602
+ className="debugger"
11603
+ >
11604
+ <button
11605
+ className="base button x-main2"
11606
+ onClick={[Function]}
11607
+ type="button"
11608
+ >
11609
+ Open FormDebugger
11610
+ </button>
11611
+ </div>
11612
+ <button
11613
+ className="base button x-main1"
11614
+ onClick={[Function]}
11615
+ type="button"
11616
+ >
11617
+ Add formik values
11618
+ </button>
11619
+ </div>
11620
+ </form>
11621
+ `;
11622
+
11623
+ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Default Formik State 1`] = `
11624
+ <form
11625
+ action="#"
11626
+ onReset={[Function]}
11627
+ onSubmit={[Function]}
11628
+ >
11629
+ <div
11630
+ className="base multiple-combobox y-background2"
11631
+ >
11632
+ <label
11633
+ className="base label x-main2"
11634
+ htmlFor="teams"
11635
+ id="downshift-5-label"
11636
+ >
11637
+ Search for a team
11638
+ </label>
11639
+ <div
11640
+ className="selected-items"
11641
+ >
11642
+ <div
11643
+ className="item"
11644
+ onClick={[Function]}
11645
+ onKeyDown={[Function]}
11646
+ tabIndex={-1}
11647
+ >
11648
+ <button
11649
+ className="base button x-background2 modifierCompact modifierSimple"
11650
+ onClick={[Function]}
11651
+ type="button"
11652
+ >
11653
+ <span
11654
+ className="v25 mr-v"
11655
+ >
11656
+ Apple
11657
+ </span>
11658
+ <span
11659
+ className="f-icons close"
11660
+ >
11661
+ Y
11662
+ </span>
11663
+ </button>
11664
+ </div>
11665
+ <div
11666
+ className="item"
11667
+ onClick={[Function]}
11668
+ onKeyDown={[Function]}
11669
+ tabIndex={-1}
11670
+ >
11671
+ <button
11672
+ className="base button x-background2 modifierCompact modifierSimple"
11673
+ onClick={[Function]}
11674
+ type="button"
11675
+ >
11676
+ <span
11677
+ className="v25 mr-v"
11678
+ >
11679
+ Pear
11680
+ </span>
11681
+ <span
11682
+ className="f-icons close"
11683
+ >
11684
+ Y
11685
+ </span>
11686
+ </button>
11687
+ </div>
11688
+ </div>
11689
+ <div
11690
+ aria-expanded={false}
11691
+ aria-haspopup="listbox"
11692
+ aria-owns="downshift-5-menu"
11693
+ className="input-wrapper"
11694
+ role="combobox"
11695
+ >
11696
+ <input
11697
+ aria-autocomplete="list"
11698
+ aria-controls="downshift-5-menu"
11699
+ aria-labelledby="downshift-5-label"
11700
+ autoComplete="off"
11701
+ className="input"
11702
+ id="downshift-5-input"
11703
+ onBlur={[Function]}
11704
+ onChange={[Function]}
11705
+ onClick={[Function]}
11706
+ onKeyDown={[Function]}
11707
+ value=""
11708
+ />
11709
+ </div>
11710
+ <div
11711
+ className="base popover x-background1 bottom left"
11712
+ >
11713
+ <ul
11714
+ aria-labelledby="downshift-5-label"
11715
+ className="base menu"
11716
+ id="downshift-5-menu"
11717
+ onMouseLeave={[Function]}
11718
+ role="listbox"
11719
+ />
11720
+ </div>
11721
+ </div>
11722
+ <div
11723
+ style={
11724
+ Object {
11725
+ "alignItems": "flex-end",
11726
+ "display": "flex",
11727
+ "flexDirection": "column",
11728
+ }
11729
+ }
11730
+ >
11731
+ <div
11732
+ className="debugger"
11733
+ >
11734
+ <button
11735
+ className="base button x-main2"
11736
+ onClick={[Function]}
11737
+ type="button"
11738
+ >
11739
+ Open FormDebugger
11740
+ </button>
11741
+ </div>
11742
+ <button
11743
+ className="base button x-main1"
11744
+ onClick={[Function]}
11745
+ type="button"
11746
+ >
11747
+ Add formik values
11748
+ </button>
11749
+ </div>
11750
+ </form>
11751
+ `;
11752
+
11356
11753
  exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
11357
11754
  <form
11358
11755
  action="#"
@@ -11360,29 +11757,29 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
11360
11757
  onSubmit={[Function]}
11361
11758
  >
11362
11759
  <div
11363
- className="base combobox y-background2 x-main2"
11760
+ className="base combobox y-background2"
11364
11761
  >
11365
11762
  <label
11366
11763
  className="base label x-main2"
11367
11764
  htmlFor="team"
11368
- id="downshift-1-label"
11765
+ id="downshift-2-label"
11369
11766
  >
11370
11767
  Search for a team
11371
11768
  </label>
11372
11769
  <div
11373
11770
  aria-expanded={false}
11374
11771
  aria-haspopup="listbox"
11375
- aria-owns="downshift-1-menu"
11772
+ aria-owns="downshift-2-menu"
11376
11773
  className="input-wrapper"
11377
11774
  role="combobox"
11378
11775
  >
11379
11776
  <input
11380
11777
  aria-autocomplete="list"
11381
- aria-controls="downshift-1-menu"
11382
- aria-labelledby="downshift-1-label"
11778
+ aria-controls="downshift-2-menu"
11779
+ aria-labelledby="downshift-2-label"
11383
11780
  autoComplete="off"
11384
11781
  className="input"
11385
- id="downshift-1-input"
11782
+ id="downshift-2-input"
11386
11783
  onBlur={[Function]}
11387
11784
  onChange={[Function]}
11388
11785
  onKeyDown={[Function]}
@@ -11393,9 +11790,9 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
11393
11790
  className="base popover x-background1 bottom left"
11394
11791
  >
11395
11792
  <ul
11396
- aria-labelledby="downshift-1-label"
11793
+ aria-labelledby="downshift-2-label"
11397
11794
  className="base menu"
11398
- id="downshift-1-menu"
11795
+ id="downshift-2-menu"
11399
11796
  onMouseLeave={[Function]}
11400
11797
  role="listbox"
11401
11798
  />
@@ -11426,7 +11823,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
11426
11823
  onClick={[Function]}
11427
11824
  type="button"
11428
11825
  >
11429
- Replace initial value
11826
+ Replace formik value
11430
11827
  </button>
11431
11828
  </div>
11432
11829
  </form>
@@ -11439,29 +11836,29 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
11439
11836
  onSubmit={[Function]}
11440
11837
  >
11441
11838
  <div
11442
- className="base combobox y-background2 x-main2"
11839
+ className="base combobox y-background2"
11443
11840
  >
11444
11841
  <label
11445
11842
  className="base label x-main2"
11446
11843
  htmlFor="team"
11447
- id="downshift-2-label"
11844
+ id="downshift-3-label"
11448
11845
  >
11449
11846
  Search for a team
11450
11847
  </label>
11451
11848
  <div
11452
11849
  aria-expanded={false}
11453
11850
  aria-haspopup="listbox"
11454
- aria-owns="downshift-2-menu"
11851
+ aria-owns="downshift-3-menu"
11455
11852
  className="input-wrapper"
11456
11853
  role="combobox"
11457
11854
  >
11458
11855
  <input
11459
11856
  aria-autocomplete="list"
11460
- aria-controls="downshift-2-menu"
11461
- aria-labelledby="downshift-2-label"
11857
+ aria-controls="downshift-3-menu"
11858
+ aria-labelledby="downshift-3-label"
11462
11859
  autoComplete="off"
11463
11860
  className="input"
11464
- id="downshift-2-input"
11861
+ id="downshift-3-input"
11465
11862
  onBlur={[Function]}
11466
11863
  onChange={[Function]}
11467
11864
  onKeyDown={[Function]}
@@ -11472,9 +11869,9 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
11472
11869
  className="base popover x-background1 bottom left"
11473
11870
  >
11474
11871
  <ul
11475
- aria-labelledby="downshift-2-label"
11872
+ aria-labelledby="downshift-3-label"
11476
11873
  className="base menu"
11477
- id="downshift-2-menu"
11874
+ id="downshift-3-menu"
11478
11875
  onMouseLeave={[Function]}
11479
11876
  role="listbox"
11480
11877
  />
@@ -11505,7 +11902,136 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
11505
11902
  onClick={[Function]}
11506
11903
  type="button"
11507
11904
  >
11508
- Replace initial value
11905
+ Replace formik value
11906
+ </button>
11907
+ </div>
11908
+ </form>
11909
+ `;
11910
+
11911
+ exports[`Storyshots f/fields/QuerySelect Base 1`] = `
11912
+ <form
11913
+ action="#"
11914
+ onReset={[Function]}
11915
+ onSubmit={[Function]}
11916
+ >
11917
+ <div
11918
+ className="base select-input y-background2"
11919
+ >
11920
+ <label
11921
+ className="base label x-main2"
11922
+ htmlFor="status"
11923
+ >
11924
+ Select Task Status
11925
+ </label>
11926
+ <div
11927
+ className="select-wrapper"
11928
+ >
11929
+ <select
11930
+ className="input"
11931
+ disabled={false}
11932
+ id="status"
11933
+ name="status"
11934
+ onBlur={[Function]}
11935
+ onChange={[Function]}
11936
+ value=""
11937
+ />
11938
+ </div>
11939
+ </div>
11940
+ <div
11941
+ className="debugger"
11942
+ >
11943
+ <button
11944
+ className="base button x-main2"
11945
+ onClick={[Function]}
11946
+ type="button"
11947
+ >
11948
+ Open FormDebugger
11949
+ </button>
11950
+ </div>
11951
+ </form>
11952
+ `;
11953
+
11954
+ exports[`Storyshots f/fields/QuerySelect Loading Options 1`] = `
11955
+ <form
11956
+ action="#"
11957
+ onReset={[Function]}
11958
+ onSubmit={[Function]}
11959
+ >
11960
+ <div
11961
+ className="base select-input y-background2"
11962
+ >
11963
+ <label
11964
+ className="base label x-main2"
11965
+ htmlFor="status"
11966
+ >
11967
+ Select Task Status
11968
+ </label>
11969
+ <div
11970
+ className="select-wrapper"
11971
+ >
11972
+ <select
11973
+ className="input"
11974
+ disabled={false}
11975
+ id="status"
11976
+ name="status"
11977
+ onBlur={[Function]}
11978
+ onChange={[Function]}
11979
+ value=""
11980
+ />
11981
+ </div>
11982
+ </div>
11983
+ <div
11984
+ className="debugger"
11985
+ >
11986
+ <button
11987
+ className="base button x-main2"
11988
+ onClick={[Function]}
11989
+ type="button"
11990
+ >
11991
+ Open FormDebugger
11992
+ </button>
11993
+ </div>
11994
+ </form>
11995
+ `;
11996
+
11997
+ exports[`Storyshots f/fields/QuerySelect With Default Value 1`] = `
11998
+ <form
11999
+ action="#"
12000
+ onReset={[Function]}
12001
+ onSubmit={[Function]}
12002
+ >
12003
+ <div
12004
+ className="base select-input y-background2"
12005
+ >
12006
+ <label
12007
+ className="base label x-main2"
12008
+ htmlFor="status"
12009
+ >
12010
+ Select Task Status
12011
+ </label>
12012
+ <div
12013
+ className="select-wrapper"
12014
+ >
12015
+ <select
12016
+ className="input"
12017
+ disabled={false}
12018
+ id="status"
12019
+ name="status"
12020
+ onBlur={[Function]}
12021
+ onChange={[Function]}
12022
+ value="VGFza1N0YXR1c05vZGU6NGRiYjNlMmItMGIxYy00ZjIxLTk0MmUtZTNjZGQwMjdiNjU3"
12023
+ />
12024
+ </div>
12025
+ </div>
12026
+ <div
12027
+ className="debugger"
12028
+ >
12029
+ <button
12030
+ className="base button x-main2"
12031
+ onClick={[Function]}
12032
+ type="button"
12033
+ >
12034
+ Open FormDebugger
11509
12035
  </button>
11510
12036
  </div>
11511
12037
  </form>
@@ -12313,40 +12839,44 @@ exports[`Storyshots f/fields/SelectInput Base 1`] = `
12313
12839
  >
12314
12840
  Work Type
12315
12841
  </label>
12316
- <select
12317
- className="input"
12318
- disabled={false}
12319
- id="workType"
12320
- name="workType"
12321
- onBlur={[Function]}
12322
- onChange={[Function]}
12323
- value=""
12842
+ <div
12843
+ className="select-wrapper"
12324
12844
  >
12325
- <option
12326
- disabled={true}
12327
- value=""
12328
- >
12329
- Select an option
12330
- </option>
12331
- <option
12332
- disabled={false}
12333
- value="Work"
12334
- >
12335
- Work
12336
- </option>
12337
- <option
12338
- disabled={false}
12339
- value="Managing"
12340
- >
12341
- Managing
12342
- </option>
12343
- <option
12845
+ <select
12846
+ className="input"
12344
12847
  disabled={false}
12345
- value="Training"
12848
+ id="workType"
12849
+ name="workType"
12850
+ onBlur={[Function]}
12851
+ onChange={[Function]}
12852
+ value=""
12346
12853
  >
12347
- Training
12348
- </option>
12349
- </select>
12854
+ <option
12855
+ disabled={true}
12856
+ value=""
12857
+ >
12858
+ Select an option
12859
+ </option>
12860
+ <option
12861
+ disabled={false}
12862
+ value="Work"
12863
+ >
12864
+ Work
12865
+ </option>
12866
+ <option
12867
+ disabled={false}
12868
+ value="Managing"
12869
+ >
12870
+ Managing
12871
+ </option>
12872
+ <option
12873
+ disabled={false}
12874
+ value="Training"
12875
+ >
12876
+ Training
12877
+ </option>
12878
+ </select>
12879
+ </div>
12350
12880
  </div>
12351
12881
  <div
12352
12882
  className="debugger"
@@ -12377,52 +12907,56 @@ exports[`Storyshots f/fields/SelectInput Disabled Select Input 1`] = `
12377
12907
  >
12378
12908
  Work Type
12379
12909
  </label>
12380
- <select
12381
- className="input"
12382
- disabled={true}
12383
- id="workType"
12384
- name="workType"
12385
- onBlur={[Function]}
12386
- onChange={[Function]}
12387
- value=""
12910
+ <div
12911
+ className="select-wrapper"
12388
12912
  >
12389
- <option
12913
+ <select
12914
+ className="input"
12390
12915
  disabled={true}
12916
+ id="workType"
12917
+ name="workType"
12918
+ onBlur={[Function]}
12919
+ onChange={[Function]}
12391
12920
  value=""
12392
12921
  >
12393
- Select an option
12394
- </option>
12395
- <option
12396
- disabled={false}
12397
- value="Work"
12398
- >
12399
- Work
12400
- </option>
12401
- <option
12402
- disabled={false}
12403
- value="Managing"
12404
- >
12405
- Managing
12406
- </option>
12407
- <option
12408
- disabled={false}
12409
- value="Training"
12410
- >
12411
- Training
12412
- </option>
12413
- <option
12414
- disabled={false}
12415
- value="20th Aug 2020 to 19th Sept, 2020"
12416
- >
12417
- 20th Aug 2020 to 19th Sept, 2020
12418
- </option>
12419
- <option
12420
- disabled={false}
12421
- value="20th Sept 2020 to 19th Oct, 2020"
12422
- >
12423
- 20th Sept 2020 to 19th Oct, 2020
12424
- </option>
12425
- </select>
12922
+ <option
12923
+ disabled={true}
12924
+ value=""
12925
+ >
12926
+ Select an option
12927
+ </option>
12928
+ <option
12929
+ disabled={false}
12930
+ value="Work"
12931
+ >
12932
+ Work
12933
+ </option>
12934
+ <option
12935
+ disabled={false}
12936
+ value="Managing"
12937
+ >
12938
+ Managing
12939
+ </option>
12940
+ <option
12941
+ disabled={false}
12942
+ value="Training"
12943
+ >
12944
+ Training
12945
+ </option>
12946
+ <option
12947
+ disabled={false}
12948
+ value="20th Aug 2020 to 19th Sept, 2020"
12949
+ >
12950
+ 20th Aug 2020 to 19th Sept, 2020
12951
+ </option>
12952
+ <option
12953
+ disabled={false}
12954
+ value="20th Sept 2020 to 19th Oct, 2020"
12955
+ >
12956
+ 20th Sept 2020 to 19th Oct, 2020
12957
+ </option>
12958
+ </select>
12959
+ </div>
12426
12960
  </div>
12427
12961
  <div
12428
12962
  className="debugger"
@@ -12453,34 +12987,38 @@ exports[`Storyshots f/fields/SelectInput Objects 1`] = `
12453
12987
  >
12454
12988
  Work Type
12455
12989
  </label>
12456
- <select
12457
- className="input"
12458
- disabled={false}
12459
- id="workType"
12460
- name="workType"
12461
- onBlur={[Function]}
12462
- onChange={[Function]}
12463
- value=""
12990
+ <div
12991
+ className="select-wrapper"
12464
12992
  >
12465
- <option
12466
- disabled={true}
12467
- value=""
12468
- >
12469
- Select an option
12470
- </option>
12471
- <option
12472
- disabled={false}
12473
- value="20th Aug 2020 to 19th Sept, 2020"
12474
- >
12475
- 20th Aug 2020 to 19th Sept, 2020
12476
- </option>
12477
- <option
12993
+ <select
12994
+ className="input"
12478
12995
  disabled={false}
12479
- value="20th Sept 2020 to 19th Oct, 2020"
12996
+ id="workType"
12997
+ name="workType"
12998
+ onBlur={[Function]}
12999
+ onChange={[Function]}
13000
+ value=""
12480
13001
  >
12481
- 20th Sept 2020 to 19th Oct, 2020
12482
- </option>
12483
- </select>
13002
+ <option
13003
+ disabled={true}
13004
+ value=""
13005
+ >
13006
+ Select an option
13007
+ </option>
13008
+ <option
13009
+ disabled={false}
13010
+ value="20th Aug 2020 to 19th Sept, 2020"
13011
+ >
13012
+ 20th Aug 2020 to 19th Sept, 2020
13013
+ </option>
13014
+ <option
13015
+ disabled={false}
13016
+ value="20th Sept 2020 to 19th Oct, 2020"
13017
+ >
13018
+ 20th Sept 2020 to 19th Oct, 2020
13019
+ </option>
13020
+ </select>
13021
+ </div>
12484
13022
  </div>
12485
13023
  <div
12486
13024
  className="debugger"
@@ -12511,34 +13049,38 @@ exports[`Storyshots f/fields/SelectInput Required Select 1`] = `
12511
13049
  >
12512
13050
  Activity Type
12513
13051
  </label>
12514
- <select
12515
- className="input"
12516
- disabled={false}
12517
- id="activity"
12518
- name="activity"
12519
- onBlur={[Function]}
12520
- onChange={[Function]}
12521
- value=""
13052
+ <div
13053
+ className="select-wrapper"
12522
13054
  >
12523
- <option
12524
- disabled={true}
12525
- value=""
12526
- >
12527
- Select an option
12528
- </option>
12529
- <option
12530
- disabled={false}
12531
- value="review"
12532
- >
12533
- Review
12534
- </option>
12535
- <option
13055
+ <select
13056
+ className="input"
12536
13057
  disabled={false}
12537
- value="Approve"
13058
+ id="activity"
13059
+ name="activity"
13060
+ onBlur={[Function]}
13061
+ onChange={[Function]}
13062
+ value=""
12538
13063
  >
12539
- Approve
12540
- </option>
12541
- </select>
13064
+ <option
13065
+ disabled={true}
13066
+ value=""
13067
+ >
13068
+ Select an option
13069
+ </option>
13070
+ <option
13071
+ disabled={false}
13072
+ value="review"
13073
+ >
13074
+ Review
13075
+ </option>
13076
+ <option
13077
+ disabled={false}
13078
+ value="Approve"
13079
+ >
13080
+ Approve
13081
+ </option>
13082
+ </select>
13083
+ </div>
12542
13084
  </div>
12543
13085
  <div
12544
13086
  className="debugger"
@@ -12569,52 +13111,56 @@ exports[`Storyshots f/fields/SelectInput String And Objects 1`] = `
12569
13111
  >
12570
13112
  Work Type
12571
13113
  </label>
12572
- <select
12573
- className="input"
12574
- disabled={false}
12575
- id="workType"
12576
- name="workType"
12577
- onBlur={[Function]}
12578
- onChange={[Function]}
12579
- value=""
13114
+ <div
13115
+ className="select-wrapper"
12580
13116
  >
12581
- <option
12582
- disabled={true}
12583
- value=""
12584
- >
12585
- Select an option
12586
- </option>
12587
- <option
12588
- disabled={false}
12589
- value="Work"
12590
- >
12591
- Work
12592
- </option>
12593
- <option
12594
- disabled={false}
12595
- value="Managing"
12596
- >
12597
- Managing
12598
- </option>
12599
- <option
12600
- disabled={false}
12601
- value="Training"
12602
- >
12603
- Training
12604
- </option>
12605
- <option
12606
- disabled={false}
12607
- value="20th Aug 2020 to 19th Sept, 2020"
12608
- >
12609
- 20th Aug 2020 to 19th Sept, 2020
12610
- </option>
12611
- <option
13117
+ <select
13118
+ className="input"
12612
13119
  disabled={false}
12613
- value="20th Sept 2020 to 19th Oct, 2020"
13120
+ id="workType"
13121
+ name="workType"
13122
+ onBlur={[Function]}
13123
+ onChange={[Function]}
13124
+ value=""
12614
13125
  >
12615
- 20th Sept 2020 to 19th Oct, 2020
12616
- </option>
12617
- </select>
13126
+ <option
13127
+ disabled={true}
13128
+ value=""
13129
+ >
13130
+ Select an option
13131
+ </option>
13132
+ <option
13133
+ disabled={false}
13134
+ value="Work"
13135
+ >
13136
+ Work
13137
+ </option>
13138
+ <option
13139
+ disabled={false}
13140
+ value="Managing"
13141
+ >
13142
+ Managing
13143
+ </option>
13144
+ <option
13145
+ disabled={false}
13146
+ value="Training"
13147
+ >
13148
+ Training
13149
+ </option>
13150
+ <option
13151
+ disabled={false}
13152
+ value="20th Aug 2020 to 19th Sept, 2020"
13153
+ >
13154
+ 20th Aug 2020 to 19th Sept, 2020
13155
+ </option>
13156
+ <option
13157
+ disabled={false}
13158
+ value="20th Sept 2020 to 19th Oct, 2020"
13159
+ >
13160
+ 20th Sept 2020 to 19th Oct, 2020
13161
+ </option>
13162
+ </select>
13163
+ </div>
12618
13164
  </div>
12619
13165
  <div
12620
13166
  className="debugger"