ariadne_view_components 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ariadne-form-with.d.ts +20 -0
  3. data/app/assets/javascripts/ariadne-form.d.ts +22 -0
  4. data/app/assets/javascripts/ariadne.d.ts +1 -1
  5. data/app/assets/javascripts/ariadne_view_components.js +7 -1
  6. data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
  7. data/app/assets/javascripts/comment-component.d.ts +13 -0
  8. data/app/assets/javascripts/rich-text-area-component.d.ts +4 -0
  9. data/app/{components/ariadne/time_ago_component.d.ts → assets/javascripts/time-ago-component.d.ts} +0 -0
  10. data/app/assets/stylesheets/application.ariadne_view_components.css +1 -0
  11. data/app/assets/stylesheets/prosemirror.css +323 -0
  12. data/app/components/ariadne/ariadne-form.ts +96 -0
  13. data/app/components/ariadne/ariadne.ts +8 -1
  14. data/app/components/ariadne/base_button.rb +6 -7
  15. data/app/components/ariadne/base_component.rb +13 -131
  16. data/app/components/ariadne/blankslate_component.html.erb +5 -5
  17. data/app/components/ariadne/blankslate_component.rb +4 -9
  18. data/app/components/ariadne/body_component.rb +1 -1
  19. data/app/components/ariadne/button_component.rb +7 -6
  20. data/app/components/ariadne/clipboard_copy_component.html.erb +3 -2
  21. data/app/components/ariadne/comment-component.ts +55 -0
  22. data/app/components/ariadne/comment_component.html.erb +17 -20
  23. data/app/components/ariadne/comment_component.rb +29 -17
  24. data/app/components/ariadne/component.rb +4 -4
  25. data/app/components/ariadne/container_component.rb +1 -1
  26. data/app/components/ariadne/counter_component.rb +4 -4
  27. data/app/components/ariadne/flash_component.html.erb +12 -12
  28. data/app/components/ariadne/flash_component.rb +16 -16
  29. data/app/components/ariadne/flex_component.rb +5 -7
  30. data/app/components/ariadne/footer_component.html.erb +1 -1
  31. data/app/components/ariadne/footer_component.rb +1 -1
  32. data/app/components/ariadne/grid_component.html.erb +4 -4
  33. data/app/components/ariadne/grid_component.rb +9 -9
  34. data/app/components/ariadne/header_component.html.erb +7 -7
  35. data/app/components/ariadne/header_component.rb +8 -8
  36. data/app/components/ariadne/heading_component.rb +3 -3
  37. data/app/components/ariadne/heroicon_component.rb +4 -4
  38. data/app/components/ariadne/inline_flex_component.rb +7 -7
  39. data/app/components/ariadne/link_component.rb +2 -2
  40. data/app/components/ariadne/list_component.rb +6 -5
  41. data/app/components/ariadne/narrow_container_component.html.erb +3 -0
  42. data/app/components/ariadne/narrow_container_component.rb +30 -0
  43. data/app/components/ariadne/panel_bar_component.html.erb +20 -0
  44. data/app/components/ariadne/panel_bar_component.rb +79 -0
  45. data/app/components/ariadne/pill_component.rb +2 -2
  46. data/app/components/ariadne/rich-text-area-component.ts +32 -0
  47. data/app/components/ariadne/rich_text_area_component.html.erb +6 -0
  48. data/app/components/ariadne/rich_text_area_component.rb +35 -0
  49. data/app/components/ariadne/slideover-component.ts +3 -3
  50. data/app/components/ariadne/slideover_component.html.erb +3 -3
  51. data/app/components/ariadne/slideover_component.rb +1 -1
  52. data/app/components/ariadne/tab_bar_component.html.erb +3 -0
  53. data/app/components/ariadne/tab_bar_component.rb +45 -0
  54. data/app/components/ariadne/tab_component.html.erb +7 -0
  55. data/app/components/ariadne/tab_component.rb +43 -0
  56. data/app/components/ariadne/{time_ago_component.ts → time-ago-component.ts} +0 -0
  57. data/app/components/ariadne/time_ago_component.rb +2 -2
  58. data/app/components/ariadne/timeline_component.html.erb +6 -6
  59. data/app/components/ariadne/tooltip-component.ts +3 -3
  60. data/app/components/ariadne/tooltip_component.html.erb +1 -1
  61. data/app/components/ariadne/tooltip_component.rb +1 -1
  62. data/app/lib/ariadne/action_view_extensions/form_helper.rb +4 -1
  63. data/app/lib/ariadne/fetch_or_fallback_helper.rb +3 -1
  64. data/app/lib/ariadne/form_builder.rb +10 -10
  65. data/app/lib/ariadne/icon_helper.rb +1 -1
  66. data/lib/ariadne/view_components/engine.rb +169 -3
  67. data/lib/ariadne/view_components/version.rb +1 -1
  68. data/lib/ariadne/view_components.rb +0 -1
  69. data/lib/rubocop/config/default.yml +0 -6
  70. data/lib/rubocop/cop/ariadne/no_tag_memoize.rb +1 -0
  71. data/lib/tasks/docs.rake +6 -1
  72. data/static/arguments.yml +99 -4
  73. data/static/audited_at.json +8 -2
  74. data/static/classes.yml +195 -181
  75. data/static/constants.json +112 -72
  76. data/static/statuses.json +8 -2
  77. metadata +42 -32
  78. data/app/assets/builds/ariadne_view_components.css +0 -1874
  79. data/app/components/ariadne/ariadne.d.ts +0 -1
  80. data/app/components/ariadne/ariadne.js +0 -9
  81. data/app/components/ariadne/clipboard-copy-component.d.ts +0 -4
  82. data/app/components/ariadne/clipboard-copy-component.js +0 -18
  83. data/app/components/ariadne/clipboard_copy_component.d.ts +0 -4
  84. data/app/components/ariadne/clipboard_copy_component.js +0 -18
  85. data/app/components/ariadne/slideover-component.d.ts +0 -9
  86. data/app/components/ariadne/slideover-component.js +0 -20
  87. data/app/components/ariadne/slideover_component.d.ts +0 -9
  88. data/app/components/ariadne/slideover_component.js +0 -19
  89. data/app/components/ariadne/time_ago_component.js +0 -1
  90. data/app/components/ariadne/tooltip-component.d.ts +0 -24
  91. data/app/components/ariadne/tooltip-component.js +0 -42
  92. data/lib/ariadne/classify/utilities.rb +0 -199
  93. data/lib/ariadne/classify/utilities.yml +0 -1817
  94. data/lib/ariadne/classify/validation.rb +0 -18
  95. data/lib/ariadne/classify.rb +0 -124
  96. data/lib/rubocop/cop/ariadne/ariadne_heroicon.rb +0 -252
  97. data/lib/rubocop/cop/ariadne/component_name_migration.rb +0 -35
  98. data/lib/rubocop/cop/ariadne/system_argument_instead_of_class.rb +0 -57
  99. 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",
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
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
- "sm": "inline-flex items-center px-3 py-2 text-sm leading-4 font-medium rounded-m",
10
- "md": "inline-flex items-center px-4 py-2 text-sm font-medium rounded-md",
11
- "lg": "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",
@@ -49,7 +49,7 @@
49
49
  ]
