@raylang/elements 0.5.1 → 0.6.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.
@@ -45,24 +45,7 @@
45
45
  },
46
46
  {
47
47
  "name": "size",
48
- "description": "Height, padding and font size.",
49
- "values": [
50
- {
51
- "name": "xs"
52
- },
53
- {
54
- "name": "sm"
55
- },
56
- {
57
- "name": "md"
58
- },
59
- {
60
- "name": "lg"
61
- },
62
- {
63
- "name": "xl"
64
- }
65
- ]
48
+ "description": "Height, padding and font size: xs…xl or any CSS length (the padding and the font follow)."
66
49
  },
67
50
  {
68
51
  "name": "radius",
@@ -211,24 +194,7 @@
211
194
  },
212
195
  {
213
196
  "name": "size",
214
- "description": "Width and height.",
215
- "values": [
216
- {
217
- "name": "xs"
218
- },
219
- {
220
- "name": "sm"
221
- },
222
- {
223
- "name": "md"
224
- },
225
- {
226
- "name": "lg"
227
- },
228
- {
229
- "name": "xl"
230
- }
231
- ]
197
+ "description": "Width and height: xs…xl or any CSS length (\"5.5rem\": a big main action, round with radius=full); the icon scales with it."
232
198
  },
233
199
  {
234
200
  "name": "disabled",
@@ -351,24 +317,7 @@
351
317
  },
352
318
  {
353
319
  "name": "size",
354
- "description": "Height, padding and font size.",
355
- "values": [
356
- {
357
- "name": "xs"
358
- },
359
- {
360
- "name": "sm"
361
- },
362
- {
363
- "name": "md"
364
- },
365
- {
366
- "name": "lg"
367
- },
368
- {
369
- "name": "xl"
370
- }
371
- ]
320
+ "description": "Height, padding and font size: xs…xl or any CSS length (the padding and the font follow)."
372
321
  },
373
322
  {
374
323
  "name": "radius",
@@ -563,6 +512,11 @@
563
512
  "name": "ray-checkbox",
564
513
  "description": "A checkbox with label, description and error. Submits value when checked.",
565
514
  "attributes": [
515
+ {
516
+ "name": "checked",
517
+ "description": "Current state. The checked attribute is the initial state (restored on reset).",
518
+ "valueSet": "v"
519
+ },
566
520
  {
567
521
  "name": "indeterminate",
568
522
  "description": "Mixed state; cleared on the next user change.",
@@ -646,6 +600,42 @@
646
600
  "name": "left"
647
601
  }
648
602
  ]
603
+ },
604
+ {
605
+ "name": "radius",
606
+ "description": "Corner radius.",
607
+ "values": [
608
+ {
609
+ "name": "xs"
610
+ },
611
+ {
612
+ "name": "sm"
613
+ },
614
+ {
615
+ "name": "md"
616
+ },
617
+ {
618
+ "name": "lg"
619
+ },
620
+ {
621
+ "name": "xl"
622
+ },
623
+ {
624
+ "name": "full"
625
+ }
626
+ ]
627
+ },
628
+ {
629
+ "name": "description-position",
630
+ "description": "Description before or after the control.",
631
+ "values": [
632
+ {
633
+ "name": "above"
634
+ },
635
+ {
636
+ "name": "below"
637
+ }
638
+ ]
649
639
  }
650
640
  ]
651
641
  },
@@ -653,6 +643,10 @@
653
643
  "name": "ray-checkbox-group",
654
644
  "description": "The group is the form control: one entry per checked value under name (like checkboxes sharing a name); the checkboxes inside lose their own name. It stops their change events and fires its own. role=\"group\" named by its label.",
