lightning_ui_kit 0.3.3 → 0.3.4

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/assets/stylesheets/lightning_ui_kit/application.css +1 -0
  4. data/app/assets/stylesheets/lightning_ui_kit/themes.css +15 -2
  5. data/app/assets/vendor/lightning_ui_kit.css +404 -68
  6. data/app/assets/vendor/lightning_ui_kit.js +3 -3
  7. data/app/components/lightning_ui_kit/accordion/item_component.html.erb +30 -0
  8. data/app/components/lightning_ui_kit/accordion/item_component.rb +13 -0
  9. data/app/components/lightning_ui_kit/accordion_component.html.erb +5 -0
  10. data/app/components/lightning_ui_kit/accordion_component.rb +22 -0
  11. data/app/components/lightning_ui_kit/alert_component.html.erb +14 -3
  12. data/app/components/lightning_ui_kit/alert_component.rb +58 -5
  13. data/app/components/lightning_ui_kit/card_component.html.erb +34 -0
  14. data/app/components/lightning_ui_kit/card_component.rb +22 -0
  15. data/app/components/lightning_ui_kit/layout_component.html.erb +3 -3
  16. data/app/components/lightning_ui_kit/radio_group/option_component.html.erb +1 -0
  17. data/app/components/lightning_ui_kit/radio_group/option_component.rb +14 -0
  18. data/app/components/lightning_ui_kit/radio_group_component.html.erb +60 -0
  19. data/app/components/lightning_ui_kit/radio_group_component.rb +70 -0
  20. data/app/components/lightning_ui_kit/tabs/tab_component.html.erb +1 -0
  21. data/app/components/lightning_ui_kit/tabs/tab_component.rb +8 -0
  22. data/app/components/lightning_ui_kit/tabs_component.html.erb +30 -0
  23. data/app/components/lightning_ui_kit/tabs_component.rb +65 -0
  24. data/app/javascript/lightning_ui_kit/controllers/radio_group_controller.js +74 -0
  25. data/app/javascript/lightning_ui_kit/controllers/tabs_controller.js +77 -0
  26. data/app/javascript/lightning_ui_kit/index.js +6 -2
  27. data/lib/lightning_ui_kit/builder.rb +16 -4
  28. data/lib/lightning_ui_kit/version.rb +1 -1
  29. metadata +18 -4
  30. data/app/components/lightning_ui_kit/banner_component.html.erb +0 -17
  31. data/app/components/lightning_ui_kit/banner_component.rb +0 -33
  32. /data/app/javascript/lightning_ui_kit/controllers/{banner_controller.js → alert_controller.js} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '089bcfcdadfc3260d27dda5d1db22666a32697e1446d5786088ce1520609d75d'
4
- data.tar.gz: b690d324938ae0a2e906336ba02fda621f3160dcaadcb9aafef0cfa2df37339f
3
+ metadata.gz: 86220a49aeb80d07917a5d0fa3a221886dba5be1a44fdadf106b68a93b8ed4d8
4
+ data.tar.gz: 5e5245d824319823dc9a97850fc10834dc708f07e767667985f2f0399dadc95a
5
5
  SHA512:
6
- metadata.gz: 662f686176b974c57953419eea45650402f3bce057256d756fd3f9dc77a5ecfdd07ac6882ca1b05ccf1e3dddec3e9c19a4a6786e313e10ad0084e04d791058c3
7
- data.tar.gz: fdd96831b55658d94dee59302a2c0a1ec9ca00501de41e2caf9e56e78e316e10c103352a4aade79f436b31597442913c332258927aebddc5b7184d3133c55cb1
6
+ metadata.gz: 8b7a5a45bbebae22b04a2f5b0269f40f2f2d87bf774076543e1627ed3d35062ebec3611a4b0704b2c39410e307363f05b39704618b64356fd68505f1061ac1c3
7
+ data.tar.gz: f8e33c885b762da24e39222318de87a6a5eb5f6084ee1ceb6dc9fedbbfdc2e8d6c15461c58855807f36d42b47d3abeebcc32bcc5484c16ccdc93943acc0628aa
data/README.md CHANGED
@@ -80,11 +80,11 @@ Use the `lui` helper to render components:
80
80
 