50
50
  },
51
51
  "Ariadne::BlankslateComponent": {
52
- "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",
53
53
  "DEFAULT_HEADING_CLASSES": "text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl",
54
54
  "DEFAULT_IMAGE_SIZE": 56,
55
55
  "DEFAULT_TAG": "div",
@@ -58,19 +58,21 @@
58
58
  ]
59
59
  },
60
60
  "Ariadne::BodyComponent": {
61
- "DEFAULT_CLASSES": "flex flex-col min-h-screen"
61
+ "DEFAULT_CLASSES": "ariadne-flex ariadne-flex-col ariadne-min-h-screen"
62
62
  },
63
63
  "Ariadne::ButtonComponent": {
64
64
  "DEFAULT_SCHEME": "default",
65
65
  "LINK_SCHEME": "link",
66
66
  "SCHEME_CLASS_MAPPINGS": {
67
- "default": "text-purple-800 bg-purple-50 hover:bg-purple-100 border-purple-300 focus:ring-offset-purple-50 focus:ring-purple-600",
68
- "info": "text-blue-800 bg-blue-50 hover:bg-blue-100 border-blue-300 focus:ring-offset-blue-50 focus:ring-blue-600",
69
- "success": "text-green-800 bg-green-50 hover:bg-green-100 border-green-300 focus:ring-offset-green-50 focus:ring-green-600",
70
- "warning": "text-yellow-800 bg-yellow-50 hover:bg-yellow-100 border-yellow-300 focus:ring-offset-yellow-50 focus:ring-yellow-600",
71
- "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"
72
73
  },
73
74
  "VALID_SCHEMES": [
75
+ "none",
74
76
  "default",
75
77
  "info",
76
78
  "success",
@@ -90,47 +92,46 @@
90
92
  "data-action": "click->clipboard-copy-component#copy mouseover->tooltip-component#show mouseout->tooltip-component#hide",
91
93
  "data-tooltip-component-target": "trigger"
92
94
  },
93
- "DEFAULT_CLASSES": " cursor-pointer underline decoration-double font-semibold hover:text-button-text-color focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500",
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",
94
96
  "DEFAULT_TAG": "clipboard-copy"
95
97
  },
