marko 5.25.7 → 5.25.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tags-html.d.ts +61 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.25.7",
3
+ "version": "5.25.8",
4
4
  "license": "MIT",
5
5
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
6
6
  "dependencies": {
package/tags-html.d.ts CHANGED
@@ -1050,7 +1050,7 @@ declare global {
1050
1050
  * Specifies whether the input field should have autocomplete enabled or disabled.
1051
1051
  * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1052
1052
  */
1053
- autocomplete?: AttrOnOff;
1053
+ autocomplete?: AttrAutoComplete;
1054
1054
 
1055
1055
  /**
1056
1056
  * Indicates whether a file input should use a specific capture method.
@@ -1132,7 +1132,7 @@ declare global {
1132
1132
  * The maximum allowed value for the input.
1133
1133
  * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1134
1134
  */
1135
- max?: AttrString;
1135
+ max?: AttrStringOrNumber;
1136
1136
 
1137
1137
  /**
1138
1138
  * The maximum number of characters allowed in the input.
@@ -1144,7 +1144,7 @@ declare global {
1144
1144
  * The minimum allowed value for the input.
1145
1145
  * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1146
1146
  */
1147
- min?: AttrString;
1147
+ min?: AttrStringOrNumber;
1148
1148
 
1149
1149
  /**
1150
1150
  * The minimum number of characters required in the input.
@@ -1175,7 +1175,7 @@ declare global {
1175
1175
  * A short hint to display in the input field before the user enters a value.
1176
1176
  * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1177
1177
  */
1178
- placeholder?: AttrString;
1178
+ placeholder?: AttrStringOrNumber;
1179
1179
 
1180
1180
  /**
1181
1181
  * Specifies the target element for the popover.
@@ -1217,7 +1217,7 @@ declare global {
1217
1217
  * Specifies the allowed number intervals for the input value.
1218
1218
  * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1219
1219
  */
1220
- step?: AttrString;
1220
+ step?: AttrStringOrNumber;
1221
1221
 
1222
1222
  /**
1223
1223
  * Controls the data type (and associated control) of the element.
@@ -1779,7 +1779,7 @@ declare global {
1779
1779
  * Controls whether the browser should automatically complete the value for the select.
1780
1780
  * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1781
1781
  */
1782
- autocomplete?: AttrOnOff;
1782
+ autocomplete?: AttrAutoComplete;
1783
1783
 
1784
1784
  /**
1785
1785
  * Indicates whether the select element should be disabled or not.
@@ -1987,7 +1987,7 @@ declare global {
1987
1987
  * Helps browsers autofill the user's input based on previous entries.
1988
1988
  * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1989
1989
  */
1990
- autocomplete?: AttrOnOff;
1990
+ autocomplete?: AttrAutoComplete;
1991
1991
 
1992
1992
  /**
1993
1993
  * (Safari only). Controls the autocorrect behavior of the <textarea> element.
@@ -3749,33 +3749,60 @@ type AttrBooleanString = AttrMissing | "false" | "true";
3749
3749
  type AttrYesNoString = AttrMissing | "no" | "yes";
3750
3750
  type AttrTriState = AttrBooleanString | "mixed";
3751
3751
  type AttrOnOff = AttrMissing | "on" | "off";
3752
+ type AttrAutoComplete =
3753
+ | AttrOnOff
3754
+ | "shipping"
3755
+ | "billing"
3756
+ | "name"
3757
+ | "honorific-prefix"
3758
+ | "given-name"
3759
+ | "additional-name"
3760
+ | "family-name"
3761
+ | "honorific-suffix"
3762
+ | "nickname"
3763
+ | "username"
3764
+ | "new-password"
3765
+ | "current-password"
3766
+ | "one-time-code"
3767
+ | "organization-title"
3768
+ | "organization"
3769
+ | "street-address"
3770
+ | "address-line1"
3771
+ | "address-line2"
3772
+ | "address-line3"
3773
+ | "address-level4"
3774
+ | "address-level3"
3775
+ | "address-level2"
3776
+ | "address-level1"
3777
+ | "country"
3778
+ | "country-name"
3779
+ | "postal-code"
3780
+ | "cc-name"
3781
+ | "cc-given-name"
3782
+ | "cc-additional-name"
3783
+ | "cc-family-name"
3784
+ | "cc-number"
3785
+ | "cc-exp"
3786
+ | "cc-exp-month"
3787
+ | "cc-exp-year"
3788
+ | "cc-csc"
3789
+ | "cc-type"
3790
+ | "transaction-currency"
3791
+ | "transaction-amount"
3792
+ | "language"
3793
+ | "bday"
3794
+ | "bday-day"
3795
+ | "bday-month"
3796
+ | "bday-year"
3797
+ | "sex"
3798
+ | "url"
3799
+ | "photo"
3800
+ | "home"
3801
+ | "work"
3802
+ | "mobile"
3803
+ | "fax"
3804
+ | "pager"
3805
+ | (string & {});
3752
3806
  type Tag<Input> = Input extends Marko.HTMLAttributes<infer Element>
3753
3807
  ? Marko.NativeTag<Input, Element>
3754
3808
  : never;
3755
- type UpperCaseChar =
3756
- | "A"
3757
- | "B"
3758
- | "C"
3759
- | "D"
3760
- | "E"
3761
- | "F"
3762
- | "G"
3763
- | "H"
3764
- | "I"
3765
- | "J"
3766
- | "K"
3767
- | "L"
3768
- | "M"
3769
- | "N"
3770
- | "O"
3771
- | "P"
3772
- | "Q"
3773
- | "R"
3774
- | "S"
3775
- | "T"
3776
- | "U"
3777
- | "V"
3778
- | "W"
3779
- | "X"
3780
- | "Y"
3781
- | "Z";