lostcoords-ui 0.8.1 → 0.9.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 +4 -4
- data/README.md +124 -66
- data/app/assets/tailwind/lostcoords/ui/components/shell.css +4 -0
- data/app/assets/tailwind/lostcoords/ui/components.css +1 -0
- data/app/assets/tailwind/lostcoords/ui/core.css +1 -1
- data/app/assets/tailwind/lostcoords/ui/dialog.css +3 -0
- data/app/assets/tailwind/lostcoords/ui/prose.css +9 -0
- data/app/assets/tailwind/lostcoords/ui/shell.css +161 -0
- data/app/assets/tailwind/lostcoords/ui/typography.css +26 -0
- data/app/helpers/lostcoords/ui/emoji_picker_helper.rb +8 -5
- data/app/helpers/lostcoords/ui/layout_helper.rb +5 -3
- data/app/helpers/lostcoords/ui/navigation_helper.rb +29 -0
- data/app/helpers/lostcoords/ui/reading_helper.rb +23 -2
- data/app/helpers/lostcoords/ui/shell_helper.rb +64 -0
- data/app/helpers/lostcoords/ui/translation_helper.rb +1 -5
- data/app/helpers/lostcoords/ui/typography_helper.rb +9 -2
- data/app/javascript/lostcoords/ui/controllers/lc_app_header_controller.js +15 -0
- data/app/javascript/lostcoords/ui/controllers/lc_dock_controller.js +21 -0
- data/app/javascript/lostcoords/ui/controllers/lc_nav_controller.js +13 -7
- data/app/javascript/lostcoords/ui/controllers/lc_scroll_keeper_controller.js +53 -0
- data/app/javascript/lostcoords/ui/controllers/lc_toc_controller.js +96 -0
- data/app/javascript/lostcoords/ui/index.js +8 -0
- data/config/locales/en.yml +9 -0
- data/config/locales/es.yml +9 -0
- data/config/locales/ja.yml +9 -0
- data/lib/lostcoords/ui/helpers.rb +1 -1
- data/lib/lostcoords/ui/icons.rb +1 -1
- data/lib/lostcoords/ui/parts.rb +87 -0
- data/lib/lostcoords/ui/version.rb +1 -1
- data/lib/lostcoords/ui.rb +12 -2
- data/lib/tasks/lostcoords_ui.rake +0 -1
- metadata +10 -6
- data/lib/lostcoords/ui/action_view.rb +0 -13
- data/lib/lostcoords/ui/rails.rb +0 -3
- data/lib/lostcoords/ui/resources.rb +0 -17
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lostcoords-ui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lost Coordinates
|
|
@@ -24,7 +24,7 @@ dependencies:
|
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: '8.0'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
|
-
name:
|
|
27
|
+
name: railties
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - ">="
|
|
@@ -99,6 +99,7 @@ files:
|
|
|
99
99
|
- app/assets/tailwind/lostcoords/ui/components/menu.css
|
|
100
100
|
- app/assets/tailwind/lostcoords/ui/components/prose.css
|
|
101
101
|
- app/assets/tailwind/lostcoords/ui/components/search.css
|
|
102
|
+
- app/assets/tailwind/lostcoords/ui/components/shell.css
|
|
102
103
|
- app/assets/tailwind/lostcoords/ui/components/table.css
|
|
103
104
|
- app/assets/tailwind/lostcoords/ui/components/toast.css
|
|
104
105
|
- app/assets/tailwind/lostcoords/ui/components/tooltip.css
|
|
@@ -113,6 +114,7 @@ files:
|
|
|
113
114
|
- app/assets/tailwind/lostcoords/ui/prose.css
|
|
114
115
|
- app/assets/tailwind/lostcoords/ui/search.css
|
|
115
116
|
- app/assets/tailwind/lostcoords/ui/sheet.css
|
|
117
|
+
- app/assets/tailwind/lostcoords/ui/shell.css
|
|
116
118
|
- app/assets/tailwind/lostcoords/ui/squircle.css
|
|
117
119
|
- app/assets/tailwind/lostcoords/ui/table.css
|
|
118
120
|
- app/assets/tailwind/lostcoords/ui/theme.css
|
|
@@ -145,6 +147,7 @@ files:
|
|
|
145
147
|
- app/helpers/lostcoords/ui/render_attributes_helper.rb
|
|
146
148
|
- app/helpers/lostcoords/ui/search_helper.rb
|
|
147
149
|
- app/helpers/lostcoords/ui/sheet_helper.rb
|
|
150
|
+
- app/helpers/lostcoords/ui/shell_helper.rb
|
|
148
151
|
- app/helpers/lostcoords/ui/structures_helper.rb
|
|
149
152
|
- app/helpers/lostcoords/ui/table_helper.rb
|
|
150
153
|
- app/helpers/lostcoords/ui/tailwind_helper.rb
|
|
@@ -152,15 +155,18 @@ files:
|
|
|
152
155
|
- app/helpers/lostcoords/ui/tooltip_helper.rb
|
|
153
156
|
- app/helpers/lostcoords/ui/translation_helper.rb
|
|
154
157
|
- app/helpers/lostcoords/ui/typography_helper.rb
|
|
158
|
+
- app/javascript/lostcoords/ui/controllers/lc_app_header_controller.js
|
|
155
159
|
- app/javascript/lostcoords/ui/controllers/lc_code_block_controller.js
|
|
156
160
|
- app/javascript/lostcoords/ui/controllers/lc_collapsible_controller.js
|
|
157
161
|
- app/javascript/lostcoords/ui/controllers/lc_copy_controller.js
|
|
158
162
|
- app/javascript/lostcoords/ui/controllers/lc_dialog_controller.js
|
|
163
|
+
- app/javascript/lostcoords/ui/controllers/lc_dock_controller.js
|
|
159
164
|
- app/javascript/lostcoords/ui/controllers/lc_emoji_picker_controller.js
|
|
160
165
|
- app/javascript/lostcoords/ui/controllers/lc_kbd_controller.js
|
|
161
166
|
- app/javascript/lostcoords/ui/controllers/lc_menu_controller.js
|
|
162
167
|
- app/javascript/lostcoords/ui/controllers/lc_nav_controller.js
|
|
163
168
|
- app/javascript/lostcoords/ui/controllers/lc_popover_controller.js
|
|
169
|
+
- app/javascript/lostcoords/ui/controllers/lc_scroll_keeper_controller.js
|
|
164
170
|
- app/javascript/lostcoords/ui/controllers/lc_search_controller.js
|
|
165
171
|
- app/javascript/lostcoords/ui/controllers/lc_selection_controller.js
|
|
166
172
|
- app/javascript/lostcoords/ui/controllers/lc_sheet_controller.js
|
|
@@ -168,6 +174,7 @@ files:
|
|
|
168
174
|
- app/javascript/lostcoords/ui/controllers/lc_tabs_controller.js
|
|
169
175
|
- app/javascript/lostcoords/ui/controllers/lc_toast_controller.js
|
|
170
176
|
- app/javascript/lostcoords/ui/controllers/lc_toast_region_controller.js
|
|
177
|
+
- app/javascript/lostcoords/ui/controllers/lc_toc_controller.js
|
|
171
178
|
- app/javascript/lostcoords/ui/controllers/lc_toggle_controller.js
|
|
172
179
|
- app/javascript/lostcoords/ui/controllers/lc_tooltip_controller.js
|
|
173
180
|
- app/javascript/lostcoords/ui/helpers/catalog_picker.js
|
|
@@ -199,7 +206,6 @@ files:
|
|
|
199
206
|
- config/locales/es.yml
|
|
200
207
|
- config/locales/ja.yml
|
|
201
208
|
- lib/lostcoords/ui.rb
|
|
202
|
-
- lib/lostcoords/ui/action_view.rb
|
|
203
209
|
- lib/lostcoords/ui/builders.rb
|
|
204
210
|
- lib/lostcoords/ui/components.rb
|
|
205
211
|
- lib/lostcoords/ui/engine.rb
|
|
@@ -207,8 +213,6 @@ files:
|
|
|
207
213
|
- lib/lostcoords/ui/helpers.rb
|
|
208
214
|
- lib/lostcoords/ui/icons.rb
|
|
209
215
|
- lib/lostcoords/ui/parts.rb
|
|
210
|
-
- lib/lostcoords/ui/rails.rb
|
|
211
|
-
- lib/lostcoords/ui/resources.rb
|
|
212
216
|
- lib/lostcoords/ui/stylesheets.rb
|
|
213
217
|
- lib/lostcoords/ui/tokens.rb
|
|
214
218
|
- lib/lostcoords/ui/version.rb
|
|
@@ -240,5 +244,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
240
244
|
requirements: []
|
|
241
245
|
rubygems_version: 4.0.6
|
|
242
246
|
specification_version: 4
|
|
243
|
-
summary:
|
|
247
|
+
summary: Rails UI components with Tailwind CSS and Stimulus.
|
|
244
248
|
test_files: []
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require "bigdecimal"
|
|
2
|
-
require "action_view"
|
|
3
|
-
require "active_support/core_ext/hash"
|
|
4
|
-
require "active_support/core_ext/object/blank"
|
|
5
|
-
require "tailwind_merge"
|
|
6
|
-
require_relative "resources"
|
|
7
|
-
require_relative "icons"
|
|
8
|
-
require_relative "parts"
|
|
9
|
-
require_relative "form_builder"
|
|
10
|
-
require_relative "helpers"
|
|
11
|
-
require_relative "stylesheets"
|
|
12
|
-
|
|
13
|
-
Lostcoords::Ui.load_translations!
|
data/lib/lostcoords/ui/rails.rb
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require "pathname"
|
|
2
|
-
require_relative "version"
|
|
3
|
-
|
|
4
|
-
module Lostcoords::Ui
|
|
5
|
-
def self.root
|
|
6
|
-
@root ||= Pathname.new(File.expand_path("../../..", __dir__)).freeze
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def self.view_paths
|
|
10
|
-
[ root.join("app/views").to_s ]
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def self.load_translations!
|
|
14
|
-
paths = (Dir[root.join("config/locales/*.yml")] + I18n.load_path).uniq
|
|
15
|
-
I18n.load_path = paths unless I18n.load_path == paths
|
|
16
|
-
end
|
|
17
|
-
end
|