jekyll-webawesome 0.12.0 → 0.14.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aed77f29e5a3ab5d74e76d237ffdce23b1984c408c0753bbc3b73944a1d3698a
4
- data.tar.gz: 5806f68d8f8564cc51ffae8f21fcd3cf9e4c1d980131d31014660b2149018970
3
+ metadata.gz: 245ba4dad039172f52286841d437c0949cc10e0769324b192707589dbde2ac84
4
+ data.tar.gz: 2035f8185bdf9da3b664d88c22351842142098fcc185af977a091bf6cea79c65
5
5
  SHA512:
6
- metadata.gz: a31bfaa6e6c070c01f5f7d91475d495b02dee4b2b7bfca62dff6079e9e4c294c89cf5a3dc5fcb0be07f94d2308529b4d912041c313827311b5a82331e9d473e2
7
- data.tar.gz: c009c3bd6956c0d3c671c507047f80648a97ec169029b281a83bad47aa89b81e638cea5132223f89c00205ec33c9fa89ead304b028ce25f7f6bf2eed16c6e088
6
+ metadata.gz: fd137a5495ce01aa36194f528873758706b9925d491a564e3b86e0080481ea1499bbd7d8380e844a80b791810893aa8f77603353fec76b0cc73e254061d214d8
7
+ data.tar.gz: dc4318b0450ef4fd151b7ef5cdec10d1c72b2c63361a64eb39892a17685763355b9d283b06d562773fb3efd05a96172ad2fd326504e1e3865b52d9947c6e5de5
data/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
6
6
 
7
+ ## [0.14.0] - 2026-03-12
8
+
9
+ ### Changed
10
+
11
+ - Updated `markawesome` dependency to `~> 0.7`
12
+ - Popover rich content examples added to example site
13
+
14
+ ## [0.13.0] - 2026-03-12
15
+
16
+ ### Added
17
+
18
+ - **Popover component** (`&&&` or `:::wa-popover`) via markawesome 0.7.0:
19
+ - Floating popover content attached to a trigger element
20
+ - Placement options: `top` (default), `bottom`, `left`, `right`
21
+ - `without-arrow` flag, `distance:N` parameter, `link` trigger style
22
+ - Trigger text and popover content separated by `>>>`
23
+ - Example site updated with popover demonstrations (placements, link style, combined parameters)
24
+ - Example site README updated to reference Web Awesome Kit (replaces outdated beta CDN reference)
25
+
7
26
  ## [0.12.0] - 2026-02-14
8
27
 
9
28
  ### Changed
data/README.md CHANGED
@@ -24,6 +24,7 @@ This plugin focuses on the most commonly used Web Awesome components for Jekyll
24
24
  | **Details** | `^^^appearance? icon-placement?` | `:::wa-details appearance? icon-placement?` | `<wa-details appearance="..." icon-placement="...">content</wa-details>` |
25
25
  | **Dialog** | `???params?` | `:::wa-dialog params?` | `<wa-dialog>` with trigger button and content |
26
26
  | **Icon** | `$$$icon-name` | `:::wa-icon name` | `<wa-icon name="icon-name" variant="solid"></wa-icon>` |
27
+ | **Popover** | `&&&placement? link? without-arrow? distance:N?` | `:::wa-popover params?` | `<wa-popover>` with trigger and floating content |
27
28
  | **Tab Group** | `++++++` | `:::wa-tabs` | `<wa-tab-group><wa-tab>content</wa-tab></wa-tab-group>` |
28
29
  | **Tag** | `@@@brand` | `:::wa-tag brand` | `<wa-tag variant="brand">content</wa-tag>` |
29
30
 
@@ -1052,6 +1053,154 @@ This dialog has light dismiss enabled and is 700px wide.
1052
1053
 
1053
1054
  > **Note**: The dialog uses Web Awesome's declarative `data-dialog` API, so no custom JavaScript is needed. Each dialog gets a unique ID automatically generated from its content. The header with X close button is always shown for accessibility, and a "Close" button is automatically added to the footer.
1054
1055
 
