@@ -12,6 +12,7 @@ import Halogen as H
12
12
import Halogen.HTML as HH
13
13
import Halogen.HTML.Properties as HP
14
14
import Ocelot.Block.Format as Format
15
+ import Ocelot.Block.Icon as Ocelot.Block.Icon
15
16
import Ocelot.Button as Button
16
17
import Ocelot.Clipboard as Ocelot.Clipboard
17
18
import Ocelot.HTML.Properties (css )
@@ -71,6 +72,7 @@ render _ =
71
72
[ renderButtons
72
73
, renderButtonGroups
73
74
, renderClipboardButtons
75
+ , renderPills
74
76
]
75
77
76
78
renderButtons :: forall m . ComponentHTML m
@@ -418,3 +420,95 @@ renderClipboardButtons =
418
420
]
419
421
]
420
422
]
423
+
424
+ renderPills :: forall m . ComponentHTML m
425
+ renderPills =
426
+ Documentation .customBlock_
427
+ { header: " Pills"
428
+ , subheader: " These might be used for displaying selected filters."
429
+ }
430
+ [ Documentation .callout_
431
+ [ Backdrop .backdrop_
432
+ [ Backdrop .content_
433
+ [ HH .div
434
+ [ css " mb-6 flex" ]
435
+ [ HH .div
436
+ [ css " flex-1" ]
437
+ [ Format .caption_
438
+ [ HH .text " Standard Button" ]
439
+ , Button .pillButton
440
+ { decorator: Button.Left Ocelot.Block.Icon .plus_ }
441
+ [ HH .text " Add Filter" ]
442
+ ]
443
+ , HH .div
444
+ [ css " flex-1" ]
445
+ [ Format .caption_
446
+ [ HH .text " Disabled Button" ]
447
+ , Button .pillButton
448
+ { decorator: Button.Left Ocelot.Block.Icon .plus_
449
+ , props: [ HP .disabled true ]
450
+ }
451
+ [ HH .text " Add Filter" ]
452
+ ]
453
+ ]
454
+ , HH .div
455
+ [ css " mb-6 flex" ]
456
+ [ HH .div
457
+ [ css " flex-1" ]
458
+ [ Format .caption_
459
+ [ HH .text " Primary Anchor" ]
460
+ , Button .pillAnchor
461
+ { decorator: Button.Right Ocelot.Block.Icon .delete_
462
+ , style: Button.Primary
463
+ }
464
+ [ HH .text " Color: Primary" ]
465
+ ]
466
+ , HH .div
467
+ [ css " flex-1" ]
468
+ []
469
+ ]
470
+ ]
471
+ ]
472
+ , Backdrop .backdropWhite_
473
+ [ Backdrop .content_
474
+ [ HH .div
475
+ [ css " mb-6 flex" ]
476
+ [ HH .div
477
+ [ css " flex-1" ]
478
+ [ Format .caption_
479
+ [ HH .text " Standard Button" ]
480
+ , Button .pillButton
481
+ { decorator: Button.Left Ocelot.Block.Icon .plus_ }
482
+ [ HH .text " Add Filter" ]
483
+ ]
484
+ , HH .div
485
+ [ css " flex-1" ]
486
+ [ Format .caption_
487
+ [ HH .text " Disabled Button" ]
488
+ , Button .pillButton
489
+ { decorator: Button.Left Ocelot.Block.Icon .plus_
490
+ , props: [ HP .disabled true ]
491
+ }
492
+ [ HH .text " Add Filter" ]
493
+ ]
494
+ ]
495
+ , HH .div
496
+ [ css " mb-6 flex" ]
497
+ [ HH .div
498
+ [ css " flex-1" ]
499
+ [ Format .caption_
500
+ [ HH .text " Primary Anchor" ]
501
+ , Button .pillAnchor
502
+ { decorator: Button.Right Ocelot.Block.Icon .delete_
503
+ , style: Button.Primary
504
+ }
505
+ [ HH .text " Color: Primary" ]
506
+ ]
507
+ , HH .div
508
+ [ css " flex-1" ]
509
+ []
510
+ ]
511
+ ]
512
+ ]
513
+ ]
514
+ ]
0 commit comments