655
645
  "attributes": [
646
+ {
647
+ "name": "value",
648
+ "description": "The checked values. The value attribute: \"a,b\"."
649
+ },
656
650
  {
657
651
  "name": "name",
658
652
  "description": "Form field name."
@@ -918,6 +912,10 @@
918
912
  "name": "ray-combobox",
919
913
  "description": "The WAI-ARIA combobox pattern (a text field with a listbox popup; the active option is aria-activedescendant). Arrows move, Enter picks, Escape closes (then clears with clearable), Backspace in an empty field removes the last chip. The form gets one entry per value.",
920
914
  "attributes": [
915
+ {
916
+ "name": "value",
917
+ "description": "The chosen value; an array with multiple. The value attribute: \"a,b\" with multiple."
918
+ },
921
919
  {
922
920
  "name": "multiple",
923
921
  "description": "Several values, shown as chips.",
@@ -953,6 +951,104 @@
953
951
  "name": "open",
954
952
  "description": "The dropdown is shown.",
955
953
  "valueSet": "v"
954
+ },
955
+ {
956
+ "name": "name",
957
+ "description": "Form field name."
958
+ },
959
+ {
960
+ "name": "label",
961
+ "description": "Visible label (also the accessible name)."
962
+ },
963
+ {
964
+ "name": "description",
965
+ "description": "Help text."
966
+ },
967
+ {
968
+ "name": "error",
969
+ "description": "Error text; marks the field invalid."
970
+ },
971
+ {
972
+ "name": "required",
973
+ "description": "Required for form submission.",
974
+ "valueSet": "v"
975
+ },
976
+ {
977
+ "name": "disabled",
978
+ "description": "Not interactive nor submitted.",
979
+ "valueSet": "v"
980
+ },
981
+ {
982
+ "name": "size",
983
+ "description": "Size.",
984
+ "values": [
985
+ {
986
+ "name": "xs"
987
+ },
988
+ {
989
+ "name": "sm"
990
+ },
991
+ {
992
+ "name": "md"
993
+ },
994
+ {
995
+ "name": "lg"
996
+ },
997
+ {
998
+ "name": "xl"
999
+ }
1000
+ ]
1001
+ },
1002
+ {
1003
+ "name": "radius",
1004
+ "description": "Corner radius.",
1005
+ "values": [
1006
+ {
1007
+ "name": "xs"
1008
+ },
1009
+ {
1010
+ "name": "sm"
1011
+ },
1012
+ {
1013
+ "name": "md"
1014
+ },
1015
+ {
1016
+ "name": "lg"
1017
+ },
1018
+ {
1019
+ "name": "xl"
1020
+ },
1021
+ {
1022
+ "name": "full"
1023
+ }
1024
+ ]
1025
+ },
1026
+ {
1027
+ "name": "variant",
1028
+ "description": "Box style.",
1029
+ "values": [
1030
+ {
1031
+ "name": "default"
1032
+ },
1033
+ {
1034
+ "name": "filled"
1035
+ },
1036
+ {
1037
+ "name": "unstyled"
1038
+ }
1039
+ ]
1040
+ },
1041
+ {
1042
+ "name": "description-position",
1043
+ "description": "Description before or after the control.",
1044
+ "values": [
1045
+ {
1046
+ "name": "above"
1047
+ },
1048
+ {
1049
+ "name": "below"
1050
+ }
1051
+ ]
956
1052
  }
957
1053
  ]
958
1054
  },
@@ -1507,6 +1603,18 @@
1507
1603
  }
1508
1604
  ]
1509
1605
  },
