vime_view_components 0.1.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vime/core/embed.rb +1 -1
  3. data/lib/vime/core/player.rb +1 -1
  4. data/lib/vime/core/playground.rb +1 -1
  5. data/lib/vime/providers/audio.rb +1 -1
  6. data/lib/vime/providers/dailymotion.rb +1 -1
  7. data/lib/vime/providers/dash.rb +1 -1
  8. data/lib/vime/providers/file.rb +1 -1
  9. data/lib/vime/providers/hls.rb +1 -1
  10. data/lib/vime/providers/video.rb +1 -1
  11. data/lib/vime/providers/vimeo.rb +1 -1
  12. data/lib/vime/providers/youtube.rb +1 -1
  13. data/lib/vime/ui/captions.rb +1 -1
  14. data/lib/vime/ui/click_to_play.rb +1 -1
  15. data/lib/vime/ui/controls/caption_control.rb +1 -1
  16. data/lib/vime/ui/controls/control.rb +1 -1
  17. data/lib/vime/ui/controls/control_group.rb +1 -1
  18. data/lib/vime/ui/controls/control_spacer.rb +1 -1
  19. data/lib/vime/ui/controls/controls.rb +1 -1
  20. data/lib/vime/ui/controls/default_controls.rb +1 -1
  21. data/lib/vime/ui/controls/fullscreen_control.rb +1 -1
  22. data/lib/vime/ui/controls/mute_control.rb +1 -1
  23. data/lib/vime/ui/controls/pip_control.rb +1 -1
  24. data/lib/vime/ui/controls/playback_control.rb +1 -1
  25. data/lib/vime/ui/controls/scrubber_control.rb +1 -1
  26. data/lib/vime/ui/controls/settings_control.rb +1 -1
  27. data/lib/vime/ui/controls/volume_control.rb +1 -1
  28. data/lib/vime/ui/dbl_click_fullscreen.rb +1 -1
  29. data/lib/vime/ui/default_ui.rb +1 -1
  30. data/lib/vime/ui/icon.rb +3 -3
  31. data/lib/vime/ui/icon_library.rb +21 -0
  32. data/lib/vime/ui/live_indicator.rb +1 -1
  33. data/lib/vime/ui/poster.rb +1 -1
  34. data/lib/vime/ui/scrim.rb +1 -1
  35. data/lib/vime/ui/settings/default_settings.rb +1 -1
  36. data/lib/vime/ui/settings/menu.rb +1 -1
  37. data/lib/vime/ui/settings/menu_item.rb +1 -1
  38. data/lib/vime/ui/settings/menu_radio.rb +1 -1
  39. data/lib/vime/ui/settings/menu_radio_group.rb +1 -1
  40. data/lib/vime/ui/settings/settings.rb +1 -1
  41. data/lib/vime/ui/settings/submenu.rb +1 -1
  42. data/lib/vime/ui/skeleton.rb +1 -1
  43. data/lib/vime/ui/slider.rb +1 -1
  44. data/lib/vime/ui/spinner.rb +1 -1
  45. data/lib/vime/ui/time/current_time.rb +1 -1
  46. data/lib/vime/ui/time/end_time.rb +1 -1
  47. data/lib/vime/ui/time/time.rb +1 -1
  48. data/lib/vime/ui/time/time_progress.rb +1 -1
  49. data/lib/vime/ui/tooltip.rb +1 -1
  50. data/lib/vime/ui/ui.rb +1 -1
  51. data/lib/vime_view_components.rb +10 -57
  52. data/lib/vime_view_components/version.rb +1 -1
  53. metadata +18 -4
  54. data/lib/vime/ui/icons.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da0e6c7dd8c2ad864070d41b8bd3b21924877ddb8d8c2e827e905b3d954ad756
4
- data.tar.gz: 0a22517b5a4310d6678527e8faa8028fce65eb7917157a9215c52c41e0bd5084
3
+ metadata.gz: f7ac352241cd826bb3414c177a7123dda84c8dcf7f6b5b527b098913b28d2ee0
4
+ data.tar.gz: e8f897ae64ede55f8113e28bd51d3549ec329cdf9c74b31b6a0b2afe7260180c
5
5
  SHA512:
6
- metadata.gz: 7b07ee2dd74970cae6a532f37f650a7c17a0106eb775d442c32d44124cc6bb32ccbdef4d69d49256b77645ba86b40b143ac6d4f486d01afdd2ee473377866971
7
- data.tar.gz: ea62889b422d43a20db499fb6a2d28b60dffe9154327d1277d5623695b31fc8e9bb6139efe592d7b65720af11cffbf6fa99e094f91a39bd8e892acbe40a23051
6
+ metadata.gz: 2443de93a58b00da41814dd4d60c363b564f43b648aed52f85f351972e55d9c46bc994d7cbfd9444677757932c12781325cb5470ccbc0888ad34c988b5fc50b9
7
+ data.tar.gz: 6d36599a1247755b214ba812643de606f26a627ee58d4605dc8a96bd8cb5e6dd65e426a4ff1be0e27ad9df619f7dfc4f033c5d29807f9ee312795d5195af448d
@@ -11,7 +11,7 @@ module Vime
11
11
  option :params, type: Types::String, optional: true
12
12
 
13
13
  def call
14
- content_tag "vime-embed", content, process_attrs(dom_attrs)
14
+ content_tag "vm-embed", content, process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -24,7 +24,7 @@ module Vime
24
24
  option :volume, type: Types::Integer, default: -> { 50 }
25
25
 
26
26
  def call
27
- content_tag "vime-player", content, process_attrs(dom_attrs)
27
+ content_tag "vm-player", content, process_attrs(dom_attrs)
28
28
  end
29
29
 
30
30
  def dom_attrs
@@ -12,7 +12,7 @@ module Vime
12
12
  option :theme, type: Types::String.enum("", "dark", "light"), default: -> { "" }
13
13
 
14
14
  def call
15
- content_tag "vime-playground", content, process_attrs(dom_attrs)
15
+ content_tag "vm-playground", content, process_attrs(dom_attrs)
16
16
  end
17
17
 
18
18
  def dom_attrs
@@ -10,7 +10,7 @@ module Vime
10
10
  option :preload, type: Types::Preload, default: -> { "metadata" }
11
11
 
12
12
  def call
13
- content_tag "vime-audio", content, process_attrs(dom_attrs)
13
+ content_tag "vm-audio", content, process_attrs(dom_attrs)
14
14
  end
15
15
 
16
16
  def dom_attrs
@@ -16,7 +16,7 @@ module Vime
16
16
  option :video_id, type: Types::String
17
17
 
18
18
  def call
19
- tag "vime-dailymotion", process_attrs(dom_attrs)
19
+ tag "vm-dailymotion", process_attrs(dom_attrs)
20
20
  end
21
21
 
22
22
  def dom_attrs
@@ -17,7 +17,7 @@ module Vime
17
17
  option :version, type: Types::String, default: -> { "latest" }
18
18
 
19
19
  def call
20
- content_tag "vime-dash", content, process_attrs(dom_attrs)
20
+ content_tag "vm-dash", content, process_attrs(dom_attrs)
21
21
  end
22
22
 
23
23
  def dom_attrs
@@ -16,7 +16,7 @@ module Vime
16
16
  option :view_type, type: Types::String, optional: true
17
17
 
18
18
  def call
19
- content_tag "vime-file", content, process_attrs(dom_attrs)
19
+ content_tag "vm-file", content, process_attrs(dom_attrs)
20
20
  end
21
21
 
22
22
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :version, type: Types::String, default: -> { "latest" }
15
15
 
16
16
  def call
17
- content_tag "vime-hls", content, process_attrs(dom_attrs)
17
+ content_tag "vm-hls", content, process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -12,7 +12,7 @@ module Vime
12
12
  option :preload, type: Types::Preload, default: -> { "metadata" }
13
13
 
14
14
  def call
