ariadne_view_components 0.0.4 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/javascripts/ariadne-form-with.d.ts +20 -0
  4. data/app/assets/javascripts/ariadne-form.d.ts +22 -0
  5. data/app/assets/javascripts/ariadne.d.ts +1 -0
  6. data/app/assets/javascripts/ariadne_view_components.js +7 -1
  7. data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
  8. data/app/assets/javascripts/clipboard-copy-component.d.ts +4 -0
  9. data/app/assets/javascripts/comment-component.d.ts +13 -0
  10. data/app/assets/javascripts/rich-text-area-component.d.ts +4 -0
  11. data/app/assets/javascripts/slideover-component.d.ts +9 -0
  12. data/app/assets/javascripts/time-ago-component.d.ts +1 -0
  13. data/app/assets/javascripts/time_ago_component.d.ts +1 -0
  14. data/app/assets/javascripts/tooltip-component.d.ts +24 -0
  15. data/app/assets/stylesheets/application.ariadne_view_components.css +6 -3
  16. data/app/assets/stylesheets/prosemirror.css +323 -0
  17. data/app/assets/stylesheets/tooltip-component.css +37 -0
  18. data/app/components/ariadne/ariadne-form.ts +96 -0
  19. data/app/components/ariadne/ariadne.ts +11 -1
  20. data/app/components/ariadne/base_button.rb +12 -12
  21. data/app/components/ariadne/base_component.rb +13 -131
  22. data/app/components/ariadne/blankslate_component.html.erb +5 -5
  23. data/app/components/ariadne/blankslate_component.rb +5 -10
  24. data/app/components/ariadne/body_component.rb +30 -0
  25. data/app/components/ariadne/button_component.rb +12 -16
  26. data/app/components/ariadne/clipboard_copy_component.html.erb +5 -4
  27. data/app/components/ariadne/clipboard_copy_component.rb +41 -3
  28. data/app/components/ariadne/comment-component.ts +55 -0
  29. data/app/components/ariadne/comment_component.html.erb +22 -0
  30. data/app/components/ariadne/comment_component.rb +57 -0
  31. data/app/components/ariadne/component.rb +4 -3
  32. data/app/components/ariadne/container_component.rb +1 -1
  33. data/app/components/ariadne/counter_component.rb +4 -4
  34. data/app/components/ariadne/flash_component.html.erb +12 -12
  35. data/app/components/ariadne/flash_component.rb +17 -17
  36. data/app/components/ariadne/flex_component.rb +49 -0
  37. data/app/components/ariadne/footer_component.html.erb +1 -1
  38. data/app/components/ariadne/footer_component.rb +1 -1
  39. data/app/components/ariadne/grid_component.html.erb +13 -4
  40. data/app/components/ariadne/grid_component.rb +22 -11
  41. data/app/components/ariadne/header_component.html.erb +7 -7
  42. data/app/components/ariadne/header_component.rb +8 -8
  43. data/app/components/ariadne/heading_component.rb +3 -3
  44. data/app/components/ariadne/heroicon_component.html.erb +4 -6
  45. data/app/components/ariadne/heroicon_component.rb +21 -10
  46. data/app/components/ariadne/inline_flex_component.rb +14 -12
  47. data/app/components/ariadne/link_component.rb +13 -8
  48. data/app/components/ariadne/list_component.html.erb +5 -7
  49. data/app/components/ariadne/list_component.rb +9 -38
  50. data/app/components/ariadne/main_component.rb +32 -0
  51. data/app/components/ariadne/narrow_container_component.html.erb +3 -0
  52. data/app/components/ariadne/narrow_container_component.rb +30 -0
  53. data/app/components/ariadne/panel_bar_component.html.erb +20 -0
  54. data/app/components/ariadne/panel_bar_component.rb +79 -0
  55. data/app/components/ariadne/pill_component.rb +2 -2
  56. data/app/components/ariadne/rich-text-area-component.ts +32 -0
  57. data/app/components/ariadne/rich_text_area_component.html.erb +6 -0
  58. data/app/components/ariadne/rich_text_area_component.rb +35 -0
  59. data/app/components/ariadne/slideover-component.ts +3 -3
  60. data/app/components/ariadne/slideover_component.html.erb +3 -6
  61. data/app/components/ariadne/slideover_component.rb +19 -15
  62. data/app/components/ariadne/tab_bar_component.html.erb +3 -0
  63. data/app/components/ariadne/tab_bar_component.rb +45 -0
  64. data/app/components/ariadne/tab_component.html.erb +7 -0
  65. data/app/components/ariadne/tab_component.rb +43 -0
  66. data/app/components/ariadne/{time_ago_component.ts → time-ago-component.ts} +0 -0
  67. data/app/components/ariadne/time_ago_component.rb +2 -2
  68. data/app/components/ariadne/timeline_component.html.erb +6 -6
  69. data/app/components/ariadne/tooltip-component.ts +57 -0
  70. data/app/components/ariadne/tooltip_component.html.erb +4 -0
  71. data/app/components/ariadne/tooltip_component.rb +34 -31
  72. data/app/lib/ariadne/action_view_extensions/form_helper.rb +4 -1
  73. data/app/lib/ariadne/fetch_or_fallback_helper.rb +3 -1
  74. data/app/lib/ariadne/form_builder.rb +22 -22
  75. data/app/lib/ariadne/icon_helper.rb +1 -1
  76. data/lib/ariadne/view_components/engine.rb +171 -3
  77. data/lib/ariadne/view_components/version.rb +1 -1
  78. data/lib/ariadne/view_components.rb +31 -30
  79. data/lib/rubocop/config/default.yml +0 -6
  80. data/lib/rubocop/cop/ariadne/no_tag_memoize.rb +1 -0
  81. data/lib/tasks/docs.rake +9 -0
  82. data/static/arguments.yml +186 -15
  83. data/static/audited_at.json +12 -2
  84. data/static/classes.yml +200 -154
  85. data/static/constants.json +168 -146
  86. data/static/statuses.json +12 -2
  87. metadata +65 -13
  88. data/lib/ariadne/classify/utilities.rb +0 -199
  89. data/lib/ariadne/classify/utilities.yml +0 -1817
  90. data/lib/ariadne/classify/validation.rb +0 -18
  91. data/lib/ariadne/classify.rb +0 -218
  92. data/lib/rubocop/cop/ariadne/ariadne_heroicon.rb +0 -252
  93. data/lib/rubocop/cop/ariadne/component_name_migration.rb +0 -35
  94. data/lib/rubocop/cop/ariadne/system_argument_instead_of_class.rb +0 -57
  95. data/lib/tasks/utilities.rake +0 -121
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "Ariadne::BaseButton": {
3
- "DEFAULT_CLASSES": "inline-flex items-center px-4 py-2 text-sm border border-gray-300 shadow-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
4
- "DEFAULT_SIZE": "m",
3
+ "DEFAULT_CLASSES": "ariadne-inline-flex ariadne-items-center ariadne-border ariadne-shadow-sm focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2",
4
+ "DEFAULT_SIZE": "md",
5
5
  "DEFAULT_TAG": "button",
6
6
  "DEFAULT_TYPE": "button",
7
7
  "SIZE_CLASS_MAPPINGS": {
8
- "xs": "inline-flex items-center px-2.5 py-1.5 text-xs font-medium rounded",
9
- "s": "inline-flex items-center px-3 py-2 text-sm leading-4 font-medium rounded-m",
10
- "m": "inline-flex items-center px-4 py-2 text-sm font-medium rounded-md",
11
- "l": "inline-flex items-center px-4 py-2 text-base font-medium rounded-md",
12
- "xl": "inline-flex items-center px-6 py-3 text-base font-medium rounded-md"
8
+ "xs": "ariadne-px-2.5 ariadne-py-1.5 ariadne-text-xs ariadne-font-medium ariadne-rounded",
9
+ "sm": "ariadne-px-3 ariadne-py-2 ariadne-text-sm ariadne-leading-4 ariadne-font-medium ariadne-rounded-m",
10
+ "md": "ariadne-px-4 ariadne-py-2 ariadne-text-sm ariadne-font-medium ariadne-rounded-md",
11
+ "lg": "ariadne-px-4 ariadne-py-2 ariadne-text-base ariadne-font-medium ariadne-rounded-md",
12
+ "xl": "ariadne-px-6 ariadne-py-3 ariadne-text-base ariadne-font-medium ariadne-rounded-md"
13
13
  },
14
14
  "TAG_OPTIONS": [
15
15
  "button",
@@ -21,11 +21,12 @@
21
21
  "reset",
22
22
  "submit"
23
23
  ],
24
+ "TYPE_SUBMIT": "submit",
24
25
  "VALID_SIZES": [
25
26
  "xs",
26
- "s",
27
- "m",
28
- "l",
27
+ "sm",
28
+ "md",
29
+ "lg",
29
30
  "xl"
30
31
  ]
31
32
  },