96
98
  "Ariadne::CommentComponent": {
97
- "DEFAULT_CLASSES": "",
98
- "DEFAULT_TAB_CLASSES": "text-gray-500 hover:text-gray-900 bg-white hover:bg-gray-100 px-3 py-1.5 border border-transparent text-sm font-medium rounded-md",
99
- "DEFAULT_TAG": "form",
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",
100
101
  "TAG_OPTIONS": [
101
- "form"
102
+ "div"
102
103
  ]
103
104
  },
104
105
  "Ariadne::ContainerComponent": {
105
- "DEFAULT_CLASSES": "px-4 sm:px-6 lg:px-8"
106
+ "DEFAULT_CLASSES": "ariadne-px-4 sm:ariadne-px-6 lg:ariadne-px-8"
106
107
  },
107
108
  "Ariadne::Content": {
108
109
  },
109
110
  "Ariadne::CounterComponent": {
110
- "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"
111
112
  },
112
113
  "Ariadne::FlashComponent": {
113
114
  "BG_SCHEME_CLASS_MAPPINGS": {
114
- "default": "bg-blue-50",
115
- "info": "bg-blue-50",
116
- "success": "bg-green-50",
117
- "warning": "bg-yellow-50",
118
- "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"
119
120
  },
120
121
  "CONTENT_SCHEME_CLASS_MAPPINGS": {
121
- "default": "text-blue-700",
122
- "info": "text-blue-700",
123
- "success": "text-green-700",
124
- "warning": "text-yellow-700",
125
- "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"
126
127
  },
127
128
  "DEFAULT_SCHEME": "default",
128
129
  "DISMISSIBLE_SCHEME_CLASS_MAPPINGS": {
129
- "default": "text-blue-500 bg-blue-50 hover:bg-blue-100 focus:ring-offset-blue-50 focus:ring-blue-600",
130
- "info": "text-blue-500 bg-blue-50 hover:bg-blue-100 focus:ring-offset-blue-50 focus:ring-blue-600",
131
- "success": "text-green-500 bg-green-50 hover:bg-green-100 focus:ring-offset-green-50 focus:ring-green-600",
132
- "warning": "text-yellow-500 bg-yellow-50 hover:bg-yellow-100 focus:ring-offset-yellow-50 focus:ring-yellow-600",
133
- "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"
134
135
  },
135
136
  "VALID_BG_SCHEMES": [
136
137
  "default",
@@ -168,26 +169,26 @@
168
169
  ]
169
170
  },
170
171
  "Ariadne::FooterComponent": {
171
- "DEFAULT_CLASSES": "py-5"
172
+ "DEFAULT_CLASSES": "ariadne-py-5"
172
173
  },