15
- content_tag "vime-video", content, process_attrs(dom_attrs)
15
+ content_tag "vm-video", content, process_attrs(dom_attrs)
16
16
  end
17
17
 
18
18
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :video_id, type: Types::String
14
14
 
15
15
  def call
16
- tag "vime-vimeo", process_attrs(dom_attrs)
16
+ tag "vm-vimeo", process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :video_id, type: Types::String
12
12
 
13
13
  def call
14
- tag "vime-youtube", process_attrs(dom_attrs)
14
+ tag "vm-youtube", process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :hidden, type: Types::Bool, default: -> { false }
10
10
 
11
11
  def call
12
- tag "vime-captions", process_attrs(dom_attrs)
12
+ tag "vm-captions", process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :use_on_mobile, type: Types::Bool, default: -> { false }
9
9
 
10
10
  def call
11
- tag "vime-click-to-play", process_attrs(dom_attrs)
11
+ tag "vm-click-to-play", process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vime-caption-control", process_attrs(dom_attrs)
17
+ tag "vm-caption-control", process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -15,7 +15,7 @@ module Vime
15
15
  option :pressed, type: Types::Bool, optional: true
16
16
 
17
17
  def call
18
- content_tag "vime-control", content, process_attrs(dom_attrs)
18
+ content_tag "vm-control", content, process_attrs(dom_attrs)
19
19
  end
20
20
 
21
21
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :space, type: Types::String.enum("both", "bottom", "none", "top"), default: -> { "none" }
10
10
 
11
11
  def call
12
- content_tag "vime-control-group", content, process_attrs(dom_attrs)
12
+ content_tag "vm-control-group", content, process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -7,7 +7,7 @@ module Vime
7
7
  module Controls
8
8
  class ControlSpacer < Component
9
9
  def call
10
- tag "vime-control-spacer", process_attrs(dom_attrs)
10
+ tag "vm-control-spacer", process_attrs(dom_attrs)
11
11
  end
12
12
  end
13
13
  end
@@ -19,7 +19,7 @@ module Vime
19
19
  option :wait_for_playback_start, type: Types::Bool, default: -> { false }
20
20
 
21
21
  def call
22
- content_tag "vime-controls", content, process_attrs(dom_attrs)
22
+ content_tag "vm-controls", content, process_attrs(dom_attrs)
23
23
  end
24
24
 
25
25
  def dom_attrs
@@ -12,7 +12,7 @@ module Vime
12
12
  option :wait_for_playback_start, type: Types::Bool, default: -> { false }
13
13
 
14
14
  def call
15
- tag "vime-default-controls", process_attrs(dom_attrs)
15
+ tag "vm-default-controls", process_attrs(dom_attrs)
16
16
  end
17
17
 
18
18
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vime-fullscreen-control", process_attrs(dom_attrs)
17
+ tag "vm-fullscreen-control", process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -15,7 +15,7 @@ module Vime
15
15
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
16
16
 
17
17
  def call
18
- tag "vime-mute-control", process_attrs(dom_attrs)
18
+ tag "vm-mute-control", process_attrs(dom_attrs)
19
19
  end
20
20
 
21
21
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vime-pip-control", process_attrs(dom_attrs)
17
+ tag "vm-pip-control", process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -14,7 +14,7 @@ module Vime
14
14
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
15
15
 
16
16
  def call
17
- tag "vime-playback-control", process_attrs(dom_attrs)
17
+ tag "vm-playback-control", process_attrs(dom_attrs)
18
18
  end
19
19
 
20
20
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :no_keyboard, type: Types::Bool, default: -> { false }
12
12
 
13
13
  def call
14
- tag "vime-scrubber-control", process_attrs(dom_attrs)
14
+ tag "vm-scrubber-control", process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
14
14
 
15
15
  def call
16
- tag "vime-settings-control", process_attrs(dom_attrs)
16
+ tag "vm-settings-control", process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -16,7 +16,7 @@ module Vime
16
16
  option :tooltip_position, type: Types::TooltipPosition, default: -> { "top" }
