css-zero 0.0.62 → 0.0.64

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: 50f4f06305367205ea49ea3f51a52d15f1be0d03412988a1721c3d8fb21078f7
4
- data.tar.gz: fc0907d77ef83b4c69446373baa99606a8217f406f4fb2ed78eaaeca0b738a3c
3
+ metadata.gz: b5483177d44d6ba1b3a5f033017ae681360166d6e1c2b4bdaf6a41d7373c46d9
4
+ data.tar.gz: cb16ccb3d8ffff3f2a82ee73f204f1dd2f8d92a94d5be855968f805d118eaa19
5
5
  SHA512:
6
- metadata.gz: aa156ba233ef386980a0ee10801205adeab2d75d4698a2828f164437db63caabb3f73fef9a1d0b08aaf6bbfa0cf4304d178180a692eead1f017a0725d73a28e6
7
- data.tar.gz: ebad60a25af3c51dddaea41a62cce99aa1aca172bbde633a8b6852b0864097764ffea8ec57a62e0c49a6713e2edbe59d7ea38d7c141824d06ad70ee533217036
6
+ metadata.gz: b4e3ae5405e34810acb529b1defa6c4734d92e161aaad77a0acd2f7e62e0134302b99995104e8ba83653cfa46654ac8e4a7fefcc684570e25d123bc2cda94bb1
7
+ data.tar.gz: d551b14fe407408d8b30844138169477b0b2e896409f4a611339d70be237b223473368ac5af35865b687980a73fef180aebd49a3a5d8894ed9a93e19e802c3cd
@@ -1,9 +1,5 @@
1
1
  module CssZero
2
2
  class Engine < ::Rails::Engine
3
- initializer "css_zero.disable_generator_stylesheets" do
4
- Rails.application.config.generators.stylesheets = false
5
- end
6
-
7
3
  config.app_generators do |g|
8
4
  g.template_engine :css_zero
9
5
  end
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.62"
2
+ VERSION = "0.0.64"
3
3
  end
@@ -73,6 +73,7 @@ input_concerns:
73
73
  - app/javascript/controllers/revealable_input_controller.js
74
74
  - app/assets/images/eye.svg
75
75
  - app/assets/images/eye-off.svg
76
+ - app/javascript/controllers/otp_input_controller.js
76
77
  inputmask:
77
78
  - app/javascript/controllers/inputmask_controller.js
78
79
  layouts:
@@ -71,12 +71,13 @@
71
71
 
72
72
  code {
73
73
  padding: 0.1em 0.3em;
74
- white-space: pre-wrap;
75
74
  }
76
75
 
77
76
  pre {
78
77
  border-radius: 0.5em;
78
+ overflow-x: auto;
79
79
  padding: 0.5lh 2ch;
80
+ text-wrap: nowrap;
80
81
  }
81
82
 
82
83
  pre code {
@@ -135,4 +136,9 @@
135
136
  text-decoration: underline;
136
137
  text-decoration-skip-ink: auto;
137
138
  }
139
+
140
+ mark {
141
+ color: var(--color-text);
142
+ background-color: var(--color-highlight);
143
+ }
138
144
  }
@@ -0,0 +1,31 @@
1
+ import { Controller } from "@hotwired/stimulus";
2
+
3
+ export default class extends Controller {
4
+ initialize() {
5
+ this.abortController = new AbortController()
6
+ }
7
+
8
+ disconnect() {
9
+ this.abortController.abort()
10
+ }
11
+
12
+ connect() {
13
+ this.#supportsOTP && this.#requestOTP()
14
+ }
15
+
16
+ #requestOTP() {
17
+ navigator.credentials.get(this.#options).then(otp => {
18
+ this.element.value = otp.code
19
+ }).catch(error => {
20
+ console.log(error)
21
+ })
22
+ }
23
+
24
+ get #options() {
25
+ return { otp: { transport: ["sms"] }, signal: this.abortController.signal }
26
+ }
27
+
28
+ get #supportsOTP() {
29
+ return "OTPCredential" in window
30
+ }
31
+ }
@@ -16,7 +16,6 @@
16
16
  *= require colors
