ariadne_view_components 0.0.94.6 → 0.0.95

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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/app/assets/javascripts/ariadne_view_components.js +10 -10
  4. data/app/assets/javascripts/ariadne_view_components.js.br +0 -0
  5. data/app/assets/javascripts/ariadne_view_components.js.gz +0 -0
  6. data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
  7. data/app/assets/stylesheets/ariadne_view_components.css +1 -1
  8. data/app/assets/stylesheets/ariadne_view_components.css.br +0 -0
  9. data/app/assets/stylesheets/ariadne_view_components.css.gz +0 -0
  10. data/app/components/ariadne/behaviors/tooltipable.rb +62 -36
  11. data/app/components/ariadne/form/checkbox/component.html.erb +2 -2
  12. data/app/components/ariadne/form/checkbox/component.rb +17 -17
  13. data/app/components/ariadne/form/group/component.rb +11 -11
  14. data/app/components/ariadne/form/radio/component.html.erb +1 -1
  15. data/app/components/ariadne/form/radio/component.rb +9 -9
  16. data/app/components/ariadne/form/radio_button/component.html.erb +1 -1
  17. data/app/components/ariadne/form/radio_button/component.rb +11 -11
  18. data/app/components/ariadne/form/radio_button_group/component.html.erb +1 -1
  19. data/app/components/ariadne/form/radio_button_group/component.rb +9 -9
  20. data/app/components/ariadne/form/select/component.html.erb +1 -1
  21. data/app/components/ariadne/form/select/component.rb +45 -45
  22. data/app/components/ariadne/form/text_field/component.html.erb +2 -2
  23. data/app/components/ariadne/form/text_field/component.rb +55 -55
  24. data/app/components/ariadne/form/toggle/component.html.erb +1 -1
  25. data/app/components/ariadne/form/toggle/component.rb +30 -30
  26. data/app/components/ariadne/form/toggle_group/component.rb +7 -7
  27. data/app/components/ariadne/form/toggle_group/option/component.rb +7 -7
  28. data/app/components/ariadne/layout/grid/component.rb +6 -6
  29. data/app/components/ariadne/layout/grid/item/component.html.erb +2 -2
  30. data/app/components/ariadne/layout/grid/item/component.rb +6 -6
  31. data/app/components/ariadne/layout/label_block/component.html.erb +1 -1
  32. data/app/components/ariadne/layout/label_block/component.rb +2 -2
  33. data/app/components/ariadne/layout/narrow/component.html.erb +2 -2
  34. data/app/components/ariadne/layout/narrow/component.rb +8 -8
  35. data/app/components/ariadne/layout/nav_bar/component.html.erb +7 -7
  36. data/app/components/ariadne/layout/nav_bar/component.rb +26 -26
  37. data/app/components/ariadne/layout/section_block/component.html.erb +1 -1
  38. data/app/components/ariadne/layout/section_block/header/component.html.erb +2 -2
  39. data/app/components/ariadne/layout/two_panel/component.html.erb +4 -4
  40. data/app/components/ariadne/layout/two_panel/component.rb +12 -12
  41. data/app/components/ariadne/layout/wide/component.rb +6 -6
  42. data/app/components/ariadne/ui/accordion/component.html.erb +1 -1
  43. data/app/components/ariadne/ui/accordion/component.rb +4 -4
  44. data/app/components/ariadne/ui/accordion/item/component.html.erb +1 -1
  45. data/app/components/ariadne/ui/accordion/item/component.rb +12 -12
  46. data/app/components/ariadne/ui/avatar/component.rb +21 -21
  47. data/app/components/ariadne/ui/badge/component.rb +31 -31
  48. data/app/components/ariadne/ui/banner/component.html.erb +8 -8
  49. data/app/components/ariadne/ui/banner/component.rb +28 -28
  50. data/app/components/ariadne/ui/blankslate/component.html.erb +4 -4
  51. data/app/components/ariadne/ui/button/component.rb +80 -78
  52. data/app/components/ariadne/ui/card/body/component.rb +2 -2
  53. data/app/components/ariadne/ui/card/component.html.erb +1 -1
  54. data/app/components/ariadne/ui/card/component.rb +10 -10
  55. data/app/components/ariadne/ui/card/footer/component.rb +4 -4
  56. data/app/components/ariadne/ui/card/header/component.rb +8 -8
  57. data/app/components/ariadne/ui/clipboard_copy/component.html.erb +2 -2
  58. data/app/components/ariadne/ui/clipboard_copy/component.rb +20 -20
  59. data/app/components/ariadne/ui/color_dot/component.html.erb +1 -1
  60. data/app/components/ariadne/ui/color_dot/component.rb +13 -13
  61. data/app/components/ariadne/ui/combobox/component.html.erb +2 -2
  62. data/app/components/ariadne/ui/combobox/component.rb +12 -12
  63. data/app/components/ariadne/ui/dialog/component.html.erb +3 -3
  64. data/app/components/ariadne/ui/dialog/component.rb +21 -21
  65. data/app/components/ariadne/ui/dialog/footer/component.rb +5 -5
  66. data/app/components/ariadne/ui/heroicon/component.rb +5 -5
  67. data/app/components/ariadne/ui/image/component.rb +6 -6
  68. data/app/components/ariadne/ui/link/component.rb +35 -35
  69. data/app/components/ariadne/ui/list/component.html.erb +5 -5
  70. data/app/components/ariadne/ui/list/component.rb +23 -23
  71. data/app/components/ariadne/ui/list/component.ts +4 -4
  72. data/app/components/ariadne/ui/list/item/component.html.erb +1 -1
  73. data/app/components/ariadne/ui/list/item/component.rb +15 -15
  74. data/app/components/ariadne/ui/pagination/component.html.erb +1 -1
  75. data/app/components/ariadne/ui/pagination/component.rb +9 -9
  76. data/app/components/ariadne/ui/popover/component.rb +6 -6
  77. data/app/components/ariadne/ui/shortcut/component.html.erb +4 -4
  78. data/app/components/ariadne/ui/shortcut/component.rb +26 -22
  79. data/app/components/ariadne/ui/skeleton/component.rb +7 -7
  80. data/app/components/ariadne/ui/stats_panel/component.rb +6 -6
  81. data/app/components/ariadne/ui/stats_panel/item/component.html.erb +2 -2
  82. data/app/components/ariadne/ui/table/cell/component.rb +3 -3
  83. data/app/components/ariadne/ui/table/component.rb +12 -12
  84. data/app/components/ariadne/ui/table/footer/component.rb +8 -8
  85. data/app/components/ariadne/ui/table/header/component.rb +9 -9
  86. data/app/components/ariadne/ui/table/row/component.rb +4 -4
  87. data/app/components/ariadne/ui/typography/component.rb +42 -42
  88. data/app/frontend/controllers/tooltip_controller.ts +28 -11
  89. data/app/frontend/stylesheets/ariadne_view_components.css +10 -5
  90. data/app/frontend/stylesheets/scrollbar.css +7 -7
  91. data/app/frontend/stylesheets/theme.css +110 -74
  92. data/app/helpers/ariadne/color_helper.rb +104 -104
  93. data/lib/ariadne/view_components/version.rb +1 -1
  94. metadata +2 -2
@@ -107,15 +107,15 @@ module Ariadne
107
107
  style do
108
108
  base do
109
109
  [
110
- "ariadne-border",
111
- "ariadne-pointer-events-auto",
112
- "ariadne-overflow-hidden",
113
- "ariadne-rounded-lg",
114
- "ariadne-shadow-lg",
115
- "ariadne-ring-1",
116
- "ariadne-ring-slate-950",
117
- "ariadne-ring-opacity-5",
118
- "ariadne-z-50",
110
+ "ariadne:border",
111
+ "ariadne:pointer-events-auto",
112
+ "ariadne:overflow-hidden",
113
+ "ariadne:rounded-lg",
114
+ "ariadne:shadow-lg",
115
+ "ariadne:ring-1",
116
+ "ariadne:ring-slate-950",
117
+ "ariadne:ring-opacity-5",
118
+ "ariadne:z-50",
119
119
  ]
120
120
  end
121
121
 
@@ -123,14 +123,14 @@ module Ariadne
123
123
  width do
124
124
  base do
125
125
  [
126
- "ariadne-w-full",
127
- "ariadne-max-w-lg",
126
+ "ariadne:w-full",
127
+ "ariadne:max-w-lg",
128
128
  ]
129
129
  end
130
130
 
131
131
  full do
132
132
  [
133
- "ariadne-w-full",
133
+ "ariadne:w-full",
134
134
  ]
135
135
  end
136
136
  end
@@ -141,26 +141,26 @@ module Ariadne
141
141
  end
142
142
  danger do
143
143
  [
144
- "ariadne-border-danger",
145
- "ariadne-bg-red-50",
144
+ "ariadne:border-danger",
145
+ "ariadne:bg-red-50",
146
146
  ]
147
147
  end
148
148
  warning do
149
149
  [
150
- "ariadne-border-warning",
151
- "ariadne-bg-yellow-50",
150
+ "ariadne:border-warning",
151
+ "ariadne:bg-yellow-50",
152
152
  ]
153
153
  end
154
154
  info do
155
155
  [
156
- "ariadne-border-info",
157
- "ariadne-bg-blue-50",
156
+ "ariadne:border-info",
157
+ "ariadne:bg-blue-50",
158
158
  ]
159
159
  end
160
160
  success do
161
161
  [
162
- "ariadne-border-success",
163
- "ariadne-bg-green-50",
162
+ "ariadne:border-success",
163
+ "ariadne:bg-green-50",
164
164
  ]
165
165
  end
166
166
  end
@@ -172,22 +172,22 @@ module Ariadne
172
172
  scheme do
173
173
  danger do
174
174
  [
175
- "ariadne-text-red-700",
175
+ "ariadne:text-red-700",
176
176
  ]
177
177
  end
178
178
  warning do
179
179
  [
180
- "ariadne-text-yellow-700",
180
+ "ariadne:text-yellow-700",
181
181
  ]
182
182
  end
183
183
  info do
184
184
  [
185
- "ariadne-text-blue-700",
185
+ "ariadne:text-blue-700",
186
186
  ]
187
187
  end
188
188
  success do
189
189
  [
190
- "ariadne-text-green-700",
190
+ "ariadne:text-green-700",
191
191
  ]
192
192
  end
193
193
  end
@@ -199,22 +199,22 @@ module Ariadne
199
199
  scheme do
200
200
  danger do
201
201
  [
202
- "ariadne-text-red-700",
202
+ "ariadne:text-red-700",
203
203
  ]
204
204
  end
205
205
  warning do
206
206
  [
207
- "ariadne-text-yellow-700",
207
+ "ariadne:text-yellow-700",
208
208
  ]
209
209
  end
210
210
  info do
211
211
  [
212
- "ariadne-text-blue-700",
212
+ "ariadne:text-blue-700",
213
213
  ]
214
214
  end
215
215
  success do
216
216
  [
217
- "ariadne-text-green-700",
217
+ "ariadne:text-green-700",
218
218
  ]
219
219
  end
220
220
  end
@@ -1,12 +1,12 @@
1
- <div class="ariadne-grow ariadne-flex ariadne-flex-col ariadne-justify-center ariadne-items-center ariadne-gap-1">
1
+ <div class="ariadne:grow ariadne:flex ariadne:flex-col ariadne:justify-center ariadne:items-center ariadne:gap-1">
2
2
  <%= visual_heroicon %>
3
- <div class="ariadne-pt-5">
3
+ <div class="ariadne:pt-5">
4
4
  <%= render(Ariadne::UI::Typography::Component.new(type: :ann)) { title } %>
5
5
  </div>
6
- <div class="ariadne-space-y-2">
6
+ <div class="ariadne:space-y-2">
7
7
  <%= render(Ariadne::UI::Typography::Component.new(type: :lede)) { description } %>
8
8
  </div>
9
- <div class="ariadne-mx-auto ariadne-flow-root ariadne-max-w-lg ">
9
+ <div class="ariadne:mx-auto ariadne:flow-root ariadne:max-w-lg ">
10
10
  <%= content %>
11
11
  </div>
12
12
  </div>
@@ -101,23 +101,23 @@ module Ariadne
101
101
  style do
102
102
  base do
103
103
  [
104
- "ariadne-inline-flex",
105
- "ariadne-items-center",
106
- "ariadne-justify-center",
107
- "[&>svg:not(.heroicon)]:ariadne-fill-current",
108
- "ariadne-gap-x-1.5",
109
- "ariadne-rounded",
110
- "ariadne-px-2",
111
- # "ariadne-py-1",
112
- "ariadne-font-semibold",
113
- "ariadne-shadow-sm",
114
- "ariadne-text-black",
115
- "focus-visible:ariadne-outline",
116
- "focus-visible:ariadne-outline-2",
117
- "focus-visible:ariadne-outline-offset-2",
118
-
119
- "disabled:ariadne-border-transparent",
120
- "disabled:ariadne-cursor-not-allowed",
104
+ "ariadne:inline-flex",
105
+ "ariadne:items-center",
106
+ "ariadne:justify-center",
107
+ "ariadne:[&>svg:not(.heroicon)]:fill-current",
108
+ "ariadne:gap-x-1.5",
109
+ "ariadne:rounded",
110
+ "ariadne:px-2",
111
+ # "ariadne:py-1",
112
+ "ariadne:font-semibold",
113
+ "ariadne:shadow-sm",
114
+ "ariadne:text-black",
115
+ "ariadne:focus-visible:outline",
116
+ "ariadne:focus-visible:outline-2",
117
+ "ariadne:focus-visible:outline-offset-2",
118
+
119
+ "ariadne:disabled:border-transparent",
120
+ "ariadne:disabled:cursor-not-allowed",
121
121
  ]
122
122
  end
123
123
 
@@ -125,72 +125,74 @@ module Ariadne
125
125
  scheme do
126
126
  primary do
127
127
  [
128
- "ariadne-bg-primary",
129
- "ariadne-text-primary-foreground",
128
+ "ariadne:bg-primary",
129
+ "ariadne:text-primary-foreground",
130
130
 
131
- "hover:enabled:ariadne-bg-primary/90",
131
+ "ariadne:hover:enabled:bg-primary/90",
132
132
 
133
- "disabled:ariadne-opacity-50",
133
+ "ariadne:disabled:opacity-50",
134
134
  ]
135
135
  end
136
136
 
137
137
  secondary do
138
138
  [
139
- "ariadne-text-black",
140
- "ariadne-bg-zinc-100",
139
+ "ariadne:text-black",
140
+ "ariadne:bg-zinc-100",
141
141
 
142
- "hover:ariadne-bg-zinc-300/20",
143
- "active:ariadne-bg-zinc-200/80",
142
+ "ariadne:hover:bg-zinc-300/20",
143
+ "ariadne:active:bg-zinc-200/80",
144
144
 
145
- "dark:ariadne-text-slate-100",
146
- "dark:ariadne-bg-zinc-900",
145
+ "ariadne:dark:text-slate-100",
146
+ "ariadne:dark:bg-zinc-900",
147
147
  "dark:ariadne-hover:bg-zinc-800/80",
148
- "dark:active:ariadne-bg-zinc-700/20",
148
+ "ariadne:dark:active:bg-zinc-700/20",
149
149
  ]
150
150
  end
151
151
 
152
152
  outline do
153
153
  [
154
- "ariadne-border",
155
- "ariadne-border-input",
156
- "ariadne-bg-background",
157
- "hover:ariadne-bg-accent",
158
- "hover:ariadne-text-accent-foreground",
154
+ "ariadne:border",
155
+ "ariadne:border-input",
156
+ "ariadne:bg-background",
157
+ "ariadne:hover:bg-accent",
158
+ "ariadne:hover:text-accent-foreground",
159
+ "ariadne:text-black",
160
+ "ariadne:dark:text-white",
159
161
  ]
160
162
  end
161
163
 
162
164
  nude do
