@pareto-engineering/design-system 2.0.0-alpha.64 → 2.0.0-alpha.66

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 (49) hide show
  1. package/dist/cjs/a/ContentTree/ContentTree.js +1 -1
  2. package/dist/cjs/f/common/Label/Label.js +10 -4
  3. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +9 -2
  4. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +8 -1
  5. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +27 -6
  6. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +23 -4
  7. package/dist/cjs/f/fields/QueryCombobox/styles.scss +2 -1
  8. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +8 -1
  9. package/dist/cjs/f/fields/SelectInput/SelectInput.js +9 -2
  10. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +9 -2
  11. package/dist/cjs/v3/Button/Button.js +70 -0
  12. package/dist/cjs/v3/Button/index.js +15 -0
  13. package/dist/cjs/v3/Button/styles.scss +9 -0
  14. package/dist/cjs/v3/index.js +13 -0
  15. package/dist/es/a/ContentTree/ContentTree.js +1 -1
  16. package/dist/es/f/common/Label/Label.js +10 -4
  17. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +9 -2
  18. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +8 -1
  19. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +27 -7
  20. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +23 -4
  21. package/dist/es/f/fields/QueryCombobox/styles.scss +2 -1
  22. package/dist/es/f/fields/QuerySelect/QuerySelect.js +8 -1
  23. package/dist/es/f/fields/SelectInput/SelectInput.js +9 -2
  24. package/dist/es/f/fields/TextareaInput/TextareaInput.js +9 -2
  25. package/dist/es/v3/Button/Button.js +54 -0
  26. package/dist/es/v3/Button/index.js +2 -0
  27. package/dist/es/v3/Button/styles.scss +9 -0
  28. package/dist/es/v3/index.js +1 -0
  29. package/package.json +1 -1
  30. package/src/__snapshots__/Storyshots.test.js.snap +682 -28
  31. package/src/stories/f/Checkbox.stories.jsx +1 -1
  32. package/src/stories/f/ChoicesInput.stories.jsx +8 -0
  33. package/src/stories/f/Label.stories.jsx +8 -3
  34. package/src/stories/f/QueryCombobox.stories.jsx +6 -0
  35. package/src/stories/f/QuerySelect.stories.jsx +8 -1
  36. package/src/stories/f/RatingsInput.stories.jsx +7 -0
  37. package/src/stories/f/SelectInput.stories.jsx +7 -0
  38. package/src/stories/f/TextInput.stories.jsx +7 -0
  39. package/src/stories/f/TextareaInput.stories.jsx +7 -0
  40. package/src/ui/a/ContentTree/ContentTree.jsx +1 -1
  41. package/src/ui/f/common/Label/Label.jsx +9 -3
  42. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +7 -1
  43. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +7 -0
  44. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +26 -3
  45. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +27 -1
  46. package/src/ui/f/fields/QueryCombobox/styles.scss +2 -1
  47. package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +7 -0
  48. package/src/ui/f/fields/SelectInput/SelectInput.jsx +7 -1
  49. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +7 -0
@@ -3729,7 +3729,7 @@ exports[`Storyshots a/Timestamp Distance Format 1`] = `
3729
3729
  className="base timestamp"
3730
3730
  onClick={[Function]}
3731
3731
  >
3732
- 24 days ago
3732
+ about 2 months ago
3733
3733
  </p>
3734
3734
  `;
3735
3735
 
@@ -12297,6 +12297,15 @@ exports[`Storyshots f/common/Label Base 1`] = `
12297
12297
  </label>
12298
12298
  `;
12299
12299
 
12300
+ exports[`Storyshots f/common/Label Optional 1`] = `
12301
+ <label
12302
+ className="base form-label x-main2"
12303
+ >
12304
+ Sample Label
12305
+ (Optional)
12306
+ </label>
12307
+ `;
12308
+
12300
12309
  exports[`Storyshots f/fields/Checkbox Base 1`] = `
12301
12310
  <form
12302
12311
  action="#"
@@ -12374,6 +12383,13 @@ exports[`Storyshots f/fields/Checkbox Optional 1`] = `
12374
12383
  <div
12375
12384
  className="base checkbox"
12376
12385
  >
12386
+ <label
12387
+ className="base form-label x-main2"
12388
+ htmlFor="urgent"
12389
+ >
12390
+ Urgent
12391
+ (Optional)
12392
+ </label>
12377
12393
  <input
