kiso 0.4.2.pre → 0.4.3.pre
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 +4 -4
- data/CHANGELOG.md +9 -1
- data/app/helpers/kiso/component_helper.rb +13 -2
- data/lib/kiso/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e16c80be5816e217b497d96bbaca01d358ed7d9d9a76c885e0f3c0f4e482470
|
|
4
|
+
data.tar.gz: 5017356a702d692ec3a08f86de357392a7bd93e4bee6b1fef4096c6433249fcc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8ac36cb673b6f59b5fbd899e5c4117e525504d2d50a5b44bd08904c710b7bec469fa2f3f2c9b1fa4d349f2a0e965c98b394668fd7985b5a38210f93894aeb1b
|
|
7
|
+
data.tar.gz: 9d1b05dda12c29966829fde3eb6f7a42f1f36b29973d5674a637350ffe90e73a345c34c648833cbea21665fe42260ddd224f7272e231299f2993a6ef20eb5250
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.4.3.pre] - 2026-03-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `scope:` values now merge into the parent partial's kwargs — previously, scope was pushed onto the stack for sub-parts but not merged into the parent's own strict locals, causing `ActionView::StrictLocalsError`
|
|
15
|
+
- `kui_tag` / `appui_tag` now render correctly without a block — self-closing elements (e.g., status dots, icons) were rendering the options hash as text content instead of HTML attributes
|
|
16
|
+
|
|
10
17
|
## [0.4.2.pre] - 2026-03-08
|
|
11
18
|
|
|
12
19
|
### Added
|
|
@@ -118,7 +125,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
118
125
|
- Lookbook component previews
|
|
119
126
|
- Bridgetown documentation site
|
|
120
127
|
|
|
121
|
-
[Unreleased]: https://github.com/steveclarke/kiso/compare/v0.4.
|
|
128
|
+
[Unreleased]: https://github.com/steveclarke/kiso/compare/v0.4.3.pre...HEAD
|
|
129
|
+
[0.4.3.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.3.pre
|
|
122
130
|
[0.4.2.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.2.pre
|
|
123
131
|
[0.4.1.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.1.pre
|
|
124
132
|
[0.4.0.pre]: https://github.com/steveclarke/kiso/releases/tag/v0.4.0.pre
|
|
@@ -102,10 +102,17 @@ module Kiso
|
|
|
102
102
|
# yield
|
|
103
103
|
# end
|
|
104
104
|
def kui_tag(tag, theme:, slot:, css_classes: "", variants: {}, **component_options, &block)
|
|
105
|
-
|
|
105
|
+
html_options = {
|
|
106
106
|
class: theme.render(**variants, class: css_classes),
|
|
107
107
|
data: kiso_prepare_options(component_options, slot: slot),
|
|
108
|
-
**component_options
|
|
108
|
+
**component_options
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if block
|
|
112
|
+
content_tag(tag, html_options, &block)
|
|
113
|
+
else
|
|
114
|
+
content_tag(tag, nil, html_options)
|
|
115
|
+
end
|
|
109
116
|
end
|
|
110
117
|
|
|
111
118
|
private
|
|
@@ -172,6 +179,10 @@ module Kiso
|
|
|
172
179
|
# Push context for composed sub-parts to read (skip when empty)
|
|
173
180
|
kiso_push_ui_context(component, merged_ui) if has_ui
|
|
174
181
|
kiso_push_scope(component, scope) if has_scope
|
|
182
|
+
|
|
183
|
+
# Merge scope into parent kwargs so the parent partial receives
|
|
184
|
+
# scope values as strict locals (scope as defaults, explicit kwargs win)
|
|
185
|
+
kwargs = scope.merge(kwargs) if has_scope
|
|
175
186
|
begin
|
|
176
187
|
locals = has_ui ? kwargs.merge(ui: merged_ui) : kwargs
|
|
177
188
|
|
data/lib/kiso/version.rb
CHANGED