163
165
  [
164
- "ariadne-text-black",
165
- "dark:ariadne-text-white",
166
- "ariadne-shadow-none",
167
-
168
- "hover:ariadne-bg-zinc-200/20",
169
- "active:ariadne-bg-zinc-500/10",
170
- "active:ariadne-border-transparent",
171
- "dark:hover:ariadne-bg-zinc-600/20",
172
- "dark:active:ariadne-bg-zinc-500/10",
166
+ "ariadne:text-black",
167
+ "ariadne:dark:text-white",
168
+ "ariadne:shadow-none",
169
+
170
+ "ariadne:hover:bg-zinc-200/20",
171
+ "ariadne:active:bg-zinc-500/10",
172
+ "ariadne:active:border-transparent",
173
+ "ariadne:dark:hover:bg-zinc-600/20",
174
+ "ariadne:dark:active:bg-zinc-500/10",
173
175
  ]
174
176
  end
175
177
 
176
178
  danger do
177
179
  [
178
- "ariadne-border",
179
- "ariadne-border-solid",
180
- "ariadne-border-red-600",
181
- "ariadne-bg-transparent",
182
- "ariadne-text-red-600",
183
- "hover:ariadne-bg-red-500",
184
- "hover:ariadne-text-white",
185
- "active:ariadne-text-white",
186
- "active:ariadne-bg-red-600",
187
- "dark:active:ariadne-bg-red-400",
180
+ "ariadne:border",
181
+ "ariadne:border-solid",
182
+ "ariadne:border-red-600",
183
+ "ariadne:bg-transparent",
184
+ "ariadne:text-red-600",
185
+ "ariadne:hover:bg-red-500",
186
+ "ariadne:hover:text-white",
187
+ "ariadne:active:text-white",
188
+ "ariadne:active:bg-red-600",
189
+ "ariadne:dark:active:bg-red-400",
188
190
  ]
189
191
  end
190
192
 
191
193
  none do
192
194
  [
193
- "ariadne-shadow-none",
195
+ "ariadne:shadow-none",
194
196
  ]
195
197
  end
196
198
  end
@@ -198,50 +200,50 @@ module Ariadne
198
200
  size do
199
201
  xs do
200
202
  [
201
- "ariadne-text-xs",
202
- "[&>svg:not(.heroicon)]:ariadne-size-4",
203
- "ariadne-p-1",
203
+ "ariadne:text-xs",
204
+ "ariadne:[&>svg:not(.heroicon)]:size-4",
205
+ "ariadne:p-1",
204
206
  ]
205
207
  end
206
208
 
207
209
  sm do
208
210
  [
209
- "ariadne-text-sm",
210
- "ariadne-leading-5",
211
- "[&>svg:not(.heroicon)]:ariadne-size-5",
212
- "ariadne-py-1",
211
+ "ariadne:text-sm",
212
+ "ariadne:leading-5",
213
+ "ariadne:[&>svg:not(.heroicon)]:size-5",
214
+ "ariadne:py-1",
213
215
  ]
214
216
  end
215
217
 
216
218
  md do
217
219
  [
218
- "ariadne-rounded-md",
219
- "ariadne-px-2.5",
220
- "ariadne-py-1.5",
221
- "ariadne-text-base",
222
- "ariadne-leading-7",
223
- "[&>svg:not(.heroicon)]:ariadne-size-6",
220
+ "ariadne:rounded-md",
221
+ "ariadne:px-2.5",
222
+ "ariadne:py-1.5",
223
+ "ariadne:text-base",
224
+ "ariadne:leading-7",
225
+ "ariadne:[&>svg:not(.heroicon)]:size-6",
224
226
  ]
225
227
  end
226
228
 
227
229
  lg do
228
230
  [
229
- "ariadne-rounded-md",
230
- "ariadne-px-3",
231
- "ariadne-py-2",
232
- "ariadne-text-lg",
233
- "ariadne-leading-8",
234
- "[&>svg:not(.heroicon)]:ariadne-size-10",
231
+ "ariadne:rounded-md",
232
+ "ariadne:px-3",
233
+ "ariadne:py-2",
234
+ "ariadne:text-lg",
235
+ "ariadne:leading-8",
236
+ "ariadne:[&>svg:not(.heroicon)]:size-10",
235
237
  ]
