@openproject/primer-view-components 0.43.1 → 0.44.0-rc.22e0e7fa

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.
@@ -0,0 +1 @@
1
+ <svg width="64" height="64" xmlns="http://www.w3.org/2000/svg"><g><rect x="-16" y="-16" width="32" height="32" fill="none" stroke="#a3eea8" stroke-width="4" rx="10" transform="translate(32 32)"><animate attributeName="stroke-width" attributeType="XML" dur="4s" repeatCount="indefinite" values="0;4;0;0" keyTimes="0;0.35;0.6;1" keySplines="0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" calcMode="spline"/><animateTransform attributeName="transform" additive="sum" attributeType="XML" type="scale" dur="4s" repeatCount="indefinite" values="0.5;0.5;1.6;0.5" keyTimes="0;0.35;0.6;1" keySplines="0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" calcMode="spline"/></rect><rect x="-16" y="-16" width="32" height="32" fill="#35c53f" rx="5" transform="translate(32 32)"><animateTransform attributeName="transform" additive="sum" attributeType="XML" type="scale" dur="4s" repeatCount="indefinite" values="1;1.3;1.1;1" keyTimes="0;0.5;0.6;1" keySplines="0.42 0 0.58 1;0.42 0 0.58 1;0.42 0 0.58 1" calcMode="spline"/></rect><animateTransform attributeName="transform" attributeType="XML" additive="sum" type="rotate" dur="4s" repeatCount="indefinite" values="45 32 32;1080 32 32;945 32 32" keyTimes="0;0.6;1" keySplines="0.42 0 0.58 1;0.42 0 0.58 1" calcMode="spline"/></g></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.43.1",
3
+ "version": "0.44.0-rc.22e0e7fa",
4
4
  "description": "ViewComponents of the Primer Design System for OpenProject",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -5039,6 +5039,50 @@
5039
5039
  }
5040
5040
  ]
5041
5041
  },
5042
+ {
5043
+ "component": "OpenProject::FeedbackDialog",
5044
+ "status": "open_project",
5045
+ "a11y_reviewed": false,
5046
+ "short_name": "OpenProjectFeedbackDialog",
5047
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/feedback_dialog.rb",
5048
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/feedback_dialog/default/",
5049
+ "parameters": [
5050
+ {
5051
+ "name": "system_arguments",
5052
+ "type": "Hash",
5053
+ "default": "N/A",
5054
+ "description": "[System arguments](/system-arguments)"
5055
+ }
5056
+ ]
5057
+ },
5058
+ {
5059
+ "component": "OpenProject::FeedbackMessage",
5060
+ "status": "open_project",
5061
+ "a11y_reviewed": false,
5062
+ "short_name": "OpenProjectFeedbackMessage",
5063
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/feedback_message.rb",
5064
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/feedback_message/default/",
5065
+ "parameters": [
5066
+ {
5067
+ "name": "icon_arguments",
5068
+ "type": "Hash",
5069
+ "default": "`{}`",
5070
+ "description": "special arguments for the icon"
5071
+ },
5072
+ {
5073
+ "name": "loading",
5074
+ "type": "Boolean",
5075
+ "default": "`false`",
5076
+ "description": "Show a loading spinner instead of an icon"
5077
+ },
5078
+ {
5079
+ "name": "system_arguments",
5080
+ "type": "Hash",
5081
+ "default": "N/A",
5082
+ "description": "[System arguments](/system-arguments)"
5083
+ }
5084
+ ]
5085
+ },
5042
5086
  {
5043
5087
  "component": "OpenProject::FlexLayout",
5044
5088
  "status": "open_project",
@@ -118,6 +118,8 @@
118
118
  "Primer::OpenProject::BorderGrid": "",
119
119
  "Primer::OpenProject::BorderGrid::Cell": "",
120
120
  "Primer::OpenProject::DragHandle": "",
121
+ "Primer::OpenProject::FeedbackDialog": "",
122
+ "Primer::OpenProject::FeedbackMessage": "",
121
123
  "Primer::OpenProject::FlexLayout": "",
122
124
  "Primer::OpenProject::GridLayout": "",
123
125
  "Primer::OpenProject::GridLayout::Area": "",
@@ -1422,6 +1422,10 @@
1422
1422
  "medium"
1423
1423
  ]