12378
12394
  checked={false}
12379
12395
  className="input"
@@ -13644,6 +13660,199 @@ exports[`Storyshots f/fields/ChoicesInput Multiple With Grid 1`] = `
13644
13660
  </form>
13645
13661
  `;
13646
13662
 
13663
+ exports[`Storyshots f/fields/ChoicesInput Optional 1`] = `
13664
+ <form
13665
+ action="#"
13666
+ onReset={[Function]}
13667
+ onSubmit={[Function]}
13668
+ >
13669
+ <div
13670
+ className="base choices-input x-background2 y-main2"
13671
+ id="colors"
13672
+ style={
13673
+ Object {
13674
+ "--grid-columns-desktop": 3,
13675
+ "--grid-columns-mobile": 2,
13676
+ }
13677
+ }
13678
+ >
13679
+ <p
13680
+ className="base form-label x-main2"
13681
+ >
13682
+ Select color
13683
+ (Optional)
13684
+ </p>
13685
+ <div
13686
+ className="choices"
13687
+ >
13688
+ <div
13689
+ className="base choice"
13690
+ >
13691
+ <input
13692
+ checked={false}
13693
+ disabled={false}
13694
+ id="color-red"
13695
+ name="color"
13696
+ onBlur={[Function]}
13697
+ onChange={[Function]}
13698
+ type="radio"
13699
+ value="red"
13700
+ />
13701
+ <label
13702
+ htmlFor="color-red"
13703
+ >
13704
+ Color Red
13705
+ </label>
13706
+ </div>
13707
+ <div
13708
+ className="base choice"
13709
+ >
13710
+ <input
13711
+ checked={false}
13712
+ disabled={false}
13713
+ id="color-blue"
13714
+ name="color"
13715
+ onBlur={[Function]}
13716
+ onChange={[Function]}
13717
+ type="radio"
13718
+ value="blue"
13719
+ />
13720
+ <label
13721
+ htmlFor="color-blue"
13722
+ >
13723
+ Color Blue
13724
+ </label>
13725
+ </div>
13726
+ <div
13727
+ className="base choice"
13728
+ >
13729
+ <input
13730
+ checked={false}
13731
+ disabled={false}
13732
+ id="color-green"
13733
+ name="color"
13734
+ onBlur={[Function]}
13735
+ onChange={[Function]}
13736
+ type="radio"
13737
+ value="green"
13738
+ />
13739
+ <label
13740
+ htmlFor="color-green"
13741
+ >
13742
+ Color Green
13743
+ </label>
13744
+ </div>
13745
+ <div
13746
+ className="base choice"
13747
+ >
13748
+ <input
13749
+ checked={false}
13750
+ disabled={false}
13751
+ id="color-yellow"
13752
+ name="color"
13753
+ onBlur={[Function]}
13754
+ onChange={[Function]}
13755
+ type="radio"
13756
+ value="yellow"
13757
+ />
13758
+ <label
13759
+ htmlFor="color-yellow"
13760
+ >
13761
+ Color Yellow
13762
+ </label>
13763
+ </div>
13764
+ <div
13765
+ className="base choice"
13766
+ >
13767
+ <input
13768
+ checked={false}
13769
+ disabled={false}
13770
+ id="color-oarnge"
13771
+ name="color"
13772
+ onBlur={[Function]}
13773
+ onChange={[Function]}
13774
+ type="radio"
13775
+ value="oarnge"
13776
+ />
13777
+ <label
13778
+ htmlFor="color-oarnge"
13779
+ >
13780
+ Color Orange
13781
+ </label>
13782
+ </div>
13783
+ <div
13784
+ className="base choice"
13785
+ >
13786
+ <input
13787
+ checked={false}
13788
+ disabled={false}
13789
+ id="color-violet"
13790
+ name="color"
13791
+ onBlur={[Function]}
13792
+ onChange={[Function]}
13793
+ type="radio"
13794
+ value="violet"
13795
+ />
13796
+ <label
13797
+ htmlFor="color-violet"
13798
+ >
13799
+ Color Violet
13800
+ </label>
13801
+ </div>
13802
+ <div
13803
+ className="base choice"
13804
+ >
13805
+ <input
13806
+ checked={false}
13807
+ disabled={false}
13808
+ id="color-brown"
13809
+ name="color"
13810
+ onBlur={[Function]}
13811
+ onChange={[Function]}
13812
+ type="radio"
13813
+ value="brown"
13814
+ />
13815
+ <label
13816
+ htmlFor="color-brown"
13817
+ >
13818
+ Color Brown
13819
+ </label>
13820
+ </div>
13821
+ <div
13822
+ className="base choice"
13823
+ >
13824
+ <input
13825
+ checked={false}
13826
+ disabled={false}
13827
+ id="color-black"
13828
+ name="color"
13829
+ onBlur={[Function]}
13830
+ onChange={[Function]}
13831
+ type="radio"
13832
+ value="black"
13833
+ />
13834
+ <label
13835
+ htmlFor="color-black"
13836
+ >
13837
+ Color Black
13838
+ </label>
13839
+ </div>
13840
+ </div>
13841
+ </div>
13842
+ <div
13843
+ className="debugger"
13844
+ >
13845
+ <button
13846
+ className="base button x-main2"
13847
+ onClick={[Function]}
13848
+ type="button"
13849
+ >
13850
+ Open FormDebugger
13851
+ </button>
13852
+ </div>
13853
+ </form>
13854
+ `;
13855
+
13647
13856
  exports[`Storyshots f/fields/ChoicesInput With Default Formik Value 1`] = `
13648
13857
  <form
13649
13858
  action="#"
@@ -13843,25 +14052,25 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select 1`] = `
13843
14052
  <label
13844
14053
  className="base form-label x-main2"
13845
14054
  htmlFor="teams"
13846
- id="downshift-4-label"
14055
+ id="downshift-5-label"
13847
14056
  >
13848
14057
  Search for a team
13849
14058
  </label>
13850
14059
  <div
13851
14060
  aria-expanded={false}
13852
14061
  aria-haspopup="listbox"
13853
- aria-owns="downshift-4-menu"
14062
+ aria-owns="downshift-5-menu"
13854
14063
  className="input-wrapper"
13855
14064
  role="combobox"
13856
14065
  >
13857
14066
  <input
13858
14067
  aria-autocomplete="list"
13859
- aria-controls="downshift-4-menu"
13860
- aria-labelledby="downshift-4-label"
14068
+ aria-controls="downshift-5-menu"
14069
+ aria-labelledby="downshift-5-label"
13861
14070
  autoComplete="off"
13862
14071
  className="input"
13863
14072
  disabled={false}
13864
- id="downshift-4-input"
14073
+ id="downshift-5-input"
13865
14074
  onBlur={[Function]}
13866
14075
  onChange={[Function]}
13867
14076
  onClick={[Function]}
@@ -13873,9 +14082,9 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select 1`] = `
13873
14082
  className="base popover x-background1 bottom left"
13874
14083
  >
13875
14084
  <ul
13876
- aria-labelledby="downshift-4-label"
14085
+ aria-labelledby="downshift-5-label"
13877
14086
  className="base menu"
13878
- id="downshift-4-menu"
14087
+ id="downshift-5-menu"
13879
14088
  onMouseLeave={[Function]}
13880
14089
  role="listbox"
13881
14090
  />
@@ -13924,7 +14133,7 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Default Formik S
13924
14133
  <label
13925
14134
  className="base form-label x-main2"
13926
14135
  htmlFor="teams"
13927
- id="downshift-5-label"
14136
+ id="downshift-6-label"
13928
14137
  >
13929
14138
  Search for a team
13930
14139
  </label>
@@ -13981,18 +14190,18 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Default Formik S
13981
14190
  <div
13982
14191
  aria-expanded={false}
13983
14192
  aria-haspopup="listbox"
13984
- aria-owns="downshift-5-menu"
14193
+ aria-owns="downshift-6-menu"
13985
14194
  className="input-wrapper"
13986
14195
  role="combobox"
13987
14196
  >
13988
14197
  <input
13989
14198
  aria-autocomplete="list"
13990
- aria-controls="downshift-5-menu"
13991
- aria-labelledby="downshift-5-label"
14199
+ aria-controls="downshift-6-menu"
14200
+ aria-labelledby="downshift-6-label"
13992
14201
  autoComplete="off"
13993
14202
  className="input"
13994
14203
  disabled={false}
13995
- id="downshift-5-input"
14204
+ id="downshift-6-input"
13996
14205
  onBlur={[Function]}
13997
14206
  onChange={[Function]}
13998
14207
  onClick={[Function]}
@@ -14004,9 +14213,9 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Default Formik S
14004
14213
  className="base popover x-background1 bottom left"
14005
14214
  >
14006
14215
  <ul
14007
- aria-labelledby="downshift-5-label"
14216
+ aria-labelledby="downshift-6-label"
14008
14217
  className="base menu"
14009
- id="downshift-5-menu"
14218
+ id="downshift-6-menu"
14010
14219
  onMouseLeave={[Function]}
14011
14220
  role="listbox"
14012
14221
  />
@@ -14043,7 +14252,7 @@ exports[`Storyshots f/fields/QueryCombobox Multiple Select With Default Formik S
14043
14252
  </form>