236
238
  end
237
239
 
238
240
  xl do
239
241
  [
240
- "ariadne-rounded-md",
241
- "ariadne-px-3.5",
242
- "ariadne-py-2.5",
243
- "ariadne-text-xl",
244
- "ariadne-leading-10",
242
+ "ariadne:rounded-md",
243
+ "ariadne:px-3.5",
244
+ "ariadne:py-2.5",
245
+ "ariadne:text-xl",
246
+ "ariadne:leading-10",
245
247
  "[&>svg:not(.heroicon)]:ariadne-size-12ß",
246
248
  ]
247
249
  end
@@ -249,7 +251,7 @@ module Ariadne
249
251
 
250
252
  width do
251
253
  narrow {}
252
- full { "ariadne-w-full" }
254
+ full { "ariadne:w-full" }
253
255
  end
254
256
  end
255
257
  end
@@ -13,8 +13,8 @@ module Ariadne
13
13
  style do
14
14
  base do
15
15
  [
16
- "ariadne-p-6",
17
- "ariadne-pt-0",
16
+ "ariadne:p-6",
17
+ "ariadne:pt-0",
18
18
  ]
19
19
  end
20
20
  end
@@ -1,6 +1,6 @@
1
1
  <div class="<%= html_attrs[:class] %>" <%= html_attributes %>>
2
2
  <% if href.present? %>
3
- <%= render(Ariadne::UI::Link::Component.new(href: href, theme: :none, html_attrs: { class: "ariadne-w-full ariadne-h-full"})) do %>
3
+ <%= render(Ariadne::UI::Link::Component.new(href: href, theme: :none, html_attrs: { class: "ariadne:w-full ariadne:h-full"})) do %>
4
4
  <%= header %>
5
5
  <%= body %>
6
6
  <%= footer %>
@@ -24,11 +24,11 @@ module Ariadne
24
24
  style do
25
25
  base do
26
26
  [
27
- "ariadne-rounded-xl",
28
- "ariadne-border",
29
- "ariadne-bg-card",
30
- "ariadne-text-card-foreground",
31
- "ariadne-shadow",
27
+ "ariadne:rounded-xl",
28
+ "ariadne:border",
29
+ "ariadne:bg-card",
30
+ "ariadne:text-card-foreground",
31
+ "ariadne:shadow",
32
32
  ]
33
33
  end
34
34
 
@@ -40,11 +40,11 @@ module Ariadne
40
40
 
41
41
  yes do
42
42
  [
43
- "hover:ariadne-shadow-md",
44
- "hover:ariadne-border-indigo-600",
45
- "dark:hover:ariadne-border-indigo-400",
46
- "hover:ariadne-bg-foreground-700/10",
47
- "dark:hover:ariadne-bg-foreground-300/10",
43
+ "ariadne:hover:shadow-md",
44
+ "ariadne:hover:border-indigo-600",
45
+ "ariadne:dark:hover:border-indigo-400",
46
+ "ariadne:hover:bg-foreground-700/10",
47
+ "ariadne:dark:hover:bg-foreground-300/10",
48
48
  ]
49
49
  end
50
50
  end
@@ -13,10 +13,10 @@ module Ariadne
13
13
  style do
14
14
  base do
15
15
  [
16
- "ariadne-flex",
17
- "ariadne-items-center",
18
- "ariadne-p-6",
19
- "ariadne-pt-0",
16
+ "ariadne:flex",
17
+ "ariadne:items-center",
18
+ "ariadne:p-6",
19
+ "ariadne:pt-0",
20
20
  ]
21
21
  end
22
22
  end
@@ -20,10 +20,10 @@ module Ariadne
20
20
  style do
21
21
  base do
22
22
  [
23
- "ariadne-flex",
24
- "ariadne-flex-col",
25
- "ariadne-space-y-1.5",
26
- "ariadne-p-6",
23
+ "ariadne:flex",
24
+ "ariadne:flex-col",
25
+ "ariadne:space-y-1.5",
26
+ "ariadne:p-6",
27
27
  ]