173
174
  "Ariadne::GridComponent": {
174
- "DEFAULT_CLASSES": "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",
175
- "DEFAULT_LINK_COLOR_CLASSES": "text-button-text-color bg-button-bg-color focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500",
176
- "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"
177
178
  },
178
- "Ariadne::GridComponent::Item": {
179
- "DEFAULT_ACTION_LINK_CLASSES": "text-button-text-color relative -mr-px w-0 flex-1 inline-flex items-center justify-center py-4 text-sm font-medium border border-transparent rounded-bl-lg rounded-lg",
180
- "DEFAULT_ENTRY_CLASSES": "group flex-1 flex flex-col p-8 hover:bg-button-hover-color hover:text-gray-500 rounded-lg",
181
- "DEFAULT_ITEM_CLASSES": "flex flex-col text-center rounded-lg shadow my-4 text-black-700 border-black"
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"
182
183
  },
183
184
  "Ariadne::HeaderComponent": {
184
- "DEFAULT_CLASSES": "sticky top-0 z-50 px-4 py-5 bg-white shadow-sm shadow-slate-900/5 transition duration-500",
185
- "DEFAULT_IMAGE_LOGO_CLASSES": "h-10 w-auto",
186
- "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",
187
- "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",
188
- "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",
189
- "DEFAULT_TEXT_LOGO_CLASSES": "flex items-center font-bold text-xl",
190
- "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"
191
192
  },
192
193
  "Ariadne::HeadingComponent": {
193
194
  "TAG_OPTIONS": [
@@ -199,13 +200,13 @@
199
200
  "h6"
200
201
  ],
201
202
  "TAG_TO_CLASSES": {
202
- "h1": "font-bold leading-7 sm:text-3xl",
203
- "h2": "text-3xl font-extrabold",
204
- "h3": "text-2xl font-extrabold"
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"
205
206
  }
206
207
  },
207
208
  "Ariadne::HeroiconComponent": {
208
- "DEFAULT_TEXT_CLASSES": "pl-2",
209
+ "DEFAULT_TEXT_CLASSES": "ariadne-pl-2",
209
210
  "PRELOADED_ICONS": [
210
211
  {
211
212
  "name": "bell",
@@ -276,7 +277,7 @@
276
277
  "variant": "outline"
277
278
  },
278
279
  {
279
- "name": "x",
280
+ "name": "x-mark",
280
281
  "variant": "outline"
281
282
  }
282
283
  ],
@@ -298,22 +299,22 @@
298
299
  "DEFAULT_TAG": "img"
299
300
  },
300
301
  "Ariadne::InlineFlexComponent": {
301
- "DEFAULT_CLASSES": "inline-flex items-baseline",
302
- "DEFAULT_LABEL_CLASSES": "pl-2 text-sm font-medium text-gray-900",
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",
303
304
  "DEFAULT_TAG": "span",
304
- "DEFAULT_TEXT_CLASSES": "pl-2 text-sm font-medium text-gray-900",
305
- "DEFAULT_TEXT_CLOSED_CLASSES": "text-state-closed",
306
- "DEFAULT_TEXT_OPEN_CLASSES": "text-state-open",
307
- "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",
308
- "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",
309
310
  "STATE_OPTIONS": [
310
311
  "closed",
311
312
  "open"
312
313
  ]
313
314
  },
314
315
  "Ariadne::LinkComponent": {
315
- "DEFAULT_ACTIONABLE_CLASSES": " cursor-pointer underline decoration-double font-semibold hover:text-button-text-color focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500",
316
- "DEFAULT_CLASSES": "cursor-pointer",
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",
317
318
  "DEFAULT_TAG": "a",
318
319
  "TAG_OPTIONS": [
319
320
  "a",
@@ -321,24 +322,48 @@
321
322
  ]
322
323
  },