17
17
 
18
18
  def call
19
- tag "vime-volume-control", process_attrs(dom_attrs)
19
+ tag "vm-volume-control", process_attrs(dom_attrs)
20
20
  end
21
21
 
22
22
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :use_on_mobile, type: Types::Bool, default: -> { false }
9
9
 
10
10
  def call
11
- tag "vime-dbl-click-fullscreen", process_attrs(dom_attrs)
11
+ tag "vm-dbl-click-fullscreen", process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -16,7 +16,7 @@ module Vime
16
16
  option :no_spinner, type: Types::Bool, default: -> { false }
17
17
 
18
18
  def call
19
- content_tag "vime-default-ui", content, process_attrs(dom_attrs)
19
+ content_tag "vm-default-ui", content, process_attrs(dom_attrs)
20
20
  end
21
21
 
22
22
  def dom_attrs
@@ -5,15 +5,15 @@
5
5
  module Vime
6
6
  module Ui
7
7
  class Icon < Component
8
- option :href, type: Types::String, optional: true
8
+ option :src, type: Types::String, optional: true
9
9
 
10
10
  def call
11
- content_tag "vime-icon", content, process_attrs(dom_attrs)
11
+ content_tag "vm-icon", content, process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
15
15
  super.merge({
16
- href: href,
16
+ src: src,
17
17
  })
18
18
  end
19
19
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # @see https://vimejs.com/components/ui/icon-library
4
+
5
+ module Vime
6
+ module Ui
7
+ class IconLibrary < Component
8
+ option :name, type: Types::String, optional: true
9
+
10
+ def call
11
+ tag "vm-icons", process_attrs(dom_attrs)
12
+ end
13
+
14
+ def dom_attrs
15
+ super.merge({
16
+ name: name,
17
+ })
18
+ end
19
+ end
20
+ end
21
+ end
@@ -6,7 +6,7 @@ module Vime
6
6
  module Ui
7
7
  class LiveIndicator < Component
8
8
  def call
9
- tag "vime-live-indicator", process_attrs(dom_attrs)
9
+ tag "vm-live-indicator", process_attrs(dom_attrs)
10
10
  end
11
11
  end
12
12
  end
@@ -8,7 +8,7 @@ module Vime
8
8
  option :fit, type: Types::String.enum("contain", "cover", "fill", "none", "scale-down"), default: -> { "cover" }
9
9
 
10
10
  def call
11
- tag "vime-poster", process_attrs(dom_attrs)
11
+ tag "vm-poster", process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :gradient, type: Types::String.enum("down", "up").optional, optional: true
9
9
 
10
10
  def call
11
- content_tag "vime-scrim", content, process_attrs(dom_attrs)
11
+ content_tag "vm-scrim", content, process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "topLeft", "topRight"), default: -> { "bottomRight" }
10
10
 
11
11
  def call
12
- tag "vime-default-settings", process_attrs(dom_attrs)
12
+ tag "vm-default-settings", process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :identifier, type: Types::String
12
12
 
13
13
  def call
14
- content_tag "vime-menu", content, process_attrs(dom_attrs)
14
+ content_tag "vm-menu", content, process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -17,7 +17,7 @@ module Vime
17
17
  option :menu, type: Types::String, optional: true
18
18
 
19
19
  def call
20
- tag "vime-menu-item", process_attrs(dom_attrs)
20
+ tag "vm-menu-item", process_attrs(dom_attrs)
21
21
  end
22
22
 
23
23
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :value, type: Types::String
14
14
 
15
15
  def call
16
- tag "vime-menu-radio", process_attrs(dom_attrs)
16
+ tag "vm-menu-radio", process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :value, type: Types::String, optional: true
10
10
 
11
11
  def call
12
- content_tag "vime-menu-radio-group", content, process_attrs(dom_attrs)
12
+ content_tag "vm-menu-radio-group", content, process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :pin, type: Types::String.enum("bottomLeft", "bottomRight", "topLeft", "topRight"), default: -> { "bottomRight" }
12
12
 
