brand.dev 1.0.0 → 1.2.0
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 +4 -4
- data/CHANGELOG.md +33 -0
- data/README.md +1 -1
- data/lib/brand_dev/internal/util.rb +19 -6
- data/lib/brand_dev/models/brand_styleguide_params.rb +1 -26
- data/lib/brand_dev/models/brand_styleguide_response.rb +495 -246
- data/lib/brand_dev/models/brand_web_scrape_images_response.rb +4 -0
- data/lib/brand_dev/models/brand_web_scrape_md_params.rb +10 -1
- data/lib/brand_dev/resources/brand.rb +6 -5
- data/lib/brand_dev/version.rb +1 -1
- data/rbi/brand_dev/internal/util.rbi +8 -0
- data/rbi/brand_dev/models/brand_styleguide_params.rbi +0 -58
- data/rbi/brand_dev/models/brand_styleguide_response.rbi +471 -531
- data/rbi/brand_dev/models/brand_web_scrape_images_response.rbi +20 -0
- data/rbi/brand_dev/models/brand_web_scrape_md_params.rbi +13 -0
- data/rbi/brand_dev/resources/brand.rbi +4 -6
- data/sig/brand_dev/internal/util.rbs +4 -0
- data/sig/brand_dev/models/brand_styleguide_params.rbs +1 -25
- data/sig/brand_dev/models/brand_styleguide_response.rbs +285 -337
- data/sig/brand_dev/models/brand_web_scrape_images_response.rbs +14 -1
- data/sig/brand_dev/models/brand_web_scrape_md_params.rbs +8 -1
- data/sig/brand_dev/resources/brand.rbs +1 -1
- metadata +2 -2
|
@@ -93,11 +93,7 @@ module BrandDev
|
|
|
93
93
|
|
|
94
94
|
# Primary colors used on the website
|
|
95
95
|
sig do
|
|
96
|
-
returns(
|
|
97
|
-
T.nilable(
|
|
98
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Colors
|
|
99
|
-
)
|
|
100
|
-
)
|
|
96
|
+
returns(BrandDev::Models::BrandStyleguideResponse::Styleguide::Colors)
|
|
101
97
|
end
|
|
102
98
|
attr_reader :colors
|
|
103
99
|
|
|
@@ -112,9 +108,7 @@ module BrandDev
|
|
|
112
108
|
# UI component styles
|
|
113
109
|
sig do
|
|
114
110
|
returns(
|
|
115
|
-
|
|
116
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Components
|
|
117
|
-
)
|
|
111
|
+
BrandDev::Models::BrandStyleguideResponse::Styleguide::Components
|
|
118
112
|
)
|
|
119
113
|
end
|
|
120
114
|
attr_reader :components
|
|
@@ -130,9 +124,7 @@ module BrandDev
|
|
|
130
124
|
# Spacing system used on the website
|
|
131
125
|
sig do
|
|
132
126
|
returns(
|
|
133
|
-
|
|
134
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::ElementSpacing
|
|
135
|
-
)
|
|
127
|
+
BrandDev::Models::BrandStyleguideResponse::Styleguide::ElementSpacing
|
|
136
128
|
)
|
|
137
129
|
end
|
|
138
130
|
attr_reader :element_spacing
|
|
@@ -148,27 +140,15 @@ module BrandDev
|
|
|
148
140
|
# The primary color mode of the website design
|
|
149
141
|
sig do
|
|
150
142
|
returns(
|
|
151
|
-
|
|
152
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Mode::TaggedSymbol
|
|
153
|
-
)
|
|
143
|
+
BrandDev::Models::BrandStyleguideResponse::Styleguide::Mode::TaggedSymbol
|
|
154
144
|
)
|
|
155
145
|
end
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
sig do
|
|
159
|
-
params(
|
|
160
|
-
mode:
|
|
161
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Mode::OrSymbol
|
|
162
|
-
).void
|
|
163
|
-
end
|
|
164
|
-
attr_writer :mode
|
|
146
|
+
attr_accessor :mode
|
|
165
147
|
|
|
166
148
|
# Shadow styles used on the website
|
|
167
149
|
sig do
|
|
168
150
|
returns(
|
|
169
|
-
|
|
170
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Shadows
|
|
171
|
-
)
|
|
151
|
+
BrandDev::Models::BrandStyleguideResponse::Styleguide::Shadows
|
|
172
152
|
)
|
|
173
153
|
end
|
|
174
154
|
attr_reader :shadows
|
|
@@ -184,9 +164,7 @@ module BrandDev
|
|
|
184
164
|
# Typography styles used on the website
|
|
185
165
|
sig do
|
|
186
166
|
returns(
|
|
187
|
-
|
|
188
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Typography
|
|
189
|
-
)
|
|
167
|
+
BrandDev::Models::BrandStyleguideResponse::Styleguide::Typography
|
|
190
168
|
)
|
|
191
169
|
end
|
|
192
170
|
attr_reader :typography
|
|
@@ -218,17 +196,17 @@ module BrandDev
|
|
|
218
196
|
end
|
|
219
197
|
def self.new(
|
|
220
198
|
# Primary colors used on the website
|
|
221
|
-
colors
|
|
199
|
+
colors:,
|
|
222
200
|
# UI component styles
|
|
223
|
-
components
|
|
201
|
+
components:,
|
|
224
202
|
# Spacing system used on the website
|
|
225
|
-
element_spacing
|
|
203
|
+
element_spacing:,
|
|
226
204
|
# The primary color mode of the website design
|
|
227
|
-
mode
|
|
205
|
+
mode:,
|
|
228
206
|
# Shadow styles used on the website
|
|
229
|
-
shadows
|
|
207
|
+
shadows:,
|
|
230
208
|
# Typography styles used on the website
|
|
231
|
-
typography:
|
|
209
|
+
typography:
|
|
232
210
|
)
|
|
233
211
|
end
|
|
234
212
|
|
|
@@ -262,26 +240,17 @@ module BrandDev
|
|
|
262
240
|
)
|
|
263
241
|
end
|
|
264
242
|
|
|
265
|
-
# Accent color
|
|
266
|
-
sig { returns(
|
|
267
|
-
|
|
243
|
+
# Accent color (hex format)
|
|
244
|
+
sig { returns(String) }
|
|
245
|
+
attr_accessor :accent
|
|
268
246
|
|
|
269
|
-
|
|
270
|
-
|
|
247
|
+
# Background color (hex format)
|
|
248
|
+
sig { returns(String) }
|
|
249
|
+
attr_accessor :background
|
|
271
250
|
|
|
272
|
-
#
|
|
273
|
-
sig { returns(
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
sig { params(background: String).void }
|
|
277
|
-
attr_writer :background
|
|
278
|
-
|
|
279
|
-
# Text color of the website (hex format)
|
|
280
|
-
sig { returns(T.nilable(String)) }
|
|
281
|
-
attr_reader :text
|
|
282
|
-
|
|
283
|
-
sig { params(text: String).void }
|
|
284
|
-
attr_writer :text
|
|
251
|
+
# Text color (hex format)
|
|
252
|
+
sig { returns(String) }
|
|
253
|
+
attr_accessor :text
|
|
285
254
|
|
|
286
255
|
# Primary colors used on the website
|
|
287
256
|
sig do
|
|
@@ -290,12 +259,12 @@ module BrandDev
|
|
|
290
259
|
)
|
|
291
260
|
end
|
|
292
261
|
def self.new(
|
|
293
|
-
# Accent color
|
|
294
|
-
accent
|
|
295
|
-
# Background color
|
|
296
|
-
background
|
|
297
|
-
# Text color
|
|
298
|
-
text:
|
|
262
|
+
# Accent color (hex format)
|
|
263
|
+
accent:,
|
|
264
|
+
# Background color (hex format)
|
|
265
|
+
background:,
|
|
266
|
+
# Text color (hex format)
|
|
267
|
+
text:
|
|
299
268
|
)
|
|
300
269
|
end
|
|
301
270
|
|
|
@@ -320,9 +289,7 @@ module BrandDev
|
|
|
320
289
|
# Button component styles
|
|
321
290
|
sig do
|
|
322
291
|
returns(
|
|
323
|
-
|
|
324
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Components::Button
|
|
325
|
-
)
|
|
292
|
+
BrandDev::Models::BrandStyleguideResponse::Styleguide::Components::Button
|
|
326
293
|
)
|
|
327
294
|
end
|
|
328
295
|
attr_reader :button
|
|
@@ -364,7 +331,7 @@ module BrandDev
|
|
|
364
331
|
end
|
|
365
332
|
def self.new(
|
|
366
333
|
# Button component styles
|
|
367
|
-
button
|
|
334
|
+
button:,
|
|
368
335
|
# Card component style
|
|
369
336
|
card: nil
|
|
370
337
|
)
|
|
@@ -392,7 +359,6 @@ module BrandDev
|
|
|
392
359
|
)
|
|
393
360
|
end
|
|
394
361
|
|
|
395
|
-
# Link button style
|
|
396
362
|
sig do
|
|
397
363
|
returns(
|
|
398
364
|
T.nilable(
|
|
@@ -410,7 +376,6 @@ module BrandDev
|
|
|
410
376
|
end
|
|
411
377
|
attr_writer :link
|
|
412
378
|
|
|
413
|
-
# Primary button style
|
|
414
379
|
sig do
|
|
415
380
|
returns(
|
|
416
381
|
T.nilable(
|
|
@@ -428,7 +393,6 @@ module BrandDev
|
|
|
428
393
|
end
|
|
429
394
|
attr_writer :primary
|
|
430
395
|
|
|
431
|
-
# Secondary button style
|
|
432
396
|
sig do
|
|
433
397
|
returns(
|
|
434
398
|
T.nilable(
|
|
@@ -457,14 +421,7 @@ module BrandDev
|
|
|
457
421
|
BrandDev::Models::BrandStyleguideResponse::Styleguide::Components::Button::Secondary::OrHash
|
|
458
422
|
).returns(T.attached_class)
|
|
459
423
|
end
|
|
460
|
-
def self.new(
|
|
461
|
-
# Link button style
|
|
462
|
-
link: nil,
|
|
463
|
-
# Primary button style
|
|
464
|
-
primary: nil,
|
|
465
|
-
# Secondary button style
|
|
466
|
-
secondary: nil
|
|
467
|
-
)
|
|
424
|
+
def self.new(link: nil, primary: nil, secondary: nil)
|
|
468
425
|
end
|
|
469
426
|
|
|
470
427
|
sig do
|
|
@@ -491,73 +448,75 @@ module BrandDev
|
|
|
491
448
|
)
|
|
492
449
|
end
|
|
493
450
|
|
|
494
|
-
sig { returns(
|
|
495
|
-
|
|
451
|
+
sig { returns(String) }
|
|
452
|
+
attr_accessor :background_color
|
|
496
453
|
|
|
497
|
-
|
|
498
|
-
|
|
454
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
455
|
+
# alpha)
|
|
456
|
+
sig { returns(String) }
|
|
457
|
+
attr_accessor :border_color
|
|
499
458
|
|
|
500
|
-
sig { returns(
|
|
501
|
-
|
|
459
|
+
sig { returns(String) }
|
|
460
|
+
attr_accessor :border_radius
|
|
502
461
|
|
|
503
|
-
sig {
|
|
504
|
-
|
|
462
|
+
sig { returns(String) }
|
|
463
|
+
attr_accessor :border_style
|
|
505
464
|
|
|
506
|
-
sig { returns(
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
sig { params(border_radius: String).void }
|
|
510
|
-
attr_writer :border_radius
|
|
511
|
-
|
|
512
|
-
sig { returns(T.nilable(String)) }
|
|
513
|
-
attr_reader :border_style
|
|
465
|
+
sig { returns(String) }
|
|
466
|
+
attr_accessor :border_width
|
|
514
467
|
|
|
515
|
-
|
|
516
|
-
|
|
468
|
+
# Computed box-shadow (comma-separated layers when present)
|
|
469
|
+
sig { returns(String) }
|
|
470
|
+
attr_accessor :box_shadow
|
|
517
471
|
|
|
518
|
-
sig { returns(
|
|
519
|
-
|
|
472
|
+
sig { returns(String) }
|
|
473
|
+
attr_accessor :color
|
|
520
474
|
|
|
521
|
-
|
|
522
|
-
|
|
475
|
+
# Ready-to-use CSS declaration block for this component style
|
|
476
|
+
sig { returns(String) }
|
|
477
|
+
attr_accessor :css
|
|
523
478
|
|
|
524
|
-
sig { returns(
|
|
525
|
-
|
|
479
|
+
sig { returns(String) }
|
|
480
|
+
attr_accessor :font_size
|
|
526
481
|
|
|
527
|
-
sig {
|
|
528
|
-
|
|
482
|
+
sig { returns(Float) }
|
|
483
|
+
attr_accessor :font_weight
|
|
529
484
|
|
|
530
|
-
|
|
531
|
-
|
|
485
|
+
# Sampled minimum height of the button box (typically px)
|
|
486
|
+
sig { returns(String) }
|
|
487
|
+
attr_accessor :min_height
|
|
532
488
|
|
|
533
|
-
|
|
534
|
-
|
|
489
|
+
# Sampled minimum width of the button box (typically px)
|
|
490
|
+
sig { returns(String) }
|
|
491
|
+
attr_accessor :min_width
|
|
535
492
|
|
|
536
|
-
sig { returns(
|
|
537
|
-
|
|
493
|
+
sig { returns(String) }
|
|
494
|
+
attr_accessor :padding
|
|
538
495
|
|
|
539
|
-
sig {
|
|
540
|
-
|
|
496
|
+
sig { returns(String) }
|
|
497
|
+
attr_accessor :text_decoration
|
|
541
498
|
|
|
542
|
-
|
|
543
|
-
|
|
499
|
+
# Full ordered font list from computed font-family
|
|
500
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
501
|
+
attr_reader :font_fallbacks
|
|
544
502
|
|
|
545
|
-
sig { params(
|
|
546
|
-
attr_writer :
|
|
503
|
+
sig { params(font_fallbacks: T::Array[String]).void }
|
|
504
|
+
attr_writer :font_fallbacks
|
|
547
505
|
|
|
506
|
+
# Primary button typeface (first in fontFallbacks)
|
|
548
507
|
sig { returns(T.nilable(String)) }
|
|
549
|
-
attr_reader :
|
|
508
|
+
attr_reader :font_family
|
|
550
509
|
|
|
551
|
-
sig { params(
|
|
552
|
-
attr_writer :
|
|
510
|
+
sig { params(font_family: String).void }
|
|
511
|
+
attr_writer :font_family
|
|
553
512
|
|
|
513
|
+
# Hex color of the underline when it differs from the text color
|
|
554
514
|
sig { returns(T.nilable(String)) }
|
|
555
|
-
attr_reader :
|
|
515
|
+
attr_reader :text_decoration_color
|
|
556
516
|
|
|
557
|
-
sig { params(
|
|
558
|
-
attr_writer :
|
|
517
|
+
sig { params(text_decoration_color: String).void }
|
|
518
|
+
attr_writer :text_decoration_color
|
|
559
519
|
|
|
560
|
-
# Link button style
|
|
561
520
|
sig do
|
|
562
521
|
params(
|
|
563
522
|
background_color: String,
|
|
@@ -567,24 +526,45 @@ module BrandDev
|
|
|
567
526
|
border_width: String,
|
|
568
527
|
box_shadow: String,
|
|
569
528
|
color: String,
|
|
529
|
+
css: String,
|
|
570
530
|
font_size: String,
|
|
571
531
|
font_weight: Float,
|
|
532
|
+
min_height: String,
|
|
533
|
+
min_width: String,
|
|
572
534
|
padding: String,
|
|
573
|
-
text_decoration: String
|
|
535
|
+
text_decoration: String,
|
|
536
|
+
font_fallbacks: T::Array[String],
|
|
537
|
+
font_family: String,
|
|
538
|
+
text_decoration_color: String
|
|
574
539
|
).returns(T.attached_class)
|
|
575
540
|
end
|
|
576
541
|
def self.new(
|
|
577
|
-
background_color
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
542
|
+
background_color:,
|
|
543
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
544
|
+
# alpha)
|
|
545
|
+
border_color:,
|
|
546
|
+
border_radius:,
|
|
547
|
+
border_style:,
|
|
548
|
+
border_width:,
|
|
549
|
+
# Computed box-shadow (comma-separated layers when present)
|
|
550
|
+
box_shadow:,
|
|
551
|
+
color:,
|
|
552
|
+
# Ready-to-use CSS declaration block for this component style
|
|
553
|
+
css:,
|
|
554
|
+
font_size:,
|
|
555
|
+
font_weight:,
|
|
556
|
+
# Sampled minimum height of the button box (typically px)
|
|
557
|
+
min_height:,
|
|
558
|
+
# Sampled minimum width of the button box (typically px)
|
|
559
|
+
min_width:,
|
|
560
|
+
padding:,
|
|
561
|
+
text_decoration:,
|
|
562
|
+
# Full ordered font list from computed font-family
|
|
563
|
+
font_fallbacks: nil,
|
|
564
|
+
# Primary button typeface (first in fontFallbacks)
|
|
565
|
+
font_family: nil,
|
|
566
|
+
# Hex color of the underline when it differs from the text color
|
|
567
|
+
text_decoration_color: nil
|
|
588
568
|
)
|
|
589
569
|
end
|
|
590
570
|
|
|
@@ -598,10 +578,16 @@ module BrandDev
|
|
|
598
578
|
border_width: String,
|
|
599
579
|
box_shadow: String,
|
|
600
580
|
color: String,
|
|
581
|
+
css: String,
|
|
601
582
|
font_size: String,
|
|
602
583
|
font_weight: Float,
|
|
584
|
+
min_height: String,
|
|
585
|
+
min_width: String,
|
|
603
586
|
padding: String,
|
|
604
|
-
text_decoration: String
|
|
587
|
+
text_decoration: String,
|
|
588
|
+
font_fallbacks: T::Array[String],
|
|
589
|
+
font_family: String,
|
|
590
|
+
text_decoration_color: String
|
|
605
591
|
}
|
|
606
592
|
)
|
|
607
593
|
end
|
|
@@ -618,73 +604,75 @@ module BrandDev
|
|
|
618
604
|
)
|
|
619
605
|
end
|
|
620
606
|
|
|
621
|
-
sig { returns(
|
|
622
|
-
|
|
607
|
+
sig { returns(String) }
|
|
608
|
+
attr_accessor :background_color
|
|
623
609
|
|
|
624
|
-
|
|
625
|
-
|
|
610
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
611
|
+
# alpha)
|
|
612
|
+
sig { returns(String) }
|
|
613
|
+
attr_accessor :border_color
|
|
626
614
|
|
|
627
|
-
sig { returns(
|
|
628
|
-
|
|
615
|
+
sig { returns(String) }
|
|
616
|
+
attr_accessor :border_radius
|
|
629
617
|
|
|
630
|
-
sig {
|
|
631
|
-
|
|
618
|
+
sig { returns(String) }
|
|
619
|
+
attr_accessor :border_style
|
|
632
620
|
|
|
633
|
-
sig { returns(
|
|
634
|
-
|
|
621
|
+
sig { returns(String) }
|
|
622
|
+
attr_accessor :border_width
|
|
635
623
|
|
|
636
|
-
|
|
637
|
-
|
|
624
|
+
# Computed box-shadow (comma-separated layers when present)
|
|
625
|
+
sig { returns(String) }
|
|
626
|
+
attr_accessor :box_shadow
|
|
638
627
|
|
|
639
|
-
sig { returns(
|
|
640
|
-
|
|
628
|
+
sig { returns(String) }
|
|
629
|
+
attr_accessor :color
|
|
641
630
|
|
|
642
|
-
|
|
643
|
-
|
|
631
|
+
# Ready-to-use CSS declaration block for this component style
|
|
632
|
+
sig { returns(String) }
|
|
633
|
+
attr_accessor :css
|
|
644
634
|
|
|
645
|
-
sig { returns(
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
sig { params(border_width: String).void }
|
|
649
|
-
attr_writer :border_width
|
|
650
|
-
|
|
651
|
-
sig { returns(T.nilable(String)) }
|
|
652
|
-
attr_reader :box_shadow
|
|
635
|
+
sig { returns(String) }
|
|
636
|
+
attr_accessor :font_size
|
|
653
637
|
|
|
654
|
-
sig {
|
|
655
|
-
|
|
638
|
+
sig { returns(Float) }
|
|
639
|
+
attr_accessor :font_weight
|
|
656
640
|
|
|
657
|
-
|
|
658
|
-
|
|
641
|
+
# Sampled minimum height of the button box (typically px)
|
|
642
|
+
sig { returns(String) }
|
|
643
|
+
attr_accessor :min_height
|
|
659
644
|
|
|
660
|
-
|
|
661
|
-
|
|
645
|
+
# Sampled minimum width of the button box (typically px)
|
|
646
|
+
sig { returns(String) }
|
|
647
|
+
attr_accessor :min_width
|
|
662
648
|
|
|
663
|
-
sig { returns(
|
|
664
|
-
|
|
649
|
+
sig { returns(String) }
|
|
650
|
+
attr_accessor :padding
|
|
665
651
|
|
|
666
|
-
sig {
|
|
667
|
-
|
|
652
|
+
sig { returns(String) }
|
|
653
|
+
attr_accessor :text_decoration
|
|
668
654
|
|
|
669
|
-
|
|
670
|
-
|
|
655
|
+
# Full ordered font list from computed font-family
|
|
656
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
657
|
+
attr_reader :font_fallbacks
|
|
671
658
|
|
|
672
|
-
sig { params(
|
|
673
|
-
attr_writer :
|
|
659
|
+
sig { params(font_fallbacks: T::Array[String]).void }
|
|
660
|
+
attr_writer :font_fallbacks
|
|
674
661
|
|
|
662
|
+
# Primary button typeface (first in fontFallbacks)
|
|
675
663
|
sig { returns(T.nilable(String)) }
|
|
676
|
-
attr_reader :
|
|
664
|
+
attr_reader :font_family
|
|
677
665
|
|
|
678
|
-
sig { params(
|
|
679
|
-
attr_writer :
|
|
666
|
+
sig { params(font_family: String).void }
|
|
667
|
+
attr_writer :font_family
|
|
680
668
|
|
|
669
|
+
# Hex color of the underline when it differs from the text color
|
|
681
670
|
sig { returns(T.nilable(String)) }
|
|
682
|
-
attr_reader :
|
|
671
|
+
attr_reader :text_decoration_color
|
|
683
672
|
|
|
684
|
-
sig { params(
|
|
685
|
-
attr_writer :
|
|
673
|
+
sig { params(text_decoration_color: String).void }
|
|
674
|
+
attr_writer :text_decoration_color
|
|
686
675
|
|
|
687
|
-
# Primary button style
|
|
688
676
|
sig do
|
|
689
677
|
params(
|
|
690
678
|
background_color: String,
|
|
@@ -694,24 +682,45 @@ module BrandDev
|
|
|
694
682
|
border_width: String,
|
|
695
683
|
box_shadow: String,
|
|
696
684
|
color: String,
|
|
685
|
+
css: String,
|
|
697
686
|
font_size: String,
|
|
698
687
|
font_weight: Float,
|
|
688
|
+
min_height: String,
|
|
689
|
+
min_width: String,
|
|
699
690
|
padding: String,
|
|
700
|
-
text_decoration: String
|
|
691
|
+
text_decoration: String,
|
|
692
|
+
font_fallbacks: T::Array[String],
|
|
693
|
+
font_family: String,
|
|
694
|
+
text_decoration_color: String
|
|
701
695
|
).returns(T.attached_class)
|
|
702
696
|
end
|
|
703
697
|
def self.new(
|
|
704
|
-
background_color
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
698
|
+
background_color:,
|
|
699
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
700
|
+
# alpha)
|
|
701
|
+
border_color:,
|
|
702
|
+
border_radius:,
|
|
703
|
+
border_style:,
|
|
704
|
+
border_width:,
|
|
705
|
+
# Computed box-shadow (comma-separated layers when present)
|
|
706
|
+
box_shadow:,
|
|
707
|
+
color:,
|
|
708
|
+
# Ready-to-use CSS declaration block for this component style
|
|
709
|
+
css:,
|
|
710
|
+
font_size:,
|
|
711
|
+
font_weight:,
|
|
712
|
+
# Sampled minimum height of the button box (typically px)
|
|
713
|
+
min_height:,
|
|
714
|
+
# Sampled minimum width of the button box (typically px)
|
|
715
|
+
min_width:,
|
|
716
|
+
padding:,
|
|
717
|
+
text_decoration:,
|
|
718
|
+
# Full ordered font list from computed font-family
|
|
719
|
+
font_fallbacks: nil,
|
|
720
|
+
# Primary button typeface (first in fontFallbacks)
|
|
721
|
+
font_family: nil,
|
|
722
|
+
# Hex color of the underline when it differs from the text color
|
|
723
|
+
text_decoration_color: nil
|
|
715
724
|
)
|
|
716
725
|
end
|
|
717
726
|
|
|
@@ -725,10 +734,16 @@ module BrandDev
|
|
|
725
734
|
border_width: String,
|
|
726
735
|
box_shadow: String,
|
|
727
736
|
color: String,
|
|
737
|
+
css: String,
|
|
728
738
|
font_size: String,
|
|
729
739
|
font_weight: Float,
|
|
740
|
+
min_height: String,
|
|
741
|
+
min_width: String,
|
|
730
742
|
padding: String,
|
|
731
|
-
text_decoration: String
|
|
743
|
+
text_decoration: String,
|
|
744
|
+
font_fallbacks: T::Array[String],
|
|
745
|
+
font_family: String,
|
|
746
|
+
text_decoration_color: String
|
|
732
747
|
}
|
|
733
748
|
)
|
|
734
749
|
end
|
|
@@ -745,73 +760,75 @@ module BrandDev
|
|
|
745
760
|
)
|
|
746
761
|
end
|
|
747
762
|
|
|
748
|
-
sig { returns(
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
sig { params(background_color: String).void }
|
|
752
|
-
attr_writer :background_color
|
|
763
|
+
sig { returns(String) }
|
|
764
|
+
attr_accessor :background_color
|
|
753
765
|
|
|
754
|
-
|
|
755
|
-
|
|
766
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
767
|
+
# alpha)
|
|
768
|
+
sig { returns(String) }
|
|
769
|
+
attr_accessor :border_color
|
|
756
770
|
|
|
757
|
-
sig {
|
|
758
|
-
|
|
771
|
+
sig { returns(String) }
|
|
772
|
+
attr_accessor :border_radius
|
|
759
773
|
|
|
760
|
-
sig { returns(
|
|
761
|
-
|
|
774
|
+
sig { returns(String) }
|
|
775
|
+
attr_accessor :border_style
|
|
762
776
|
|
|
763
|
-
sig {
|
|
764
|
-
|
|
777
|
+
sig { returns(String) }
|
|
778
|
+
attr_accessor :border_width
|
|
765
779
|
|
|
766
|
-
|
|
767
|
-
|
|
780
|
+
# Computed box-shadow (comma-separated layers when present)
|
|
781
|
+
sig { returns(String) }
|
|
782
|
+
attr_accessor :box_shadow
|
|
768
783
|
|
|
769
|
-
sig {
|
|
770
|
-
|
|
784
|
+
sig { returns(String) }
|
|
785
|
+
attr_accessor :color
|
|
771
786
|
|
|
772
|
-
|
|
773
|
-
|
|
787
|
+
# Ready-to-use CSS declaration block for this component style
|
|
788
|
+
sig { returns(String) }
|
|
789
|
+
attr_accessor :css
|
|
774
790
|
|
|
775
|
-
sig {
|
|
776
|
-
|
|
791
|
+
sig { returns(String) }
|
|
792
|
+
attr_accessor :font_size
|
|
777
793
|
|
|
778
|
-
sig { returns(
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
sig { params(box_shadow: String).void }
|
|
782
|
-
attr_writer :box_shadow
|
|
794
|
+
sig { returns(Float) }
|
|
795
|
+
attr_accessor :font_weight
|
|
783
796
|
|
|
784
|
-
|
|
785
|
-
|
|
797
|
+
# Sampled minimum height of the button box (typically px)
|
|
798
|
+
sig { returns(String) }
|
|
799
|
+
attr_accessor :min_height
|
|
786
800
|
|
|
787
|
-
|
|
788
|
-
|
|
801
|
+
# Sampled minimum width of the button box (typically px)
|
|
802
|
+
sig { returns(String) }
|
|
803
|
+
attr_accessor :min_width
|
|
789
804
|
|
|
790
|
-
sig { returns(
|
|
791
|
-
|
|
805
|
+
sig { returns(String) }
|
|
806
|
+
attr_accessor :padding
|
|
792
807
|
|
|
793
|
-
sig {
|
|
794
|
-
|
|
808
|
+
sig { returns(String) }
|
|
809
|
+
attr_accessor :text_decoration
|
|
795
810
|
|
|
796
|
-
|
|
797
|
-
|
|
811
|
+
# Full ordered font list from computed font-family
|
|
812
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
813
|
+
attr_reader :font_fallbacks
|
|
798
814
|
|
|
799
|
-
sig { params(
|
|
800
|
-
attr_writer :
|
|
815
|
+
sig { params(font_fallbacks: T::Array[String]).void }
|
|
816
|
+
attr_writer :font_fallbacks
|
|
801
817
|
|
|
818
|
+
# Primary button typeface (first in fontFallbacks)
|
|
802
819
|
sig { returns(T.nilable(String)) }
|
|
803
|
-
attr_reader :
|
|
820
|
+
attr_reader :font_family
|
|
804
821
|
|
|
805
|
-
sig { params(
|
|
806
|
-
attr_writer :
|
|
822
|
+
sig { params(font_family: String).void }
|
|
823
|
+
attr_writer :font_family
|
|
807
824
|
|
|
825
|
+
# Hex color of the underline when it differs from the text color
|
|
808
826
|
sig { returns(T.nilable(String)) }
|
|
809
|
-
attr_reader :
|
|
827
|
+
attr_reader :text_decoration_color
|
|
810
828
|
|
|
811
|
-
sig { params(
|
|
812
|
-
attr_writer :
|
|
829
|
+
sig { params(text_decoration_color: String).void }
|
|
830
|
+
attr_writer :text_decoration_color
|
|
813
831
|
|
|
814
|
-
# Secondary button style
|
|
815
832
|
sig do
|
|
816
833
|
params(
|
|
817
834
|
background_color: String,
|
|
@@ -821,24 +838,45 @@ module BrandDev
|
|
|
821
838
|
border_width: String,
|
|
822
839
|
box_shadow: String,
|
|
823
840
|
color: String,
|
|
841
|
+
css: String,
|
|
824
842
|
font_size: String,
|
|
825
843
|
font_weight: Float,
|
|
844
|
+
min_height: String,
|
|
845
|
+
min_width: String,
|
|
826
846
|
padding: String,
|
|
827
|
-
text_decoration: String
|
|
847
|
+
text_decoration: String,
|
|
848
|
+
font_fallbacks: T::Array[String],
|
|
849
|
+
font_family: String,
|
|
850
|
+
text_decoration_color: String
|
|
828
851
|
).returns(T.attached_class)
|
|
829
852
|
end
|
|
830
853
|
def self.new(
|
|
831
|
-
background_color
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
854
|
+
background_color:,
|
|
855
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
856
|
+
# alpha)
|
|
857
|
+
border_color:,
|
|
858
|
+
border_radius:,
|
|
859
|
+
border_style:,
|
|
860
|
+
border_width:,
|
|
861
|
+
# Computed box-shadow (comma-separated layers when present)
|
|
862
|
+
box_shadow:,
|
|
863
|
+
color:,
|
|
864
|
+
# Ready-to-use CSS declaration block for this component style
|
|
865
|
+
css:,
|
|
866
|
+
font_size:,
|
|
867
|
+
font_weight:,
|
|
868
|
+
# Sampled minimum height of the button box (typically px)
|
|
869
|
+
min_height:,
|
|
870
|
+
# Sampled minimum width of the button box (typically px)
|
|
871
|
+
min_width:,
|
|
872
|
+
padding:,
|
|
873
|
+
text_decoration:,
|
|
874
|
+
# Full ordered font list from computed font-family
|
|
875
|
+
font_fallbacks: nil,
|
|
876
|
+
# Primary button typeface (first in fontFallbacks)
|
|
877
|
+
font_family: nil,
|
|
878
|
+
# Hex color of the underline when it differs from the text color
|
|
879
|
+
text_decoration_color: nil
|
|
842
880
|
)
|
|
843
881
|
end
|
|
844
882
|
|
|
@@ -852,10 +890,16 @@ module BrandDev
|
|
|
852
890
|
border_width: String,
|
|
853
891
|
box_shadow: String,
|
|
854
892
|
color: String,
|
|
893
|
+
css: String,
|
|
855
894
|
font_size: String,
|
|
856
895
|
font_weight: Float,
|
|
896
|
+
min_height: String,
|
|
897
|
+
min_width: String,
|
|
857
898
|
padding: String,
|
|
858
|
-
text_decoration: String
|
|
899
|
+
text_decoration: String,
|
|
900
|
+
font_fallbacks: T::Array[String],
|
|
901
|
+
font_family: String,
|
|
902
|
+
text_decoration_color: String
|
|
859
903
|
}
|
|
860
904
|
)
|
|
861
905
|
end
|
|
@@ -873,53 +917,35 @@ module BrandDev
|
|
|
873
917
|
)
|
|
874
918
|
end
|
|
875
919
|
|
|
876
|
-
sig { returns(
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
sig { params(background_color: String).void }
|
|
880
|
-
attr_writer :background_color
|
|
881
|
-
|
|
882
|
-
sig { returns(T.nilable(String)) }
|
|
883
|
-
attr_reader :border_color
|
|
884
|
-
|
|
885
|
-
sig { params(border_color: String).void }
|
|
886
|
-
attr_writer :border_color
|
|
920
|
+
sig { returns(String) }
|
|
921
|
+
attr_accessor :background_color
|
|
887
922
|
|
|
888
|
-
|
|
889
|
-
|
|
923
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
924
|
+
# alpha)
|
|
925
|
+
sig { returns(String) }
|
|
926
|
+
attr_accessor :border_color
|
|
890
927
|
|
|
891
|
-
sig {
|
|
892
|
-
|
|
928
|
+
sig { returns(String) }
|
|
929
|
+
attr_accessor :border_radius
|
|
893
930
|
|
|
894
|
-
sig { returns(
|
|
895
|
-
|
|
931
|
+
sig { returns(String) }
|
|
932
|
+
attr_accessor :border_style
|
|
896
933
|
|
|
897
|
-
sig {
|
|
898
|
-
|
|
934
|
+
sig { returns(String) }
|
|
935
|
+
attr_accessor :border_width
|
|
899
936
|
|
|
900
|
-
sig { returns(
|
|
901
|
-
|
|
937
|
+
sig { returns(String) }
|
|
938
|
+
attr_accessor :box_shadow
|
|
902
939
|
|
|
903
|
-
|
|
904
|
-
|
|
940
|
+
# Ready-to-use CSS declaration block for this component style
|
|
941
|
+
sig { returns(String) }
|
|
942
|
+
attr_accessor :css
|
|
905
943
|
|
|
906
|
-
sig { returns(
|
|
907
|
-
|
|
944
|
+
sig { returns(String) }
|
|
945
|
+
attr_accessor :padding
|
|
908
946
|
|
|
909
|
-
sig {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
sig { returns(T.nilable(String)) }
|
|
913
|
-
attr_reader :padding
|
|
914
|
-
|
|
915
|
-
sig { params(padding: String).void }
|
|
916
|
-
attr_writer :padding
|
|
917
|
-
|
|
918
|
-
sig { returns(T.nilable(String)) }
|
|
919
|
-
attr_reader :text_color
|
|
920
|
-
|
|
921
|
-
sig { params(text_color: String).void }
|
|
922
|
-
attr_writer :text_color
|
|
947
|
+
sig { returns(String) }
|
|
948
|
+
attr_accessor :text_color
|
|
923
949
|
|
|
924
950
|
# Card component style
|
|
925
951
|
sig do
|
|
@@ -930,19 +956,24 @@ module BrandDev
|
|
|
930
956
|
border_style: String,
|
|
931
957
|
border_width: String,
|
|
932
958
|
box_shadow: String,
|
|
959
|
+
css: String,
|
|
933
960
|
padding: String,
|
|
934
961
|
text_color: String
|
|
935
962
|
).returns(T.attached_class)
|
|
936
963
|
end
|
|
937
964
|
def self.new(
|
|
938
|
-
background_color
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
965
|
+
background_color:,
|
|
966
|
+
# Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has
|
|
967
|
+
# alpha)
|
|
968
|
+
border_color:,
|
|
969
|
+
border_radius:,
|
|
970
|
+
border_style:,
|
|
971
|
+
border_width:,
|
|
972
|
+
box_shadow:,
|
|
973
|
+
# Ready-to-use CSS declaration block for this component style
|
|
974
|
+
css:,
|
|
975
|
+
padding:,
|
|
976
|
+
text_color:
|
|
946
977
|
)
|
|
947
978
|
end
|
|
948
979
|
|
|
@@ -955,6 +986,7 @@ module BrandDev
|
|
|
955
986
|
border_style: String,
|
|
956
987
|
border_width: String,
|
|
957
988
|
box_shadow: String,
|
|
989
|
+
css: String,
|
|
958
990
|
padding: String,
|
|
959
991
|
text_color: String
|
|
960
992
|
}
|
|
@@ -974,40 +1006,20 @@ module BrandDev
|
|
|
974
1006
|
)
|
|
975
1007
|
end
|
|
976
1008
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
attr_reader :lg
|
|
980
|
-
|
|
981
|
-
sig { params(lg: String).void }
|
|
982
|
-
attr_writer :lg
|
|
983
|
-
|
|
984
|
-
# Medium spacing value
|
|
985
|
-
sig { returns(T.nilable(String)) }
|
|
986
|
-
attr_reader :md
|
|
987
|
-
|
|
988
|
-
sig { params(md: String).void }
|
|
989
|
-
attr_writer :md
|
|
990
|
-
|
|
991
|
-
# Small spacing value
|
|
992
|
-
sig { returns(T.nilable(String)) }
|
|
993
|
-
attr_reader :sm
|
|
994
|
-
|
|
995
|
-
sig { params(sm: String).void }
|
|
996
|
-
attr_writer :sm
|
|
1009
|
+
sig { returns(String) }
|
|
1010
|
+
attr_accessor :lg
|
|
997
1011
|
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
attr_reader :xl
|
|
1012
|
+
sig { returns(String) }
|
|
1013
|
+
attr_accessor :md
|
|
1001
1014
|
|
|
1002
|
-
sig {
|
|
1003
|
-
|
|
1015
|
+
sig { returns(String) }
|
|
1016
|
+
attr_accessor :sm
|
|
1004
1017
|
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
attr_reader :xs
|
|
1018
|
+
sig { returns(String) }
|
|
1019
|
+
attr_accessor :xl
|
|
1008
1020
|
|
|
1009
|
-
sig {
|
|
1010
|
-
|
|
1021
|
+
sig { returns(String) }
|
|
1022
|
+
attr_accessor :xs
|
|
1011
1023
|
|
|
1012
1024
|
# Spacing system used on the website
|
|
1013
1025
|
sig do
|
|
@@ -1019,18 +1031,7 @@ module BrandDev
|
|
|
1019
1031
|
xs: String
|
|
1020
1032
|
).returns(T.attached_class)
|
|
1021
1033
|
end
|
|
1022
|
-
def self.new(
|
|
1023
|
-
# Large spacing value
|
|
1024
|
-
lg: nil,
|
|
1025
|
-
# Medium spacing value
|
|
1026
|
-
md: nil,
|
|
1027
|
-
# Small spacing value
|
|
1028
|
-
sm: nil,
|
|
1029
|
-
# Extra large spacing value
|
|
1030
|
-
xl: nil,
|
|
1031
|
-
# Extra small spacing value
|
|
1032
|
-
xs: nil
|
|
1033
|
-
)
|
|
1034
|
+
def self.new(lg:, md:, sm:, xl:, xs:)
|
|
1034
1035
|
end
|
|
1035
1036
|
|
|
1036
1037
|
sig do
|
|
@@ -1086,40 +1087,20 @@ module BrandDev
|
|
|
1086
1087
|
)
|
|
1087
1088
|
end
|
|
1088
1089
|
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
attr_reader :inner
|
|
1092
|
-
|
|
1093
|
-
sig { params(inner: String).void }
|
|
1094
|
-
attr_writer :inner
|
|
1095
|
-
|
|
1096
|
-
# Large shadow value
|
|
1097
|
-
sig { returns(T.nilable(String)) }
|
|
1098
|
-
attr_reader :lg
|
|
1099
|
-
|
|
1100
|
-
sig { params(lg: String).void }
|
|
1101
|
-
attr_writer :lg
|
|
1090
|
+
sig { returns(String) }
|
|
1091
|
+
attr_accessor :inner
|
|
1102
1092
|
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
attr_reader :md
|
|
1093
|
+
sig { returns(String) }
|
|
1094
|
+
attr_accessor :lg
|
|
1106
1095
|
|
|
1107
|
-
sig {
|
|
1108
|
-
|
|
1096
|
+
sig { returns(String) }
|
|
1097
|
+
attr_accessor :md
|
|
1109
1098
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
attr_reader :sm
|
|
1099
|
+
sig { returns(String) }
|
|
1100
|
+
attr_accessor :sm
|
|
1113
1101
|
|
|
1114
|
-
sig {
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
# Extra large shadow value
|
|
1118
|
-
sig { returns(T.nilable(String)) }
|
|
1119
|
-
attr_reader :xl
|
|
1120
|
-
|
|
1121
|
-
sig { params(xl: String).void }
|
|
1122
|
-
attr_writer :xl
|
|
1102
|
+
sig { returns(String) }
|
|
1103
|
+
attr_accessor :xl
|
|
1123
1104
|
|
|
1124
1105
|
# Shadow styles used on the website
|
|
1125
1106
|
sig do
|
|
@@ -1131,18 +1112,7 @@ module BrandDev
|
|
|
1131
1112
|
xl: String
|
|
1132
1113
|
).returns(T.attached_class)
|
|
1133
1114
|
end
|
|
1134
|
-
def self.new(
|
|
1135
|
-
# Inner shadow value
|
|
1136
|
-
inner: nil,
|
|
1137
|
-
# Large shadow value
|
|
1138
|
-
lg: nil,
|
|
1139
|
-
# Medium shadow value
|
|
1140
|
-
md: nil,
|
|
1141
|
-
# Small shadow value
|
|
1142
|
-
sm: nil,
|
|
1143
|
-
# Extra large shadow value
|
|
1144
|
-
xl: nil
|
|
1145
|
-
)
|
|
1115
|
+
def self.new(inner:, lg:, md:, sm:, xl:)
|
|
1146
1116
|
end
|
|
1147
1117
|
|
|
1148
1118
|
sig do
|
|
@@ -1166,9 +1136,7 @@ module BrandDev
|
|
|
1166
1136
|
# Heading styles
|
|
1167
1137
|
sig do
|
|
1168
1138
|
returns(
|
|
1169
|
-
|
|
1170
|
-
BrandDev::Models::BrandStyleguideResponse::Styleguide::Typography::Headings
|
|
1171
|
-
)
|
|
1139
|
+
BrandDev::Models::BrandStyleguideResponse::Styleguide::Typography::Headings
|
|
1172
1140
|
)
|
|
1173
1141
|
end
|
|
1174
1142
|
attr_reader :headings
|
|
@@ -1181,7 +1149,6 @@ module BrandDev
|
|
|
1181
1149
|
end
|
|
1182
1150
|
attr_writer :headings
|
|
1183
1151
|
|
|
1184
|
-
# Paragraph text styles
|
|
1185
1152
|
sig do
|
|
1186
1153
|
returns(
|
|
1187
1154
|
T.nilable(
|
|
@@ -1210,8 +1177,7 @@ module BrandDev
|
|
|
1210
1177
|
end
|
|
1211
1178
|
def self.new(
|
|
1212
1179
|
# Heading styles
|
|
1213
|
-
headings
|
|
1214
|
-
# Paragraph text styles
|
|
1180
|
+
headings:,
|
|
1215
1181
|
p_: nil
|
|
1216
1182
|
)
|
|
1217
1183
|
end
|
|
@@ -1348,38 +1314,29 @@ module BrandDev
|
|
|
1348
1314
|
)
|
|
1349
1315
|
end
|
|
1350
1316
|
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
sig { params(font_family: String).void }
|
|
1355
|
-
attr_writer :font_family
|
|
1356
|
-
|
|
1357
|
-
sig { returns(T.nilable(String)) }
|
|
1358
|
-
attr_reader :font_size
|
|
1359
|
-
|
|
1360
|
-
sig { params(font_size: String).void }
|
|
1361
|
-
attr_writer :font_size
|
|
1317
|
+
# Full ordered font list from resolved computed font-family
|
|
1318
|
+
sig { returns(T::Array[String]) }
|
|
1319
|
+
attr_accessor :font_fallbacks
|
|
1362
1320
|
|
|
1363
|
-
|
|
1364
|
-
|
|
1321
|
+
# Primary face (first family in the computed stack)
|
|
1322
|
+
sig { returns(String) }
|
|
1323
|
+
attr_accessor :font_family
|
|
1365
1324
|
|
|
1366
|
-
sig {
|
|
1367
|
-
|
|
1325
|
+
sig { returns(String) }
|
|
1326
|
+
attr_accessor :font_size
|
|
1368
1327
|
|
|
1369
|
-
sig { returns(
|
|
1370
|
-
|
|
1328
|
+
sig { returns(Float) }
|
|
1329
|
+
attr_accessor :font_weight
|
|
1371
1330
|
|
|
1372
|
-
sig {
|
|
1373
|
-
|
|
1331
|
+
sig { returns(String) }
|
|
1332
|
+
attr_accessor :letter_spacing
|
|
1374
1333
|
|
|
1375
|
-
sig { returns(
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
sig { params(line_height: String).void }
|
|
1379
|
-
attr_writer :line_height
|
|
1334
|
+
sig { returns(String) }
|
|
1335
|
+
attr_accessor :line_height
|
|
1380
1336
|
|
|
1381
1337
|
sig do
|
|
1382
1338
|
params(
|
|
1339
|
+
font_fallbacks: T::Array[String],
|
|
1383
1340
|
font_family: String,
|
|
1384
1341
|
font_size: String,
|
|
1385
1342
|
font_weight: Float,
|
|
@@ -1388,17 +1345,21 @@ module BrandDev
|
|
|
1388
1345
|
).returns(T.attached_class)
|
|
1389
1346
|
end
|
|
1390
1347
|
def self.new(
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1348
|
+
# Full ordered font list from resolved computed font-family
|
|
1349
|
+
font_fallbacks:,
|
|
1350
|
+
# Primary face (first family in the computed stack)
|
|
1351
|
+
font_family:,
|
|
1352
|
+
font_size:,
|
|
1353
|
+
font_weight:,
|
|
1354
|
+
letter_spacing:,
|
|
1355
|
+
line_height:
|
|
1396
1356
|
)
|
|
1397
1357
|
end
|
|
1398
1358
|
|
|
1399
1359
|
sig do
|
|
1400
1360
|
override.returns(
|
|
1401
1361
|
{
|
|
1362
|
+
font_fallbacks: T::Array[String],
|
|
1402
1363
|
font_family: String,
|
|
1403
1364
|
font_size: String,
|
|
1404
1365
|
font_weight: Float,
|
|
@@ -1420,38 +1381,29 @@ module BrandDev
|
|
|
1420
1381
|
)
|
|
1421
1382
|
end
|
|
1422
1383
|
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
sig { params(font_family: String).void }
|
|
1427
|
-
attr_writer :font_family
|
|
1428
|
-
|
|
1429
|
-
sig { returns(T.nilable(String)) }
|
|
1430
|
-
attr_reader :font_size
|
|
1384
|
+
# Full ordered font list from resolved computed font-family
|
|
1385
|
+
sig { returns(T::Array[String]) }
|
|
1386
|
+
attr_accessor :font_fallbacks
|
|
1431
1387
|
|
|
1432
|
-
|
|
1433
|
-
|
|
1388
|
+
# Primary face (first family in the computed stack)
|
|
1389
|
+
sig { returns(String) }
|
|
1390
|
+
attr_accessor :font_family
|
|
1434
1391
|
|
|
1435
|
-
sig { returns(
|
|
1436
|
-
|
|
1392
|
+
sig { returns(String) }
|
|
1393
|
+
attr_accessor :font_size
|
|
1437
1394
|
|
|
1438
|
-
sig {
|
|
1439
|
-
|
|
1395
|
+
sig { returns(Float) }
|
|
1396
|
+
attr_accessor :font_weight
|
|
1440
1397
|
|
|
1441
|
-
sig { returns(
|
|
1442
|
-
|
|
1398
|
+
sig { returns(String) }
|
|
1399
|
+
attr_accessor :letter_spacing
|
|
1443
1400
|
|
|
1444
|
-
sig {
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
sig { returns(T.nilable(String)) }
|
|
1448
|
-
attr_reader :line_height
|
|
1449
|
-
|
|
1450
|
-
sig { params(line_height: String).void }
|
|
1451
|
-
attr_writer :line_height
|
|
1401
|
+
sig { returns(String) }
|
|
1402
|
+
attr_accessor :line_height
|
|
1452
1403
|
|
|
1453
1404
|
sig do
|
|
1454
1405
|
params(
|
|
1406
|
+
font_fallbacks: T::Array[String],
|
|
1455
1407
|
font_family: String,
|
|
1456
1408
|
font_size: String,
|
|
1457
1409
|
font_weight: Float,
|
|
@@ -1460,17 +1412,21 @@ module BrandDev
|
|
|
1460
1412
|
).returns(T.attached_class)
|
|
1461
1413
|
end
|
|
1462
1414
|
def self.new(
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1415
|
+
# Full ordered font list from resolved computed font-family
|
|
1416
|
+
font_fallbacks:,
|
|
1417
|
+
# Primary face (first family in the computed stack)
|
|
1418
|
+
font_family:,
|
|
1419
|
+
font_size:,
|
|
1420
|
+
font_weight:,
|
|
1421
|
+
letter_spacing:,
|
|
1422
|
+
line_height:
|
|
1468
1423
|
)
|
|
1469
1424
|
end
|
|
1470
1425
|
|
|
1471
1426
|
sig do
|
|
1472
1427
|
override.returns(
|
|
1473
1428
|
{
|
|
1429
|
+
font_fallbacks: T::Array[String],
|
|
1474
1430
|
font_family: String,
|
|
1475
1431
|
font_size: String,
|
|
1476
1432
|
font_weight: Float,
|
|
@@ -1492,38 +1448,29 @@ module BrandDev
|
|
|
1492
1448
|
)
|
|
1493
1449
|
end
|
|
1494
1450
|
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
sig { params(font_family: String).void }
|
|
1499
|
-
attr_writer :font_family
|
|
1451
|
+
# Full ordered font list from resolved computed font-family
|
|
1452
|
+
sig { returns(T::Array[String]) }
|
|
1453
|
+
attr_accessor :font_fallbacks
|
|
1500
1454
|
|
|
1501
|
-
|
|
1502
|
-
|
|
1455
|
+
# Primary face (first family in the computed stack)
|
|
1456
|
+
sig { returns(String) }
|
|
1457
|
+
attr_accessor :font_family
|
|
1503
1458
|
|
|
1504
|
-
sig {
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
sig { returns(T.nilable(Float)) }
|
|
1508
|
-
attr_reader :font_weight
|
|
1509
|
-
|
|
1510
|
-
sig { params(font_weight: Float).void }
|
|
1511
|
-
attr_writer :font_weight
|
|
1512
|
-
|
|
1513
|
-
sig { returns(T.nilable(String)) }
|
|
1514
|
-
attr_reader :letter_spacing
|
|
1459
|
+
sig { returns(String) }
|
|
1460
|
+
attr_accessor :font_size
|
|
1515
1461
|
|
|
1516
|
-
sig {
|
|
1517
|
-
|
|
1462
|
+
sig { returns(Float) }
|
|
1463
|
+
attr_accessor :font_weight
|
|
1518
1464
|
|
|
1519
|
-
sig { returns(
|
|
1520
|
-
|
|
1465
|
+
sig { returns(String) }
|
|
1466
|
+
attr_accessor :letter_spacing
|
|
1521
1467
|
|
|
1522
|
-
sig {
|
|
1523
|
-
|
|
1468
|
+
sig { returns(String) }
|
|
1469
|
+
attr_accessor :line_height
|
|
1524
1470
|
|
|
1525
1471
|
sig do
|
|
1526
1472
|
params(
|
|
1473
|
+
font_fallbacks: T::Array[String],
|
|
1527
1474
|
font_family: String,
|
|
1528
1475
|
font_size: String,
|
|
1529
1476
|
font_weight: Float,
|
|
@@ -1532,17 +1479,21 @@ module BrandDev
|
|
|
1532
1479
|
).returns(T.attached_class)
|
|
1533
1480
|
end
|
|
1534
1481
|
def self.new(
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1482
|
+
# Full ordered font list from resolved computed font-family
|
|
1483
|
+
font_fallbacks:,
|
|
1484
|
+
# Primary face (first family in the computed stack)
|
|
1485
|
+
font_family:,
|
|
1486
|
+
font_size:,
|
|
1487
|
+
font_weight:,
|
|
1488
|
+
letter_spacing:,
|
|
1489
|
+
line_height:
|
|
1540
1490
|
)
|
|
1541
1491
|
end
|
|
1542
1492
|
|
|
1543
1493
|
sig do
|
|
1544
1494
|
override.returns(
|
|
1545
1495
|
{
|
|
1496
|
+
font_fallbacks: T::Array[String],
|
|
1546
1497
|
font_family: String,
|
|
1547
1498
|
font_size: String,
|
|
1548
1499
|
font_weight: Float,
|
|
@@ -1564,38 +1515,29 @@ module BrandDev
|
|
|
1564
1515
|
)
|
|
1565
1516
|
end
|
|
1566
1517
|
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
sig { params(font_family: String).void }
|
|
1571
|
-
attr_writer :font_family
|
|
1572
|
-
|
|
1573
|
-
sig { returns(T.nilable(String)) }
|
|
1574
|
-
attr_reader :font_size
|
|
1575
|
-
|
|
1576
|
-
sig { params(font_size: String).void }
|
|
1577
|
-
attr_writer :font_size
|
|
1518
|
+
# Full ordered font list from resolved computed font-family
|
|
1519
|
+
sig { returns(T::Array[String]) }
|
|
1520
|
+
attr_accessor :font_fallbacks
|
|
1578
1521
|
|
|
1579
|
-
|
|
1580
|
-
|
|
1522
|
+
# Primary face (first family in the computed stack)
|
|
1523
|
+
sig { returns(String) }
|
|
1524
|
+
attr_accessor :font_family
|
|
1581
1525
|
|
|
1582
|
-
sig {
|
|
1583
|
-
|
|
1526
|
+
sig { returns(String) }
|
|
1527
|
+
attr_accessor :font_size
|
|
1584
1528
|
|
|
1585
|
-
sig { returns(
|
|
1586
|
-
|
|
1529
|
+
sig { returns(Float) }
|
|
1530
|
+
attr_accessor :font_weight
|
|
1587
1531
|
|
|
1588
|
-
sig {
|
|
1589
|
-
|
|
1532
|
+
sig { returns(String) }
|
|
1533
|
+
attr_accessor :letter_spacing
|
|
1590
1534
|
|
|
1591
|
-
sig { returns(
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
sig { params(line_height: String).void }
|
|
1595
|
-
attr_writer :line_height
|
|
1535
|
+
sig { returns(String) }
|
|
1536
|
+
attr_accessor :line_height
|
|
1596
1537
|
|
|
1597
1538
|
sig do
|
|
1598
1539
|
params(
|
|
1540
|
+
font_fallbacks: T::Array[String],
|
|
1599
1541
|
font_family: String,
|
|
1600
1542
|
font_size: String,
|
|
1601
1543
|
font_weight: Float,
|
|
@@ -1604,17 +1546,21 @@ module BrandDev
|
|
|
1604
1546
|
).returns(T.attached_class)
|
|
1605
1547
|
end
|
|
1606
1548
|
def self.new(
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1549
|
+
# Full ordered font list from resolved computed font-family
|
|
1550
|
+
font_fallbacks:,
|
|
1551
|
+
# Primary face (first family in the computed stack)
|
|
1552
|
+
font_family:,
|
|
1553
|
+
font_size:,
|
|
1554
|
+
font_weight:,
|
|
1555
|
+
letter_spacing:,
|
|
1556
|
+
line_height:
|
|
1612
1557
|
)
|
|
1613
1558
|
end
|
|
1614
1559
|
|
|
1615
1560
|
sig do
|
|
1616
1561
|
override.returns(
|
|
1617
1562
|
{
|
|
1563
|
+
font_fallbacks: T::Array[String],
|
|
1618
1564
|
font_family: String,
|
|
1619
1565
|
font_size: String,
|
|
1620
1566
|
font_weight: Float,
|
|
@@ -1637,39 +1583,29 @@ module BrandDev
|
|
|
1637
1583
|
)
|
|
1638
1584
|
end
|
|
1639
1585
|
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
sig { params(font_family: String).void }
|
|
1644
|
-
attr_writer :font_family
|
|
1645
|
-
|
|
1646
|
-
sig { returns(T.nilable(String)) }
|
|
1647
|
-
attr_reader :font_size
|
|
1648
|
-
|
|
1649
|
-
sig { params(font_size: String).void }
|
|
1650
|
-
attr_writer :font_size
|
|
1651
|
-
|
|
1652
|
-
sig { returns(T.nilable(Float)) }
|
|
1653
|
-
attr_reader :font_weight
|
|
1586
|
+
# Full ordered font list from resolved computed font-family
|
|
1587
|
+
sig { returns(T::Array[String]) }
|
|
1588
|
+
attr_accessor :font_fallbacks
|
|
1654
1589
|
|
|
1655
|
-
|
|
1656
|
-
|
|
1590
|
+
# Primary face (first family in the computed stack)
|
|
1591
|
+
sig { returns(String) }
|
|
1592
|
+
attr_accessor :font_family
|
|
1657
1593
|
|
|
1658
|
-
sig { returns(
|
|
1659
|
-
|
|
1594
|
+
sig { returns(String) }
|
|
1595
|
+
attr_accessor :font_size
|
|
1660
1596
|
|
|
1661
|
-
sig {
|
|
1662
|
-
|
|
1597
|
+
sig { returns(Float) }
|
|
1598
|
+
attr_accessor :font_weight
|
|
1663
1599
|
|
|
1664
|
-
sig { returns(
|
|
1665
|
-
|
|
1600
|
+
sig { returns(String) }
|
|
1601
|
+
attr_accessor :letter_spacing
|
|
1666
1602
|
|
|
1667
|
-
sig {
|
|
1668
|
-
|
|
1603
|
+
sig { returns(String) }
|
|
1604
|
+
attr_accessor :line_height
|
|
1669
1605
|
|
|
1670
|
-
# Paragraph text styles
|
|
1671
1606
|
sig do
|
|
1672
1607
|
params(
|
|
1608
|
+
font_fallbacks: T::Array[String],
|
|
1673
1609
|
font_family: String,
|
|
1674
1610
|
font_size: String,
|
|
1675
1611
|
font_weight: Float,
|
|
@@ -1678,17 +1614,21 @@ module BrandDev
|
|
|
1678
1614
|
).returns(T.attached_class)
|
|
1679
1615
|
end
|
|
1680
1616
|
def self.new(
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1617
|
+
# Full ordered font list from resolved computed font-family
|
|
1618
|
+
font_fallbacks:,
|
|
1619
|
+
# Primary face (first family in the computed stack)
|
|
1620
|
+
font_family:,
|
|
1621
|
+
font_size:,
|
|
1622
|
+
font_weight:,
|
|
1623
|
+
letter_spacing:,
|
|
1624
|
+
line_height:
|
|
1686
1625
|
)
|
|
1687
1626
|
end
|
|
1688
1627
|
|
|
1689
1628
|
sig do
|
|
1690
1629
|
override.returns(
|
|
1691
1630
|
{
|
|
1631
|
+
font_fallbacks: T::Array[String],
|
|
1692
1632
|
font_family: String,
|
|
1693
1633
|
font_size: String,
|
|
1694
1634
|
font_weight: Float,
|