1056
+ ### Popovers
1057
+
1058
+ Create floating popover content attached to a trigger element using the `&&&` syntax:
1059
+
1060
+ ```markdown
1061
+ &&&
1062
+ Hover for info
1063
+ >>>
1064
+ This is the popover content with **markdown** support.
1065
+ &&&
1066
+ ```
1067
+
1068
+ This creates a trigger button and a floating popover:
1069
+
1070
+ ```html
1071
+ <wa-button id='popover-abc123' variant='text'>Hover for info</wa-button>
1072
+ <wa-popover for='popover-abc123' placement='top'>
1073
+ <p>This is the popover content with <strong>markdown</strong> support.</p>
1074
+ </wa-popover>
1075
+ ```
1076
+
1077
+ #### Popover Placement
1078
+
1079
+ Control where the popover appears relative to the trigger:
1080
+
1081
+ ```markdown
1082
+ &&&top
1083
+ Hover (top)
1084
+ >>>
1085
+ Popover content above the trigger.
1086
+ &&&
1087
+
1088
+ &&&bottom
1089
+ Hover (bottom)
1090
+ >>>
1091
+ Popover content below the trigger.
1092
+ &&&
1093
+
1094
+ &&&left
1095
+ Hover (left)
1096
+ >>>
1097
+ Popover content to the left.
1098
+ &&&
1099
+
1100
+ &&&right
1101
+ Hover (right)
1102
+ >>>
1103
+ Popover content to the right.
1104
+ &&&
1105
+ ```
1106
+
1107
+ **Supported placements:** `top` (default), `bottom`, `left`, `right`
1108
+
1109
+ #### Link-style Trigger
1110
+
1111
+ Use the `link` parameter to render the trigger as underlined text instead of a button:
1112
+
1113
+ ```markdown
1114
+ &&&link
1115
+ Learn more
1116
+ >>>
1117
+ Detailed explanation that appears on hover.
1118
+ &&&
1119
+
1120
+ &&&bottom link
1121
+ See details
1122
+ >>>
1123
+ This popover appears below the link-style trigger.
1124
+ &&&
1125
+ ```
1126
+
1127
+ Link triggers render as a native `<button>` styled to look like inline text with an underline, making them blend naturally into surrounding prose.
1128
+
1129
+ #### Without Arrow
1130
+
1131
+ Hide the popover's arrow indicator:
1132
+
1133
+ ```markdown
1134
+ &&&without-arrow
1135
+ Hover me
1136
+ >>>
1137
+ This popover has no arrow pointing to the trigger.
1138
+ &&&
1139
+ ```
1140
+
1141
+ #### Custom Distance
1142
+
1143
+ Set the distance between the trigger and the popover (in pixels):
1144
+
1145
+ ```markdown
1146
+ &&&distance:20
1147
+ Hover me
1148
+ >>>
1149
+ This popover is 20px away from the trigger.
1150
+ &&&
1151
+ ```
1152
+
1153
+ #### Combining Parameters
1154
+
1155
+ All parameters can be combined in any order:
1156
+
1157
+ ```markdown
1158
+ &&&bottom link without-arrow distance:10
1159
+ Read more
1160
+ >>>
1161
+ A link-style trigger with popover below, no arrow, and custom distance.
1162
+ &&&
1163
+ ```
1164
+
1165
+ #### Rich Popover Content
1166
+
1167
+ The popover content supports full markdown — multiple paragraphs, lists, links, bold, italic, code, etc.:
1168
+
1169
+ ```markdown
1170
+ &&&top
1171
+ Show details
1172
+ >>>
1173
+ **Feature highlights:**
1174
+
1175
+ - Supports *rich* markdown content
1176
+ - Including [links](https://example.com)
1177
+ - And `inline code`
1178
+
1179
+ Multiple paragraphs work too.
1180
+ &&&
1181
+ ```
1182
+
1183
+ #### Alternative Syntax
1184
+
1185
+ You can also use the explicit `:::wa-popover` syntax:
1186
+
1187
+ ```markdown
1188
+ :::wa-popover bottom link
1189
+ Click for details
1190
+ >>>
1191
+ Popover content using the alternative syntax.
1192
+ :::
1193
+ ```
1194
+
1195
+ #### Popover Parameters
1196
+
1197
+ | Option | Values | Default | Description |
1198
+ |--------|--------|---------|-------------|
1199
+ | `placement` | `top`, `bottom`, `left`, `right` | `top` | Where the popover appears |
1200
+ | `link` | keyword | off | Renders trigger as underlined text instead of button |
1201
+ | `without-arrow` | keyword | off | Hides the popover arrow |
1202
+ | `distance:N` | number (pixels) | (default) | Distance between trigger and popover |
1203
+
1055
1204
  ### Details/Summary (Collapsible Content)
1056
1205
 
1057
1206
  Create collapsible content using the `^^^` syntax:
@@ -1488,6 +1637,15 @@ Cards automatically parse content into these slots:
1488
1637
  - **Label Extraction**: First `#` heading becomes the dialog label, or button text is used as fallback
1489
1638
  - **Markdown Support**: Full markdown formatting in dialog content
1490
1639
 
1640
+ ### Popover Parameters
1641
+
1642
+ | Option | Values | Default | Description |
1643
+ |--------|--------|---------|-------------|
1644
+ | `placement` | `top`, `bottom`, `left`, `right` | `top` | Where the popover appears relative to the trigger |
1645
+ | `link` | keyword | off | Renders trigger as underlined text instead of a `wa-button` |
1646
+ | `without-arrow` | keyword | off | Hides the popover arrow indicator |
1647
+ | `distance:N` | number (pixels) | (default) | Custom distance between trigger and popover |
1648
+
1491
1649
  ### Image Dialogs (Auto-transformation)
1492
1650
 
1493
1651
  Enable automatic image-to-dialog transformation in your `_config.yml`:
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.require_paths = ['lib']
34
34
 
35
35
  spec.add_dependency 'jekyll', '>= 3.7', '< 5.0'
36
- spec.add_dependency 'markawesome', '~> 0.6'
36
+ spec.add_dependency 'markawesome', '~> 0.7'
37
37
 
38
38
  spec.add_development_dependency 'bundler', '~> 2.0'
39
39
  spec.add_development_dependency 'rake', '~> 13.0'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module WebAwesome
5
- VERSION = '0.12.0'
5
+ VERSION = '0.14.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-webawesome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janne Waren
@@ -35,14 +35,14 @@ dependencies:
35
35
  requirements:
36
36
  - - "~>"
37
37
  - !ruby/object:Gem::Version
38
- version: '0.6'
38
+ version: '0.7'
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
- version: '0.6'
45
+ version: '0.7'
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
48
48
  requirement: !ruby/object:Gem::Requirement