1606
+ {
1607
+ "name": "format",
1608
+ "description": "duration: the value is seconds, shown and typed as m:ss (h:mm:ss when min or max reaches an hour; a plain number is seconds); aria-valuetext says \"3 minutes, 15 seconds\" in the page's language. decimals, prefix, suffix and the separators do not apply.",
1609
+ "values": [
1610
+ {
1611
+ "name": "number"
1612
+ },
1613
+ {
1614
+ "name": "duration"
1615
+ }
1616
+ ]
1617
+ },
1510
1618
  {
1511
1619
  "name": "hide-controls",
1512
1620
  "description": "No + and − buttons (the keys still step).",
@@ -1520,6 +1628,104 @@
1520
1628
  "name": "readonly",
1521
1629
  "description": "Not editable, still submitted.",
1522
1630
  "valueSet": "v"
1631
+ },
1632
+ {
1633
+ "name": "name",
1634
+ "description": "Form field name."
1635
+ },
1636
+ {
1637
+ "name": "label",
1638
+ "description": "Visible label (also the accessible name)."
1639
+ },
1640
+ {
1641
+ "name": "description",
1642
+ "description": "Help text."
1643
+ },
1644
+ {
1645
+ "name": "error",
1646
+ "description": "Error text; marks the field invalid."
1647
+ },
1648
+ {
1649
+ "name": "required",
1650
+ "description": "Required for form submission.",
1651
+ "valueSet": "v"
1652
+ },
1653
+ {
1654
+ "name": "disabled",
1655
+ "description": "Not interactive nor submitted.",
1656
+ "valueSet": "v"
1657
+ },
1658
+ {
1659
+ "name": "size",
1660
+ "description": "Size.",
1661
+ "values": [
1662
+ {
1663
+ "name": "xs"
1664
+ },
1665
+ {
1666
+ "name": "sm"
1667
+ },
1668
+ {
1669
+ "name": "md"
1670
+ },
1671
+ {
1672
+ "name": "lg"
1673
+ },
1674
+ {
1675
+ "name": "xl"
1676
+ }
1677
+ ]
1678
+ },
1679
+ {
1680
+ "name": "radius",
1681
+ "description": "Corner radius.",
1682
+ "values": [
1683
+ {
1684
+ "name": "xs"
1685
+ },
1686
+ {
1687
+ "name": "sm"
1688
+ },
1689
+ {
1690
+ "name": "md"
1691
+ },
1692
+ {
1693
+ "name": "lg"
1694
+ },
1695
+ {
1696
+ "name": "xl"
1697
+ },
1698
+ {
1699
+ "name": "full"
1700
+ }
1701
+ ]
1702
+ },
1703
+ {
1704
+ "name": "variant",
1705
+ "description": "Box style.",
1706
+ "values": [
1707
+ {
1708
+ "name": "default"
1709
+ },
1710
+ {
1711
+ "name": "filled"
1712
+ },
1713
+ {
1714
+ "name": "unstyled"
1715
+ }
1716
+ ]
1717
+ },
1718
+ {
1719
+ "name": "description-position",
1720
+ "description": "Description before or after the control.",
1721
+ "values": [
1722
+ {
1723
+ "name": "above"
1724
+ },
1725
+ {
1726
+ "name": "below"
1727
+ }
1728
+ ]
1523
1729
  }
1524
1730
  ]
1525
1731
  },
@@ -2018,13 +2224,78 @@
2018
2224
  }
2019
2225
  ]
2020
2226
  },
2021
- {
2022
- "name": "color",
2023
- "description": "Checked color of every radio."
2024
- },
2227
+ {
2228
+ "name": "color",
2229
+ "description": "Checked color of every radio."
2230
+ },
2231
+ {
2232
+ "name": "variant",
2233
+ "description": "Checked look of every radio: filled circle, or colored ring and dot.",
2234
+ "values": [
2235
+ {
2236
+ "name": "filled"
2237
+ },
2238
+ {
2239
+ "name": "outline"
2240
+ }
2241
+ ]
2242
+ }
2243
+ ]
2244
+ },
2245
+ {
2246
+ "name": "ray-radio",
2247
+ "description": "One choice among options: ray-radio (or ray-radio-card) elements inside a ray-radio-group, which is the form control.",
2248
+ "attributes": [
2249
+ {
2250
+ "name": "value",
2251
+ "description": "Value given to the group when chosen."
2252
+ },
2253
+ {
2254
+ "name": "checked",
2255
+ "description": "Whether this radio is the group's value; setting it sets the group's value. The checked attribute marks the group's initial value (when the group has no value attribute).",
2256
+ "valueSet": "v"
2257
+ },
2258
+ {
2259
+ "name": "label",
2260
+ "description": "Label text (or the content)."
2261
+ },
2262
+ {
2263
+ "name": "description",
2264
+ "description": "Help text under the label."
2265
+ },
2266
+ {
2267
+ "name": "disabled",
2268
+ "description": "Cannot be chosen.",
2269
+ "valueSet": "v"
2270
+ },
2271
+ {
2272
+ "name": "color",
2273
+ "description": "Overrides the group color."
2274
+ },
2275
+ {
2276
+ "name": "size",
2277
+ "description": "Overrides the group size.",
2278
+ "values": [
2279
+ {
2280
+ "name": "xs"
2281
+ },
2282
+ {
2283
+ "name": "sm"
2284
+ },
2285
+ {
2286
+ "name": "md"
2287
+ },
2288
+ {
2289
+ "name": "lg"
2290
+ },
2291
+ {
2292
+ "name": "xl"
2293
+ }
2294
+ ]
2295
+ },
2025
2296
  {
2026
2297
  "name": "variant",
2027
- "description": "Checked look of every radio: filled circle, or colored ring and dot.",
2298
+ "description": "Overrides the group variant.",
2028
2299
  "values": [
2029
2300
  {
2030
2301
  "name": "filled"
@@ -2037,13 +2308,23 @@
2037
2308
  ]
2038
2309
  },
2039
2310
  {
2040
- "name": "ray-radio",
2041
- "description": "One choice among options: ray-radio elements inside a ray-radio-group, which is the form control.",
2311
+ "name": "ray-radio-card",
2312
+ "description": "A radio drawn as a card: a title (label), a detail (description), an icon, more content; checked, it takes the color's border and light background. Inside a ray-radio-group like a ray-radio (arrow keys, the form, required, disabled); put the cards in a ray-grid for columns.",
2042
2313
  "attributes": [
2314
+ {
2315
+ "name": "hide-indicator",
2316
+ "description": "No radio circle: the card's border and background alone show the choice.",
2317
+ "valueSet": "v"
2318
+ },
2043
2319
  {
2044
2320
  "name": "value",
2045
2321
  "description": "Value given to the group when chosen."
2046
2322
  },
2323
+ {
2324
+ "name": "checked",
2325
+ "description": "Whether this radio is the group's value; setting it sets the group's value. The checked attribute marks the group's initial value (when the group has no value attribute).",
2326
+ "valueSet": "v"
2327
+ },
2047
2328
  {
2048
2329
  "name": "label",
2049
2330
  "description": "Label text (or the content)."
@@ -2188,6 +2469,31 @@
2188
2469
  "name": "unstyled"
2189
2470
  }
2190
2471
  ]
2472
+ },
2473
+ {
2474
+ "name": "description",
2475
+ "description": "Help text."
2476
+ },
2477
+ {
2478
+ "name": "error",
2479
+ "description": "Error text; marks the field invalid."
2480
+ },
2481
+ {
2482
+ "name": "required",
2483
+ "description": "Required for form submission.",
2484
+ "valueSet": "v"
2485
+ },
2486
+ {
2487
+ "name": "description-position",
2488
+ "description": "Description before or after the control.",
2489
+ "values": [
2490
+ {
2491
+ "name": "above"
2492
+ },
2493
+ {
2494
+ "name": "below"
2495
+ }
2496
+ ]
2191
2497
  }
2192
2498
  ]
2193
2499
  },
@@ -2366,6 +2672,30 @@
2366
2672
  "name": "unstyled"
2367
2673
  }
2368
2674
  ]
2675
+ },
2676
+ {
2677
+ "name": "radius",
2678
+ "description": "Corner radius.",
2679
+ "values": [
2680
+ {
2681
+ "name": "xs"
2682
+ },
2683
+ {
2684
+ "name": "sm"
2685
+ },
2686
+ {
2687
+ "name": "md"
2688
+ },
2689
+ {
2690
+ "name": "lg"
2691
+ },
2692
+ {
2693
+ "name": "xl"
2694
+ },
2695
+ {
2696
+ "name": "full"
2697
+ }
2698
+ ]
2369
2699
  }
2370
2700
  ]
2371
2701
  },
@@ -2455,6 +2785,50 @@
2455
2785
  {
2456
2786
  "name": "unit",
2457
2787
  "description": "Appended to the shown value and its spoken text (%, px, ms…)."
2788
+ },
2789
+ {
2790
+ "name": "required",
2791
+ "description": "Required for form submission.",
2792
+ "valueSet": "v"
2793
+ },
2794
+ {
2795
+ "name": "radius",
2796
+ "description": "Corner radius.",
2797
+ "values": [
2798
+ {
2799
+ "name": "xs"
2800
+ },
2801
+ {
2802
+ "name": "sm"
2803
+ },
2804
+ {
2805
+ "name": "md"
2806
+ },
2807
+ {
2808
+ "name": "lg"
2809
+ },
2810
+ {
2811
+ "name": "xl"
2812
+ },
2813
+ {
2814
+ "name": "full"
2815
+ }
2816
+ ]
2817
+ },
2818
+ {
2819
+ "name": "variant",
2820
+ "description": "Box style.",
2821
+ "values": [
2822
+ {
2823
+ "name": "default"
2824
+ },
2825
+ {
2826
+ "name": "filled"
2827
+ },
2828
+ {
2829
+ "name": "unstyled"
2830
+ }
2831
+ ]
2458
2832
  }
2459
2833
  ]
2460
2834
  },
@@ -2462,6 +2836,11 @@
2462
2836
  "name": "ray-switch",
2463
2837
  "description": "Same properties and events as ray-checkbox (indeterminate does not apply).",
2464
2838
  "attributes": [
2839
+ {
2840
+ "name": "checked",
2841
+ "description": "Current state. The checked attribute is the initial state.",
2842
+ "valueSet": "v"
2843
+ },
2465
2844
  {
2466
2845
  "name": "value",
2467
2846
  "description": "Submitted value when on."
@@ -2545,6 +2924,42 @@
2545
2924
  "name": "outline"
2546
2925
  }
2547
2926
  ]
2927
+ },
2928
+ {
2929
+ "name": "radius",
2930
+ "description": "Corner radius.",
2931
+ "values": [
2932
+ {
2933
+ "name": "xs"
2934
+ },
2935
+ {
2936
+ "name": "sm"
2937
+ },
2938
+ {
2939
+ "name": "md"
2940
+ },
2941
+ {
2942
+ "name": "lg"
2943
+ },
2944
+ {
2945
+ "name": "xl"
2946
+ },
2947
+ {
2948
+ "name": "full"
2949
+ }
2950
+ ]
2951
+ },
2952
+ {
2953
+ "name": "description-position",
2954
+ "description": "Description before or after the control.",
2955
+ "values": [
2956
+ {
2957
+ "name": "above"
2958
+ },
2959
+ {
2960
+ "name": "below"
2961
+ }
2962
+ ]
2548
2963
  }
2549
2964
  ]
2550
2965
  },
@@ -2648,6 +3063,30 @@
2648
3063
  }
2649
3064
  ]
2650
3065
  },
3066
+ {
3067
+ "name": "radius",
3068
+ "description": "Corner radius.",
3069
+ "values": [
3070
+ {
3071
+ "name": "xs"
3072
+ },
3073
+ {
3074
+ "name": "sm"
3075
+ },
3076
+ {
3077
+ "name": "md"
3078
+ },
3079
+ {
3080
+ "name": "lg"
3081
+ },
3082
+ {
3083
+ "name": "xl"
3084
+ },
3085
+ {
3086
+ "name": "full"
3087
+ }
3088
+ ]
3089
+ },
2651
3090
  {
2652
3091
  "name": "placeholder",
2653
3092
  "description": "Placeholder text."
@@ -3464,6 +3903,10 @@
3464
3903
  "name": "native",
3465
3904
  "description": "With a native host (ray-elements/core/raylang.js in a std/ui window), opens as the system's context menu at the pointer: items and dividers, same ray-select.",
3466
3905
  "valueSet": "v"
3906
+ },
3907
+ {
3908
+ "name": "offset",
3909
+ "description": "Gap to the anchor in px."
3467
3910
  }
3468
3911
  ]
3469
3912
  },
@@ -3642,6 +4085,15 @@
3642
4085
  "name": "disabled",
3643
4086
  "description": "Never shows.",
3644
4087
  "valueSet": "v"
4088
+ },
4089
+ {
4090
+ "name": "open",
4091
+ "description": "Shown.",
4092
+ "valueSet": "v"
4093
+ },
4094
+ {
4095
+ "name": "offset",
4096
+ "description": "Gap to the anchor in px."
3645
4097
  }
3646
4098
  ]
3647
4099
  },
@@ -4180,7 +4632,7 @@
4180
4632
  "attributes": [
4181
4633
  {
4182
4634
  "name": "name",
4183
- "description": "Registered icon name (iconNames())."
4635
+ "description": "Registered icon name (iconNames()); \"none\" draws nothing, a blank that keeps the alignment (a menu item without its check)."
4184
4636
  },
4185
4637
  {
4186
4638
  "name": "size",
@@ -4768,6 +5220,46 @@
4768
5220
  }
4769
5221
  ]