1424
1424
  },
1425
+ "Primer::OpenProject::FeedbackDialog": {
1426
+ },
1427
+ "Primer::OpenProject::FeedbackMessage": {
1428
+ },
1425
1429
  "Primer::OpenProject::FlexLayout": {
1426
1430
  },
1427
1431
  "Primer::OpenProject::GridLayout": {
@@ -17294,6 +17294,275 @@
17294
17294
 
17295
17295
  ]
17296
17296
  },
17297
+ {
17298
+ "fully_qualified_name": "Primer::OpenProject::FeedbackDialog",
17299
+ "description": "A pre-configured dialog which includes the FeedbackMessage",
17300
+ "accessibility_docs": null,
17301
+ "is_form_component": false,
17302
+ "is_published": true,
17303
+ "requires_js": false,
17304
+ "component": "OpenProject::FeedbackDialog",
17305
+ "status": "open_project",
17306
+ "a11y_reviewed": false,
17307
+ "short_name": "OpenProjectFeedbackDialog",
17308
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/feedback_dialog.rb",
17309
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/feedback_dialog/default/",
17310
+ "parameters": [
17311
+ {
17312
+ "name": "system_arguments",
17313
+ "type": "Hash",
17314
+ "default": "N/A",
17315
+ "description": "{{link_to_system_arguments_docs}}"
17316
+ }
17317
+ ],
17318
+ "slots": [
17319
+ {
17320
+ "name": "feedback_message",
17321
+ "description": "A feedback message with some defaults that are necessary for rendering nicely",
17322
+ "parameters": [
17323
+ {
17324
+ "name": "heading",
17325
+ "type": "String",
17326
+ "default": "N/A",
17327
+ "description": "the heading for the success message"
17328
+ },
17329
+ {
17330
+ "name": "description",
17331
+ "type": "String",
17332
+ "default": "N/A",
17333
+ "description": "the description for the success message"
17334
+ },
17335
+ {
17336
+ "name": "icon_arguments",
17337
+ "type": "Hash",
17338
+ "default": "N/A",
17339
+ "description": "the system_arguments for the icon"
17340
+ },
17341
+ {
17342
+ "name": "system_arguments",
17343
+ "type": "Hash",
17344
+ "default": "N/A",
17345
+ "description": "{{link_to_system_arguments_docs}}"
17346
+ }
17347
+ ]
17348
+ },
17349
+ {
17350
+ "name": "additional_content",
17351
+ "description": "Optional additional_content like a form input or toast.",
17352
+ "parameters": [
17353
+ {
17354
+ "name": "system_arguments",
17355
+ "type": "Hash",
17356
+ "default": "N/A",
17357
+ "description": "{{link_to_system_arguments_docs}}"
17358
+ }
17359
+ ]
17360
+ },
17361
+ {
17362
+ "name": "footer",
17363
+ "description": null,
17364
+ "parameters": [
17365
+
17366
+ ]
17367
+ }
17368
+ ],
17369
+ "methods": [
17370
+
17371
+ ],
17372
+ "previews": [
17373
+ {
17374
+ "preview_path": "primer/open_project/feedback_dialog/default",
17375
+ "name": "default",
17376
+ "snapshot": "interactive",
17377
+ "skip_rules": {
17378
+ "wont_fix": [
17379
+ "region"
17380
+ ],
17381
+ "will_fix": [
17382
+ "color-contrast"
17383
+ ]
17384
+ }
17385
+ },
17386
+ {
17387
+ "preview_path": "primer/open_project/feedback_dialog/playground",
17388
+ "name": "playground",
17389
+ "snapshot": "false",
17390
+ "skip_rules": {
17391
+ "wont_fix": [
17392
+ "region"
17393
+ ],
17394
+ "will_fix": [
17395
+ "color-contrast"
17396
+ ]
17397
+ }
17398
+ },
17399
+ {
17400
+ "preview_path": "primer/open_project/feedback_dialog/additional_content",
17401
+ "name": "additional_content",
17402
+ "snapshot": "false",
17403
+ "skip_rules": {
17404
+ "wont_fix": [
17405
+ "region"
17406
+ ],
17407
+ "will_fix": [
17408
+ "color-contrast"
17409
+ ]
17410
+ }
17411
+ },
17412
+ {
17413
+ "preview_path": "primer/open_project/feedback_dialog/custom_icon",
17414
+ "name": "custom_icon",
17415
+ "snapshot": "false",
17416
+ "skip_rules": {
17417
+ "wont_fix": [
17418
+ "region"
17419
+ ],
17420
+ "will_fix": [
17421
+ "color-contrast"
17422
+ ]
17423
+ }
17424
+ },
17425
+ {
17426
+ "preview_path": "primer/open_project/feedback_dialog/custom_footer",
17427
+ "name": "custom_footer",
17428
+ "snapshot": "false",
17429
+ "skip_rules": {
17430
+ "wont_fix": [
17431
+ "region"
17432
+ ],
17433
+ "will_fix": [
17434
+ "color-contrast"
17435
+ ]
17436
+ }
17437
+ },
17438
+ {
17439
+ "preview_path": "primer/open_project/feedback_dialog/loading_spinner",
17440
+ "name": "loading_spinner",
17441
+ "snapshot": "false",
17442
+ "skip_rules": {
17443
+ "wont_fix": [
17444
+ "region"
17445
+ ],
17446
+ "will_fix": [
17447
+ "color-contrast"
17448
+ ]
17449
+ }
17450
+ }
17451
+ ],
17452
+ "subcomponents": [
17453
+
17454
+ ]
17455
+ },
17456
+ {
17457
+ "fully_qualified_name": "Primer::OpenProject::FeedbackMessage",
17458
+ "description": "A view component for messages, inspired by the Primer Blankslate,\nwhich serves a different use-case (messages for when data is missing).\nWe decided to wrap the Blankslate, because we don't want to have to adapt\nlots of different usages if Primer decides to change the Blankslate\nin a way that does not go well with our \"misuse\".",
17459
+ "accessibility_docs": null,
17460
+ "is_form_component": false,
17461
+ "is_published": true,
17462
+ "requires_js": false,
17463
+ "component": "OpenProject::FeedbackMessage",
17464
+ "status": "open_project",
17465
+ "a11y_reviewed": false,
17466
+ "short_name": "OpenProjectFeedbackMessage",
17467
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/feedback_message.rb",
17468
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/feedback_message/default/",
17469
+ "parameters": [
17470
+ {
17471
+ "name": "icon_arguments",
17472
+ "type": "Hash",
17473
+ "default": "`{}`",
17474
+ "description": "special arguments for the icon"
17475
+ },
17476
+ {
17477
+ "name": "loading",
17478
+ "type": "Boolean",
17479
+ "default": "`false`",
17480
+ "description": "Show a loading spinner instead of an icon"
17481
+ },
17482
+ {
17483
+ "name": "system_arguments",
17484
+ "type": "Hash",
17485
+ "default": "N/A",
17486
+ "description": "{{link_to_system_arguments_docs}}"
17487
+ }
17488
+ ],
17489
+ "slots": [
17490
+
17491
+ ],
17492
+ "methods": [
17493
+
17494
+ ],
17495
+ "previews": [
17496
+ {
17497
+ "preview_path": "primer/open_project/feedback_message/default",
17498
+ "name": "default",
17499
+ "snapshot": "true",
17500
+ "skip_rules": {
17501
+ "wont_fix": [
17502
+ "region"
17503
+ ],
17504
+ "will_fix": [
17505
+ "color-contrast"
17506
+ ]
17507
+ }
17508
+ },
17509
+ {
17510
+ "preview_path": "primer/open_project/feedback_message/playground",
17511
+ "name": "playground",
17512
+ "snapshot": "false",
17513
+ "skip_rules": {
17514
+ "wont_fix": [
17515
+ "region"
17516
+ ],
17517
+ "will_fix": [
17518
+ "color-contrast"
17519
+ ]
17520
+ }
17521
+ },
17522
+ {
17523
+ "preview_path": "primer/open_project/feedback_message/with_custom_icon",
17524
+ "name": "with_custom_icon",
17525
+ "snapshot": "false",
17526
+ "skip_rules": {
17527
+ "wont_fix": [
17528
+ "region"
17529
+ ],
17530
+ "will_fix": [
17531
+ "color-contrast"
17532
+ ]
17533
+ }
17534
+ },
17535
+ {
17536
+ "preview_path": "primer/open_project/feedback_message/with_custom_color",
17537
+ "name": "with_custom_color",
17538
+ "snapshot": "false",
17539
+ "skip_rules": {
17540
+ "wont_fix": [
17541
+ "region"
17542
+ ],
17543
+ "will_fix": [
17544
+ "color-contrast"
17545
+ ]
17546
+ }
17547
+ },
17548
+ {
17549
+ "preview_path": "primer/open_project/feedback_message/loading_spinner",
17550
+ "name": "loading_spinner",
17551
+ "snapshot": "false",
17552
+ "skip_rules": {
17553
+ "wont_fix": [
17554
+ "region"
17555
+ ],
17556
+ "will_fix": [
17557
+ "color-contrast"
17558
+ ]
17559
+ }
17560
+ }
17561
+ ],
17562
+ "subcomponents": [
17563
+
17564
+ ]
17565
+ },
17297
17566
  {
17298
17567
  "fully_qualified_name": "Primer::OpenProject::FlexLayout",
17299
17568
  "description": "A layouting component used to arrange multiple components next / below each other",
@@ -3647,6 +3647,165 @@
3647
3647
  }