13
13
  def call
14
- content_tag "vime-settings", content, process_attrs(dom_attrs)
14
+ content_tag "vm-settings", content, process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -12,7 +12,7 @@ module Vime
12
12
  option :label, type: Types::String
13
13
 
14
14
  def call
15
- content_tag "vime-submenu", content, process_attrs(dom_attrs)
15
+ content_tag "vm-submenu", content, process_attrs(dom_attrs)
16
16
  end
17
17
 
18
18
  def dom_attrs
@@ -8,7 +8,7 @@ module Vime
8
8
  option :effect, type: Types::String.enum("none", "sheen"), default: -> { "sheen" }
9
9
 
10
10
  def call
11
- tag "vime-skeleton", process_attrs(dom_attrs)
11
+ tag "vm-skeleton", process_attrs(dom_attrs)
12
12
  end
13
13
 
14
14
  def dom_attrs
@@ -13,7 +13,7 @@ module Vime
13
13
  option :value_text, type: Types::String, optional: true
14
14
 
15
15
  def call
16
- tag "vime-slider", process_attrs(dom_attrs)
16
+ tag "vm-slider", process_attrs(dom_attrs)
17
17
  end
18
18
 
19
19
  def dom_attrs
@@ -6,7 +6,7 @@ module Vime
6
6
  module Ui
7
7
  class Spinner < Component
8
8
  def call
9
- tag "vime-spinner", process_attrs(dom_attrs)
9
+ tag "vm-spinner", process_attrs(dom_attrs)
10
10
  end
11
11
  end
12
12
  end
@@ -9,7 +9,7 @@ module Vime
9
9
  option :always_show_hours, type: Types::Bool, default: -> { false }
10
10
 
11
11
  def call
12
- tag "vime-current-time", process_attrs(dom_attrs)
12
+ tag "vm-current-time", process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -9,7 +9,7 @@ module Vime
9
9
  option :always_show_hours, type: Types::Bool, default: -> { false }
10
10
 
11
11
  def call
12
- tag "vime-end-time", process_attrs(dom_attrs)
12
+ tag "vm-end-time", process_attrs(dom_attrs)
13
13
  end
14
14
 
15
15
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :seconds, type: Types::Integer, default: -> { 0 }
12
12
 
13
13
  def call
14
- tag "vime-time", process_attrs(dom_attrs)
14
+ tag "vm-time", process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -10,7 +10,7 @@ module Vime
10
10
  option :separator, type: Types::String, default: -> { "/" }
11
11
 
12
12
  def call
13
- tag "vime-time-progress", process_attrs(dom_attrs)
13
+ tag "vm-time-progress", process_attrs(dom_attrs)
14
14
  end
15
15
 
16
16
  def dom_attrs
@@ -11,7 +11,7 @@ module Vime
11
11
  option :position, type: Types::String.enum("top", "bottom"), default: -> { "top" }
12
12
 
13
13
  def call
14
- content_tag "vime-tooltip", content, process_attrs(dom_attrs)
14
+ content_tag "vm-tooltip", content, process_attrs(dom_attrs)
15
15
  end
16
16
 
17
17
  def dom_attrs
@@ -6,7 +6,7 @@ module Vime
6
6
  module Ui
7
7
  class Ui < Component
8
8
  def call
9
- content_tag "vime-ui", content, process_attrs(dom_attrs)
9
+ content_tag "vm-ui", content, process_attrs(dom_attrs)
10
10
  end
11
11
  end
12
12
  end
@@ -4,65 +4,18 @@ require "dry-initializer"
4
4
  require "dry-types"
5
5
  require "rails"
6
6
  require "view_component"
