okonomi_ui_kit 0.1.12 → 0.1.14

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: 551db2538043fad1c9fd39808d842e59677d1d24e63594062a5a9ef2192c8a4c
4
- data.tar.gz: ca47522f33cb4bbbb4a41ebefc1f71ae456859f26a619ec1d710675d21f8bfd2
3
+ metadata.gz: 02d1d3c2bfdf7b4540cb56dba40945e55d15ce78987cd5864ccf1941fbd699b5
4
+ data.tar.gz: f7783a14bb40bf95957936061ba560dbb3a64959f5a4084f58927a5edb8359b1
5
5
  SHA512:
6
- metadata.gz: 101472f2cb7772ae3d003d608350823f66aac3c72af5d83ffe4eb57034d946702d40444b632ac2ab23d1f593cdb075e98b4a228cd5387198533837734fea0d38
7
- data.tar.gz: 0e9ec912fc8c2c1a4d1dbc867b1b6a991bcb4c18e45a739e3aef92e58978ece45d3e09419cbf4e52898475f1ea00e23d4aeb29ed321336c8a923c5a96afe1557
6
+ metadata.gz: 88de14abb1c4ab75fa7a16cab52c5239a62409738e0ae227a13ea552d710fe242418604dd8494ae514fdb01073c80679c8c3b32a3857f3c137f875f26290d63d
7
+ data.tar.gz: 1b1c03afe50de99720cb1af0f2238adeeb5d9cc0aaf3da9f7a31eaf2538e1e735b49f751ecf122b6e2fe484260d9fa729e95e55fed2afb15608e874ce1fd6167
@@ -660,6 +660,9 @@
660
660
  .h-0 {
661
661
  height: calc(var(--spacing) * 0);
662
662
  }
663
+ .h-1 {
664
+ height: calc(var(--spacing) * 1);
665
+ }
663
666
  .h-2 {
664
667
  height: calc(var(--spacing) * 2);
665
668
  }
@@ -1363,6 +1366,9 @@
1363
1366
  .bg-green-100 {
1364
1367
  background-color: var(--color-green-100);
1365
1368
  }
1369
+ .bg-green-500 {
1370
+ background-color: var(--color-green-500);
1371
+ }
1366
1372
  .bg-green-600 {
1367
1373
  background-color: var(--color-green-600);
1368
1374
  }
@@ -1981,6 +1987,10 @@
1981
1987
  --tw-duration: 300ms;
1982
1988
  transition-duration: 300ms;
1983
1989
  }