14044
14253
  `;
14045
14254
 
14046
- exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
14255
+ exports[`Storyshots f/fields/QueryCombobox Optional 1`] = `
14047
14256
  <form
14048
14257
  action="#"
14049
14258
  onReset={[Function]}
@@ -14058,6 +14267,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
14058
14267
  id="downshift-2-label"
14059
14268
  >
14060
14269
  Search for a team
14270
+ (Optional)
14061
14271
  </label>
14062
14272
  <div
14063
14273
  aria-expanded={false}
@@ -14123,7 +14333,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
14123
14333
  </form>
14124
14334
  `;
14125
14335
 
14126
- exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik State 1`] = `
14336
+ exports[`Storyshots f/fields/QueryCombobox Single Select 1`] = `
14127
14337
  <form
14128
14338
  action="#"
14129
14339
  onReset={[Function]}
@@ -14157,7 +14367,7 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
14157
14367
  onBlur={[Function]}
14158
14368
  onChange={[Function]}
14159
14369
  onKeyDown={[Function]}
14160
- value="Apple"
14370
+ value=""
14161
14371
  />
14162
14372
  </div>
14163
14373
  <div
@@ -14203,33 +14413,124 @@ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik Sta
14203
14413
  </form>
14204
14414
  `;
14205
14415
 
14206
- exports[`Storyshots f/fields/QuerySelect Base 1`] = `
14416
+ exports[`Storyshots f/fields/QueryCombobox Single Select With Default Formik State 1`] = `
14207
14417
  <form
14208
14418
  action="#"
14209
14419
  onReset={[Function]}
14210
14420
  onSubmit={[Function]}
14211
14421
  >
14212
14422
  <div
14213
- className="base select-input y-background2"
14423
+ className="base combobox y-background2"
14214
14424
  >
14215
14425
  <label
14216
14426
  className="base form-label x-main2"
14217
- htmlFor="status"
14427
+ htmlFor="team"
14428
+ id="downshift-4-label"
14218
14429
  >
14219
- Select Task Status
14430
+ Search for a team
14220
14431
  </label>
14221
14432
  <div
14222
- className="select-wrapper"
14433
+ aria-expanded={false}
14434
+ aria-haspopup="listbox"
14435
+ aria-owns="downshift-4-menu"
14436
+ className="input-wrapper"
14437
+ role="combobox"
14223
14438
  >
14224
- <select
14439
+ <input
14440
+ aria-autocomplete="list"
14441
+ aria-controls="downshift-4-menu"
14442
+ aria-labelledby="downshift-4-label"
14443
+ autoComplete="off"
14225
14444
  className="input"
14226
14445
  disabled={false}
14227
- id="status"
14228
- name="status"
14446
+ id="downshift-4-input"
14229
14447
  onBlur={[Function]}
14230
14448
  onChange={[Function]}
14231
- value=""
14232
- />
14449
+ onKeyDown={[Function]}
14450
+ value="Apple"
14451
+ />
14452
+ <button
14453
+ className="base button x-main2 modifierCompact modifierSimple"
14454
+ onClick={[Function]}
14455
+ type="button"
14456
+ >
14457
+ <span
14458
+ className="f-icons"
14459
+ >
14460
+ Y
14461
+ </span>
14462
+ </button>
14463
+ </div>
14464
+ <div
14465
+ className="base popover x-background1 bottom left"
14466
+ >
14467
+ <ul
14468
+ aria-labelledby="downshift-4-label"
14469
+ className="base menu"
14470
+ id="downshift-4-menu"
14471
+ onMouseLeave={[Function]}
14472
+ role="listbox"
14473
+ />
14474
+ </div>
14475
+ </div>
14476
+ <div
14477
+ style={
14478
+ Object {
14479
+ "alignItems": "flex-end",
14480
+ "display": "flex",
14481
+ "flexDirection": "column",
14482
+ }
14483
+ }
14484
+ >
14485
+ <div
14486
+ className="debugger"
14487
+ >
14488
+ <button
14489
+ className="base button x-main2"
14490
+ onClick={[Function]}
14491
+ type="button"
14492
+ >
14493
+ Open FormDebugger
14494
+ </button>
14495
+ </div>
14496
+ <button
14497
+ className="base button x-main1"
14498
+ onClick={[Function]}
14499
+ type="button"
14500
+ >
14501
+ Replace formik value
14502
+ </button>
14503
+ </div>
14504
+ </form>
14505
+ `;
14506
+
14507
+ exports[`Storyshots f/fields/QuerySelect Base 1`] = `
14508
+ <form
14509
+ action="#"
14510
+ onReset={[Function]}
14511
+ onSubmit={[Function]}
14512
+ >
14513
+ <div
14514
+ className="base select-input y-background2"
14515
+ >
14516
+ <label
14517
+ className="base form-label x-main2"
14518
+ htmlFor="status"
14519
+ >
14520
+ Select Task Status
14521
+ </label>
14522
+ <div
14523
+ className="select-wrapper"
14524
+ >
14525
+ <select
14526
+ className="input"
14527
+ disabled={false}
14528
+ id="status"
14529
+ name="status"
14530
+ onBlur={[Function]}
14531
+ onChange={[Function]}
14532
+ value=""
14533
+ />
14233
14534
  </div>
14234
14535
  </div>
14235
14536
  <div
@@ -14289,6 +14590,50 @@ exports[`Storyshots f/fields/QuerySelect Loading Options 1`] = `
14289
14590
  </form>