7
-
8
- require "vime/component"
9
-
10
- require "vime/core/embed"
11
- require "vime/core/player"
12
- require "vime/core/playground"
13
-
14
- require "vime/providers/audio"
15
- require "vime/providers/dailymotion"
16
- require "vime/providers/dash"
17
- require "vime/providers/file"
18
- require "vime/providers/hls"
19
- require "vime/providers/video"
20
- require "vime/providers/vimeo"
21
- require "vime/providers/youtube"
22
-
23
- require "vime/ui/controls/caption_control"
24
- require "vime/ui/controls/control"
25
- require "vime/ui/controls/control_group"
26
- require "vime/ui/controls/control_spacer"
27
- require "vime/ui/controls/controls"
28
- require "vime/ui/controls/default_controls"
29
- require "vime/ui/controls/fullscreen_control"
30
- require "vime/ui/controls/mute_control"
31
- require "vime/ui/controls/pip_control"
32
- require "vime/ui/controls/playback_control"
33
- require "vime/ui/controls/scrubber_control"
34
- require "vime/ui/controls/settings_control"
35
- require "vime/ui/controls/volume_control"
36
-
37
- require "vime/ui/time/current_time"
38
- require "vime/ui/time/end_time"
39
- require "vime/ui/time/time"
40
- require "vime/ui/time/time_progress"
41
-
42
- require "vime/ui/settings/default_settings"
43
- require "vime/ui/settings/menu"
44
- require "vime/ui/settings/menu_item"
45
- require "vime/ui/settings/menu_radio"
46
- require "vime/ui/settings/menu_radio_group"
47
- require "vime/ui/settings/settings"
48
- require "vime/ui/settings/submenu"
49
-
50
- require "vime/ui/captions"
51
- require "vime/ui/click_to_play"
52
- require "vime/ui/dbl_click_fullscreen"
53
- require "vime/ui/default_ui"
54
- require "vime/ui/icon"
55
- require "vime/ui/icons"
56
- require "vime/ui/live_indicator"
57
- require "vime/ui/poster"
58
- require "vime/ui/scrim"
59
- require "vime/ui/skeleton"
60
- require "vime/ui/slider"
61
- require "vime/ui/spinner"
62
- require "vime/ui/tooltip"
63
- require "vime/ui/ui"
7
+ require "zeitwerk"
64
8
 
65
9
  require "vime_view_components/version"
66
10
 
67
11
  module VimeViewComponents
68
12
  end
13
+
14
+ module Vime
15
+ end
16
+
17
+ Zeitwerk::Loader.new.tap do |loader|
18
+ loader.push_dir("#{__dir__}/vime", namespace: Vime)
19
+ loader.setup
20
+ loader.eager_load
21
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VimeViewComponents
4
- VERSION = "0.1.1"
4
+ VERSION = "5.0.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vime_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asger Behncke Jacobsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-17 00:00:00.000000000 Z
12
+ date: 2020-12-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-initializer
@@ -59,6 +59,20 @@ dependencies:
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: zeitwerk
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.4'
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.4'
62
76
  - !ruby/object:Gem::Dependency
63
77
  name: minitest
64
78
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +170,7 @@ files:
156
170
  - lib/vime/ui/dbl_click_fullscreen.rb
157
171
  - lib/vime/ui/default_ui.rb
158
172
  - lib/vime/ui/icon.rb
159
- - lib/vime/ui/icons.rb
173
+ - lib/vime/ui/icon_library.rb
160
174
  - lib/vime/ui/live_indicator.rb
161
175
  - lib/vime/ui/poster.rb
162
176
  - lib/vime/ui/scrim.rb
@@ -197,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
211
  - !ruby/object:Gem::Version
198
212
  version: '0'
199
213
  requirements: []
200
- rubygems_version: 3.0.3
214
+ rubygems_version: 3.1.2
201
215
  signing_key:
202
216
  specification_version: 4
203
217
  summary: ViewComponents for vime.js
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # @see https://vimejs.com/components/ui/icons
4
-
5
- module Vime
6
- module Ui
7
- class Icons < Component
8
- option :href, type: Types::String, optional: true
9
-
10
- def call
11
- tag "vime-icons", process_attrs(dom_attrs)
12
- end
13
-
14
- def dom_attrs
15
- super.merge({
16
- href: href,
17
- })
18
- end
19
- end
20
- end
21
- end