active_material 2.1.4 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57e58dae3f73f0308e4935e1b0078161bc076f0f2be4825ea4b813e2493f6201
4
- data.tar.gz: 4cb54741e561f31f23f223824f5a664dbcc2ce84e709e4475d15ef4de2709a98
3
+ metadata.gz: d0cbdf7aa1d4dc702b1cc9e73ef3ca71802f336d77259ed6f51b860aca25d1b7
4
+ data.tar.gz: a513278dc99979fab411a92a979da920fcd1b8a57273b050555eef81b351d8f7
5
5
  SHA512:
6
- metadata.gz: 3782d0505b11d62f092118c0fbe8f56a8b01bfa0606c34ecbbf4f917f18310bf5bd4cc00b18b46d451e47dd04b8c002d1afa9434367c326175a509839a013436
7
- data.tar.gz: 7db1546ea81b7587c2c8822b9469fac6211bce15de377bf96e150b37701d7e1b1fb3a4eba2ff1b1f09725ed0aeb28816d27512ce6999e32c93c755bed72c62ed
6
+ metadata.gz: a1c0bc8145ec3e87b87c02dbf4e832c2a574d49a1fd1fbedfd4f41a4a739edc6d3735370e6e1d1306bfc87681d63796a9772e3e3a64b19610829c8c5958cd2a0
7
+ data.tar.gz: d10d7d0013ba505d45e27a0504cb5b047d40c2b330195ef544dad66ee614bc2f916764267c9e8a427f2e4d3a988169c70c45fe88bcb6ccc1371a5c66ba4ebd2f
data/README.md CHANGED
@@ -5,33 +5,22 @@ An ActiveAdmin skin based on Google's Material Design.
5
5
  <img src="http://i.imgur.com/kDkGzYe.png">
6
6
 
7
7
  ## Installation
8
- ### Importmap
9
8
 
9
+ ### Importmap
10
10
  - Add `gem 'active_material'` to `Gemfile` and run `bundle install`
11
- - Add `import "active_material"` to JS entrypoint (a JS file that is included for activeadmin)
12
- - Add `@import "active_material";` in your CSS style file (the active_material SCSS files are included in the asset path automatically, but you will need to have SCSS build capabilities, using dartsass-rails or similar)
13
11
 
14
12
  NOTE: no need to pin the import in your application. That's handled internally by the gem.
15
13
 
16
14
  ### npm
17
15
  - `npm install --save active_material` or `yarn add active_material`
18
- - Add `import "active_material"` to your JS pack file
19
- - Add `@import "active_material/app/assets/stylesheets/active_material.scss";` to your CSS style file
20
-
21
- ## Options
22
16
 
23
- ### Change font
24
-
25
- By default, this gem will load the Roboto font from google APIs and use it in the SCSS. If you would like to change that behavior, you have a few options:
26
-
27
- 1. If you want to change to another font:
28
- - In your application config, set `config.active_material.font_url` to your font url
29
- - In your SCSS file, just before `@import "active_material";`, add `$am-font-sans: 'Roboto';`, replacing `Roboto` with your font name.
30
- 2. If you want to disable font loading altogether, you can use `config.active_material.load_font = true`
31
-
32
- ### Other customizations
17
+ ## Usage
18
+ - Add `import "active_material"` to JS entrypoint (a JS file that is included for activeadmin)
19
+ - Add `@use "active_material";` in your CSS style file
20
+ - NOTE: the active_material SCSS files are included in the asset path automatically for importmap, but you will need to have SCSS build capabilities, using dartsass-rails or similar
33
21
 
34
- For other customization options, see [customization.md](./docs/customization.md)
22
+ ## Customization
23
+ For customization options, see [customization.md](./docs/customization.md)
35
24
 
36
25
  ## Contributing
37
26
 
@@ -1,4 +1,4 @@
1
1
 
2
- import "active_material/actions-toggle"
2
+ import "./active_material/actions-toggle"
3
3
 
4
4
  document.querySelector('html').className += ' am-js'
@@ -1,3 +1,3 @@
1
1
  module ActiveMaterial
2
- VERSION = "2.1.4"
2
+ VERSION = "2.1.5"
3
3
  end
data/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "active_material",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "ActiveAdmin skin based on Google's Material Design.",
5
- "main": "src/javascripts/active_material.js",
5
+ "main": "app/assets/javascripts/active_material.js",
6
6
  "directories": {
7
7
  "lib": "lib"
8
8
  },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_material
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Kniffin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-17 00:00:00.000000000 Z
11
+ date: 2025-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler