@twentyfirstmedia/elements 0.2.0 → 0.3.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.
@@ -40,6 +40,14 @@
40
40
  {
41
41
  "name": "motion",
42
42
  "description": "Motion level for everything inside (sets `data-motion`): `\"standard\"` (default), `\"expressive\"` for orchestrated page entrances, or `\"off\"`, e.g. for a setting in your app. The reader's reduced-motion setting always turns motion off. (Motion)"
43
+ },
44
+ {
45
+ "name": "locale",
46
+ "description": "BCP 47 locale for the numbers, money, percentages and dates components show (`\"de-DE\"`). Default `\"en-US\"`; a nested provider keeps its parent's locale unless it sets its own. (string)"
47
+ },
48
+ {
49
+ "name": "messages",
50
+ "description": "Your own text for any built-in string: accessible names, button texts, placeholders, status words (`{ close: \"Schließen\", selectedCount: (n) => \\`${n} ausgewählt\\` }`). Partial: what you leave out stays English (or what an outer provider set). Props such as `title` or `label` on a component still win. See `DEFAULT_STRINGS` for every key. (UIMessages)"
43
51
  }
44
52
  ],
45
53
  "references": [
@@ -3119,6 +3127,11 @@
3119
3127
  {
3120
3128
  "name": "cta",
3121
3129
  "description": "(string)"
3130
+ },
3131
+ {
3132
+ "name": "disabled",
3133
+ "description": "Disable the button, e.g. while a checkout starts or when the plan cannot be picked. (boolean)",
3134
+ "valueSet": "v"
3122
3135
  }
3123
3136
  ],
3124
3137
  "references": [
@@ -4306,7 +4319,7 @@
4306
4319
  "attributes": [
4307
4320
  {
4308
4321
  "name": "type",
4309
- "description": "(string)"
4322
+ "description": "Input type (`\"text\"` by default): `\"email\"`, `\"number\"`, `\"tel\"`, `\"url\"`, `\"password\"` … (string)"
4310
4323
  },
4311
4324
  {
4312
4325
  "name": "icon",
@@ -4333,10 +4346,74 @@
4333
4346
  "description": "(boolean)",
4334
4347
  "valueSet": "v"
4335
4348
  },
4349
+ {
4350
+ "name": "read-only",
4351
+ "description": "(boolean)",
4352
+ "valueSet": "v"
4353
+ },
4336
4354
  {
4337
4355
  "name": "auto-complete",
4338
4356
  "description": "(string)"
4339
4357
  },
4358
+ {
4359
+ "name": "auto-focus",
4360
+ "description": "(boolean)",
4361
+ "valueSet": "v"
4362
+ },
4363
+ {
4364
+ "name": "min",
4365
+ "description": "Smallest value for `type=\"number\"`, `\"date\"` and the like (native `min`). (number | string)"
4366
+ },
4367
+ {
4368
+ "name": "max",
4369
+ "description": "Largest value (native `max`). (number | string)"
4370
+ },
4371
+ {
4372
+ "name": "step",
4373
+ "description": "Step between valid values (native `step`), e.g. `1` for whole numbers or `\"any\"`. (number | string)"
4374
+ },
4375
+ {
4376
+ "name": "min-length",
4377
+ "description": "Fewest characters (native `minlength`). (number)"
4378
+ },
4379
+ {
4380
+ "name": "max-length",
4381
+ "description": "Most characters (native `maxlength`). (number)"
4382
+ },
4383
+ {
4384
+ "name": "pattern",
4385
+ "description": "Pattern the value must match (native `pattern`). (string)"
4386
+ },
4387
+ {
4388
+ "name": "input-mode",
4389
+ "description": "Virtual keyboard on touch devices (native `inputmode`), e.g. `\"numeric\"` or `\"decimal\"`. (\"none\" | \"text\" | \"tel\" | \"url\" | \"email\" | \"numeric\" | \"decimal\" | \"search\")",
4390
+ "values": [
4391
+ {
4392
+ "name": "none"
4393
+ },
4394
+ {
4395
+ "name": "text"
4396
+ },
4397
+ {
4398
+ "name": "tel"
4399
+ },
4400
+ {
4401
+ "name": "url"
4402
+ },
4403
+ {
4404
+ "name": "email"
4405
+ },
4406
+ {
4407
+ "name": "numeric"
4408
+ },
4409
+ {
4410
+ "name": "decimal"
4411
+ },
4412
+ {
4413
+ "name": "search"
4414
+ }
4415
+ ]
4416
+ },
4340
4417
  {
4341
4418
  "name": "name",
4342
4419
  "description": "Field name inside a `Form`: the field shows that name's validation message. (string)"
@@ -4765,11 +4842,16 @@
4765
4842
  },
4766
4843
  {
4767
4844
  "name": "tf-file-drop",
4768
- "description": "Dashed drop zone plus an upload list with progress.",
4845
+ "description": "Dashed drop zone plus an upload list.",
4769
4846
  "attributes": [
4770
4847
  {
4771
4848
  "name": "files",
4772
- "description": "(UploadFile[])"
4849
+ "description": "The listed files (controlled); set `progress` per file to show real upload progress. (UploadFile[])"
4850
+ },
4851
+ {
4852
+ "name": "simulate-progress",
4853
+ "description": "Animate made-up progress for added files, as a demo of the look. Default: on without `onFiles` (as before), off with it. (boolean)",
4854
+ "valueSet": "v"
4773
4855
  },
4774
4856
  {
4775
4857
  "name": "title",
@@ -4781,7 +4863,7 @@
4781
4863
  },
4782
4864
  {
4783
4865
  "name": "accept",
4784
- "description": "(string)"
4866
+ "description": "Accepted types, as for `<input type=\"file\">` (\"image/*,.pdf\"); also checked on drop. (string)"
4785
4867
  },
4786
4868
  {
4787
4869
  "name": "multiple",
@@ -4851,13 +4933,16 @@
4851
4933
  },
4852
4934
  {
4853
4935
  "name": "type",
4854
- "description": "(\"button\" | \"submit\")",
4936
+ "description": "(\"button\" | \"submit\" | \"reset\")",
4855
4937
  "values": [
4856
4938
  {
4857
4939
  "name": "button"
4858
4940
  },
4859
4941
  {
4860
4942
  "name": "submit"
4943
+ },
4944
+ {
4945
+ "name": "reset"
4861
4946
  }
4862
4947
  ]
4863
4948
  },
@@ -4865,6 +4950,63 @@
4865
4950
  "name": "as-child",
4866
4951
  "description": "Render the single child element (a link, a router Link) with the button's look instead of a <button>. (boolean)",
4867
4952
  "valueSet": "v"
4953
+ },
4954
+ {
4955
+ "name": "name",
4956
+ "description": "Form field name and value, sent with the form when this button submits it. (string)"
4957
+ },
4958
+ {
4959
+ "name": "value",
4960
+ "description": "(string)"
4961
+ },
4962
+ {
4963
+ "name": "form",
4964
+ "description": "The id of the form this button belongs to, when it sits outside it. (string)"
4965
+ },
4966
+ {
4967
+ "name": "title",
4968
+ "description": "(string)"
4969
+ },
4970
+ {
4971
+ "name": "tab-index",
4972
+ "description": "(number)"
4973
+ },
4974
+ {
4975
+ "name": "auto-focus",
4976
+ "description": "(boolean)",
4977
+ "valueSet": "v"
4978
+ },
4979
+ {
4980
+ "name": "aria-label",
4981
+ "description": "(string)"
4982
+ },
4983
+ {
4984
+ "name": "aria-labelledby",
4985
+ "description": "(string)"
4986
+ },
4987
+ {
4988
+ "name": "aria-describedby",
4989
+ "description": "(string)"
4990
+ },
4991
+ {
4992
+ "name": "aria-expanded",
4993
+ "description": "For disclosure and menu triggers: whether what the button controls is open. (boolean | \"true\" | \"false\")"
4994
+ },
4995
+ {
4996
+ "name": "aria-controls",
4997
+ "description": "(string)"
4998
+ },
4999
+ {
5000
+ "name": "aria-haspopup",
5001
+ "description": "(boolean | \"true\" | \"false\" | \"menu\" | \"listbox\" | \"tree\" | \"grid\" | \"dialog\")"
5002
+ },
5003
+ {
5004
+ "name": "aria-pressed",
5005
+ "description": "For toggle buttons. (boolean | \"true\" | \"false\" | \"mixed\")"
5006
+ },
5007
+ {
5008
+ "name": "aria-current",
5009
+ "description": "(boolean | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\" | \"time\")"
4868
5010
  }
4869
5011
  ],
4870
5012
  "references": [
@@ -4884,7 +5026,7 @@
4884
5026
  },
4885
5027
  {
4886
5028
  "name": "label",
4887
- "description": "(string)"
5029
+ "description": "Accessible name and tooltip (`aria-label` and `title`); `aria-label` or `title` override them. (string)"
4888
5030
  },
4889
5031
  {
4890
5032
  "name": "variant",
@@ -4919,6 +5061,21 @@
4919
5061
  }
4920
5062
  ]
4921
5063
  },
5064
+ {
5065
+ "name": "type",
5066
+ "description": "(\"button\" | \"submit\" | \"reset\")",
5067
+ "values": [
5068
+ {
5069
+ "name": "button"
5070
+ },
5071
+ {
5072
+ "name": "submit"
5073
+ },
5074
+ {
5075
+ "name": "reset"
5076
+ }
5077
+ ]
5078
+ },
4922
5079
  {
4923
5080
  "name": "disabled",
4924
5081
  "description": "(boolean)",
@@ -4928,6 +5085,63 @@
4928
5085
  "name": "as-child",
4929
5086
  "description": "Render the single child element (a link) with the button's look; the icon is placed inside it. (boolean)",
4930
5087
  "valueSet": "v"
5088
+ },
5089
+ {
5090
+ "name": "name",
5091
+ "description": "Form field name and value, sent with the form when this button submits it. (string)"
5092
+ },
5093
+ {
5094
+ "name": "value",
5095
+ "description": "(string)"
5096
+ },
5097
+ {
5098
+ "name": "form",
5099
+ "description": "The id of the form this button belongs to, when it sits outside it. (string)"
5100
+ },
5101
+ {
5102
+ "name": "title",
5103
+ "description": "(string)"
5104
+ },
5105
+ {
5106
+ "name": "tab-index",
5107
+ "description": "(number)"
5108
+ },
5109
+ {
5110
+ "name": "auto-focus",
5111
+ "description": "(boolean)",
5112
+ "valueSet": "v"
5113
+ },
5114
+ {
5115
+ "name": "aria-label",
5116
+ "description": "(string)"
5117
+ },
5118
+ {
5119
+ "name": "aria-labelledby",
5120
+ "description": "(string)"
5121
+ },
5122
+ {
5123
+ "name": "aria-describedby",
5124
+ "description": "(string)"
5125
+ },
5126
+ {
5127
+ "name": "aria-expanded",
5128
+ "description": "For disclosure and menu triggers: whether what the button controls is open. (boolean | \"true\" | \"false\")"
5129
+ },
5130
+ {
5131
+ "name": "aria-controls",
5132
+ "description": "(string)"
5133
+ },
5134
+ {
5135
+ "name": "aria-haspopup",
5136
+ "description": "(boolean | \"true\" | \"false\" | \"menu\" | \"listbox\" | \"tree\" | \"grid\" | \"dialog\")"
5137
+ },
5138
+ {
5139
+ "name": "aria-pressed",
5140
+ "description": "For toggle buttons. (boolean | \"true\" | \"false\" | \"mixed\")"
5141
+ },
5142
+ {
5143
+ "name": "aria-current",
5144
+ "description": "(boolean | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\" | \"time\")"
4931
5145
  }