14290
14591
  `;
14291
14592
 
14593
+ exports[`Storyshots f/fields/QuerySelect Optional 1`] = `
14594
+ <form
14595
+ action="#"
14596
+ onReset={[Function]}
14597
+ onSubmit={[Function]}
14598
+ >
14599
+ <div
14600
+ className="base select-input y-background2"
14601
+ >
14602
+ <label
14603
+ className="base form-label x-main2"
14604
+ htmlFor="status"
14605
+ >
14606
+ Select Task Status
14607
+ (Optional)
14608
+ </label>
14609
+ <div
14610
+ className="select-wrapper"
14611
+ >
14612
+ <select
14613
+ className="input"
14614
+ disabled={false}
14615
+ id="status"
14616
+ name="status"
14617
+ onBlur={[Function]}
14618
+ onChange={[Function]}
14619
+ value=""
14620
+ />
14621
+ </div>
14622
+ </div>
14623
+ <div
14624
+ className="debugger"
14625
+ >
14626
+ <button
14627
+ className="base button x-main2"
14628
+ onClick={[Function]}
14629
+ type="button"
14630
+ >
14631
+ Open FormDebugger
14632
+ </button>
14633
+ </div>
14634
+ </form>
14635
+ `;
14636
+
14292
14637
  exports[`Storyshots f/fields/QuerySelect With Default Value 1`] = `
