primer_view_components 0.47.0 → 0.49.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 +24 -16
- data/app/assets/javascripts/components/primer/primer.d.ts +1 -0
- data/app/assets/javascripts/lib/primer/forms/character_counter.d.ts +41 -0
- data/app/assets/javascripts/lib/primer/forms/primer_text_area.d.ts +13 -0
- data/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +2 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/auto_complete/auto_complete.html.erb +8 -6
- data/app/components/primer/alpha/text_area.rb +1 -0
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.rb +1 -0
- data/app/components/primer/alpha/toggle_switch.html.erb +2 -2
- data/app/components/primer/alpha/tool_tip.js +12 -5
- data/app/components/primer/alpha/tool_tip.ts +14 -5
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/beta/auto_complete/item.html.erb +5 -4
- data/app/components/primer/beta/avatar.rb +10 -2
- data/app/components/primer/beta/avatar_stack.css +1 -1
- data/app/components/primer/beta/avatar_stack.css.json +5 -3
- data/app/components/primer/beta/avatar_stack.css.map +1 -1
- data/app/components/primer/beta/avatar_stack.pcss +12 -1
- data/app/components/primer/beta/avatar_stack.rb +6 -0
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/spinner.html.erb +2 -2
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/forms/text_area_with_character_limit_form.rb +13 -0
- data/app/forms/text_field_with_character_limit_form.rb +13 -0
- data/app/lib/primer/forms/caption.html.erb +16 -9
- data/app/lib/primer/forms/character_counter.d.ts +41 -0
- data/app/lib/primer/forms/character_counter.js +114 -0
- data/app/lib/primer/forms/character_counter.ts +129 -0
- data/app/lib/primer/forms/dsl/input.rb +23 -0
- data/app/lib/primer/forms/dsl/text_area_input.rb +12 -1
- data/app/lib/primer/forms/dsl/text_field_input.rb +10 -1
- data/app/lib/primer/forms/primer_text_area.d.ts +13 -0
- data/app/lib/primer/forms/primer_text_area.js +53 -0
- data/app/lib/primer/forms/primer_text_area.ts +37 -0
- data/app/lib/primer/forms/primer_text_field.d.ts +2 -0
- data/app/lib/primer/forms/primer_text_field.js +16 -2
- data/app/lib/primer/forms/primer_text_field.ts +16 -3
- data/app/lib/primer/forms/text_area.html.erb +6 -4
- data/app/lib/primer/forms/text_field.rb +8 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_menu_preview/submitting_forms.html.erb +1 -1
- data/previews/primer/alpha/text_area_preview.rb +23 -2
- data/previews/primer/alpha/text_field_preview.rb +28 -7
- data/previews/primer/alpha/tree_view_preview/loading_failure.html.erb +53 -1
- data/previews/primer/beta/avatar_stack_preview.rb +9 -0
- data/previews/primer/forms_preview/text_area_with_character_limit_form.html.erb +3 -0
- data/previews/primer/forms_preview/text_field_with_character_limit_form.html.erb +3 -0
- data/previews/primer/forms_preview.rb +6 -0
- data/static/arguments.json +18 -0
- data/static/form_previews.json +10 -0
- data/static/info_arch.json +109 -0
- data/static/previews.json +91 -0
- metadata +14 -2
|
@@ -29,8 +29,60 @@
|
|
|
29
29
|
const includeFragment = subject.querySelector('tree-view-include-fragment')
|
|
30
30
|
if (!includeFragment) return
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
function retryButton() {
|
|
33
|
+
return subject.querySelector("[data-target='tree-view-sub-tree-node.retryButton']")
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function focusTreeItem() {
|
|
37
|
+
const treeItem = subject.querySelector("[role='treeitem']")
|
|
38
|
+
if (treeItem) treeItem.focus()
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function makeRetryTabbable() {
|
|
42
|
+
const retry = retryButton()
|
|
43
|
+
if (!retry) return
|
|
44
|
+
// Remove tabindex="-1" so the button can be reached by keyboard.
|
|
45
|
+
retry.removeAttribute('tabindex')
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function addRetryFocusHandler() {
|
|
49
|
+
const retry = retryButton()
|
|
50
|
+
if (!retry) return
|
|
51
|
+
|
|
52
|
+
if (retry.dataset.focusHandlerAttached === "true") return
|
|
53
|
+
retry.dataset.focusHandlerAttached = "true"
|
|
54
|
+
|
|
55
|
+
retry.addEventListener('click', () => {
|
|
56
|
+
focusTreeItem()
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// When the failure UI loads, ensure Retry is tabbable
|
|
61
|
+
includeFragment.addEventListener('loadend', (_event) => {
|
|
62
|
+
makeRetryTabbable()
|
|
63
|
+
addRetryFocusHandler()
|
|
33
64
|
subject.setAttribute('data-ready', 'true')
|
|
34
65
|
})
|
|
66
|
+
|
|
67
|
+
// If include-fragment swaps in new markup on re-render, re-apply tabindex removal.
|
|
68
|
+
includeFragment.addEventListener('include-fragment-replaced', () => {
|
|
69
|
+
makeRetryTabbable()
|
|
70
|
+
addRetryFocusHandler()
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
// If Retry exists and the user presses Tab while focused inside this TreeView,
|
|
74
|
+
// redirect focus to Retry so it is reachable without requiring a mouse click.
|
|
75
|
+
subject.addEventListener('keydown', (event) => {
|
|
76
|
+
if (event.key !== 'Tab' || event.shiftKey) return
|
|
77
|
+
const active = document.activeElement
|
|
78
|
+
if (!(active instanceof HTMLElement)) return
|
|
79
|
+
if (!subject.contains(active)) return
|
|
80
|
+
if (active.getAttribute('role') !== 'treeitem') return
|
|
81
|
+
const retry = retryButton()
|
|
82
|
+
if (!retry) return
|
|
83
|
+
makeRetryTabbable()
|
|
84
|
+
event.preventDefault()
|
|
85
|
+
retry.focus()
|
|
86
|
+
})
|
|
35
87
|
})
|
|
36
88
|
</script>
|
|
@@ -99,6 +99,15 @@ module Primer
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
# @label With individual avatar tooltips
|
|
103
|
+
def with_individual_tooltips
|
|
104
|
+
render(Primer::Beta::AvatarStack.new) do |component|
|
|
105
|
+
component.with_avatar(src: Primer::ExampleImage::BASE64_SRC, alt: "@kittenuser", href: "https://github.com/user1", tooltip: "User 1")
|
|
106
|
+
component.with_avatar(src: Primer::ExampleImage::BASE64_SRC, alt: "@kittenuser", href: "https://github.com/user2", tooltip: "User 2")
|
|
107
|
+
component.with_avatar(src: Primer::ExampleImage::BASE64_SRC, alt: "@kittenuser", href: "https://github.com/user3", tooltip: "User 3")
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
102
111
|
# @label With disabled expand
|
|
103
112
|
def with_disabled_expand
|
|
104
113
|
render(Primer::Beta::AvatarStack.new(disable_expand: true)) do |component|
|
data/static/arguments.json
CHANGED
|
@@ -2846,6 +2846,12 @@
|
|
|
2846
2846
|
"default": "N/A",
|
|
2847
2847
|
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
|
2848
2848
|
},
|
|
2849
|
+
{
|
|
2850
|
+
"name": "character_limit",
|
|
2851
|
+
"type": "Number",
|
|
2852
|
+
"default": "N/A",
|
|
2853
|
+
"description": "Optional character limit for the input. If provided, a character counter will be displayed below the input."
|
|
2854
|
+
},
|
|
2849
2855
|
{
|
|
2850
2856
|
"name": "name",
|
|
2851
2857
|
"type": "String",
|
|
@@ -2976,6 +2982,12 @@
|
|
|
2976
2982
|
"default": "N/A",
|
|
2977
2983
|
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
|
2978
2984
|
},
|
|
2985
|
+
{
|
|
2986
|
+
"name": "character_limit",
|
|
2987
|
+
"type": "Number",
|
|
2988
|
+
"default": "N/A",
|
|
2989
|
+
"description": "Optional character limit for the input. If provided, a character counter will be displayed below the input."
|
|
2990
|
+
},
|
|
2979
2991
|
{
|
|
2980
2992
|
"name": "name",
|
|
2981
2993
|
"type": "String",
|
|
@@ -3914,6 +3926,12 @@
|
|
|
3914
3926
|
"default": "`nil`",
|
|
3915
3927
|
"description": "The URL to link to. If used, component will be wrapped by an `<a>` tag."
|
|
3916
3928
|
},
|
|
3929
|
+
{
|
|
3930
|
+
"name": "tooltip",
|
|
3931
|
+
"type": "String",
|
|
3932
|
+
"default": "`nil`",
|
|
3933
|
+
"description": "Tooltip text to display on hover when href is provided."
|
|
3934
|
+
},
|
|
3917
3935
|
{
|
|
3918
3936
|
"name": "system_arguments",
|
|
3919
3937
|
"type": "Hash",
|
data/static/form_previews.json
CHANGED
|
@@ -107,6 +107,16 @@
|
|
|
107
107
|
"preview_path": "primer/forms/auto_complete_form",
|
|
108
108
|
"name": "auto_complete_form",
|
|
109
109
|
"snapshot": "true"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"preview_path": "primer/forms/text_area_with_character_limit_form",
|
|
113
|
+
"name": "text_area_with_character_limit_form",
|
|
114
|
+
"snapshot": "true"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"preview_path": "primer/forms/text_field_with_character_limit_form",
|
|
118
|
+
"name": "text_field_with_character_limit_form",
|
|
119
|
+
"snapshot": "true"
|
|
110
120
|
}
|
|
111
121
|
]
|
|
112
122
|
}
|
data/static/info_arch.json
CHANGED
|
@@ -8584,6 +8584,12 @@
|
|
|
8584
8584
|
"default": "N/A",
|
|
8585
8585
|
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
|
8586
8586
|
},
|
|
8587
|
+
{
|
|
8588
|
+
"name": "character_limit",
|
|
8589
|
+
"type": "Number",
|
|
8590
|
+
"default": "N/A",
|
|
8591
|
+
"description": "Optional character limit for the input. If provided, a character counter will be displayed below the input."
|
|
8592
|
+
},
|
|
8587
8593
|
{
|
|
8588
8594
|
"name": "name",
|
|
8589
8595
|
"type": "String",
|
|
@@ -8812,6 +8818,45 @@
|
|
|
8812
8818
|
"color-contrast"
|
|
8813
8819
|
]
|
|
8814
8820
|
}
|
|
8821
|
+
},
|
|
8822
|
+
{
|
|
8823
|
+
"preview_path": "primer/alpha/text_area/with_character_limit",
|
|
8824
|
+
"name": "with_character_limit",
|
|
8825
|
+
"snapshot": "interactive",
|
|
8826
|
+
"skip_rules": {
|
|
8827
|
+
"wont_fix": [
|
|
8828
|
+
"region"
|
|
8829
|
+
],
|
|
8830
|
+
"will_fix": [
|
|
8831
|
+
"color-contrast"
|
|
8832
|
+
]
|
|
8833
|
+
}
|
|
8834
|
+
},
|
|
8835
|
+
{
|
|
8836
|
+
"preview_path": "primer/alpha/text_area/with_character_limit_over_limit",
|
|
8837
|
+
"name": "with_character_limit_over_limit",
|
|
8838
|
+
"snapshot": "interactive",
|
|
8839
|
+
"skip_rules": {
|
|
8840
|
+
"wont_fix": [
|
|
8841
|
+
"region"
|
|
8842
|
+
],
|
|
8843
|
+
"will_fix": [
|
|
8844
|
+
"color-contrast"
|
|
8845
|
+
]
|
|
8846
|
+
}
|
|
8847
|
+
},
|
|
8848
|
+
{
|
|
8849
|
+
"preview_path": "primer/alpha/text_area/with_character_limit_and_caption",
|
|
8850
|
+
"name": "with_character_limit_and_caption",
|
|
8851
|
+
"snapshot": "true",
|
|
8852
|
+
"skip_rules": {
|
|
8853
|
+
"wont_fix": [
|
|
8854
|
+
"region"
|
|
8855
|
+
],
|
|
8856
|
+
"will_fix": [
|
|
8857
|
+
"color-contrast"
|
|
8858
|
+
]
|
|
8859
|
+
}
|
|
8815
8860
|
}
|
|
8816
8861
|
],
|
|
8817
8862
|
"subcomponents": []
|
|
@@ -8842,6 +8887,12 @@
|
|
|
8842
8887
|
"default": "N/A",
|
|
8843
8888
|
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
|
8844
8889
|
},
|
|
8890
|
+
{
|
|
8891
|
+
"name": "character_limit",
|
|
8892
|
+
"type": "Number",
|
|
8893
|
+
"default": "N/A",
|
|
8894
|
+
"description": "Optional character limit for the input. If provided, a character counter will be displayed below the input."
|
|
8895
|
+
},
|
|
8845
8896
|
{
|
|
8846
8897
|
"name": "name",
|
|
8847
8898
|
"type": "String",
|
|
@@ -9288,6 +9339,45 @@
|
|
|
9288
9339
|
]
|
|
9289
9340
|
}
|
|
9290
9341
|
},
|
|
9342
|
+
{
|
|
9343
|
+
"preview_path": "primer/alpha/text_field/with_character_limit",
|
|
9344
|
+
"name": "with_character_limit",
|
|
9345
|
+
"snapshot": "interactive",
|
|
9346
|
+
"skip_rules": {
|
|
9347
|
+
"wont_fix": [
|
|
9348
|
+
"region"
|
|
9349
|
+
],
|
|
9350
|
+
"will_fix": [
|
|
9351
|
+
"color-contrast"
|
|
9352
|
+
]
|
|
9353
|
+
}
|
|
9354
|
+
},
|
|
9355
|
+
{
|
|
9356
|
+
"preview_path": "primer/alpha/text_field/with_character_limit_over_limit",
|
|
9357
|
+
"name": "with_character_limit_over_limit",
|
|
9358
|
+
"snapshot": "interactive",
|
|
9359
|
+
"skip_rules": {
|
|
9360
|
+
"wont_fix": [
|
|
9361
|
+
"region"
|
|
9362
|
+
],
|
|
9363
|
+
"will_fix": [
|
|
9364
|
+
"color-contrast"
|
|
9365
|
+
]
|
|
9366
|
+
}
|
|
9367
|
+
},
|
|
9368
|
+
{
|
|
9369
|
+
"preview_path": "primer/alpha/text_field/with_character_limit_and_caption",
|
|
9370
|
+
"name": "with_character_limit_and_caption",
|
|
9371
|
+
"snapshot": "true",
|
|
9372
|
+
"skip_rules": {
|
|
9373
|
+
"wont_fix": [
|
|
9374
|
+
"region"
|
|
9375
|
+
],
|
|
9376
|
+
"will_fix": [
|
|
9377
|
+
"color-contrast"
|
|
9378
|
+
]
|
|
9379
|
+
}
|
|
9380
|
+
},
|
|
9291
9381
|
{
|
|
9292
9382
|
"preview_path": "primer/alpha/text_field/with_auto_check_ok",
|
|
9293
9383
|
"name": "with_auto_check_ok",
|
|
@@ -11952,6 +12042,12 @@
|
|
|
11952
12042
|
"default": "`nil`",
|
|
11953
12043
|
"description": "The URL to link to. If used, component will be wrapped by an `<a>` tag."
|
|
11954
12044
|
},
|
|
12045
|
+
{
|
|
12046
|
+
"name": "tooltip",
|
|
12047
|
+
"type": "String",
|
|
12048
|
+
"default": "`nil`",
|
|
12049
|
+
"description": "Tooltip text to display on hover when href is provided."
|
|
12050
|
+
},
|
|
11955
12051
|
{
|
|
11956
12052
|
"name": "system_arguments",
|
|
11957
12053
|
"type": "Hash",
|
|
@@ -12318,6 +12414,19 @@
|
|
|
12318
12414
|
]
|
|
12319
12415
|
}
|
|
12320
12416
|
},
|
|
12417
|
+
{
|
|
12418
|
+
"preview_path": "primer/beta/avatar_stack/with_individual_tooltips",
|
|
12419
|
+
"name": "with_individual_tooltips",
|
|
12420
|
+
"snapshot": "false",
|
|
12421
|
+
"skip_rules": {
|
|
12422
|
+
"wont_fix": [
|
|
12423
|
+
"region"
|
|
12424
|
+
],
|
|
12425
|
+
"will_fix": [
|
|
12426
|
+
"color-contrast"
|
|
12427
|
+
]
|
|
12428
|
+
}
|
|
12429
|
+
},
|
|
12321
12430
|
{
|
|
12322
12431
|
"preview_path": "primer/beta/avatar_stack/with_disabled_expand",
|
|
12323
12432
|
"name": "with_disabled_expand",
|
data/static/previews.json
CHANGED
|
@@ -1470,6 +1470,19 @@
|
|
|
1470
1470
|
]
|
|
1471
1471
|
}
|
|
1472
1472
|
},
|
|
1473
|
+
{
|
|
1474
|
+
"preview_path": "primer/beta/avatar_stack/with_individual_tooltips",
|
|
1475
|
+
"name": "with_individual_tooltips",
|
|
1476
|
+
"snapshot": "false",
|
|
1477
|
+
"skip_rules": {
|
|
1478
|
+
"wont_fix": [
|
|
1479
|
+
"region"
|
|
1480
|
+
],
|
|
1481
|
+
"will_fix": [
|
|
1482
|
+
"color-contrast"
|
|
1483
|
+
]
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1473
1486
|
{
|
|
1474
1487
|
"preview_path": "primer/beta/avatar_stack/with_disabled_expand",
|
|
1475
1488
|
"name": "with_disabled_expand",
|
|
@@ -6976,6 +6989,45 @@
|
|
|
6976
6989
|
"color-contrast"
|
|
6977
6990
|
]
|
|
6978
6991
|
}
|
|
6992
|
+
},
|
|
6993
|
+
{
|
|
6994
|
+
"preview_path": "primer/alpha/text_area/with_character_limit",
|
|
6995
|
+
"name": "with_character_limit",
|
|
6996
|
+
"snapshot": "interactive",
|
|
6997
|
+
"skip_rules": {
|
|
6998
|
+
"wont_fix": [
|
|
6999
|
+
"region"
|
|
7000
|
+
],
|
|
7001
|
+
"will_fix": [
|
|
7002
|
+
"color-contrast"
|
|
7003
|
+
]
|
|
7004
|
+
}
|
|
7005
|
+
},
|
|
7006
|
+
{
|
|
7007
|
+
"preview_path": "primer/alpha/text_area/with_character_limit_over_limit",
|
|
7008
|
+
"name": "with_character_limit_over_limit",
|
|
7009
|
+
"snapshot": "interactive",
|
|
7010
|
+
"skip_rules": {
|
|
7011
|
+
"wont_fix": [
|
|
7012
|
+
"region"
|
|
7013
|
+
],
|
|
7014
|
+
"will_fix": [
|
|
7015
|
+
"color-contrast"
|
|
7016
|
+
]
|
|
7017
|
+
}
|
|
7018
|
+
},
|
|
7019
|
+
{
|
|
7020
|
+
"preview_path": "primer/alpha/text_area/with_character_limit_and_caption",
|
|
7021
|
+
"name": "with_character_limit_and_caption",
|
|
7022
|
+
"snapshot": "true",
|
|
7023
|
+
"skip_rules": {
|
|
7024
|
+
"wont_fix": [
|
|
7025
|
+
"region"
|
|
7026
|
+
],
|
|
7027
|
+
"will_fix": [
|
|
7028
|
+
"color-contrast"
|
|
7029
|
+
]
|
|
7030
|
+
}
|
|
6979
7031
|
}
|
|
6980
7032
|
]
|
|
6981
7033
|
},
|
|
@@ -7271,6 +7323,45 @@
|
|
|
7271
7323
|
]
|
|
7272
7324
|
}
|
|
7273
7325
|
},
|
|
7326
|
+
{
|
|
7327
|
+
"preview_path": "primer/alpha/text_field/with_character_limit",
|
|
7328
|
+
"name": "with_character_limit",
|
|
7329
|
+
"snapshot": "interactive",
|
|
7330
|
+
"skip_rules": {
|
|
7331
|
+
"wont_fix": [
|
|
7332
|
+
"region"
|
|
7333
|
+
],
|
|
7334
|
+
"will_fix": [
|
|
7335
|
+
"color-contrast"
|
|
7336
|
+
]
|
|
7337
|
+
}
|
|
7338
|
+
},
|
|
7339
|
+
{
|
|
7340
|
+
"preview_path": "primer/alpha/text_field/with_character_limit_over_limit",
|
|
7341
|
+
"name": "with_character_limit_over_limit",
|
|
7342
|
+
"snapshot": "interactive",
|
|
7343
|
+
"skip_rules": {
|
|
7344
|
+
"wont_fix": [
|
|
7345
|
+
"region"
|
|
7346
|
+
],
|
|
7347
|
+
"will_fix": [
|
|
7348
|
+
"color-contrast"
|
|
7349
|
+
]
|
|
7350
|
+
}
|
|
7351
|
+
},
|
|
7352
|
+
{
|
|
7353
|
+
"preview_path": "primer/alpha/text_field/with_character_limit_and_caption",
|
|
7354
|
+
"name": "with_character_limit_and_caption",
|
|
7355
|
+
"snapshot": "true",
|
|
7356
|
+
"skip_rules": {
|
|
7357
|
+
"wont_fix": [
|
|
7358
|
+
"region"
|
|
7359
|
+
],
|
|
7360
|
+
"will_fix": [
|
|
7361
|
+
"color-contrast"
|
|
7362
|
+
]
|
|
7363
|
+
}
|
|
7364
|
+
},
|
|
7274
7365
|
{
|
|
7275
7366
|
"preview_path": "primer/alpha/text_field/with_auto_check_ok",
|
|
7276
7367
|
"name": "with_auto_check_ok",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: primer_view_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.49.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub Open Source
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionview
|
|
@@ -112,7 +112,9 @@ files:
|
|
|
112
112
|
- app/assets/javascripts/components/primer/scrollable_region.d.ts
|
|
113
113
|
- app/assets/javascripts/components/primer/shared_events.d.ts
|
|
114
114
|
- app/assets/javascripts/components/primer/utils.d.ts
|
|
115
|
+
- app/assets/javascripts/lib/primer/forms/character_counter.d.ts
|
|
115
116
|
- app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts
|
|
117
|
+
- app/assets/javascripts/lib/primer/forms/primer_text_area.d.ts
|
|
116
118
|
- app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts
|
|
117
119
|
- app/assets/javascripts/lib/primer/forms/toggle_switch_input.d.ts
|
|
118
120
|
- app/assets/javascripts/primer_view_components.js
|
|
@@ -615,7 +617,9 @@ files:
|
|
|
615
617
|
- app/forms/select_form.rb
|
|
616
618
|
- app/forms/single_text_field_form.rb
|
|
617
619
|
- app/forms/submit_button_form.rb
|
|
620
|
+
- app/forms/text_area_with_character_limit_form.rb
|
|
618
621
|
- app/forms/text_field_and_checkbox_form.rb
|
|
622
|
+
- app/forms/text_field_with_character_limit_form.rb
|
|
619
623
|
- app/helpers/primer/form_helper.rb
|
|
620
624
|
- app/lib/primer/attributes_helper.rb
|
|
621
625
|
- app/lib/primer/audited/dsl.rb
|
|
@@ -643,6 +647,9 @@ files:
|
|
|
643
647
|
- app/lib/primer/forms/button.rb
|
|
644
648
|
- app/lib/primer/forms/caption.html.erb
|
|
645
649
|
- app/lib/primer/forms/caption.rb
|
|
650
|
+
- app/lib/primer/forms/character_counter.d.ts
|
|
651
|
+
- app/lib/primer/forms/character_counter.js
|
|
652
|
+
- app/lib/primer/forms/character_counter.ts
|
|
646
653
|
- app/lib/primer/forms/check_box.html.erb
|
|
647
654
|
- app/lib/primer/forms/check_box.rb
|
|
648
655
|
- app/lib/primer/forms/check_box_group.html.erb
|
|
@@ -683,6 +690,9 @@ files:
|
|
|
683
690
|
- app/lib/primer/forms/primer_multi_input.d.ts
|
|
684
691
|
- app/lib/primer/forms/primer_multi_input.js
|
|
685
692
|
- app/lib/primer/forms/primer_multi_input.ts
|
|
693
|
+
- app/lib/primer/forms/primer_text_area.d.ts
|
|
694
|
+
- app/lib/primer/forms/primer_text_area.js
|
|
695
|
+
- app/lib/primer/forms/primer_text_area.ts
|
|
686
696
|
- app/lib/primer/forms/primer_text_field.d.ts
|
|
687
697
|
- app/lib/primer/forms/primer_text_field.js
|
|
688
698
|
- app/lib/primer/forms/primer_text_field.ts
|
|
@@ -1060,7 +1070,9 @@ files:
|
|
|
1060
1070
|
- previews/primer/forms_preview/select_form.html.erb
|
|
1061
1071
|
- previews/primer/forms_preview/single_text_field_form.html.erb
|
|
1062
1072
|
- previews/primer/forms_preview/submit_button_form.html.erb
|
|
1073
|
+
- previews/primer/forms_preview/text_area_with_character_limit_form.html.erb
|
|
1063
1074
|
- previews/primer/forms_preview/text_field_and_checkbox_form.html.erb
|
|
1075
|
+
- previews/primer/forms_preview/text_field_with_character_limit_form.html.erb
|
|
1064
1076
|
- previews/primer/url_helpers.rb
|
|
1065
1077
|
- static/arguments.json
|
|
1066
1078
|
- static/assets/view-components.svg
|