17
17
  *= require effects
18
18
  *= require filters
19
- *= require grid
20
19
  *= require sizes
21
20
  *= require transform
22
21
  *= require transition
@@ -10,6 +10,7 @@
10
10
  --color-border-dark: var(--zinc-400);
11
11
  --color-selected: var(--blue-100);
12
12
  --color-selected-dark: var(--blue-300);
13
+ --color-highlight: var(--yellow-200);
13
14
 
14
15
  /* Accent colors */
15
16
  --color-primary: var(--zinc-900);
@@ -35,6 +36,7 @@
35
36
  --color-border-dark: var(--zinc-600);
36
37
  --color-selected: var(--blue-950);
37
38
  --color-selected-dark: var(--blue-800);
39
+ --color-highlight: var(--yellow-800);
38
40
 
39
41
  /* Accent colors */
40
42
  --color-primary: var(--zinc-50);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.62
4
+ version: 0.0.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lázaro Nixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-13 00:00:00.000000000 Z
11
+ date: 2024-11-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lazaronixon@hotmail.com
@@ -108,6 +108,7 @@ files:
108
108
  - lib/generators/css_zero/add/templates/app/javascript/controllers/local_time_controller.js
109
109
  - lib/generators/css_zero/add/templates/app/javascript/controllers/menu_controller.js
110
110
  - lib/generators/css_zero/add/templates/app/javascript/controllers/navigation_controller.js
111
+ - lib/generators/css_zero/add/templates/app/javascript/controllers/otp_input_controller.js
111
112
  - lib/generators/css_zero/add/templates/app/javascript/controllers/popover_controller.js
112
113
  - lib/generators/css_zero/add/templates/app/javascript/controllers/revealable_input_controller.js
113
114
  - lib/generators/css_zero/add/templates/app/javascript/controllers/sortable_controller.js
@@ -119,18 +120,18 @@ files:
119
120
  - lib/generators/css_zero/authentication/templates/app/views/passwords/edit.html.erb.tt
120
121
  - lib/generators/css_zero/authentication/templates/app/views/passwords/new.html.erb.tt
121
122
  - lib/generators/css_zero/authentication/templates/app/views/sessions/new.html.erb.tt
123
+ - lib/generators/css_zero/controller/controller_generator.rb
124
+ - lib/generators/css_zero/controller/templates/view.html.erb.tt
122
125
  - lib/generators/css_zero/install/USAGE
123
126
  - lib/generators/css_zero/install/install_generator.rb
124
127
  - lib/generators/css_zero/install/templates/app/assets/stylesheets/application.css
125
128
  - lib/generators/css_zero/install/templates/app/assets/stylesheets/base.css
126
129
  - lib/generators/css_zero/install/templates/app/views/layouts/application.html.erb
127
- - lib/generators/css_zero/scaffold/controller/controller_generator.rb
128
- - lib/generators/css_zero/scaffold/controller/templates/view.html.erb.tt
129
- - lib/generators/css_zero/scaffold/mailer/mailer_generator.rb
130
- - lib/generators/css_zero/scaffold/mailer/templates/layout.html.erb.tt
131
- - lib/generators/css_zero/scaffold/mailer/templates/layout.text.erb.tt
132
- - lib/generators/css_zero/scaffold/mailer/templates/view.html.erb.tt
133
- - lib/generators/css_zero/scaffold/mailer/templates/view.text.erb.tt
130
+ - lib/generators/css_zero/mailer/mailer_generator.rb
131
+ - lib/generators/css_zero/mailer/templates/layout.html.erb.tt
132
+ - lib/generators/css_zero/mailer/templates/layout.text.erb.tt
133
+ - lib/generators/css_zero/mailer/templates/view.html.erb.tt
134
+ - lib/generators/css_zero/mailer/templates/view.text.erb.tt
134
135
  - lib/generators/css_zero/scaffold/scaffold_generator.rb
135
136
  - lib/generators/css_zero/scaffold/templates/_form.html.erb.tt
136
137
  - lib/generators/css_zero/scaffold/templates/edit.html.erb.tt