14293
14638
  <form
14294
14639
  action="#"
@@ -14839,6 +15184,156 @@ exports[`Storyshots f/fields/RatingsInput Numbers 1`] = `
14839
15184
  </form>
14840
15185
  `;
14841
15186
 
15187
+ exports[`Storyshots f/fields/RatingsInput Optional 1`] = `
15188
+ <form
15189
+ action="#"
15190
+ onReset={[Function]}
15191
+ onSubmit={[Function]}
15192
+ >
15193
+ <div
15194
+ className="base ratings-input"
15195
+ >
15196
+ <label
15197
+ className="base form-label input-label v50 mb-v x-main2"
15198
+ htmlFor="ratings"
15199
+ >
15200
+ Your Rating
15201
+ (Optional)
15202
+ </label>
15203
+ <div
15204
+ className="stars"
15205
+ >
15206
+ <div
15207
+ className="base rating x-main1 y-background2"
15208
+ >
15209
+ <label
15210
+ htmlFor="ratings-1"
15211
+ onMouseEnter={[Function]}
15212
+ onMouseLeave={[Function]}
15213
+ >
15214
+ <span
15215
+ className="f-icons c-dark-y"
15216
+ >
15217
+ [
15218
+ </span>
15219
+ </label>
15220
+ <input
15221
+ id="ratings-1"
15222
+ name="ratings"
15223
+ onBlur={[Function]}
15224
+ onChange={[Function]}
15225
+ type="radio"
15226
+ value={1}
15227
+ />
15228
+ </div>
15229
+ <div
15230
+ className="base rating x-main1 y-background2"
15231
+ >
15232
+ <label
15233
+ htmlFor="ratings-2"
15234
+ onMouseEnter={[Function]}
15235
+ onMouseLeave={[Function]}
15236
+ >
15237
+ <span
15238
+ className="f-icons c-dark-y"
15239
+ >
15240
+ [
15241
+ </span>
15242
+ </label>
15243
+ <input
15244
+ id="ratings-2"
15245
+ name="ratings"
15246
+ onBlur={[Function]}
15247
+ onChange={[Function]}
15248
+ type="radio"
15249
+ value={2}
15250
+ />
15251
+ </div>
15252
+ <div
15253
+ className="base rating x-main1 y-background2"
15254
+ >
15255
+ <label
15256
+ htmlFor="ratings-3"
15257
+ onMouseEnter={[Function]}
15258
+ onMouseLeave={[Function]}
15259
+ >
15260
+ <span
15261
+ className="f-icons c-dark-y"
15262
+ >
15263
+ [
15264
+ </span>
15265
+ </label>
15266
+ <input
15267
+ id="ratings-3"
15268
+ name="ratings"
15269
+ onBlur={[Function]}
15270
+ onChange={[Function]}
15271
+ type="radio"
15272
+ value={3}
15273
+ />
15274
+ </div>
15275
+ <div
15276
+ className="base rating x-main1 y-background2"
15277
+ >
15278
+ <label
15279
+ htmlFor="ratings-4"
15280
+ onMouseEnter={[Function]}
15281
+ onMouseLeave={[Function]}
15282
+ >
15283
+ <span
15284
+ className="f-icons c-dark-y"
15285
+ >
15286
+ [
15287
+ </span>
15288
+ </label>
15289
+ <input
15290
+ id="ratings-4"
15291
+ name="ratings"
15292
+ onBlur={[Function]}
15293
+ onChange={[Function]}
15294
+ type="radio"
15295
+ value={4}
15296
+ />
15297
+ </div>
15298
+ <div
15299
+ className="base rating x-main1 y-background2"
15300
+ >
15301
+ <label
15302
+ htmlFor="ratings-5"
15303
+ onMouseEnter={[Function]}
15304
+ onMouseLeave={[Function]}
15305
+ >
15306
+ <span
15307
+ className="f-icons c-dark-y"
15308
+ >
15309
+ [
15310
+ </span>
15311
+ </label>
15312
+ <input
15313
+ id="ratings-5"
15314
+ name="ratings"
15315
+ onBlur={[Function]}
15316
+ onChange={[Function]}
15317
+ type="radio"
15318
+ value={5}
15319
+ />
15320
+ </div>
15321
+ </div>
15322
+ </div>
15323
+ <div
15324
+ className="debugger"
15325
+ >
15326
+ <button
15327
+ className="base button x-main2"
15328
+ onClick={[Function]}
15329
+ type="button"
15330
+ >
15331
+ Open FormDebugger
15332
+ </button>
15333
+ </div>
15334
+ </form>
15335
+ `;
15336
+
14842
15337
  exports[`Storyshots f/fields/SelectInput Base 1`] = `
14843
15338
  <form
14844
15339
  action="#"
@@ -14975,6 +15470,75 @@ exports[`Storyshots f/fields/SelectInput Disabled Select Input 1`] = `
14975
15470
  </form>
