polaris_view_components 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1eda78e6803a1783585a9912d600193f29bba781d019204be62bd1cab484e97a
4
- data.tar.gz: 5b9ba5de1405b1eb089991c7a2db6117d00bddc7787b6484515e35ecddd4b55e
3
+ metadata.gz: a5ea3551cd4f15d29b3618b2cc565059b91f9415c2b3e2ff47573c9d8eebc588
4
+ data.tar.gz: bd815ab2b3bd738e7541686b8047cf159638e2aec83ab02d4dd7e803ff455d13
5
5
  SHA512:
6
- metadata.gz: c433aa42655eacf3e55eccb3709d25356e6219a61f9f5880d529dd2c51f41ca8fe019a1f699675f0832efabdae104e2a0e26fb4a0100b1c8e0d0005b7917f0b5
7
- data.tar.gz: 44ad24c6ff886a6bb9cb11d5fdce9936218f66337924c6474dcd78b4e68357fa08871492f38affb31dac7f19cce81ea4d7151179bba38ef656910ef49b2e0a72
6
+ metadata.gz: 161b1fc626ca532956a4cd600dfcfd24d02e4c833e2622f7467fd0f3e526de317c321270c785b513cca0740c2660ed699e3893e9748c06a172330ef00d0ca35d
7
+ data.tar.gz: e93f7fa5dff2007c34163999e6630ebb77107dc13f1ded4032c09df947b6664c3a61befa7f06e20dc85099060c86ad3bb3a0d5970acd599305ce85789a53b7b7
data/README.md CHANGED
@@ -36,7 +36,6 @@ rails generate polaris_view_components:install
36
36
  Setup Polaris styles in your layouts `<head>` tag:
37
37
 
38
38
  ```erb
39
- <link rel="stylesheet" href="https://unpkg.com/@shopify/polaris@6.6.0/dist/styles.css" />
40
39
  <%= stylesheet_link_tag 'polaris_view_components' %>
41
40
  ```
42
41
 
@@ -54,6 +53,14 @@ Add to `config/importmap.rb`:
54
53
  pin "polaris-view-components", to: "polaris_view_components.js"
55
54
  ```
56
55
 
56
+ Add to `app/javascript/controllers/index.js`:
57
+ ```javascript
58
+ // ...
59
+
60
+ import { registerPolarisControllers } from "polaris-view-components"
61
+ registerPolarisControllers(Stimulus)
62
+ ```
63
+
57
64
  ### NPM
58
65
 
59
66
  Install NPM package:
@@ -63,7 +70,8 @@ yarn add polaris-view-components
63
70
 
64
71
  Add to `app/javascript/controllers/index.js`:
65
72
  ```javascript
66
- // Polaris ViewComponents
73
+ // ...
74
+
67
75
  import { registerPolarisControllers } from "polaris-view-components"
68
76
  registerPolarisControllers(Stimulus)
69
77
  ```