81
81
  ### Available Components
82
82
 
83
- **Form**: `button`, `input`, `textarea`, `select`, `checkbox`, `switch`, `combobox`, `file_input`, `dropzone`
83
+ **Form**: `button`, `input`, `textarea`, `select`, `checkbox`, `switch`, `radio_group`, `combobox`, `file_input`, `dropzone`
84
84
 
85
85
  **Display**: `text`, `badge`, `avatar`, `alert`, `banner`, `toast`, `skeleton`, `spinner`
86
86
 
87
- **Structure**: `table`, `pagination`, `description_list`, `dropdown`, `modal`, `tooltip`, `layout`, `sidebar`, `sidebar_section`, `sidebar_link`, `link`
87
+ **Structure**: `card`, `tabs`, `accordion`, `table`, `pagination`, `description_list`, `dropdown`, `modal`, `tooltip`, `layout` (frosted glass sidebar with backdrop blur), `sidebar`, `sidebar_section`, `sidebar_link`, `link`
88
88
 
89
89
  ### Alternative Syntax
90
90
 
@@ -6,6 +6,7 @@
6
6
  --color-surface-secondary: var(--lui-theme-surface-secondary);
7
7
  --color-surface-tertiary: var(--lui-theme-surface-tertiary);
8
8
  --color-surface-aside: var(--lui-theme-surface-aside);
9
+ --color-surface-page: var(--lui-theme-surface-page);
9
10
  --color-surface-input: var(--lui-theme-surface-input);
10
11
  --color-surface-invert: var(--lui-theme-surface-invert);
11
12
  --color-surface-overlay: var(--lui-theme-surface-overlay);
@@ -20,7 +20,7 @@
20
20
  --lui-theme-surface: #fff;
21
21
  --lui-theme-surface-secondary: oklch(0.985 0 0);
22
22
  --lui-theme-surface-tertiary: oklch(0.967 0.001 286.375);
23
- --lui-theme-surface-aside: oklch(0.967 0.001 286.375);
23
+ --lui-theme-surface-page: #f0f0ee;
24
24
  --lui-theme-surface-input: #fff;
25
25
  --lui-theme-surface-invert: oklch(0.21 0.006 285.885);
26
26
  --lui-theme-surface-overlay: oklch(0.141 0.005 285.823 / 25%);
@@ -79,7 +79,7 @@
79
79
  --lui-theme-surface: oklch(0.141 0.005 285.823);
80
80
  --lui-theme-surface-secondary: oklch(0.21 0.006 285.885);
81
81
  --lui-theme-surface-tertiary: oklch(0.274 0.006 286.033);
82
- --lui-theme-surface-aside: oklch(0.13 0.004 285.823);
82
+ --lui-theme-surface-page: oklch(0.141 0.005 285.823);
83
83
  --lui-theme-surface-input: color-mix(in oklab, white 5%, transparent);
84
84
  --lui-theme-surface-invert: oklch(0.985 0 0);
85
85
  --lui-theme-surface-overlay: oklch(0 0 0 / 50%);
@@ -131,3 +131,16 @@
131
131
  --lui-theme-spinner-primary: oklch(0.705 0.015 286.067);
132
132
  --lui-theme-spinner-secondary: oklch(0.442 0.017 285.786);
133
133
  }
134
+
135
+ /* ===== Page Background Gradient ===== */
136
+ .lui-page-gradient {
137
+ background-image:
138
+ radial-gradient(ellipse at 20% 50%, rgba(200,210,230,0.35) 0%, transparent 60%),
139
+ radial-gradient(ellipse at 80% 20%, rgba(220,205,235,0.25) 0%, transparent 50%);
140
+ }
141
+
142
+ .lui-theme-dark .lui-page-gradient {
143
+ background-image:
144
+ radial-gradient(ellipse at 20% 50%, rgba(40,50,80,0.4) 0%, transparent 60%),
145
+ radial-gradient(ellipse at 80% 20%, rgba(60,40,80,0.3) 0%, transparent 50%);
146
+ }