14976
15471
  `;
14977
15472
 
15473
+ exports[`Storyshots f/fields/SelectInput Optional 1`] = `
15474
+ <form
15475
+ action="#"
15476
+ onReset={[Function]}
15477
+ onSubmit={[Function]}
15478
+ >
15479
+ <div
15480
+ className="base select-input y-background2"
15481
+ >
15482
+ <label
15483
+ className="base form-label x-main2"
15484
+ htmlFor="workType"
15485
+ >
15486
+ Work Type
15487
+ (Optional)
15488
+ </label>
15489
+ <div
15490
+ className="select-wrapper"
15491
+ >
15492
+ <select
15493
+ className="input"
15494
+ disabled={false}
15495
+ id="workType"
15496
+ name="workType"
15497
+ onBlur={[Function]}
15498
+ onChange={[Function]}
15499
+ value=""
15500
+ >
15501
+ <option
15502
+ disabled={true}
15503
+ value=""
15504
+ >
15505
+ Select an option
15506
+ </option>
15507
+ <option
15508
+ disabled={false}
15509
+ value="Work"
15510
+ >
15511
+ Work
15512
+ </option>
15513
+ <option
15514
+ disabled={false}
15515
+ value="Managing"
15516
+ >
15517
+ Managing
15518
+ </option>
15519
+ <option
15520
+ disabled={false}
15521
+ value="Training"
15522
+ >
15523
+ Training
15524
+ </option>
15525
+ </select>
15526
+ </div>
15527
+ </div>
15528
+ <div
15529
+ className="debugger"
15530
+ >
15531
+ <button
15532
+ className="base button x-main2"
15533
+ onClick={[Function]}
15534
+ type="button"
15535
+ >
15536
+ Open FormDebugger
15537
+ </button>
15538
+ </div>
15539
+ </form>
15540
+ `;
15541
+
14978
15542
  exports[`Storyshots f/fields/SelectInput Required 1`] = `
