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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/stylesheets/lightning_ui_kit/application.css +1 -0
- data/app/assets/stylesheets/lightning_ui_kit/themes.css +15 -2
- data/app/assets/vendor/lightning_ui_kit.css +404 -68
- data/app/assets/vendor/lightning_ui_kit.js +3 -3
- data/app/components/lightning_ui_kit/accordion/item_component.html.erb +30 -0
- data/app/components/lightning_ui_kit/accordion/item_component.rb +13 -0
- data/app/components/lightning_ui_kit/accordion_component.html.erb +5 -0
- data/app/components/lightning_ui_kit/accordion_component.rb +22 -0
- data/app/components/lightning_ui_kit/alert_component.html.erb +14 -3
- data/app/components/lightning_ui_kit/alert_component.rb +58 -5
- data/app/components/lightning_ui_kit/card_component.html.erb +34 -0
- data/app/components/lightning_ui_kit/card_component.rb +22 -0
- data/app/components/lightning_ui_kit/layout_component.html.erb +3 -3
- data/app/components/lightning_ui_kit/radio_group/option_component.html.erb +1 -0
- data/app/components/lightning_ui_kit/radio_group/option_component.rb +14 -0
- data/app/components/lightning_ui_kit/radio_group_component.html.erb +60 -0
- data/app/components/lightning_ui_kit/radio_group_component.rb +70 -0
- data/app/components/lightning_ui_kit/tabs/tab_component.html.erb +1 -0
- data/app/components/lightning_ui_kit/tabs/tab_component.rb +8 -0
- data/app/components/lightning_ui_kit/tabs_component.html.erb +30 -0
- data/app/components/lightning_ui_kit/tabs_component.rb +65 -0
- data/app/javascript/lightning_ui_kit/controllers/radio_group_controller.js +74 -0
- data/app/javascript/lightning_ui_kit/controllers/tabs_controller.js +77 -0
- data/app/javascript/lightning_ui_kit/index.js +6 -2
- data/lib/lightning_ui_kit/builder.rb +16 -4
- data/lib/lightning_ui_kit/version.rb +1 -1
- metadata +18 -4
- data/app/components/lightning_ui_kit/banner_component.html.erb +0 -17
- data/app/components/lightning_ui_kit/banner_component.rb +0 -33
- /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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86220a49aeb80d07917a5d0fa3a221886dba5be1a44fdadf106b68a93b8ed4d8
|
|
4
|
+
data.tar.gz: 5e5245d824319823dc9a97850fc10834dc708f07e767667985f2f0399dadc95a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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-
|
|
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-
|
|
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
|
+
}
|