@@ -48,7 +49,7 @@
48
49
  ]
49
50
  },
50
51
  "Ariadne::BlankslateComponent": {
51
- "DEFAULT_CLASSES": "max-w-7xl mx-auto text-center py-12 px-4 sm:px-6 lg:py-16 lg:px-8",
52
+ "DEFAULT_CLASSES": "ariadne-text-center",
52
53
  "DEFAULT_HEADING_CLASSES": "text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl",
53
54
  "DEFAULT_IMAGE_SIZE": 56,
54
55
  "DEFAULT_TAG": "div",
@@ -56,17 +57,22 @@
56
57
  "div"
57
58
  ]
58
59
  },
60
+ "Ariadne::BodyComponent": {
61
+ "DEFAULT_CLASSES": "ariadne-flex ariadne-flex-col ariadne-min-h-screen"
62
+ },
59
63
  "Ariadne::ButtonComponent": {
60
64
  "DEFAULT_SCHEME": "default",
61
65
  "LINK_SCHEME": "link",
62
66
  "SCHEME_CLASS_MAPPINGS": {
63
- "default": "text-purple-800 bg-purple-50 hover:bg-purple-100 border-purple-300 focus:ring-offset-purple-50 focus:ring-purple-600",
64
- "info": "text-blue-800 bg-blue-50 hover:bg-blue-100 border-blue-300 focus:ring-offset-blue-50 focus:ring-blue-600",
65
- "success": "text-green-800 bg-green-50 hover:bg-green-100 border-green-300 focus:ring-offset-green-50 focus:ring-green-600",
66
- "warning": "text-yellow-800 bg-yellow-50 hover:bg-yellow-100 border-yellow-300 focus:ring-offset-yellow-50 focus:ring-yellow-600",
67
- "danger": "text-red-800 bg-red-50 hover:bg-red-100 border-red-300 focus:ring-offset-red-50 focus:ring-red-600"
67
+ "none": "",
68
+ "default": "ariadne-text-purple-800 ariadne-bg-purple-50 hover:ariadne-bg-purple-100 ariadne-border-purple-300 focus:ariadne-ring-offset-purple-50 focus:ariadne-ring-purple-600",
69
+ "info": "ariadne-text-blue-800 ariadne-bg-blue-50 hover:ariadne-bg-blue-100 ariadne-border-blue-300 focus:ariadne-ring-offset-blue-50 focus:ariadne-ring-blue-600",
70
+ "success": "ariadne-text-green-800 ariadne-bg-green-50 hover:ariadne-bg-green-100 ariadne-border-green-300 focus:ariadne-ring-offset-green-50 focus:ariadne-ring-green-600",
71
+ "warning": "ariadne-text-yellow-800 ariadne-bg-yellow-50 hover:ariadne-bg-yellow-100 ariadne-border-yellow-300 focus:ariadne-ring-offset-yellow-50 focus:ariadne-ring-yellow-600",
72
+ "danger": "ariadne-text-red-800 ariadne-bg-red-50 hover:ariadne-bg-red-100 ariadne-border-red-300 focus:ariadne-ring-offset-red-50 focus:ariadne-ring-red-600"
68
73
  },
69
74
  "VALID_SCHEMES": [
75
+ "none",
70
76
  "default",
71
77
  "info",
72
78
  "success",
@@ -77,39 +83,55 @@
77
83
  "Ariadne::ClipboardCopyComponent": {
78
84
  "DATA_ACTION": "click->clipboard-copy-component#copy",
79
85
  "DATA_CONTROLLER": "clipboard-copy-component",
80
- "DEFAULT_CLASSES": "cursor-pointer",
86
+ "DATA_CONTROLLERS": {
87
+ "data-controller": "clipboard-copy-component",
88
+ "data-action": "click->clipboard-copy-component#copy"
89
+ },
90
+ "DATA_CONTROLLERS_WITH_TOOLTIPS": {
91
+ "data-controller": "clipboard-copy-component tooltip-component",
92
+ "data-action": "click->clipboard-copy-component#copy mouseover->tooltip-component#show mouseout->tooltip-component#hide",
93
+ "data-tooltip-component-target": "trigger"
94
+ },
95
+ "DEFAULT_CLASSES": " ariadne-cursor-pointer ariadne-underline ariadne-decoration-double ariadne-font-semibold hover:ariadne-text-button-text-color focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2 focus:ariadne-ring-purple-500",
81
96
  "DEFAULT_TAG": "clipboard-copy"
82
97
  },
98
+ "Ariadne::CommentComponent": {
99
+ "DEFAULT_CLASSES": "ariadne-bg-white ariadne-border-gray-300 ariadne-border ariadne-shadow ariadne-py-5 ariadne-px-5 ariadne-rounded-md ",
100
+ "DEFAULT_TAG": "div",
101
+ "TAG_OPTIONS": [
102
+ "div"
103
+ ]
104
+ },
83
105
  "Ariadne::ContainerComponent": {
84
- "DEFAULT_CLASSES": "px-4 py-5 sm:px-6 lg:px-8"
106
+ "DEFAULT_CLASSES": "ariadne-px-4 sm:ariadne-px-6 lg:ariadne-px-8"
85
107
  },
86
108
  "Ariadne::Content": {
87
109
  },
88
110
  "Ariadne::CounterComponent": {
89
- "DEFAULT_CLASSES": "inline-flex items-center p-1 border border-transparent rounded-full shadow-sm text-white bg-gray-600 hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500"
111
+ "DEFAULT_CLASSES": "ariadne-inline-flex ariadne-items-center ariadne-p-1 ariadne-border ariadne-border-transparent ariadne-rounded-full ariadne-shadow-sm focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2"
90
112
  },
91
113
  "Ariadne::FlashComponent": {
92
114
  "BG_SCHEME_CLASS_MAPPINGS": {
93
- "default": "bg-blue-50",
94
- "info": "bg-blue-50",
95
- "success": "bg-green-50",
96
- "warning": "bg-yellow-50",
97
- "danger": "bg-red-50"
115
+ "default": "ariadne-bg-blue-50",
116
+ "info": "ariadne-bg-blue-50",
117
+ "success": "ariadne-bg-green-50",
118
+ "warning": "ariadne-bg-yellow-50",
119
+ "danger": "ariadne-bg-red-50"
98
120
  },
99
121
  "CONTENT_SCHEME_CLASS_MAPPINGS": {
100
- "default": "text-blue-700",
101
- "info": "text-blue-700",
102
- "success": "text-green-700",
103
- "warning": "text-yellow-700",
104
- "danger": "text-red-700"
122
+ "default": "ariadne-text-blue-700",
123
+ "info": "ariadne-text-blue-700",
124
+ "success": "ariadne-text-green-700",
125
+ "warning": "ariadne-text-yellow-700",
126
+ "danger": "ariadne-text-red-700"
105
127
  },
106
128
  "DEFAULT_SCHEME": "default",
107
129
  "DISMISSIBLE_SCHEME_CLASS_MAPPINGS": {
108
- "default": "text-blue-500 bg-blue-50 hover:bg-blue-100 focus:ring-offset-blue-50 focus:ring-blue-600",
109
- "info": "text-blue-500 bg-blue-50 hover:bg-blue-100 focus:ring-offset-blue-50 focus:ring-blue-600",
110
- "success": "text-green-500 bg-green-50 hover:bg-green-100 focus:ring-offset-green-50 focus:ring-green-600",
111
- "warning": "text-yellow-500 bg-yellow-50 hover:bg-yellow-100 focus:ring-offset-yellow-50 focus:ring-yellow-600",
112
- "danger": "text-red-500 bg-red-50 hover:bg-red-100 focus:ring-offset-red-50 focus:ring-red-600"
130
+ "default": "ariadne-text-blue-500 ariadne-bg-blue-50 hover:ariadne-bg-blue-100 focus:ariadne-ring-offset-blue-50 focus:ariadne-ring-blue-600",
131
+ "info": "ariadne-text-blue-500 ariadne-bg-blue-50 hover:ariadne-bg-blue-100 focus:ariadne-ring-offset-blue-50 focus:ariadne-ring-blue-600",
132
+ "success": "ariadne-text-green-500 ariadne-bg-green-50 hover:ariadne-bg-green-100 focus:ariadne-ring-offset-green-50 focus:ariadne-ring-green-600",
133
+ "warning": "ariadne-text-yellow-500 ariadne-bg-yellow-50 hover:ariadne-bg-yellow-100 focus:ariadne-ring-offset-yellow-50 focus:ariadne-ring-yellow-600",
134
+ "danger": "ariadne-text-red-500 ariadne-bg-red-50 hover:ariadne-bg-red-100 focus:ariadne-ring-offset-red-50 focus:ariadne-ring-red-600"
113
135
  },
114
136
  "VALID_BG_SCHEMES": [
115
137
  "default",
@@ -133,90 +155,40 @@
133
155
  "danger"
134
156
  ]
135
157
  },
136
- "Ariadne::FooterComponent": {
137
- "DEFAULT_CLASSES": "py-5"
138
- },
139
- "Ariadne::FormComponent": {
140
- "CheckboxField": "Ariadne::FormComponent::CheckboxField",
141
- "DEFAULT_CLASSES": "space-y-8 divide-y divide-gray-200 sm:space-y-5",
142
- "DEFAULT_TAG": "form",
143
- "EmailField": "Ariadne::FormComponent::EmailField",
144
- "FORM_TYPE_CHECKBOX": "checkbox",
145
- "FORM_TYPE_EMAIL": "email",
146
- "FORM_TYPE_HIDDEN": "hidden",
147
- "FORM_TYPE_PASSWORD": "password",
148
- "FORM_TYPE_RADIO": "radio",
149
- "FORM_TYPE_TEXT": "text",
150
- "FORM_TYPE_TEXTAREA": "textarea",
151
- "HiddenField": "Ariadne::FormComponent::HiddenField",
152
- "PasswordField": "Ariadne::FormComponent::PasswordField",
153
- "RadioField": "Ariadne::FormComponent::RadioField",
154
- "Section": "Ariadne::FormComponent::Section",
158
+ "Ariadne::FlexComponent": {
159
+ "DEFAULT_CLASSES": "flex",
160
+ "DEFAULT_TAG": "div",
155
161
  "TAG_OPTIONS": [
156
- "form"
157
- ],
158
- "TextField": "Ariadne::FormComponent::TextField",
159
- "TextareaField": "Ariadne::FormComponent::TextareaField",
160
- "VALID_FORM_TYPES": [
161
- "text",
162
- "checkbox",
163
- "radio",
164
- "textarea",
165
- "hidden",
166
- "password",
167
- "email"
162
+ "div"
168
163
  ],
169
- "VALID_METHODS": [
170
- "get",
171
- "post",
172
- "put",
173
- "delete",
174
- "patch"
164
+ "VALID_TYPES": [
165
+ "row",
166
+ "column",
167
+ "row_reverse",
168
+ "column_reverse"
175
169
  ]
176
170
  },
177
- "Ariadne::FormComponent::CheckboxField": {
178
- "DEFAULT_CHECKBOX_CLASSES": "focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded"
179
- },
180
- "Ariadne::FormComponent::EmailField": {
181
- "AUTOCOMPLETE": "email",
182
- "DEFAULT_EMAIL_CLASSES": "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"
183
- },
184
- "Ariadne::FormComponent::HiddenField": {
185
- },
186
- "Ariadne::FormComponent::PasswordField": {
187
- "AUTOCOMPLETE": "current-password",
188
- "DEFAULT_PASSWORD_CLASSES": "appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
189
- },
190
- "Ariadne::FormComponent::RadioField": {
191
- "DEFAULT_RADIO_CLASSES": "focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded"
192
- },
193
- "Ariadne::FormComponent::Section": {
194
- "DEFAULT_SECTION_CLASSES": "divide-y divide-gray-200 pt-8 space-y-6 sm:pt-10 sm:space-y-5",
195
- "DEFAULT_SECTION_HEADING_CLASSES": "text-lg leading-6 font-medium text-gray-900",
196
- "DEFAULT_SECTION_SUBHEADING_CLASSES": "mt-1 max-w-2xl text-sm text-gray-500",
197
- "ITEMS_LAMBDA": "#<Proc:0x00007f117916e6a8 /home/runner/work/ariadne/ariadne/ruby/ariadne_view_components/app/components/ariadne/form_component.rb:71 (lambda)>"
198
- },
199
- "Ariadne::FormComponent::TextField": {
200
- "DEFAULT_TEXT_CLASSES": "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"
201
- },
202
- "Ariadne::FormComponent::TextareaField": {
203
- "DEFAULT_TEXTAREA_CLASSES": "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border border-gray-300 rounded-md"
171
+ "Ariadne::FooterComponent": {
172
+ "DEFAULT_CLASSES": "ariadne-py-5"
204
173
  },
205
174
  "Ariadne::GridComponent": {
206
- "DEFAULT_CLASSES": "grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",
207
- "DEFAULT_LINK_COLOR_CLASSES": "text-button-text-color bg-button-bg-color hover:bg-button-hover-color focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500",
208
- "Item": "Ariadne::GridComponent::Item"
175
+ "DEFAULT_CLASSES": "ariadne-grid ariadne-gap-6 sm:ariadne-grid-cols-2 lg:ariadne-grid-cols-3",
176
+ "DEFAULT_LINK_COLOR_CLASSES": "ariadne-text-button-text-color ariadne-bg-button-bg-color focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2 focus:ariadne-ring-purple-500",
177
+ "GridItem": "Ariadne::GridComponent::GridItem"
209
178
  },
210
- "Ariadne::GridComponent::Item": {
179
+ "Ariadne::GridComponent::GridItem": {
180
+ "DEFAULT_ACTION_LINK_CLASSES": "text-button-text-color ariadne-relative ariadne--mr-px ariadne-w-0 ariadne-flex-1 ariadne-inline-flex ariadne-items-center ariadne-justify-center ariadne-py-4 ariadne-text-sm ariadne-font-medium ariadne-border ariadne-border-transparent ariadne-rounded-bl-lg ariadne-rounded-lg",
181
+ "DEFAULT_ENTRY_CLASSES": "group ariadne-flex-1 ariadne-flex ariadne-flex-col ariadne-p-8 hover:ariadne-bg-button-hover-color hover:ariadne-text-gray-500 ariadne-rounded-lg",
182
+ "DEFAULT_ITEM_CLASSES": "ariadne-flex ariadne-flex-col ariadne-text-center ariadne-rounded-lg ariadne-shadow ariadne-my-4 text-black-700 ariadne-border-black"
211
183
  },
212
184
  "Ariadne::HeaderComponent": {
213
- "DEFAULT_CLASSES": "sticky top-0 z-50 px-4 py-2 bg-white shadow-sm shadow-slate-900/5 transition duration-500",
214
- "DEFAULT_IMAGE_LOGO_CLASSES": "h-10 w-auto",
215
- "DEFAULT_NAV_LINK_CLASSES": "inline-block rounded-lg py-1 px-2 text-sm text-slate-700 hover:bg-slate-100 hover:text-slate-900",
216
- "DEFAULT_PROFILE_LINK_CLASSES": "group inline-flex items-center justify-center rounded-full py-2 px-4 text-sm font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",
217
- "DEFAULT_SIGNUP_LINK_CLASSES": "group inline-flex items-center justify-center rounded-full py-2 px-4 text-sm font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",
218
- "DEFAULT_TEXT_LOGO_CLASSES": "flex items-center font-bold text-xl",
219
- "LINK_CLASSES": "rounded-lg py-1 px-2 text-slate-700 hover:bg-slate-100 hover:text-slate-900"
185
+ "DEFAULT_CLASSES": "ariadne-sticky ariadne-top-0 ariadne-z-50 ariadne-px-4 ariadne-py-5 ariadne-bg-white ariadne-shadow-sm shadow-slate-900/5 ariadne-transition ariadne-duration-500",
186
+ "DEFAULT_IMAGE_LOGO_CLASSES": "ariadne-h-10 ariadne-w-auto",
187
+ "DEFAULT_NAV_LINK_CLASSES": "ariadne-inline-block ariadne-rounded-lg ariadne-py-1 ariadne-px-2 ariadne-text-sm text-slate-700 hover:bg-slate-100 hover:text-slate-900",
188
+ "DEFAULT_PROFILE_LINK_CLASSES": "group ariadne-inline-flex ariadne-items-center ariadne-justify-center ariadne-rounded-full ariadne-py-2 ariadne-px-4 ariadne-text-sm ariadne-font-semibold focus:ariadne-outline-none focus-visible:outline-2 focus-visible:outline-offset-2",
189
+ "DEFAULT_SIGNUP_LINK_CLASSES": "group ariadne-inline-flex ariadne-items-center ariadne-justify-center ariadne-rounded-full ariadne-py-2 ariadne-px-4 ariadne-text-sm ariadne-font-semibold focus:ariadne-outline-none focus-visible:outline-2 focus-visible:outline-offset-2",
190
+ "DEFAULT_TEXT_LOGO_CLASSES": "ariadne-flex ariadne-items-center ariadne-font-bold ariadne-text-xl",
191
+ "LINK_CLASSES": "ariadne-rounded-lg ariadne-py-1 ariadne-px-2 text-slate-700 hover:bg-slate-100 hover:text-slate-900"
220
192
  },
221
193
  "Ariadne::HeadingComponent": {
222
194
  "TAG_OPTIONS": [
@@ -228,12 +200,13 @@
228
200
  "h6"
229
201
  ],
230
202
  "TAG_TO_CLASSES": {
231
- "h1": "font-bold leading-7 sm:text-3xl",
232
- "h2": "text-3xl font-extrabold text-gray-900",
233
- "h3": "text-2xl font-extrabold text-gray-900"
203
+ "h1": "ariadne-font-bold ariadne-leading-7 sm:ariadne-text-3xl",
204
+ "h2": "ariadne-text-3xl ariadne-font-extrabold",
205
+ "h3": "ariadne-text-2xl ariadne-font-extrabold"
234
206
  }
235
207
  },
236
208
  "Ariadne::HeroiconComponent": {
209
+ "DEFAULT_TEXT_CLASSES": "ariadne-pl-2",
237
210
  "PRELOADED_ICONS": [
238
211
  {
239
212
  "name": "bell",
@@ -304,38 +277,44 @@
304
277
  "variant": "outline"
305
278
  },
306
279
  {
307
- "name": "x",
280
+ "name": "x-mark",
308
281
  "variant": "outline"
309
282
  }
310
283
  ],
311
- "SIZE_DEFAULT": "s",
284
+ "SIZE_DEFAULT": "sm",
285
+ "SIZE_LARGE": "lg",
312
286
  "SIZE_MAPPINGS": {
313
- "s": 16,
314
- "m": 24
287
+ "sm": 16,
288
+ "md": 24,
289
+ "lg": 128
315
290
  },
316
- "SIZE_MEDIUM": "m",
291
+ "SIZE_MEDIUM": "md",
317
292
  "SIZE_OPTIONS": [
318
- "s",
319
- "m"
293
+ "sm",
294
+ "md",
295
+ "lg"
320
296
  ]
321
297
  },
322
298
  "Ariadne::ImageComponent": {
323
299
  "DEFAULT_TAG": "img"
324
300
  },
325
301
  "Ariadne::InlineFlexComponent": {
326
- "DEFAULT_CLASSES": "inline-flex items-baseline",
302
+ "DEFAULT_CLASSES": "ariadne-inline-flex ariadne-items-baseline",
303
+ "DEFAULT_LABEL_CLASSES": "ariadne-pl-2 ariadne-text-sm ariadne-font-medium ariadne-text-gray-900",
327
304
  "DEFAULT_TAG": "span",
328
- "DEFAULT_TEXT_CLASSES": "pl-2 text-sm font-medium text-gray-900 text-sm",
329
- "DEFAULT_TEXT_CLOSED_CLASSES": "text-state-closed",
330
- "DEFAULT_TEXT_OPEN_CLASSES": "text-state-open",
331
- "STATE_CLOSED_SVG": "<svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" class=\"stroke-state-closed fill-state-closed \" stroke=\"currentColor\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n</svg>\n",
332
- "STATE_OPEN_SVG": "<svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" class=\"stroke-state-open\" stroke=\"currentColor\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n</svg>\n",
305
+ "DEFAULT_TEXT_CLASSES": "ariadne-pl-2 ariadne-text-sm ariadne-font-medium ariadne-text-gray-900",
306
+ "DEFAULT_TEXT_CLOSED_CLASSES": "ariadne-text-state-closed",
307
+ "DEFAULT_TEXT_OPEN_CLASSES": "ariadne-text-state-open",
308
+ "STATE_CLOSED_SVG": "<svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" class=\"ariadne-stroke-state-closed fill-state-closed \" stroke=\"currentColor\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n</svg>\n",
309
+ "STATE_OPEN_SVG": "<svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" class=\"ariadne-stroke-state-open\" stroke=\"currentColor\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n</svg>\n",
333
310
  "STATE_OPTIONS": [
334
311
  "closed",
335
312
  "open"
336
313
  ]
337
314
  },
338
315
  "Ariadne::LinkComponent": {
316
+ "DEFAULT_ACTIONABLE_CLASSES": " ariadne-cursor-pointer ariadne-underline ariadne-decoration-double ariadne-font-semibold hover:ariadne-text-button-text-color focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2 focus:ariadne-ring-purple-500",
317
+ "DEFAULT_CLASSES": "ariadne-cursor-pointer",
339
318
  "DEFAULT_TAG": "a",
340
319
  "TAG_OPTIONS": [
341
320
  "a",
@@ -343,37 +322,80 @@
343
322
  ]
344
323
  },
345
324
  "Ariadne::ListComponent": {
346
- "DEFAULT_UL_CLASSES": "divide-y divide-gray-300",
347
- "Item": "Ariadne::ListComponent::Item"
325
+ "DEFAULT_TAG": "ul",
326
+ "DEFAULT_UL_CLASSES": "ariadne-divide-y ariadne-divide-gray-300",
327
+ "ListItem": "Ariadne::ListComponent::ListItem"
328
+ },
329
+ "Ariadne::ListComponent::ListItem": {
330
+ "DEFAULT_ITEM_CLASSES": "ariadne-relative ariadne-p-1.5 focus:ariadne-ring-2 focus:ariadne-ring-offset-2 focus:ariadne-ring-purple-500 hover:ariadne-bg-button-hover-color"
348
331
  },
349
- "Ariadne::ListComponent::Item": {
332
+ "Ariadne::MainComponent": {
333
+ "DEFAULT_CLASSES": "flex-auto"
334
+ },
335
+ "Ariadne::NarrowContainerComponent": {
336
+ "DEFAULT_CLASSES": "ariadne-max-w-7xl ariadne-mx-auto ariadne-py-12 ariadne-px-4 sm:ariadne-px-6 lg:ariadne-py-16 lg:ariadne-px-8",
337
+ "DEFAULT_TAG": "div",
338
+ "TAG_OPTIONS": [
339
+ "div"
340
+ ]
341
+ },
342
+ "Ariadne::PanelBarComponent": {
343
+ "DEFAULT_CLASSES": "ariadne-border ariadne-border-gray-300 ariadne-rounded-md ariadne-divide-y ariadne-divide-gray-300 md:ariadne-flex md:ariadne-divide-y-0",
344
+ "DEFAULT_TAG": "ol",
345
+ "PanelItem": "Ariadne::PanelBarComponent::PanelItem",
346
+ "TAG_OPTIONS": [
347
+ "ol"
348
+ ]
349
+ },
350
+ "Ariadne::PanelBarComponent::PanelItem": {
351
+ "DEFAULT_ITEM_CLASSES": "ariadne-relative md:ariadne-flex-1 md:ariadne-flex",
352
+ "DEFAULT_WRAPPER_CLASSES": "group ariadne-flex ariadne-items-center ariadne-w-full"
350
353
  },
351
354
  "Ariadne::PillComponent": {
352
- "DEFAULT_CLASSES": "flex-shrink-0 inline-block px-2 py-0.5 text-xs font-medium rounded-full",
355
+ "DEFAULT_CLASSES": "ariadne-flex-shrink-0 ariadne-inline-block ariadne-px-2 ariadne-py-0.5 ariadne-text-xs ariadne-font-medium ariadne-rounded-full",
353
356
  "DEFAULT_TAG": "span",
354
357
  "TAG_OPTIONS": [
355
358
  "span"
356
359
  ]
357
360
  },
361
+ "Ariadne::RichTextAreaComponent": {
362
+ "DEFAULT_CLASSES": "ariadne-block ariadne-w-full ariadne-border-0 ariadne-py-3 focus:ariadne-ring-0 sm:ariadne-text-sm",
363
+ "DEFAULT_TAG": "div"
364
+ },
358
365
  "Ariadne::SlideoverComponent": {
359
- "DEFAULT_BUTTON_CLASSES": "inline-flex items-center shadow-sm px-4 py-1.5 border border-our-purple-300 z-50 text-sm leading-5 font-medium rounded-full text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
366
+ "DEFAULT_BUTTON_CLASSES": "ariadne-inline-flex ariadne-items-center ariadne-shadow-sm ariadne-px-4 ariadne-py-1.5 ariadne-pb-2 ariadne-text-sm ariadne-leading-5 ariadne-font-medium ariadne-rounded-full ariadne-text-purple-800 ariadne-bg-purple-50 hover:ariadne-bg-purple-100 ariadne-border-purple-300 focus:ariadne-ring-offset-purple-50 focus:ariadne-ring-purple-600",
360
367
  "DEFAULT_CLASSES": "",
361
368
  "DEFAULT_TAG": "div",
362
- "DIRECTION_X": "x",
363
- "DIRECTION_Y": "y",
369
+ "DIRECTION_X_LEFT": "xl",
370
+ "DIRECTION_Y_DOWN": "yd",
364
371
  "TAG_OPTIONS": [
365
372
  "div"
366
373
  ],
367
374
  "VALID_DIRECTIONS": [
368
- "y",
369
- "x"
375
+ "yd",
376
+ "xl"
377
+ ]
378
+ },
379
+ "Ariadne::TabBarComponent": {
380
+ "DEFAULT_CLASSES": "ariadne--mb-px ariadne-flex ariadne-space-x-8 ariadne-bg-transparent",
381
+ "DEFAULT_TAG": "nav",
382
+ "TAG_OPTIONS": [
383
+ "nav"
384
+ ]
385
+ },
386
+ "Ariadne::TabComponent": {
387
+ "BASE_TAB_CLASSES": "ariadne-whitespace-nowrap ariadne-py-4 ariadne-px-1 ariadne-border-b-2 ariadne-font-medium ariadne-text-sm",
388
+ "DEFAULT_CLASSES": "ariadne-border-gray-300 ariadne-border ariadne-shadow ariadne-py-5 ariadne-px-5 ariadne-rounded-md",
389
+ "DEFAULT_TAG": "button",
390
+ "TAG_OPTIONS": [
391
+ "button"
370
392
  ]
371
393
  },
372
394
  "Ariadne::Text": {
373
395
  "DEFAULT_TAG": "span"
374
396
  },
375
397
  "Ariadne::TimeAgoComponent": {
376
- "DEFAULT_CLASSES": "whitespace-nowrap",
398
+ "DEFAULT_CLASSES": "ariadne-whitespace-nowrap",
377
399
  "DEFAULT_TAG": "time-ago",
378
400
  "TAG_OPTIONS": [
379
401
  "time-ago"
@@ -384,21 +406,21 @@
384
406
  "DEFAULT_TAG": "div"
385
407
  },
386
408
  "Ariadne::TooltipComponent": {
387
- "DIRECTION_DEFAULT": "s",
388
- "DIRECTION_OPTIONS": [
389
- "s",
390
- "n",
391
- "e",
392
- "w",
393
- "ne",
394
- "nw",
395
- "se",
396
- "sw"
397
- ],
409
+ "DATA_ACTION": "mouseover->tooltip-component#show mouseout->tooltip-component#hide",
410
+ "DATA_CONTROLLER": "tooltip-component",
411
+ "DEFAULT_CLASSES": "ariadne-invisible ariadne-absolute ariadne-bg-slate-900 ariadne-text-white ariadne-font-semibold ariadne-max-w-xs ariadne-py-1 ariadne-px-2 ariadne-rounded z-max",
412
+ "DEFAULT_PLACEMENT": "top",
413
+ "DEFAULT_TAG": "tooltip",
398
414
  "TYPE_DEFAULT": "description",
399
415
  "TYPE_OPTIONS": [
400
416
  "label",
401
417
  "description"
418
+ ],
419
+ "VALID_PLACEMENTS": [
420
+ "top",
421
+ "right",
422
+ "bottom",
423
+ "left"
402
424
  ]
403
425
  }
404
426
  }
data/static/statuses.json CHANGED
@@ -2,15 +2,18 @@
2
2
  "Ariadne::BaseButton": "stable",
3
3
  "Ariadne::BaseComponent": "stable",
4
4
  "Ariadne::BlankslateComponent": "stable",
5
+ "Ariadne::BodyComponent": "stable",
5
6
  "Ariadne::ButtonComponent": "stable",
6
7
  "Ariadne::ClipboardCopyComponent": "stable",
8
+ "Ariadne::CommentComponent": "stable",
7
9
  "Ariadne::ContainerComponent": "stable",
8
10
  "Ariadne::Content": "stable",
9
11
  "Ariadne::CounterComponent": "stable",
10
12
  "Ariadne::FlashComponent": "stable",
13
+ "Ariadne::FlexComponent": "stable",
11
14
  "Ariadne::FooterComponent": "stable",
12
15
  "Ariadne::GridComponent": "stable",
13
- "Ariadne::GridComponent::Item": "stable",
16
+ "Ariadne::GridComponent::GridItem": "stable",
14
17
  "Ariadne::HeaderComponent": "stable",
15
18
  "Ariadne::HeadingComponent": "stable",
16
19
  "Ariadne::HeroiconComponent": "stable",
@@ -18,9 +21,16 @@
18
21
  "Ariadne::InlineFlexComponent": "stable",
19
22
  "Ariadne::LinkComponent": "stable",
20
23
  "Ariadne::ListComponent": "stable",
21
- "Ariadne::ListComponent::Item": "stable",
24
+ "Ariadne::ListComponent::ListItem": "stable",
25
+ "Ariadne::MainComponent": "stable",
26
+ "Ariadne::NarrowContainerComponent": "stable",
27
+ "Ariadne::PanelBarComponent": "stable",
28
+ "Ariadne::PanelBarComponent::PanelItem": "stable",
22
29
  "Ariadne::PillComponent": "stable",
30
+ "Ariadne::RichTextAreaComponent": "stable",
23
31
  "Ariadne::SlideoverComponent": "stable",
32
+ "Ariadne::TabBarComponent": "stable",
33
+ "Ariadne::TabComponent": "stable",
24
34
  "Ariadne::Text": "stable",
25
35
  "Ariadne::TimeAgoComponent": "stable",
26
36
  "Ariadne::TimelineComponent": "stable",