14979
15543
  <form
14980
15544
  action="#"
@@ -15217,6 +15781,51 @@ exports[`Storyshots f/fields/TextInput Date 1`] = `
15217
15781
  </form>
15218
15782
  `;
15219
15783
 
15784
+ exports[`Storyshots f/fields/TextInput Optional 1`] = `
15785
+ <form
15786
+ action="#"
15787
+ onReset={[Function]}
15788
+ onSubmit={[Function]}
15789
+ >
15790
+ <div
15791
+ className=" u2 pb-u"
15792
+ >
15793
+ <div
15794
+ className="base text-input y-background2"
15795
+ >
15796
+ <label
15797
+ className="base form-label v50 mb-v x-main2"
15798
+ htmlFor="firstName"
15799
+ >
15800
+ What's your first name ?
15801
+ (Optional)
15802
+ </label>
15803
+ <input
15804
+ className="input"
15805
+ disabled={false}
15806
+ id="firstName"
15807
+ name="firstName"
15808
+ onBlur={[Function]}
15809
+ onChange={[Function]}
15810
+ type="text"
15811
+ value=""
15812
+ />
15813
+ </div>
15814
+ <div
15815
+ className="debugger"
15816
+ >
15817
+ <button
15818
+ className="base button x-main2"
15819
+ onClick={[Function]}
15820
+ type="button"
15821
+ >
15822
+ Open FormDebugger
15823
+ </button>
15824
+ </div>
15825
+ </div>
15826
+ </form>
15827
+ `;
15828
+
15220
15829
  exports[`Storyshots f/fields/TextInput Time 1`] = `
15221
15830
  <form
15222
15831
  action="#"
@@ -15615,6 +16224,51 @@ exports[`Storyshots f/fields/TextareaInput Horizontal Resize 1`] = `
15615
16224
  </form>
15616
16225
  `;
15617
16226
 
16227
+ exports[`Storyshots f/fields/TextareaInput Optional 1`] = `
16228
+ <form
16229
+ action="#"
16230
+ onReset={[Function]}
16231
+ onSubmit={[Function]}
16232
+ >
16233
+ <div
16234
+ className="base text-area-input y-background2"
16235
+ >
16236
+ <label
16237
+ className="base form-label v50 mb-v x-main2"
16238
+ htmlFor="feedback"
16239
+ >
16240
+ What can we improve on?
16241
+ (Optional)
16242
+ </label>
16243
+ <textarea
16244
+ className="textarea"
16245
+ disabled={false}
16246
+ name="feedback"
16247
+ onBlur={[Function]}
16248
+ onChange={[Function]}
16249
+ rows={3}
16250
+ style={
16251
+ Object {
16252
+ "resize": "vertical",
16253
+ }
16254
+ }
16255
+ value=""
16256
+ />
16257
+ </div>
16258
+ <div
16259
+ className="debugger"
16260
+ >
16261
+ <button
16262
+ className="base button x-main2"
16263
+ onClick={[Function]}
16264
+ type="button"
16265
+ >
16266
+ Open FormDebugger
16267
+ </button>
16268
+ </div>
16269
+ </form>
16270
+ `;
16271
+
15618
16272
  exports[`Storyshots f/fields/TextareaInput Placeholder 1`] = `
15619
16273
  <form
15620
16274
  action="#"