323
324
  "Ariadne::ListComponent": {
324
- "DEFAULT_UL_CLASSES": "divide-y divide-gray-300",
325
- "Item": "Ariadne::ListComponent::Item"
325
+ "DEFAULT_TAG": "ul",
326
+ "DEFAULT_UL_CLASSES": "ariadne-divide-y ariadne-divide-gray-300",
327
+ "ListItem": "Ariadne::ListComponent::ListItem"
326
328
  },
327
- "Ariadne::ListComponent::Item": {
328
- "DEFAULT_ITEM_CLASSES": "relative p-1.5 focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 hover:bg-button-hover-color"
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"
329
331
  },
330
332
  "Ariadne::MainComponent": {
331
333
  "DEFAULT_CLASSES": "flex-auto"
332
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"
353
+ },
333
354
  "Ariadne::PillComponent": {
334
- "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",
335
356
  "DEFAULT_TAG": "span",
336
357
  "TAG_OPTIONS": [
337
358
  "span"
338
359
  ]
339
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
+ },
340
365
  "Ariadne::SlideoverComponent": {
341
- "DEFAULT_BUTTON_CLASSES": "inline-flex items-center shadow-sm px-4 py-1.5 pb-2 text-sm leading-5 font-medium rounded-full text-purple-800 bg-purple-50 hover:bg-purple-100 border-purple-300 focus:ring-offset-purple-50 focus:ring-purple-600",
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",
342
367
  "DEFAULT_CLASSES": "",
343
368
  "DEFAULT_TAG": "div",
344
369
  "DIRECTION_X_LEFT": "xl",
@@ -351,11 +376,26 @@
351
376
  "xl"
352
377
  ]
353
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"
392
+ ]
393
+ },
354
394
  "Ariadne::Text": {
355
395
  "DEFAULT_TAG": "span"
356
396
  },