4932
5146
  ],
4933
5147
  "references": [
@@ -5229,6 +5443,10 @@
5229
5443
  "name": "placeholder",
5230
5444
  "description": "(string)"
5231
5445
  },
5446
+ {
5447
+ "name": "label",
5448
+ "description": "Accessible name (default: the placeholder, or \"Search\"). (string)"
5449
+ },
5232
5450
  {
5233
5451
  "name": "shortcut",
5234
5452
  "description": "(string)"
@@ -5592,6 +5810,22 @@
5592
5810
  "name": "items",
5593
5811
  "description": "(GalleryItem[])"
5594
5812
  },
5813
+ {
5814
+ "name": "loading",
5815
+ "description": "Loading of the main image: `\"lazy\"` (default) waits until the gallery is near the viewport; use `\"eager\"` for a gallery at the top of the page. Thumbnails always load lazily. (\"lazy\" | \"eager\")",
5816
+ "values": [
5817
+ {
5818
+ "name": "lazy"
5819
+ },
5820
+ {
5821
+ "name": "eager"
5822
+ }
5823
+ ]
5824
+ },
5825
+ {
5826
+ "name": "referrer-policy",
5827
+ "description": "`referrerPolicy` of every image, e.g. `\"no-referrer\"` for photos from other hosts. (ImageReferrerPolicy)"
5828
+ },
5595
5829
  {
5596
5830
  "name": "start",
5597
5831
  "description": "(number)"
@@ -5649,6 +5883,26 @@
5649
5883
  {
5650
5884
  "name": "after-label",
5651
5885
  "description": "(string)"
5886
+ },
5887
+ {
5888
+ "name": "label",
5889
+ "description": "Accessible name of the slider (default \"Compare before and after\"). (string)"
5890
+ },
5891
+ {
5892
+ "name": "loading",
5893
+ "description": "Loading of both images (default `\"lazy\"`). (\"lazy\" | \"eager\")",
5894
+ "values": [
5895
+ {
5896
+ "name": "lazy"
5897
+ },
5898
+ {
5899
+ "name": "eager"
5900
+ }
5901
+ ]
5902
+ },
5903
+ {
5904
+ "name": "referrer-policy",
5905
+ "description": "`referrerPolicy` of both images. (ImageReferrerPolicy)"
5652
5906
  }
5653
5907
  ],
5654
5908
  "references": [
@@ -5717,11 +5971,15 @@
5717
5971
  "attributes": [
5718
5972
  {
5719
5973
  "name": "total",
5720
- "description": "(number)"
5974
+ "description": "Number of pages. (number)"
5721
5975
  },
5722
5976
  {
5723
5977
  "name": "page",
5724
- "description": "(number)"
5978
+ "description": "The current page (1-based). Controlled together with `onChange`; without `onChange` it is only the start page, as in earlier versions (prefer `defaultPage` for that). (number)"
5979
+ },
5980
+ {
5981
+ "name": "default-page",
5982
+ "description": "Start page when uncontrolled (default 1). (number)"
5725
5983
  }
5726
5984
  ],
5727
5985
  "references": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twentyfirstmedia/elements",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Every Twentyfirst UI component as a custom element: <tf-button>, <tf-data-table> … for plain HTML, Vue, Svelte, Angular, Astro and server templates.",
5
5
  "license": "MIT",
6
6
  "author": "Twentyfirst Media (https://twentyfirst.media)",
@@ -54,7 +54,7 @@
54
54
  "dist"
55
55
  ],
56
56
  "devDependencies": {
57
- "@twentyfirstmedia/ui-core": "0.2.0",
57
+ "@twentyfirstmedia/ui-core": "0.3.0",
58
58
  "@types/node": "26.6.6",
59
59
  "@types/react": "19.3.0",
60
60
  "@types/react-dom": "19.3.0",