4770
5222
  },
5223
+ {
5224
+ "name": "ray-ring-progress",
5225
+ "description": "The arc starts at 12 o'clock and runs clockwise; a countdown is a value that goes down. Without value it spins (indeterminate). The middle holds the default slot (a clock), or the percentage with show-value.",
5226
+ "attributes": [
5227
+ {
5228
+ "name": "value",
5229
+ "description": "Progress, from 0 to max. Unset: indeterminate (a spinning arc)."
5230
+ },
5231
+ {
5232
+ "name": "max",
5233
+ "description": "The value of a full ring."
5234
+ },
5235
+ {
5236
+ "name": "color",
5237
+ "description": "A palette color or any CSS color. Default: the primary color."
5238
+ },
5239
+ {
5240
+ "name": "size",
5241
+ "description": "Diameter: xs…xl (3, 5, 7.5, 10, 12.5rem) or any CSS length."
5242
+ },
5243
+ {
5244
+ "name": "thickness",
5245
+ "description": "Width of the ring: a CSS length (a bare number is px). Default: a tenth of the diameter."
5246
+ },
5247
+ {
5248
+ "name": "round-caps",
5249
+ "description": "Rounded ends of the arc.",
5250
+ "valueSet": "v"
5251
+ },
5252
+ {
5253
+ "name": "show-value",
5254
+ "description": "Shows the percentage in the middle (when the default slot is empty).",
5255
+ "valueSet": "v"
5256
+ },
5257
+ {
5258
+ "name": "label",
5259
+ "description": "Accessible name (default: Progress)."
5260
+ }
5261
+ ]
5262
+ },
4771
5263
  {
4772
5264
  "name": "ray-skeleton",
4773
5265
  "description": "aria-busy=\"true\" on the host while loading; the placeholder is aria-hidden.",
@@ -4850,6 +5342,64 @@
4850
5342
  }
4851
5343
  ]
4852
5344
  },
5345
+ {
5346
+ "name": "ray-step-dots",
5347
+ "description": "Dots before value are done (filled), the one at value is current (a filled pill), the rest are to do (empty). Not interactive: for steps the user picks, use ray-stepper (or the dots of ray-carousel). Many dots wrap onto more lines.",
5348
+ "attributes": [
5349
+ {
5350
+ "name": "count",
5351
+ "description": "Number of steps (dots)."
5352
+ },
5353
+ {
5354
+ "name": "value",
5355
+ "description": "The current step, 0-based; count means every step is done."
5356
+ },
5357
+ {
5358
+ "name": "color",
5359
+ "description": "A palette color or any CSS color for done and current dots. Default: the primary color."
5360
+ },
5361
+ {
5362
+ "name": "size",
5363
+ "description": "Size of a dot.",
5364
+ "values": [
5365
+ {
5366
+ "name": "xs"
5367
+ },
5368
+ {
5369
+ "name": "sm"
5370
+ },
5371
+ {
5372
+ "name": "md"
5373
+ },
5374
+ {
5375
+ "name": "lg"
5376
+ },
5377
+ {
5378
+ "name": "xl"
5379
+ }
5380
+ ]
5381
+ },
5382
+ {
5383
+ "name": "align",
5384
+ "description": "Where the row sits in its width.",
5385
+ "values": [
5386
+ {
5387
+ "name": "start"
5388
+ },
5389
+ {
5390
+ "name": "center"
5391
+ },
5392
+ {
5393
+ "name": "end"
5394
+ }
5395
+ ]
5396
+ },
5397
+ {
5398
+ "name": "label",
5399
+ "description": "What a step is called: \"Round\" is announced \"Round 4 of 12\" and names the element. Default: Step (named Steps)."
5400
+ }
5401
+ ]
5402
+ },
4853
5403
  {
4854
5404
  "name": "ray-app-bar",
4855
5405
  "description": "It follows the scroller of its ray-app-shell, else scroll-target, else the window; clear of the notch (safe-area inset). The title is plain text: put a heading in the default slot when the page needs one.",