28
28
  end
29
29
  end
@@ -31,9 +31,9 @@ module Ariadne
31
31
  style(:title) do
32
32
  base do
33
33
  [
34
- "ariadne-font-semibold",
35
- "ariadne-leading-none",
36
- "ariadne-tracking-tight",
34
+ "ariadne:font-semibold",
35
+ "ariadne:leading-none",
36
+ "ariadne:tracking-tight",
37
37
  ]
38
38
  end
39
39
  end
@@ -42,7 +42,7 @@ module Ariadne
42
42
  base do
43
43
  [
44
44
  "araidne-text-sm",
45
- "ariadne-text-muted-foreground",
45
+ "ariadne:text-muted-foreground",
46
46
  ]
47
47
  end
48
48
  end
@@ -3,7 +3,7 @@
3
3
  <%= content %>
4
4
  <% else %>
5
5
  <%= render Ariadne::UI::Heroicon::Component.new(icon: :"document-duplicate", variant: HeroiconsHelper::Icon::VARIANT_OUTLINE, html_attrs: { data: { "ariadne-ui-clipboard-copy-target" => "initial" }}) %>
6
- <%= render Ariadne::UI::Heroicon::Component.new(icon: :check, variant: HeroiconsHelper::Icon::VARIANT_OUTLINE, html_attrs: { class: "ariadne-text-green-600 ariadne-hidden", data: { "ariadne-ui-clipboard-copy-target" => "confirmed" }}) %>
6
+ <%= render Ariadne::UI::Heroicon::Component.new(icon: :check, variant: HeroiconsHelper::Icon::VARIANT_OUTLINE, html_attrs: { class: "ariadne:text-green-600 ariadne:hidden", data: { "ariadne-ui-clipboard-copy-target" => "confirmed" }}) %>
7
7
  <% end %>
8
8
  </clipboard-copy>
9
- <div aria-live="polite" aria-atomic="true" class="ariadne-sr-only" data-clipboard-copy-feedback></div>
9
+ <div aria-live="polite" aria-atomic="true" class="ariadne:sr-only" data-clipboard-copy-feedback></div>
@@ -35,8 +35,8 @@ module Ariadne
35
35
 
36
36
  html_attrs[:class] = merge_tailwind_classes([style(size:), html_attrs[:class]].join(" "))
37
37
 
38
- html_attrs[:data]["#{stimulus_name}-hidden-class-value"] = "ariadne-hidden"
39
- html_attrs[:data]["#{stimulus_name}-show-class-value"] = "ariadne-inline-block"
38
+ html_attrs[:data]["#{stimulus_name}-hidden-class-value"] = "ariadne:hidden"
39
+ html_attrs[:data]["#{stimulus_name}-show-class-value"] = "ariadne:inline-block"
40
40
 
41
41
  html_attrs
42
42
  end
@@ -57,9 +57,9 @@ module Ariadne
57
57
  style do
58
58
  base do
59
59
  [
60
- "ariadne-inline-flex",
61
- "ariadne-items-center",
62
- "ariadne-justify-center",
60
+ "ariadne:inline-flex",
61
+ "ariadne:items-center",
62
+ "ariadne:justify-center",
63
63
  ]
64
64
  end
65
65
 
@@ -67,34 +67,34 @@ module Ariadne
67
67
  size do
68
68
  xs do
69
69
  [
70
- "ariadne-gap-0.5",
71
- "ariadne-text-xs-md",
72
- "ariadne-rounded",
73
- "[&>svg]:ariadne-size-3",
70
+ "ariadne:gap-0.5",
71
+ "ariadne:text-xs-md",
72
+ "ariadne:rounded",
73
+ "ariadne:[&>svg]:size-3",
74
74
  ]
75
75
  end
76
76
  sm do