3648
3648
  ]
3649
3649
  },
3650
+ {
3651
+ "name": "feedback_dialog",
3652
+ "component": "OpenProject::FeedbackDialog",
3653
+ "status": "open_project",
3654
+ "lookup_path": "primer/open_project/feedback_dialog",
3655
+ "examples": [
3656
+ {
3657
+ "preview_path": "primer/open_project/feedback_dialog/default",
3658
+ "name": "default",
3659
+ "snapshot": "interactive",
3660
+ "skip_rules": {
3661
+ "wont_fix": [
3662
+ "region"
3663
+ ],
3664
+ "will_fix": [
3665
+ "color-contrast"
3666
+ ]
3667
+ }
3668
+ },
3669
+ {
3670
+ "preview_path": "primer/open_project/feedback_dialog/playground",
3671
+ "name": "playground",
3672
+ "snapshot": "false",
3673
+ "skip_rules": {
3674
+ "wont_fix": [
3675
+ "region"
3676
+ ],
3677
+ "will_fix": [
3678
+ "color-contrast"
3679
+ ]
3680
+ }
3681
+ },
3682
+ {
3683
+ "preview_path": "primer/open_project/feedback_dialog/additional_content",
3684
+ "name": "additional_content",
3685
+ "snapshot": "false",
3686
+ "skip_rules": {
3687
+ "wont_fix": [
3688
+ "region"
3689
+ ],
3690
+ "will_fix": [
3691
+ "color-contrast"
3692
+ ]
3693
+ }
3694
+ },
3695
+ {
3696
+ "preview_path": "primer/open_project/feedback_dialog/custom_icon",
3697
+ "name": "custom_icon",
3698
+ "snapshot": "false",
3699
+ "skip_rules": {
3700
+ "wont_fix": [
3701
+ "region"
3702
+ ],
3703
+ "will_fix": [
3704
+ "color-contrast"
3705
+ ]
3706
+ }
3707
+ },
3708
+ {
3709
+ "preview_path": "primer/open_project/feedback_dialog/custom_footer",
3710
+ "name": "custom_footer",
3711
+ "snapshot": "false",
3712
+ "skip_rules": {
3713
+ "wont_fix": [
3714
+ "region"
3715
+ ],
3716
+ "will_fix": [
3717
+ "color-contrast"
3718
+ ]
3719
+ }
3720
+ },
3721
+ {
3722
+ "preview_path": "primer/open_project/feedback_dialog/loading_spinner",
3723
+ "name": "loading_spinner",
3724
+ "snapshot": "false",
3725
+ "skip_rules": {
3726
+ "wont_fix": [
3727
+ "region"
3728
+ ],
3729
+ "will_fix": [
3730
+ "color-contrast"
3731
+ ]
3732
+ }
3733
+ }
3734
+ ]
3735
+ },
3736
+ {
3737
+ "name": "feedback_message",
3738
+ "component": "OpenProject::FeedbackMessage",
3739
+ "status": "open_project",
3740
+ "lookup_path": "primer/open_project/feedback_message",
3741
+ "examples": [
3742
+ {
3743
+ "preview_path": "primer/open_project/feedback_message/default",
3744
+ "name": "default",
3745
+ "snapshot": "true",
3746
+ "skip_rules": {
3747
+ "wont_fix": [
3748
+ "region"
3749
+ ],
3750
+ "will_fix": [
3751
+ "color-contrast"
3752
+ ]
3753
+ }
3754
+ },
3755
+ {
3756
+ "preview_path": "primer/open_project/feedback_message/playground",
3757
+ "name": "playground",
3758
+ "snapshot": "false",
3759
+ "skip_rules": {
3760
+ "wont_fix": [
3761
+ "region"
3762
+ ],
3763
+ "will_fix": [
3764
+ "color-contrast"
3765
+ ]
3766
+ }
3767
+ },
3768
+ {
3769
+ "preview_path": "primer/open_project/feedback_message/with_custom_icon",
3770
+ "name": "with_custom_icon",
3771
+ "snapshot": "false",
3772
+ "skip_rules": {
3773
+ "wont_fix": [
3774
+ "region"
3775
+ ],
3776
+ "will_fix": [
3777
+ "color-contrast"
3778
+ ]
3779
+ }
3780
+ },
3781
+ {
3782
+ "preview_path": "primer/open_project/feedback_message/with_custom_color",
3783
+ "name": "with_custom_color",
3784
+ "snapshot": "false",
3785
+ "skip_rules": {
3786
+ "wont_fix": [
3787
+ "region"
3788
+ ],
3789
+ "will_fix": [
3790
+ "color-contrast"
3791
+ ]
3792
+ }
3793
+ },
3794
+ {
3795
+ "preview_path": "primer/open_project/feedback_message/loading_spinner",
3796
+ "name": "loading_spinner",
3797
+ "snapshot": "false",
3798
+ "skip_rules": {
3799
+ "wont_fix": [
3800
+ "region"
3801
+ ],
3802
+ "will_fix": [
3803
+ "color-contrast"
3804
+ ]
3805
+ }
3806
+ }
3807
+ ]
3808
+ },
3650
3809
  {
3651
3810
  "name": "flash",
3652
3811
  "component": "Flash",
@@ -118,6 +118,8 @@
118
118
  "Primer::OpenProject::BorderGrid": "open_project",
119
119
  "Primer::OpenProject::BorderGrid::Cell": "open_project",
120
120
  "Primer::OpenProject::DragHandle": "open_project",
121
+ "Primer::OpenProject::FeedbackDialog": "open_project",
122
+ "Primer::OpenProject::FeedbackMessage": "open_project",
121
123
  "Primer::OpenProject::FlexLayout": "open_project",
122
124
  "Primer::OpenProject::GridLayout": "open_project",
123
125
  "Primer::OpenProject::GridLayout::Area": "open_project",