1990
+ .duration-500 {
1991
+ --tw-duration: 500ms;
1992
+ transition-duration: 500ms;
1993
+ }
1984
1994
  .ease-in {
1985
1995
  --tw-ease: var(--ease-in);
1986
1996
  transition-timing-function: var(--ease-in);
@@ -16,7 +16,7 @@ module OkonomiUiKit
16
16
 
17
17
  register_styles :default do
18
18
  {
19
- root: "flex flex-col gap-8 p-8"
19
+ root: "flex flex-col"
20
20
  }
21
21
  end
22
22
  end
@@ -34,9 +34,15 @@ module OkonomiUiKit
34
34
  @content_parts << @template.ui.page_header(options, &block)
35
35
  nil
36
36
  end
37
+ alias header page_header
38
+
39
+ def body(**options, &block)
40
+ @content_parts << @template.ui.page_body(options, &block)
41
+ nil
42
+ end
37
43
 
38
44
  def section(**options, &block)
39
- @content_parts << @template.ui.page_section(options, &block)
45
+ @content_parts << @template.ui.segment(options, &block)
40
46
  nil
41
47
  end
42
48
 
@@ -0,0 +1,15 @@
1
+ module OkonomiUiKit
2
+ module Components
3
+ class PageBody < OkonomiUiKit::Component
4
+ def render(options = {}, &block)
5
+ view.render(template_path, component: self, options:, &block)
6
+ end
7
+
8
+ register_styles :default do
9
+ {
10
+ root: "overflow-auto-y p-4"
11
+ }
12
+ end
13
+ end
14
+ end
15
+ end
@@ -16,7 +16,7 @@ module OkonomiUiKit
16
16
 
17
17
  register_styles :default do
18
18
  {
19
- root: "flex flex-col gap-2",
19
+ root: "flex flex-col gap-2 p-4",
20
20
  row: "flex w-full justify-between items-center",
21
21
  actions: "mt-4 flex md:ml-4 md:mt-0 gap-2"
22
22
  }
@@ -1,6 +1,6 @@
1
1
  module OkonomiUiKit
2
2
  module Components
3
- class PageSection < OkonomiUiKit::Component
3
+ class Segment < OkonomiUiKit::Component
4
4
  def render(options = {}, &block)
5
5
  options = options.with_indifferent_access
6
6
  title = options.delete(:title)
@@ -4,7 +4,6 @@ export default class extends Controller {
4
4
  static values = { fieldId: String, equals: String }
5
5
 
6
6
  connect() {
7
- console.log("FormFieldVisibilityController connected")
8
7
  this.field = document.getElementById(this.fieldIdValue)
9
8
  if (this.field) {
10
9
  this.toggle()
@@ -15,10 +14,10 @@ export default class extends Controller {
15
14
  toggle() {
16
15
  let currentValue
17
16
 
18
- if (this.field.type === "checkbox") {
19
- currentValue = this.field.checked ? this.field.value : null
17
+ if (this.field.type === "checkbox" || this.field.type === "radio") {
18
+ currentValue = this.field.checked ? this.field.value : null;
20
19
  } else {
21
- currentValue = this.field.value
20
+ currentValue = this.field.value;
22
21
  }
23
22
 
24
23
  const shouldShow = currentValue === this.equalsValue
@@ -0,0 +1,3 @@
1
+ <%= content_tag "div", class: component.style(:root) do %>
2
+ <%= yield %>
3
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module OkonomiUiKit
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okonomi_ui_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Okonomi GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-06 00:00:00.000000000 Z
11
+ date: 2025-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1395,9 +1395,10 @@ files:
1395
1395
  - app/helpers/okonomi_ui_kit/components/link_to.rb
1396
1396
  - app/helpers/okonomi_ui_kit/components/navigation.rb
1397
1397
  - app/helpers/okonomi_ui_kit/components/page.rb
1398
+ - app/helpers/okonomi_ui_kit/components/page_body.rb
1398
1399
  - app/helpers/okonomi_ui_kit/components/page_header.rb
1399
- - app/helpers/okonomi_ui_kit/components/page_section.rb
1400
1400
  - app/helpers/okonomi_ui_kit/components/progress_bar.rb
1401
+ - app/helpers/okonomi_ui_kit/components/segment.rb
1401
1402
  - app/helpers/okonomi_ui_kit/components/table.rb
1402
1403
  - app/helpers/okonomi_ui_kit/components/typography.rb
1403
1404
  - app/helpers/okonomi_ui_kit/config.rb
@@ -1433,9 +1434,10 @@ files:
1433
1434
  - app/views/okonomi/components/navigation/_link.html.erb
1434
1435
  - app/views/okonomi/components/navigation/_navigation.html.erb
1435
1436
  - app/views/okonomi/components/page/_page.html.erb
1437
+ - app/views/okonomi/components/page_body/_page_body.html.erb
1436
1438
  - app/views/okonomi/components/page_header/_page_header.html.erb
1437
- - app/views/okonomi/components/page_section/_page_section.html.erb
1438
1439
  - app/views/okonomi/components/progress_bar/_progress_bar.html.erb
1440
+ - app/views/okonomi/components/segment/_segment.html.erb
1439
1441
  - app/views/okonomi/components/table/_table.html.erb
1440
1442
  - app/views/okonomi/components/typography/_typography.html.erb
1441
1443
  - app/views/okonomi/forms/tailwind/_checkbox_label.html.erb