daisyui 1.3.0 → 2.0.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/CHANGELOG.md +45 -0
- data/LICENSE-tailwind_merge.txt +21 -0
- data/README.md +58 -0
- data/lib/daisy_ui/accordion.rb +32 -28
- data/lib/daisy_ui/alert.rb +97 -94
- data/lib/daisy_ui/aura.rb +37 -37
- data/lib/daisy_ui/avatar.rb +16 -14
- data/lib/daisy_ui/badge.rb +159 -156
- data/lib/daisy_ui/base.rb +38 -4
- data/lib/daisy_ui/button.rb +148 -142
- data/lib/daisy_ui/card.rb +57 -54
- data/lib/daisy_ui/carousel.rb +36 -32
- data/lib/daisy_ui/chat.rb +16 -15
- data/lib/daisy_ui/checkbox.rb +95 -93
- data/lib/daisy_ui/class_merge/cache.rb +40 -0
- data/lib/daisy_ui/class_merge/class_group_utils.rb +139 -0
- data/lib/daisy_ui/class_merge/configuration.rb +77 -0
- data/lib/daisy_ui/class_merge/daisy_groups.rb +83 -0
- data/lib/daisy_ui/class_merge/merger.rb +126 -0
- data/lib/daisy_ui/class_merge/parse_class_name.rb +110 -0
- data/lib/daisy_ui/class_merge/sort_modifiers.rb +36 -0
- data/lib/daisy_ui/class_merge/tailwind_config.rb +2505 -0
- data/lib/daisy_ui/class_merge/validators.rb +202 -0
- data/lib/daisy_ui/class_merge.rb +47 -0
- data/lib/daisy_ui/collapse.rb +32 -28
- data/lib/daisy_ui/configurable.rb +31 -3
- data/lib/daisy_ui/divider.rb +84 -78
- data/lib/daisy_ui/dock.rb +37 -35
- data/lib/daisy_ui/dropdown.rb +67 -65
- data/lib/daisy_ui/file_input.rb +95 -91
- data/lib/daisy_ui/footer.rb +16 -14
- data/lib/daisy_ui/indicator.rb +40 -36
- data/lib/daisy_ui/input.rb +95 -91
- data/lib/daisy_ui/join.rb +16 -14
- data/lib/daisy_ui/kbd.rb +37 -35
- data/lib/daisy_ui/link.rb +58 -58
- data/lib/daisy_ui/loading.rb +85 -81
- data/lib/daisy_ui/mask.rb +123 -119
- data/lib/daisy_ui/megamenu.rb +53 -50
- data/lib/daisy_ui/menu.rb +57 -53
- data/lib/daisy_ui/modal.rb +49 -47
- data/lib/daisy_ui/otp.rb +95 -93
- data/lib/daisy_ui/pagination.rb +16 -14
- data/lib/daisy_ui/progress.rb +58 -56
- data/lib/daisy_ui/radio.rb +95 -91
- data/lib/daisy_ui/range.rb +95 -91
- data/lib/daisy_ui/rating.rb +37 -35
- data/lib/daisy_ui/select.rb +95 -91
- data/lib/daisy_ui/stack.rb +24 -22
- data/lib/daisy_ui/stat.rb +16 -14
- data/lib/daisy_ui/status.rb +95 -91
- data/lib/daisy_ui/steps.rb +16 -14
- data/lib/daisy_ui/swap.rb +16 -14
- data/lib/daisy_ui/table.rb +41 -39
- data/lib/daisy_ui/tabs.rb +80 -77
- data/lib/daisy_ui/textarea.rb +95 -91
- data/lib/daisy_ui/timeline.rb +16 -14
- data/lib/daisy_ui/toast.rb +46 -42
- data/lib/daisy_ui/toggle.rb +95 -91
- data/lib/daisy_ui/tooltip.rb +113 -106
- data/lib/daisy_ui/updated_at.rb +1 -1
- data/lib/daisy_ui/version.rb +1 -1
- metadata +18 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe7d742ea5321a80e5f6689bd3df51ad59aae0a5ee9ee0617f8f237a654ebad4
|
|
4
|
+
data.tar.gz: 9ff82a86a33f3d01165f59b3b94e9e6867bd43c43ab190c0bfbc7f14fa49e546
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe53957f3b594373cfdbd7865a3e143f5526e679c9dcbb8d8da1eef10a95a0cccf0d55dcf5c33889ad268ed382b3dd21f56b8b74e28f2adc289697e8cf10fedc
|
|
7
|
+
data.tar.gz: 3bee4c79945a177706b8f30231b5f4f0a2aab66aa3dd4031842a9d3e603cc09621ebefce8a7cd79062f5e9a9f0bc1823a1701ba10953c687a3d5c03a0b36bd10
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,46 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
### Upgrading to 2.0
|
|
4
|
+
|
|
5
|
+
Components now merge their classes: when two classes conflict, the later one
|
|
6
|
+
wins. `Button(:sm, class: "btn-lg")` renders `btn btn-lg` (1.x rendered
|
|
7
|
+
`btn btn-sm btn-lg`), and `Card(class: "p-2 p-4")` renders `card p-4`.
|
|
8
|
+
|
|
9
|
+
- Conflicts are resolved for Tailwind utilities (a port of tailwind_merge 1.5.6)
|
|
10
|
+
and for daisyUI modifiers a component declares as alternatives in one group
|
|
11
|
+
(sizes, colors, styles, placements, mask shapes, loading styles, ...).
|
|
12
|
+
Responsive and state variants (`sm:`, `hover:`) are separate slots.
|
|
13
|
+
- Register custom font sizes and other non-color utilities, or they may be
|
|
14
|
+
misread. An unregistered `text-display` reads as a color and is dropped by a
|
|
15
|
+
later `text-error`:
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
DaisyUI.configure do |config|
|
|
19
|
+
config.class_merge.utility("text-display", like: "text-lg")
|
|
20
|
+
end
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- To keep the 1.x behaviour (plain join), disable merging:
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
DaisyUI.configure { |config| config.class_merge.enabled = false }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- The Tailwind utilities `table`, `collapse`, `filter` and `text-rotate` are treated as the
|
|
30
|
+
daisyUI component classes of the same name and never conflict with `hidden`,
|
|
31
|
+
`invisible` and friends.
|
|
32
|
+
|
|
3
33
|
### Added
|
|
4
34
|
|
|
35
|
+
- `DaisyUI::ClassMerge.merge(*parts)`: a daisyUI-aware class merger with no
|
|
36
|
+
runtime dependencies. Configure it with `config.class_merge` (`enabled`,
|
|
37
|
+
`utility`, `theme`, `class_groups`, `conflicts`).
|
|
38
|
+
- `register_modifiers` accepts groups of alternatives,
|
|
39
|
+
`register_modifiers(size: { sm: "btn-sm", lg: "btn-lg" }, wide: "btn-wide")`,
|
|
40
|
+
exposed as `.modifier_groups`. Every gem component declares its groups, and
|
|
41
|
+
app components subclassing `DaisyUI::Base` can do the same.
|
|
42
|
+
`config.modifiers.add` takes `group:` to join one.
|
|
43
|
+
|
|
5
44
|
- Aura component (DaisyUI 5.6) with style variants (dual, rainbow, holo, gold, silver, glow) and sizes
|
|
6
45
|
- Megamenu component (DaisyUI 5.6) with wide, full, vertical modifiers, sizes, and active_indicator sub-component
|
|
7
46
|
- OTP component (DaisyUI 5.6) for one-time password inputs with configurable digit count, joined modifier, sizes, and color variants
|
|
@@ -28,9 +67,15 @@
|
|
|
28
67
|
|
|
29
68
|
### Changed
|
|
30
69
|
|
|
70
|
+
- Maintainers cut releases with `bin/release` (`list`, `--dry-run`, `patch`/`minor`/`major`/`X.Y.Z`), which checks the lockfiles for gems that do not accept the new version yet and then drives `rake release`.
|
|
71
|
+
|
|
31
72
|
- Range component: added range-vertical modifier for vertical orientation (DaisyUI 5.6)
|
|
32
73
|
- Tooltip component: added alignment modifiers (tooltip-start, tooltip-center, tooltip-end) and tooltip-content sub-component (DaisyUI 5.6)
|
|
33
74
|
|
|
75
|
+
### Fixed
|
|
76
|
+
|
|
77
|
+
- Popover tooltips no longer clip arrows that extend beyond the tooltip card.
|
|
78
|
+
|
|
34
79
|
## [0.1.0] - 2024-08-02
|
|
35
80
|
|
|
36
81
|
- Initial release
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Garen J. Torikian
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
|
@@ -119,6 +119,64 @@ module.exports = {
|
|
|
119
119
|
};
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
+
## Class merging
|
|
123
|
+
|
|
124
|
+
Components merge their classes so the last conflicting class wins, for Tailwind
|
|
125
|
+
utilities and daisyUI modifiers alike:
|
|
126
|
+
|
|
127
|
+
```ruby
|
|
128
|
+
Button(:sm, class: "btn-lg") # => class="btn btn-lg"
|
|
129
|
+
Badge(:primary, class: "badge-error") # => class="badge badge-error"
|
|
130
|
+
Card(class: "p-2 p-4") # => class="card p-4"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Tailwind conflicts follow [tailwind_merge](https://github.com/gjtorikian/tailwind_merge)
|
|
134
|
+
(its engine is ported into the gem as `DaisyUI::ClassMerge`, with no runtime
|
|
135
|
+
dependency). daisyUI modifiers conflict when the component declares them as
|
|
136
|
+
alternatives in one group: `btn-sm btn-lg` keeps `btn-lg`, while
|
|
137
|
+
`dropdown-top dropdown-end` keeps both (placement and alignment are separate
|
|
138
|
+
groups). Ungrouped modifiers (`btn-wide`, `btn-active`) never conflict.
|
|
139
|
+
Component base classes such as `table` and `collapse` are never dropped.
|
|
140
|
+
|
|
141
|
+
Register custom utilities so the merger knows what they are. Unregistered,
|
|
142
|
+
`text-display` reads as a color and a later `text-error` drops it. Custom
|
|
143
|
+
colors (`bg-brand`, `text-brand`) need no registration.
|
|
144
|
+
|
|
145
|
+
```ruby
|
|
146
|
+
DaisyUI.configure do |config|
|
|
147
|
+
# text-display and text-hero are font sizes, like text-lg
|
|
148
|
+
config.class_merge.utility("text-display", "text-hero", like: "text-lg")
|
|
149
|
+
|
|
150
|
+
# Extend a Tailwind theme scale: p-gutter, m-gutter, gap-gutter, ...
|
|
151
|
+
config.class_merge.theme(spacing: %w[gutter])
|
|
152
|
+
end
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
`class_groups` and `conflicts` take raw tailwind_merge groups for anything
|
|
156
|
+
else.
|
|
157
|
+
|
|
158
|
+
Your own components declare groups the same way the gem's do, by nesting
|
|
159
|
+
modifiers under a group name:
|
|
160
|
+
|
|
161
|
+
```ruby
|
|
162
|
+
class Widget < DaisyUI::Base
|
|
163
|
+
register_modifiers(
|
|
164
|
+
size: { sm: "widget-sm", lg: "widget-lg" }, # widget-sm widget-lg -> widget-lg
|
|
165
|
+
round: "widget-round" # ungrouped, never conflicts
|
|
166
|
+
)
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Configured modifiers can join a component's group too
|
|
170
|
+
DaisyUI.configure do |config|
|
|
171
|
+
config.modifiers.add(:huge, classes: "btn-huge", component: DaisyUI::Button, group: :size)
|
|
172
|
+
end
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Merge in your own components with `DaisyUI::ClassMerge.merge(*parts)` (strings,
|
|
176
|
+
arrays, `nil` and `false`; returns a frozen String). Opt out globally with
|
|
177
|
+
`config.class_merge.enabled = false`, or per component by overriding the
|
|
178
|
+
private `merge_classes`.
|
|
179
|
+
|
|
122
180
|
# Compatibility Notes
|
|
123
181
|
|
|
124
182
|
## @tailwindcss/forms plugin
|
data/lib/daisy_ui/accordion.rb
CHANGED
|
@@ -29,34 +29,38 @@ module DaisyUI
|
|
|
29
29
|
attr_reader :name, :checked, :title_block, :title_options
|
|
30
30
|
|
|
31
31
|
register_modifiers(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
32
|
+
icon: {
|
|
33
|
+
# "sm:collapse-arrow"
|
|
34
|
+
# "@sm:collapse-arrow"
|
|
35
|
+
# "md:collapse-arrow"
|
|
36
|
+
# "@md:collapse-arrow"
|
|
37
|
+
# "lg:collapse-arrow"
|
|
38
|
+
# "@lg:collapse-arrow"
|
|
39
|
+
arrow: "collapse-arrow",
|
|
40
|
+
# "sm:collapse-plus"
|
|
41
|
+
# "@sm:collapse-plus"
|
|
42
|
+
# "md:collapse-plus"
|
|
43
|
+
# "@md:collapse-plus"
|
|
44
|
+
# "lg:collapse-plus"
|
|
45
|
+
# "@lg:collapse-plus"
|
|
46
|
+
plus: "collapse-plus"
|
|
47
|
+
},
|
|
48
|
+
state: {
|
|
49
|
+
# "sm:collapse-open"
|
|
50
|
+
# "@sm:collapse-open"
|
|
51
|
+
# "md:collapse-open"
|
|
52
|
+
# "@md:collapse-open"
|
|
53
|
+
# "lg:collapse-open"
|
|
54
|
+
# "@lg:collapse-open"
|
|
55
|
+
open: "collapse-open",
|
|
56
|
+
# "sm:collapse-close"
|
|
57
|
+
# "@sm:collapse-close"
|
|
58
|
+
# "md:collapse-close"
|
|
59
|
+
# "@md:collapse-close"
|
|
60
|
+
# "lg:collapse-close"
|
|
61
|
+
# "@lg:collapse-close"
|
|
62
|
+
close: "collapse-close"
|
|
63
|
+
}
|
|
60
64
|
)
|
|
61
65
|
end
|
|
62
66
|
end
|
data/lib/daisy_ui/alert.rb
CHANGED
|
@@ -9,100 +9,103 @@ module DaisyUI
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
register_modifiers(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
12
|
+
style: {
|
|
13
|
+
# "sm:alert-outline"
|
|
14
|
+
# "@sm:alert-outline"
|
|
15
|
+
# "md:alert-outline"
|
|
16
|
+
# "@md:alert-outline"
|
|
17
|
+
# "lg:alert-outline"
|
|
18
|
+
# "@lg:alert-outline"
|
|
19
|
+
outline: "alert-outline",
|
|
20
|
+
# "sm:alert-dash"
|
|
21
|
+
# "@sm:alert-dash"
|
|
22
|
+
# "md:alert-dash"
|
|
23
|
+
# "@md:alert-dash"
|
|
24
|
+
# "lg:alert-dash"
|
|
25
|
+
# "@lg:alert-dash"
|
|
26
|
+
dash: "alert-dash",
|
|
27
|
+
# "sm:alert-soft"
|
|
28
|
+
# "@sm:alert-soft"
|
|
29
|
+
# "md:alert-soft"
|
|
30
|
+
# "@md:alert-soft"
|
|
31
|
+
# "lg:alert-soft"
|
|
32
|
+
# "@lg:alert-soft"
|
|
33
|
+
soft: "alert-soft"
|
|
34
|
+
},
|
|
35
|
+
direction: {
|
|
36
|
+
# "sm:alert-vertical"
|
|
37
|
+
# "@sm:alert-vertical"
|
|
38
|
+
# "md:alert-vertical"
|
|
39
|
+
# "@md:alert-vertical"
|
|
40
|
+
# "lg:alert-vertical"
|
|
41
|
+
# "@lg:alert-vertical"
|
|
42
|
+
vertical: "alert-vertical",
|
|
43
|
+
# "sm:alert-horizontal"
|
|
44
|
+
# "@sm:alert-horizontal"
|
|
45
|
+
# "md:alert-horizontal"
|
|
46
|
+
# "@md:alert-horizontal"
|
|
47
|
+
# "lg:alert-horizontal"
|
|
48
|
+
# "@lg:alert-horizontal"
|
|
49
|
+
horizontal: "alert-horizontal"
|
|
50
|
+
},
|
|
51
|
+
color: {
|
|
52
|
+
# "sm:alert-info"
|
|
53
|
+
# "@sm:alert-info"
|
|
54
|
+
# "md:alert-info"
|
|
55
|
+
# "@md:alert-info"
|
|
56
|
+
# "lg:alert-info"
|
|
57
|
+
# "@lg:alert-info"
|
|
58
|
+
info: "alert-info",
|
|
59
|
+
# "sm:alert-success"
|
|
60
|
+
# "@sm:alert-success"
|
|
61
|
+
# "md:alert-success"
|
|
62
|
+
# "@md:alert-success"
|
|
63
|
+
# "lg:alert-success"
|
|
64
|
+
# "@lg:alert-success"
|
|
65
|
+
success: "alert-success",
|
|
66
|
+
# "sm:alert-warning"
|
|
67
|
+
# "@sm:alert-warning"
|
|
68
|
+
# "md:alert-warning"
|
|
69
|
+
# "@md:alert-warning"
|
|
70
|
+
# "lg:alert-warning"
|
|
71
|
+
# "@lg:alert-warning"
|
|
72
|
+
warning: "alert-warning",
|
|
73
|
+
# "sm:alert-error"
|
|
74
|
+
# "@sm:alert-error"
|
|
75
|
+
# "md:alert-error"
|
|
76
|
+
# "@md:alert-error"
|
|
77
|
+
# "lg:alert-error"
|
|
78
|
+
# "@lg:alert-error"
|
|
79
|
+
error: "alert-error",
|
|
80
|
+
# "sm:alert-neutral"
|
|
81
|
+
# "@sm:alert-neutral"
|
|
82
|
+
# "md:alert-neutral"
|
|
83
|
+
# "@md:alert-neutral"
|
|
84
|
+
# "lg:alert-neutral"
|
|
85
|
+
# "@lg:alert-neutral"
|
|
86
|
+
neutral: "alert-neutral",
|
|
87
|
+
# "sm:alert-primary"
|
|
88
|
+
# "@sm:alert-primary"
|
|
89
|
+
# "md:alert-primary"
|
|
90
|
+
# "@md:alert-primary"
|
|
91
|
+
# "lg:alert-primary"
|
|
92
|
+
# "@lg:alert-primary"
|
|
93
|
+
primary: "alert-primary",
|
|
94
|
+
# "sm:alert-secondary"
|
|
95
|
+
# "@sm:alert-secondary"
|
|
96
|
+
# "md:alert-secondary"
|
|
97
|
+
# "@md:alert-secondary"
|
|
98
|
+
# "lg:alert-secondary"
|
|
99
|
+
# "@lg:alert-secondary"
|
|
100
|
+
secondary: "alert-secondary",
|
|
101
|
+
# "sm:alert-accent"
|
|
102
|
+
# "@sm:alert-accent"
|
|
103
|
+
# "md:alert-accent"
|
|
104
|
+
# "@md:alert-accent"
|
|
105
|
+
# "lg:alert-accent"
|
|
106
|
+
# "@lg:alert-accent"
|
|
107
|
+
accent: "alert-accent"
|
|
108
|
+
}
|
|
106
109
|
)
|
|
107
110
|
end
|
|
108
111
|
end
|
data/lib/daisy_ui/aura.rb
CHANGED
|
@@ -9,7 +9,6 @@ module DaisyUI
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
register_modifiers(
|
|
12
|
-
# Styles
|
|
13
12
|
# "sm:aura-dual"
|
|
14
13
|
# "@sm:aura-dual"
|
|
15
14
|
# "md:aura-dual"
|
|
@@ -52,42 +51,43 @@ module DaisyUI
|
|
|
52
51
|
# "lg:aura-glow"
|
|
53
52
|
# "@lg:aura-glow"
|
|
54
53
|
glow: "aura-glow",
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
54
|
+
size: {
|
|
55
|
+
# "sm:aura-xs"
|
|
56
|
+
# "@sm:aura-xs"
|
|
57
|
+
# "md:aura-xs"
|
|
58
|
+
# "@md:aura-xs"
|
|
59
|
+
# "lg:aura-xs"
|
|
60
|
+
# "@lg:aura-xs"
|
|
61
|
+
xs: "aura-xs",
|
|
62
|
+
# "sm:aura-sm"
|
|
63
|
+
# "@sm:aura-sm"
|
|
64
|
+
# "md:aura-sm"
|
|
65
|
+
# "@md:aura-sm"
|
|
66
|
+
# "lg:aura-sm"
|
|
67
|
+
# "@lg:aura-sm"
|
|
68
|
+
sm: "aura-sm",
|
|
69
|
+
# "sm:aura-md"
|
|
70
|
+
# "@sm:aura-md"
|
|
71
|
+
# "md:aura-md"
|
|
72
|
+
# "@md:aura-md"
|
|
73
|
+
# "lg:aura-md"
|
|
74
|
+
# "@lg:aura-md"
|
|
75
|
+
md: "aura-md",
|
|
76
|
+
# "sm:aura-lg"
|
|
77
|
+
# "@sm:aura-lg"
|
|
78
|
+
# "md:aura-lg"
|
|
79
|
+
# "@md:aura-lg"
|
|
80
|
+
# "lg:aura-lg"
|
|
81
|
+
# "@lg:aura-lg"
|
|
82
|
+
lg: "aura-lg",
|
|
83
|
+
# "sm:aura-xl"
|
|
84
|
+
# "@sm:aura-xl"
|
|
85
|
+
# "md:aura-xl"
|
|
86
|
+
# "@md:aura-xl"
|
|
87
|
+
# "lg:aura-xl"
|
|
88
|
+
# "@lg:aura-xl"
|
|
89
|
+
xl: "aura-xl"
|
|
90
|
+
}
|
|
91
91
|
)
|
|
92
92
|
end
|
|
93
93
|
end
|
data/lib/daisy_ui/avatar.rb
CHANGED
|
@@ -9,20 +9,22 @@ module DaisyUI
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
register_modifiers(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
presence: {
|
|
13
|
+
# "sm:avatar-online"
|
|
14
|
+
# "@sm:avatar-online"
|
|
15
|
+
# "md:avatar-online"
|
|
16
|
+
# "@md:avatar-online"
|
|
17
|
+
# "lg:avatar-online"
|
|
18
|
+
# "@lg:avatar-online"
|
|
19
|
+
online: "avatar-online",
|
|
20
|
+
# "sm:avatar-offline"
|
|
21
|
+
# "@sm:avatar-offline"
|
|
22
|
+
# "md:avatar-offline"
|
|
23
|
+
# "@md:avatar-offline"
|
|
24
|
+
# "lg:avatar-offline"
|
|
25
|
+
# "@lg:avatar-offline"
|
|
26
|
+
offline: "avatar-offline"
|
|
27
|
+
},
|
|
26
28
|
# "sm:avatar-placeholder"
|
|
27
29
|
# "@sm:avatar-placeholder"
|
|
28
30
|
# "md:avatar-placeholder"
|