protos 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/README.md +34 -22
- data/examples/list.rb +2 -2
- data/examples/navbar.rb +3 -8
- data/lib/protos/accordion/item.rb +4 -2
- data/lib/protos/accordion.rb +10 -11
- data/lib/protos/alert.rb +3 -0
- data/lib/protos/avatar.rb +10 -10
- data/lib/protos/badge.rb +62 -0
- data/lib/protos/breadcrumbs.rb +2 -0
- data/lib/protos/card.rb +12 -7
- data/lib/protos/carousel.rb +13 -10
- data/lib/protos/chat_bubble/content.rb +12 -12
- data/lib/protos/chat_bubble.rb +11 -6
- data/lib/protos/collapse/title.rb +3 -3
- data/lib/protos/collapse.rb +10 -7
- data/lib/protos/combobox.rb +3 -3
- data/lib/protos/command/input.rb +4 -4
- data/lib/protos/command.rb +16 -2
- data/lib/protos/component.rb +1 -1
- data/lib/protos/drawer.rb +7 -3
- data/lib/protos/dropdown.rb +10 -6
- data/lib/protos/hero.rb +3 -0
- data/lib/protos/list.rb +2 -0
- data/lib/protos/modal/close_button.rb +8 -0
- data/lib/protos/modal/dialog.rb +4 -6
- data/lib/protos/modal.rb +6 -1
- data/lib/protos/popover.rb +24 -21
- data/lib/protos/stats.rb +7 -0
- data/lib/protos/steps.rb +5 -3
- data/lib/protos/swap.rb +3 -0
- data/lib/protos/table/caption.rb +3 -3
- data/lib/protos/table/cell.rb +3 -3
- data/lib/protos/table/head.rb +3 -3
- data/lib/protos/table.rb +21 -13
- data/lib/protos/tabs/tab.rb +4 -4
- data/lib/protos/tabs.rb +18 -16
- data/lib/protos/theme.rb +8 -7
- data/lib/protos/timeline.rb +8 -3
- data/lib/protos/toast.rb +5 -3
- data/lib/protos/typography/paragraph.rb +3 -3
- data/lib/protos/typography.rb +4 -0
- data/lib/protos/version.rb +1 -1
- data/lib/protos.rb +37 -121
- metadata +4 -7
- data/lib/protos/command/dialog.rb +0 -40
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nolan J Tait
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-13 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: dry-core
|
@@ -106,6 +105,7 @@ files:
|
|
106
105
|
- lib/protos/alert/icon.rb
|
107
106
|
- lib/protos/attributes.rb
|
108
107
|
- lib/protos/avatar.rb
|
108
|
+
- lib/protos/badge.rb
|
109
109
|
- lib/protos/breadcrumbs.rb
|
110
110
|
- lib/protos/breadcrumbs/crumb.rb
|
111
111
|
- lib/protos/card.rb
|
@@ -126,7 +126,6 @@ files:
|
|
126
126
|
- lib/protos/collapse/title.rb
|
127
127
|
- lib/protos/combobox.rb
|
128
128
|
- lib/protos/command.rb
|
129
|
-
- lib/protos/command/dialog.rb
|
130
129
|
- lib/protos/command/empty.rb
|
131
130
|
- lib/protos/command/group.rb
|
132
131
|
- lib/protos/command/input.rb
|
@@ -203,7 +202,6 @@ metadata:
|
|
203
202
|
source_code_uri: https://github.com/inhouse-work/protos
|
204
203
|
changelog_uri: https://github.com/inhouse-work/protos
|
205
204
|
rubygems_mfa_required: 'true'
|
206
|
-
post_install_message:
|
207
205
|
rdoc_options: []
|
208
206
|
require_paths:
|
209
207
|
- lib
|
@@ -221,8 +219,7 @@ requirements:
|
|
221
219
|
- tailwindcss
|
222
220
|
- daisyui
|
223
221
|
- protos-stimulus
|
224
|
-
rubygems_version: 3.
|
225
|
-
signing_key:
|
222
|
+
rubygems_version: 3.6.2
|
226
223
|
specification_version: 4
|
227
224
|
summary: A UI component library built with phlex and daisyui
|
228
225
|
test_files: []
|
@@ -1,40 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Protos
|
4
|
-
class Command
|
5
|
-
class Dialog < Component
|
6
|
-
# DOCS: The dialog for a command wraps the command content and provides a
|
7
|
-
# modal backdrop for the command when it is opened.
|
8
|
-
|
9
|
-
def view_template(&block)
|
10
|
-
dialog(**attrs) do
|
11
|
-
div(class: css[:modal], &block)
|
12
|
-
form(method: :dialog, class: css[:form]) do
|
13
|
-
button { "close" }
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
private
|
19
|
-
|
20
|
-
def default_attrs
|
21
|
-
{
|
22
|
-
data: { "protos--modal-target": "modal" }
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
def theme
|
27
|
-
{
|
28
|
-
container: %w[
|
29
|
-
modal
|
30
|
-
modal-bottom
|
31
|
-
backdrop-blur-sm
|
32
|
-
sm:modal-middle
|
33
|
-
],
|
34
|
-
modal: "modal-box p-0",
|
35
|
-
form: "modal-backdrop"
|
36
|
-
}
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|