357
397
  "Ariadne::TimeAgoComponent": {
358
- "DEFAULT_CLASSES": "whitespace-nowrap",
398
+ "DEFAULT_CLASSES": "ariadne-whitespace-nowrap",
359
399
  "DEFAULT_TAG": "time-ago",
360
400
  "TAG_OPTIONS": [
361
401
  "time-ago"
@@ -368,7 +408,7 @@
368
408
  "Ariadne::TooltipComponent": {
369
409
  "DATA_ACTION": "mouseover->tooltip-component#show mouseout->tooltip-component#hide",
370
410
  "DATA_CONTROLLER": "tooltip-component",
371
- "DEFAULT_CLASSES": "invisible absolute bg-slate-900 text-white font-semibold max-w-xs py-1 px-2 rounded z-max",
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",
372
412
  "DEFAULT_PLACEMENT": "top",
373
413
  "DEFAULT_TAG": "tooltip",
374
414
  "TYPE_DEFAULT": "description",
data/static/statuses.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "Ariadne::FlexComponent": "stable",
14
14
  "Ariadne::FooterComponent": "stable",
15
15
  "Ariadne::GridComponent": "stable",
16
- "Ariadne::GridComponent::Item": "stable",
16
+ "Ariadne::GridComponent::GridItem": "stable",
17
17
  "Ariadne::HeaderComponent": "stable",
18
18
  "Ariadne::HeadingComponent": "stable",
19
19
  "Ariadne::HeroiconComponent": "stable",
@@ -21,10 +21,16 @@
21
21
  "Ariadne::InlineFlexComponent": "stable",
22
22
  "Ariadne::LinkComponent": "stable",
23
23
  "Ariadne::ListComponent": "stable",
24
- "Ariadne::ListComponent::Item": "stable",
24
+ "Ariadne::ListComponent::ListItem": "stable",
25
25
  "Ariadne::MainComponent": "stable",
26
+ "Ariadne::NarrowContainerComponent": "stable",
27
+ "Ariadne::PanelBarComponent": "stable",
28
+ "Ariadne::PanelBarComponent::PanelItem": "stable",
26
29
  "Ariadne::PillComponent": "stable",
30
+ "Ariadne::RichTextAreaComponent": "stable",
27
31
  "Ariadne::SlideoverComponent": "stable",
32
+ "Ariadne::TabBarComponent": "stable",
33
+ "Ariadne::TabComponent": "stable",
28
34
  "Ariadne::Text": "stable",
29
35
  "Ariadne::TimeAgoComponent": "stable",
30
36
  "Ariadne::TimelineComponent": "stable",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge
@@ -70,14 +70,28 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.4'
73
+ version: '0.6'
74
74
  type: :runtime
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '0.4'
80
+ version: '0.6'
81
+ - !ruby/object:Gem::Dependency
82
+ name: simple_form
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '5.1'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '5.1'
81
95
  - !ruby/object:Gem::Dependency
82
96
  name: view_component
83
97
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +112,7 @@ dependencies:
98
112
  - - "<"
99
113
  - !ruby/object:Gem::Version
100
114
  version: '3.0'
101
- description:
115
+ description:
102
116
  email:
103
117
  - gjtorikian@yettoapp.com
104
118
  executables: []
@@ -107,19 +121,23 @@ extra_rdoc_files: []
107
121
  files:
108
122
  - LICENSE.txt
109
123
  - README.md
110
- - app/assets/builds/ariadne_view_components.css
111
124
  - app/assets/config/manifest.js
125
+ - app/assets/javascripts/ariadne-form-with.d.ts
126
+ - app/assets/javascripts/ariadne-form.d.ts
112
127
  - app/assets/javascripts/ariadne.d.ts
113
128
  - app/assets/javascripts/ariadne_view_components.js
114
129
  - app/assets/javascripts/ariadne_view_components.js.map
115
130
  - app/assets/javascripts/clipboard-copy-component.d.ts
131
+ - app/assets/javascripts/comment-component.d.ts
132
+ - app/assets/javascripts/rich-text-area-component.d.ts
116
133
  - app/assets/javascripts/slideover-component.d.ts
134
+ - app/assets/javascripts/time-ago-component.d.ts
117
135
  - app/assets/javascripts/time_ago_component.d.ts
118
136
  - app/assets/javascripts/tooltip-component.d.ts
119
137
  - app/assets/stylesheets/application.ariadne_view_components.css
138
+ - app/assets/stylesheets/prosemirror.css
120
139
  - app/assets/stylesheets/tooltip-component.css
121
- - app/components/ariadne/ariadne.d.ts
122
- - app/components/ariadne/ariadne.js
140
+ - app/components/ariadne/ariadne-form.ts
123
141
  - app/components/ariadne/ariadne.ts
124
142
  - app/components/ariadne/base_button.rb
125
143
  - app/components/ariadne/base_component.rb
@@ -128,13 +146,10 @@ files:
128
146
  - app/components/ariadne/body_component.rb
129
147
  - app/components/ariadne/button_component.html.erb
130
148
  - app/components/ariadne/button_component.rb
131
- - app/components/ariadne/clipboard-copy-component.d.ts
132
- - app/components/ariadne/clipboard-copy-component.js
133
149
  - app/components/ariadne/clipboard-copy-component.ts
134
- - app/components/ariadne/clipboard_copy_component.d.ts
135
150
  - app/components/ariadne/clipboard_copy_component.html.erb
136
- - app/components/ariadne/clipboard_copy_component.js
137
151
  - app/components/ariadne/clipboard_copy_component.rb
152
+ - app/components/ariadne/comment-component.ts
138
153
  - app/components/ariadne/comment_component.html.erb
139
154
  - app/components/ariadne/comment_component.rb
140
155
  - app/components/ariadne/component.rb
@@ -161,24 +176,27 @@ files:
161
176
  - app/components/ariadne/list_component.html.erb
162
177
  - app/components/ariadne/list_component.rb
163
178
  - app/components/ariadne/main_component.rb
179
+ - app/components/ariadne/narrow_container_component.html.erb
180
+ - app/components/ariadne/narrow_container_component.rb
181
+ - app/components/ariadne/panel_bar_component.html.erb
182
+ - app/components/ariadne/panel_bar_component.rb
164
183
  - app/components/ariadne/pill_component.html.erb
165
184
  - app/components/ariadne/pill_component.rb
166
- - app/components/ariadne/slideover-component.d.ts
167
- - app/components/ariadne/slideover-component.js
185
+ - app/components/ariadne/rich-text-area-component.ts
186
+ - app/components/ariadne/rich_text_area_component.html.erb
187
+ - app/components/ariadne/rich_text_area_component.rb
168
188
  - app/components/ariadne/slideover-component.ts
169
- - app/components/ariadne/slideover_component.d.ts
170
189
  - app/components/ariadne/slideover_component.html.erb
171
- - app/components/ariadne/slideover_component.js
172
190
  - app/components/ariadne/slideover_component.rb
191
+ - app/components/ariadne/tab_bar_component.html.erb
192
+ - app/components/ariadne/tab_bar_component.rb
193
+ - app/components/ariadne/tab_component.html.erb
194
+ - app/components/ariadne/tab_component.rb
173
195
  - app/components/ariadne/text.rb
174
- - app/components/ariadne/time_ago_component.d.ts
175
- - app/components/ariadne/time_ago_component.js
196
+ - app/components/ariadne/time-ago-component.ts
176
197
  - app/components/ariadne/time_ago_component.rb
177
- - app/components/ariadne/time_ago_component.ts
178
198
  - app/components/ariadne/timeline_component.html.erb
179
199
  - app/components/ariadne/timeline_component.rb
180
- - app/components/ariadne/tooltip-component.d.ts
181
- - app/components/ariadne/tooltip-component.js
182
200
  - app/components/ariadne/tooltip-component.ts
183
201
  - app/components/ariadne/tooltip_component.html.erb
184
202
  - app/components/ariadne/tooltip_component.rb
@@ -196,10 +214,6 @@ files:
196
214
  - app/lib/ariadne/test_selector_helper.rb
197
215
  - app/lib/ariadne/underline_nav_helper.rb
198
216
  - app/lib/ariadne/view_helper.rb
199
- - lib/ariadne/classify.rb
200
- - lib/ariadne/classify/utilities.rb
201
- - lib/ariadne/classify/utilities.yml
202
- - lib/ariadne/classify/validation.rb
203
217
  - lib/ariadne/view_components.rb
204
218
  - lib/ariadne/view_components/constants.rb
205
219
  - lib/ariadne/view_components/engine.rb
@@ -208,11 +222,8 @@ files:
208
222
  - lib/ariadne/view_components/version.rb
209
223
  - lib/rubocop/config/default.yml
210
224
  - lib/rubocop/cop/ariadne.rb
211
- - lib/rubocop/cop/ariadne/ariadne_heroicon.rb
212
225
  - lib/rubocop/cop/ariadne/base_cop.rb
213
- - lib/rubocop/cop/ariadne/component_name_migration.rb
214
226
  - lib/rubocop/cop/ariadne/no_tag_memoize.rb
215
- - lib/rubocop/cop/ariadne/system_argument_instead_of_class.rb
216
227
  - lib/tasks/ariadne_view_components.rake
217
228
  - lib/tasks/coverage.rake
218
229
  - lib/tasks/custom_utilities.yml
@@ -220,7 +231,6 @@ files:
220
231
  - lib/tasks/helpers/ast_processor.rb
221
232
  - lib/tasks/helpers/ast_traverser.rb
222
233
  - lib/tasks/static.rake
223
- - lib/tasks/utilities.rake
224
234
  - lib/yard/docs_helper.rb
225
235
  - lib/yard/renders_many_handler.rb
226
236
  - lib/yard/renders_one_handler.rb
@@ -236,7 +246,7 @@ licenses:
236
246
  - MIT
237
247
  metadata:
238
248
  allowed_push_host: https://rubygems.org
239
- post_install_message:
249
+ post_install_message:
240
250
  rdoc_options: []
241
251
  require_paths:
242
252
  - lib
@@ -255,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
265
  version: '0'
256
266
  requirements: []
257
267
  rubygems_version: 3.3.7
258
- signing_key:
268
+ signing_key:
259
269
  specification_version: 4
260
270
  summary: ViewComponents for the Ariadne Design System
261
271
  test_files: []