77
77
  [
78
- "ariadne-gap-0.5",
79
- "ariadne-px-1",
80
- "ariadne-text-sm-md",
81
- "ariadne-rounded",
82
- "[&>svg]:ariadne-size-4",
78
+ "ariadne:gap-0.5",
79
+ "ariadne:px-1",
80
+ "ariadne:text-sm-md",
81
+ "ariadne:rounded",
82
+ "ariadne:[&>svg]:size-4",
83
83
  ]
84
84
  end
85
85
  md do
86
86
  [
87
- "ariadne-gap-1",
88
- "ariadne-text-base",
89
- "ariadne-rounded-lg",
90
- "[&>svg]:ariadne-size-5",
87
+ "ariadne:gap-1",
88
+ "ariadne:text-base",
89
+ "ariadne:rounded-lg",
90
+ "ariadne:[&>svg]:size-5",
91
91
  ]
92
92
  end
93
93
  lg do
94
- ["ariadne-gap-1", "ariadne-text-lg", "ariadne-rounded-lg"]
94
+ ["ariadne:gap-1", "ariadne:text-lg", "ariadne:rounded-lg"]
95
95
  end
96
96
  xl do
97
- ["ariadne-gap-1", "ariadne-text-xl", "ariadne-rounded-xl"]
97
+ ["ariadne:gap-1", "ariadne:text-xl", "ariadne:rounded-xl"]
98
98
  end
99
99
  end
100
100
  end
@@ -1,5 +1,5 @@
1
1
  <span class="<%= style(size:) %>">
2
- <span class="ariadne-px-0.5 ariadne-p-1 ariadne-shrink-0">
2
+ <span class="ariadne:px-0.5 ariadne:p-1 ariadne:shrink-0">
3
3
  <svg class="<%= style(:svg, size:) %>" viewBox="0 0 1 1" xmlns="http://www.w3.org/2000/svg">
4
4
  <circle cx="0.5" cy="0.5" r="0.5" fill="#<%= color %>" />
5
5
  </svg>
@@ -20,19 +20,19 @@ module Ariadne
20
20
  style do
21
21
  base do
22
22
  [
23
- "ariadne-inline-flex",
24
- "ariadne-items-center",
25
- "ariadne-truncate",
23
+ "ariadne:inline-flex",
24
+ "ariadne:items-center",
25
+ "ariadne:truncate",
26
26
  ]
27
27
  end
28
28
 
29
29
  variants do
30
30
  size do
31
- xs { "ariadne-ps-0.5" }
32
- sm { "ariadne-ps-0.5" }
33
- md { "ariadne-ps-1" }
34
- lg { "ariadne-ps-1" }
35
- xl { "ariadne-ps-1" }
31
+ xs { "ariadne:ps-0.5" }
32
+ sm { "ariadne:ps-0.5" }
33
+ md { "ariadne:ps-1" }
34
+ lg { "ariadne:ps-1" }
35
+ xl { "ariadne:ps-1" }
36
36
  end
37
37
  end
38
38
  end
@@ -40,11 +40,11 @@ module Ariadne
40
40
  style :svg do
41
41
  variants do
42
42
  size do
43
- xs { "ariadne-size-2" }
44
- sm { "ariadne-size-2.5" }
45
- md { "ariadne-size-3" }
46
- lg { "ariadne-size-3" }
47
- xl { "ariadne-ps-1" }
43
+ xs { "ariadne:size-2" }
44
+ sm { "ariadne:size-2.5" }
45
+ md { "ariadne:size-3" }
46
+ lg { "ariadne:size-3" }
47
+ xl { "ariadne:ps-1" }
48
48
  end
49
49
  end
50
50
  end
@@ -1,5 +1,5 @@
1
- <details class="ariadne-inline" <%= html_attrs.to_html %>>
2
- <summary class="ariadne-list-none ariadne-rounded" data-<%= stimulus_name %>-target="button" data-action="click-><%= stimulus_name %>#toggle">
1
+ <details class="ariadne:inline" <%= html_attrs.to_html %>>
2
+ <summary class="ariadne:list-none ariadne:rounded" data-<%= stimulus_name %>-target="button" data-action="click-><%= stimulus_name %>#toggle">
3
3
  <%= reveal_button %>
4
4
  </summary>
5
5
  <details-menu