@latty-ds/web 0.10.4 → 1.0.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.
- package/custom-elements.json +1969 -228
- package/dist/components/accordion/index.js +36 -2
- package/dist/components/alert/alert.d.ts +29 -6
- package/dist/components/alert/alert.types.d.ts +5 -0
- package/dist/components/alert/index.js +124 -17
- package/dist/components/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/index.js +10 -3
- package/dist/components/breadcrumb/breadcrumb.d.ts +4 -0
- package/dist/components/breadcrumb/breadcrumb.types.d.ts +5 -0
- package/dist/components/breadcrumb/index.js +20 -3
- package/dist/components/button/button.d.ts +33 -0
- package/dist/components/button/index.js +135 -12
- package/dist/components/calendar/calendar.d.ts +15 -7
- package/dist/components/calendar/calendar.types.d.ts +17 -1
- package/dist/components/calendar/index.js +78 -25
- package/dist/components/checkbox/checkbox.d.ts +14 -2
- package/dist/components/checkbox/checkbox.types.d.ts +5 -0
- package/dist/components/checkbox/index.js +82 -5
- package/dist/components/chip/chip.d.ts +4 -1
- package/dist/components/chip/chip.types.d.ts +5 -0
- package/dist/components/chip/index.js +29 -1
- package/dist/components/color-input/color-input.d.ts +11 -2
- package/dist/components/color-input/color-input.types.d.ts +5 -0
- package/dist/components/color-input/index.js +92 -8
- package/dist/components/combobox/combobox.d.ts +18 -2
- package/dist/components/combobox/combobox.types.d.ts +7 -0
- package/dist/components/combobox/index.js +164 -23
- package/dist/components/date-input/date-input.d.ts +22 -7
- package/dist/components/date-input/date-input.types.d.ts +7 -0
- package/dist/components/date-input/index.js +216 -53
- package/dist/components/datepicker/datepicker.d.ts +9 -1
- package/dist/components/datepicker/index.js +108 -15
- package/dist/components/dialog/dialog.d.ts +39 -19
- package/dist/components/dialog/dialog.types.d.ts +5 -0
- package/dist/components/dialog/index.js +237 -90
- package/dist/components/divider/index.js +2 -2
- package/dist/components/dropdown/dropdown.d.ts +4 -0
- package/dist/components/dropdown/index.js +43 -3
- package/dist/components/icon-button/icon-button.d.ts +4 -0
- package/dist/components/icon-button/index.js +36 -1
- package/dist/components/image/image.d.ts +7 -7
- package/dist/components/image/index.js +6 -11
- package/dist/components/list/index.js +14 -4
- package/dist/components/nav/index.js +37 -17
- package/dist/components/nav/nav-item.d.ts +8 -8
- package/dist/components/pagination/index.js +57 -16
- package/dist/components/pagination/pagination.d.ts +8 -1
- package/dist/components/pagination/pagination.types.d.ts +15 -0
- package/dist/components/progress/index.js +44 -6
- package/dist/components/progress/progress.d.ts +12 -0
- package/dist/components/radio/index.js +148 -9
- package/dist/components/radio/radio.d.ts +34 -2
- package/dist/components/radio/radio.types.d.ts +5 -0
- package/dist/components/radio-group/index.js +120 -29
- package/dist/components/radio-group/radio-group.d.ts +27 -2
- package/dist/components/select/index.js +197 -44
- package/dist/components/select/select.d.ts +38 -4
- package/dist/components/select/select.types.d.ts +5 -0
- package/dist/components/shared/aria-forwarding.d.ts +1 -1
- package/dist/components/shared/form-default.d.ts +30 -0
- package/dist/components/shared/form-disabled.d.ts +40 -0
- package/dist/components/shared/form-field.d.ts +7 -0
- package/dist/components/shared/form-validity.d.ts +17 -0
- package/dist/components/shared/roving.d.ts +11 -0
- package/dist/components/shared/scroll-lock.d.ts +2 -0
- package/dist/components/sidepanel/index.js +275 -72
- package/dist/components/sidepanel/sidepanel.d.ts +32 -10
- package/dist/components/sidepanel/sidepanel.types.d.ts +10 -1
- package/dist/components/skeleton/index.js +3 -8
- package/dist/components/slider/index.js +307 -75
- package/dist/components/slider/slider.d.ts +16 -3
- package/dist/components/snackbar/index.js +82 -9
- package/dist/components/snackbar/snackbar.d.ts +17 -1
- package/dist/components/snackbar/snackbar.types.d.ts +5 -0
- package/dist/components/surface/index.js +8 -0
- package/dist/components/switch/index.js +101 -5
- package/dist/components/switch/switch.d.ts +13 -2
- package/dist/components/switch/switch.types.d.ts +5 -0
- package/dist/components/tab/index.js +15 -14
- package/dist/components/tab/tab.d.ts +0 -1
- package/dist/components/tab-group/index.js +102 -30
- package/dist/components/tab-group/tab-group.d.ts +17 -2
- package/dist/components/table/index.js +105 -61
- package/dist/components/table/table.d.ts +8 -2
- package/dist/components/table/table.types.d.ts +4 -3
- package/dist/components/text/index.js +16 -1
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/textfield/index.js +243 -35
- package/dist/components/textfield/textfield.d.ts +24 -2
- package/dist/components/textfield/textfield.types.d.ts +11 -0
- package/dist/components/tooltip/index.js +176 -49
- package/dist/components/tooltip/tooltip.d.ts +17 -0
- package/dist/components/tooltip/tooltip.types.d.ts +5 -1
- package/dist/index.cjs +2458 -683
- package/dist/index.js +2469 -690
- package/dist/manifest.json +202 -32
- package/dist/utils/dev-warn.d.ts +5 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +3 -7
package/dist/manifest.json
CHANGED
|
@@ -229,11 +229,16 @@
|
|
|
229
229
|
"default": "filled"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
"name": "
|
|
232
|
+
"name": "heading",
|
|
233
233
|
"description": "Optional bold heading above the body content.",
|
|
234
234
|
"type": "text",
|
|
235
235
|
"default": ""
|
|
236
236
|
},
|
|
237
|
+
{
|
|
238
|
+
"name": "title",
|
|
239
|
+
"type": "text",
|
|
240
|
+
"default": ""
|
|
241
|
+
},
|
|
237
242
|
{
|
|
238
243
|
"name": "icon",
|
|
239
244
|
"description": "Icon to show before the body. Leave empty for auto (shows variant icon for status variants),\nset to `\"none\"` to suppress, or pass any icon name to override.",
|
|
@@ -242,10 +247,16 @@
|
|
|
242
247
|
},
|
|
243
248
|
{
|
|
244
249
|
"name": "closable",
|
|
245
|
-
"description": "Show a dismiss button. Clicking it fires
|
|
250
|
+
"description": "Show a dismiss button. Clicking it fires `close` and hides the element (sets `open` to false).",
|
|
246
251
|
"type": "boolean",
|
|
247
252
|
"default": false
|
|
248
253
|
},
|
|
254
|
+
{
|
|
255
|
+
"name": "open",
|
|
256
|
+
"description": "Whether the alert is visible. Defaults to true, so existing markup with no attribute keeps showing.\nDismissing (or setting this to false directly) hides the alert but does not remove it from the DOM —\nthat choice is left to the consumer, since a framework that owns this node would otherwise fight the\nalert over removing it out from under its own reconciliation.",
|
|
257
|
+
"type": "boolean",
|
|
258
|
+
"default": true
|
|
259
|
+
},
|
|
249
260
|
{
|
|
250
261
|
"name": "background",
|
|
251
262
|
"description": "Background color override. Accepts a hex value (#1a1a2e) or a CSS token name (--lt-color-primary-600).",
|
|
@@ -254,9 +265,15 @@
|
|
|
254
265
|
},
|
|
255
266
|
{
|
|
256
267
|
"name": "uppercase",
|
|
257
|
-
"description": "Renders the
|
|
268
|
+
"description": "Renders the heading in small caps with wider letter spacing.",
|
|
258
269
|
"type": "boolean",
|
|
259
270
|
"default": false
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "labels",
|
|
274
|
+
"description": "Overridable UI text (the dismiss button's accessible name), for i18n. English defaults — override only the keys you need.",
|
|
275
|
+
"type": "text",
|
|
276
|
+
"default": "{}"
|
|
260
277
|
}
|
|
261
278
|
]
|
|
262
279
|
},
|
|
@@ -379,6 +396,12 @@
|
|
|
379
396
|
"description": "The character or element to use as a separator between breadcrumb items.\nThis is passed down to all children items via CSS variables.",
|
|
380
397
|
"type": "text",
|
|
381
398
|
"default": "/"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "labels",
|
|
402
|
+
"description": "Overridable UI text (the breadcrumb nav's landmark label), for i18n. English defaults — override only the keys you need.",
|
|
403
|
+
"type": "text",
|
|
404
|
+
"default": "{}"
|
|
382
405
|
}
|
|
383
406
|
]
|
|
384
407
|
},
|
|
@@ -513,6 +536,24 @@
|
|
|
513
536
|
"reset"
|
|
514
537
|
],
|
|
515
538
|
"default": "button"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "name",
|
|
542
|
+
"description": "Name submitted alongside `value` when this button triggers a form submission (`type=\"submit\"`), matching a\nnative `<button name value>` — only included in the submitted data for the button that actually triggered\nthe submission, not every submit button in the form.",
|
|
543
|
+
"type": "text",
|
|
544
|
+
"default": ""
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"name": "value",
|
|
548
|
+
"description": "Value submitted alongside `name`. See `name`.",
|
|
549
|
+
"type": "text",
|
|
550
|
+
"default": ""
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "form-action",
|
|
554
|
+
"description": "Overrides the form's own `action` for a submission triggered by this button, matching a native\n`<button formaction>`. Only applies when `type=\"submit\"`.",
|
|
555
|
+
"type": "text",
|
|
556
|
+
"default": ""
|
|
516
557
|
}
|
|
517
558
|
]
|
|
518
559
|
},
|
|
@@ -566,11 +607,16 @@
|
|
|
566
607
|
},
|
|
567
608
|
{
|
|
568
609
|
"name": "week-start",
|
|
569
|
-
"description": "First day of the week
|
|
610
|
+
"description": "First day of the week (0 = Sunday … 6 = Saturday). Defaults to whatever `locale` implies (via\n`Intl.Locale#getWeekInfo`, falling back to Sunday) — set this explicitly only to override that.",
|
|
570
611
|
"type": "select",
|
|
571
612
|
"options": [
|
|
572
613
|
"0",
|
|
573
|
-
"1"
|
|
614
|
+
"1",
|
|
615
|
+
"2",
|
|
616
|
+
"3",
|
|
617
|
+
"4",
|
|
618
|
+
"5",
|
|
619
|
+
"6"
|
|
574
620
|
],
|
|
575
621
|
"default": "0"
|
|
576
622
|
},
|
|
@@ -591,6 +637,12 @@
|
|
|
591
637
|
"description": "Number of month panels to display side-by-side.",
|
|
592
638
|
"type": "number",
|
|
593
639
|
"default": 1
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "labels",
|
|
643
|
+
"description": "Overridable UI text (nav button labels, the \"Today\" footer button, the month/year picker toggle), for i18n. English defaults — override only the keys you need.",
|
|
644
|
+
"type": "text",
|
|
645
|
+
"default": "{}"
|
|
594
646
|
}
|
|
595
647
|
]
|
|
596
648
|
},
|
|
@@ -622,7 +674,7 @@
|
|
|
622
674
|
},
|
|
623
675
|
{
|
|
624
676
|
"name": "checked",
|
|
625
|
-
"description": "Whether the checkbox is checked.",
|
|
677
|
+
"description": "Whether the checkbox is checked. Not reflected as an attribute — a native checkbox's `checked` _content_\nattribute stays fixed at the markup default and never tracks interaction (that's what `defaultChecked` is\nfor); reflecting it live meant `formResetCallback` could no longer tell what the original default was. Read\nthe property, or the `change` event's `detail.checked`, instead of `[checked]`/`hasAttribute('checked')`.",
|
|
626
678
|
"type": "boolean",
|
|
627
679
|
"default": false
|
|
628
680
|
},
|
|
@@ -671,6 +723,12 @@
|
|
|
671
723
|
"description": "Value attribute for form submission.",
|
|
672
724
|
"type": "text",
|
|
673
725
|
"default": "on"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"name": "labels",
|
|
729
|
+
"description": "Overridable UI text (the required-field validation message), for i18n. English defaults — override only the keys you need.",
|
|
730
|
+
"type": "text",
|
|
731
|
+
"default": "{}"
|
|
674
732
|
}
|
|
675
733
|
]
|
|
676
734
|
},
|
|
@@ -729,6 +787,12 @@
|
|
|
729
787
|
"description": "Background color override. Accepts a hex value (#1a1a2e) or a CSS token name (--lt-color-primary-600).",
|
|
730
788
|
"type": "color",
|
|
731
789
|
"default": ""
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"name": "labels",
|
|
793
|
+
"description": "Overridable UI text (the delete button's accessible name), for i18n. English defaults — override only the keys you need.",
|
|
794
|
+
"type": "text",
|
|
795
|
+
"default": "{}"
|
|
732
796
|
}
|
|
733
797
|
]
|
|
734
798
|
},
|
|
@@ -736,7 +800,7 @@
|
|
|
736
800
|
"members": [
|
|
737
801
|
{
|
|
738
802
|
"name": "value",
|
|
739
|
-
"description": "The current color value. Accepts hex (`#7c3aed`), rgb (`rgb(124, 58, 237)`),\nor hsl (`hsl(263, 70%, 58%)`). Emitted values match the `format` prop.",
|
|
803
|
+
"description": "The current color value. Accepts hex (`#7c3aed`), rgb (`rgb(124, 58, 237)`),\nor hsl (`hsl(263, 70%, 58%)`). Emitted values match the `format` prop. Not reflected as an attribute —\nread the property, or the `change` event's `detail.value`, instead of `getAttribute('value')`/`[value]`.",
|
|
740
804
|
"type": "text",
|
|
741
805
|
"default": ""
|
|
742
806
|
},
|
|
@@ -791,6 +855,12 @@
|
|
|
791
855
|
"lg"
|
|
792
856
|
],
|
|
793
857
|
"default": "md"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"name": "labels",
|
|
861
|
+
"description": "Overridable UI text (the required-field validation message), for i18n. English defaults — override only the keys you need.",
|
|
862
|
+
"type": "text",
|
|
863
|
+
"default": "{}"
|
|
794
864
|
}
|
|
795
865
|
]
|
|
796
866
|
},
|
|
@@ -798,7 +868,7 @@
|
|
|
798
868
|
"members": [
|
|
799
869
|
{
|
|
800
870
|
"name": "value",
|
|
801
|
-
"description": "Currently selected value.",
|
|
871
|
+
"description": "Currently selected value. Not reflected as an attribute — read the property, or the `change` event's\n`detail.value`, instead of `getAttribute('value')`/`[value]` (consistent with the rest of the form\ncontrols; see `lt-textfield`'s equivalent doc comment for why).",
|
|
802
872
|
"type": "text",
|
|
803
873
|
"default": ""
|
|
804
874
|
},
|
|
@@ -860,6 +930,12 @@
|
|
|
860
930
|
"description": "Name used in form submission.",
|
|
861
931
|
"type": "text",
|
|
862
932
|
"default": ""
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"name": "labels",
|
|
936
|
+
"description": "Overridable UI text (validation message, \"no results\" text), for i18n. English defaults — override only the keys you need.",
|
|
937
|
+
"type": "text",
|
|
938
|
+
"default": "{}"
|
|
863
939
|
}
|
|
864
940
|
]
|
|
865
941
|
},
|
|
@@ -867,7 +943,7 @@
|
|
|
867
943
|
"members": [
|
|
868
944
|
{
|
|
869
945
|
"name": "value",
|
|
870
|
-
"description": "Selected date in ISO format (YYYY-MM-DD).",
|
|
946
|
+
"description": "Selected date in ISO format (YYYY-MM-DD). Not reflected as an attribute — read the property, or the\n`change` event's `detail.value`, instead of `getAttribute('value')`/`[value]`.",
|
|
871
947
|
"type": "text",
|
|
872
948
|
"default": ""
|
|
873
949
|
},
|
|
@@ -903,9 +979,9 @@
|
|
|
903
979
|
},
|
|
904
980
|
{
|
|
905
981
|
"name": "week-start",
|
|
906
|
-
"description": "First day of the week in the calendar
|
|
982
|
+
"description": "First day of the week in the calendar (0 = Sunday … 6 = Saturday). Defaults to whatever `locale` implies —\nset this explicitly only to override that. Forwarded as-is to the internal `lt-calendar`, which does the\nactual derivation when this is left unset.",
|
|
907
983
|
"type": "text",
|
|
908
|
-
"default": "
|
|
984
|
+
"default": ""
|
|
909
985
|
},
|
|
910
986
|
{
|
|
911
987
|
"name": "label",
|
|
@@ -962,15 +1038,21 @@
|
|
|
962
1038
|
},
|
|
963
1039
|
{
|
|
964
1040
|
"name": "name",
|
|
965
|
-
"description": "Name used in form submission
|
|
1041
|
+
"description": "Name used in form submission (through `ElementInternals`, so no hidden input is rendered).",
|
|
966
1042
|
"type": "text",
|
|
967
1043
|
"default": ""
|
|
968
1044
|
},
|
|
969
1045
|
{
|
|
970
1046
|
"name": "disabled-dates",
|
|
971
|
-
"description": "Individual dates to disable in the calendar, as Date objects.",
|
|
1047
|
+
"description": "Individual dates to disable in the calendar, as Date objects. Set as a JS property (`.disabledDates`).",
|
|
972
1048
|
"type": "text",
|
|
973
1049
|
"default": "[]"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "labels",
|
|
1053
|
+
"description": "Overridable UI text (validation message, calendar popover's accessible label), for i18n. English defaults — override only the keys you need.",
|
|
1054
|
+
"type": "text",
|
|
1055
|
+
"default": "{}"
|
|
974
1056
|
}
|
|
975
1057
|
]
|
|
976
1058
|
},
|
|
@@ -989,7 +1071,7 @@
|
|
|
989
1071
|
},
|
|
990
1072
|
{
|
|
991
1073
|
"name": "value",
|
|
992
|
-
"description": "Current value in the format required by the native input (`YYYY-MM-DD`, `HH:MM`, or `YYYY-MM-DDTHH:MM`).",
|
|
1074
|
+
"description": "Current value in the format required by the native input (`YYYY-MM-DD`, `HH:MM`, or `YYYY-MM-DDTHH:MM`).\nNot reflected as an attribute — read the property, or the `change` event's `detail.value`, instead of\n`getAttribute('value')`/`[value]`.",
|
|
993
1075
|
"type": "text",
|
|
994
1076
|
"default": ""
|
|
995
1077
|
},
|
|
@@ -1087,9 +1169,14 @@
|
|
|
1087
1169
|
"type": "boolean",
|
|
1088
1170
|
"default": false
|
|
1089
1171
|
},
|
|
1172
|
+
{
|
|
1173
|
+
"name": "heading",
|
|
1174
|
+
"description": "Dialog heading displayed in the header.",
|
|
1175
|
+
"type": "text",
|
|
1176
|
+
"default": ""
|
|
1177
|
+
},
|
|
1090
1178
|
{
|
|
1091
1179
|
"name": "title",
|
|
1092
|
-
"description": "Dialog title displayed in the header.",
|
|
1093
1180
|
"type": "text",
|
|
1094
1181
|
"default": ""
|
|
1095
1182
|
},
|
|
@@ -1113,7 +1200,7 @@
|
|
|
1113
1200
|
},
|
|
1114
1201
|
{
|
|
1115
1202
|
"name": "uppercase",
|
|
1116
|
-
"description": "Renders the dialog
|
|
1203
|
+
"description": "Renders the dialog heading in small caps with wider letter spacing.",
|
|
1117
1204
|
"type": "boolean",
|
|
1118
1205
|
"default": false
|
|
1119
1206
|
},
|
|
@@ -1134,6 +1221,12 @@
|
|
|
1134
1221
|
"description": "Visual appearance of the internal surface, matching `lt-surface`'s vocabulary.",
|
|
1135
1222
|
"type": "text",
|
|
1136
1223
|
"default": "filled"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"name": "labels",
|
|
1227
|
+
"description": "Overridable UI text (the close button's accessible name), for i18n. English defaults — override only the keys you need.",
|
|
1228
|
+
"type": "text",
|
|
1229
|
+
"default": "{}"
|
|
1137
1230
|
}
|
|
1138
1231
|
]
|
|
1139
1232
|
},
|
|
@@ -1552,6 +1645,12 @@
|
|
|
1552
1645
|
"description": "Disable all controls.",
|
|
1553
1646
|
"type": "boolean",
|
|
1554
1647
|
"default": false
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"name": "labels",
|
|
1651
|
+
"description": "Overridable UI text (nav landmark label, control button labels), for i18n. English defaults — override only the keys you need.",
|
|
1652
|
+
"type": "text",
|
|
1653
|
+
"default": "{}"
|
|
1555
1654
|
}
|
|
1556
1655
|
]
|
|
1557
1656
|
},
|
|
@@ -1593,6 +1692,18 @@
|
|
|
1593
1692
|
"type": "text",
|
|
1594
1693
|
"default": ""
|
|
1595
1694
|
},
|
|
1695
|
+
{
|
|
1696
|
+
"name": "max",
|
|
1697
|
+
"description": "The value `value` is measured against (0–100 becomes 0–max). Ignored when `indeterminate` is true.",
|
|
1698
|
+
"type": "number",
|
|
1699
|
+
"default": 100
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"name": "value-text",
|
|
1703
|
+
"description": "Overrides the spoken value with a custom string (e.g. \"3 of 5 steps\") for scales a bare percentage\ndoesn't describe well. Leave unset to let `aria-valuenow`/`aria-valuemax` speak for themselves.",
|
|
1704
|
+
"type": "text",
|
|
1705
|
+
"default": ""
|
|
1706
|
+
},
|
|
1596
1707
|
{
|
|
1597
1708
|
"name": "indeterminate",
|
|
1598
1709
|
"description": "When true the bar animates continuously without a set value.",
|
|
@@ -1633,7 +1744,6 @@
|
|
|
1633
1744
|
},
|
|
1634
1745
|
{
|
|
1635
1746
|
"name": "helper-text",
|
|
1636
|
-
"description": "Helper text displayed below the radio group.",
|
|
1637
1747
|
"type": "text",
|
|
1638
1748
|
"default": ""
|
|
1639
1749
|
},
|
|
@@ -1679,7 +1789,7 @@
|
|
|
1679
1789
|
},
|
|
1680
1790
|
{
|
|
1681
1791
|
"name": "checked",
|
|
1682
|
-
"description": "Whether the radio is checked.",
|
|
1792
|
+
"description": "Whether the radio is checked. Not reflected as an attribute — a native radio's `checked` _content_\nattribute stays fixed at the markup default and never tracks interaction; reflecting it live meant\n`formResetCallback` could no longer tell what the original default was. Read the property, or the `change`\nevent's `detail.checked`, instead of `[checked]`/`hasAttribute('checked')`.",
|
|
1683
1793
|
"type": "boolean",
|
|
1684
1794
|
"default": false
|
|
1685
1795
|
},
|
|
@@ -1722,6 +1832,18 @@
|
|
|
1722
1832
|
"description": "Value attribute for form submission.",
|
|
1723
1833
|
"type": "text",
|
|
1724
1834
|
"default": ""
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
"name": "tabbable",
|
|
1838
|
+
"description": "Whether this radio is reachable with Tab. Defaults to true for a standalone radio; `lt-radio-group` drives\nthis itself for its managed radios — a roving tabindex (only the checked radio, or the first enabled one,\nis a Tab stop), matching the native radiogroup pattern.",
|
|
1839
|
+
"type": "boolean",
|
|
1840
|
+
"default": true
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
"name": "labels",
|
|
1844
|
+
"description": "Overridable UI text (the required-field validation message), for i18n. English defaults — override only the keys you need.",
|
|
1845
|
+
"type": "text",
|
|
1846
|
+
"default": "{}"
|
|
1725
1847
|
}
|
|
1726
1848
|
]
|
|
1727
1849
|
},
|
|
@@ -1751,10 +1873,10 @@
|
|
|
1751
1873
|
"default": "md"
|
|
1752
1874
|
},
|
|
1753
1875
|
{
|
|
1754
|
-
"name": "
|
|
1755
|
-
"description": "
|
|
1756
|
-
"type": "
|
|
1757
|
-
"default":
|
|
1876
|
+
"name": "multiple",
|
|
1877
|
+
"description": "Allow more than one option to be selected. The option list stays open while picking, and `value` becomes an\narray of the selected values.",
|
|
1878
|
+
"type": "boolean",
|
|
1879
|
+
"default": false
|
|
1758
1880
|
},
|
|
1759
1881
|
{
|
|
1760
1882
|
"name": "placeholder",
|
|
@@ -1791,6 +1913,12 @@
|
|
|
1791
1913
|
"description": "Whether the select is required. Shows asterisk in label when true.",
|
|
1792
1914
|
"type": "boolean",
|
|
1793
1915
|
"default": false
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
"name": "labels",
|
|
1919
|
+
"description": "Overridable UI text (the required-field validation message), for i18n. English defaults — override only the keys you need.",
|
|
1920
|
+
"type": "text",
|
|
1921
|
+
"default": "{}"
|
|
1794
1922
|
}
|
|
1795
1923
|
]
|
|
1796
1924
|
},
|
|
@@ -1804,19 +1932,19 @@
|
|
|
1804
1932
|
},
|
|
1805
1933
|
{
|
|
1806
1934
|
"name": "anchor",
|
|
1807
|
-
"description": "Edge from which the panel slides in.",
|
|
1935
|
+
"description": "Edge from which the panel slides in. `'start'`/`'end'` flip with reading direction.",
|
|
1808
1936
|
"type": "select",
|
|
1809
1937
|
"options": [
|
|
1810
|
-
"
|
|
1811
|
-
"
|
|
1938
|
+
"start",
|
|
1939
|
+
"end",
|
|
1812
1940
|
"top",
|
|
1813
1941
|
"bottom"
|
|
1814
1942
|
],
|
|
1815
|
-
"default": "
|
|
1943
|
+
"default": "start"
|
|
1816
1944
|
},
|
|
1817
1945
|
{
|
|
1818
1946
|
"name": "size",
|
|
1819
|
-
"description": "Panel width (
|
|
1947
|
+
"description": "Panel width (start/end anchors) or height (top/bottom anchors).",
|
|
1820
1948
|
"type": "text",
|
|
1821
1949
|
"default": "320px"
|
|
1822
1950
|
},
|
|
@@ -1843,6 +1971,12 @@
|
|
|
1843
1971
|
"description": "Backdrop darkness as an alpha value from 0 (transparent) to 1 (opaque).",
|
|
1844
1972
|
"type": "number",
|
|
1845
1973
|
"default": 0.45
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"name": "labels",
|
|
1977
|
+
"description": "Overridable UI text (the close button's accessible name), for i18n. English defaults — override only the keys you need.",
|
|
1978
|
+
"type": "text",
|
|
1979
|
+
"default": "{}"
|
|
1846
1980
|
}
|
|
1847
1981
|
]
|
|
1848
1982
|
},
|
|
@@ -1919,6 +2053,7 @@
|
|
|
1919
2053
|
},
|
|
1920
2054
|
{
|
|
1921
2055
|
"name": "value",
|
|
2056
|
+
"description": "Not reflected as an attribute — read the property, or the `change` event's `detail.value`, instead of\n`getAttribute('value')`/`[value]`.",
|
|
1922
2057
|
"type": "number",
|
|
1923
2058
|
"default": 0
|
|
1924
2059
|
},
|
|
@@ -1992,6 +2127,12 @@
|
|
|
1992
2127
|
"description": "Visual appearance of the internal surface, matching `lt-surface`'s vocabulary.",
|
|
1993
2128
|
"type": "text",
|
|
1994
2129
|
"default": "filled"
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
"name": "labels",
|
|
2133
|
+
"description": "Overridable UI text (the close button's accessible name), for i18n. English defaults — override only the keys you need.",
|
|
2134
|
+
"type": "text",
|
|
2135
|
+
"default": "{}"
|
|
1995
2136
|
}
|
|
1996
2137
|
]
|
|
1997
2138
|
},
|
|
@@ -2084,7 +2225,7 @@
|
|
|
2084
2225
|
},
|
|
2085
2226
|
{
|
|
2086
2227
|
"name": "checked",
|
|
2087
|
-
"description": "Whether the switch is checked (on).",
|
|
2228
|
+
"description": "Whether the switch is checked (on). Not reflected as an attribute — a native checkbox's `checked` _content_\nattribute stays fixed at the markup default and never tracks interaction; reflecting it live meant\n`formResetCallback` could no longer tell what the original default was. Read the property, or the `change`\nevent's `detail.checked`, instead of `[checked]`/`hasAttribute('checked')`.",
|
|
2088
2229
|
"type": "boolean",
|
|
2089
2230
|
"default": false
|
|
2090
2231
|
},
|
|
@@ -2127,6 +2268,12 @@
|
|
|
2127
2268
|
"description": "Value attribute for form submission.",
|
|
2128
2269
|
"type": "text",
|
|
2129
2270
|
"default": "on"
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
"name": "labels",
|
|
2274
|
+
"description": "Overridable UI text (the required-field validation message), for i18n. English defaults — override only the keys you need.",
|
|
2275
|
+
"type": "text",
|
|
2276
|
+
"default": "{}"
|
|
2130
2277
|
}
|
|
2131
2278
|
]
|
|
2132
2279
|
},
|
|
@@ -2275,6 +2422,12 @@
|
|
|
2275
2422
|
"type": "text",
|
|
2276
2423
|
"default": "No data available"
|
|
2277
2424
|
},
|
|
2425
|
+
{
|
|
2426
|
+
"name": "label",
|
|
2427
|
+
"description": "Accessible name for the table. Required when a page has more than one table, since column labels alone\ndon't tell assistive tech which table it's in.",
|
|
2428
|
+
"type": "text",
|
|
2429
|
+
"default": ""
|
|
2430
|
+
},
|
|
2278
2431
|
{
|
|
2279
2432
|
"name": "row-key",
|
|
2280
2433
|
"description": "Field name to use as a stable row identity key for efficient DOM reuse during sorts/updates.\nWhen omitted, falls back to the row's JSON representation.",
|
|
@@ -2316,7 +2469,7 @@
|
|
|
2316
2469
|
},
|
|
2317
2470
|
{
|
|
2318
2471
|
"name": "as",
|
|
2319
|
-
"description": "HTML tag to render. Defaults to the semantic tag for the chosen variant.",
|
|
2472
|
+
"description": "HTML tag to render. Defaults to the semantic tag for the chosen variant; anything outside `TextTag` is ignored.",
|
|
2320
2473
|
"type": "select",
|
|
2321
2474
|
"options": [
|
|
2322
2475
|
"",
|
|
@@ -2379,7 +2532,7 @@
|
|
|
2379
2532
|
},
|
|
2380
2533
|
{
|
|
2381
2534
|
"name": "value",
|
|
2382
|
-
"description": "Current value of the input.",
|
|
2535
|
+
"description": "Current value of the input. Not reflected as an attribute: for `type=\"password\"` that would put whatever\nthe user types in plain text in the DOM (`outerHTML`, DevTools, session-replay/DOM-mutation recorders) —\nvisible via `getAttribute('value')`/`[value]` regardless of input type. Read the property, or the\n`input`/`change` event's `detail.value`, instead of an attribute selector.",
|
|
2383
2536
|
"type": "text",
|
|
2384
2537
|
"default": ""
|
|
2385
2538
|
},
|
|
@@ -2454,6 +2607,23 @@
|
|
|
2454
2607
|
"description": "Renders the label in small caps with wider letter spacing.",
|
|
2455
2608
|
"type": "boolean",
|
|
2456
2609
|
"default": false
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"name": "clearable",
|
|
2613
|
+
"description": "Shows a clear button while the field has a value. Not shown for password fields, which have their own toggle.",
|
|
2614
|
+
"type": "boolean",
|
|
2615
|
+
"default": false
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"name": "counter",
|
|
2619
|
+
"description": "Shows the character count as `length / max` below the field. Uses `max` as the limit, which is also enforced natively.",
|
|
2620
|
+
"type": "boolean",
|
|
2621
|
+
"default": false
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"name": "labels",
|
|
2625
|
+
"type": "text",
|
|
2626
|
+
"default": "{}"
|
|
2457
2627
|
}
|
|
2458
2628
|
]
|
|
2459
2629
|
},
|
|
@@ -2472,8 +2642,8 @@
|
|
|
2472
2642
|
"options": [
|
|
2473
2643
|
"top",
|
|
2474
2644
|
"bottom",
|
|
2475
|
-
"
|
|
2476
|
-
"
|
|
2645
|
+
"start",
|
|
2646
|
+
"end"
|
|
2477
2647
|
],
|
|
2478
2648
|
"default": "top"
|
|
2479
2649
|
},
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logs a developer-facing warning, stripped in production. The `typeof process` guard keeps an unbundled browser
|
|
3
|
+
* (no `process` global) silent instead of throwing; bundlers replace `process.env.NODE_ENV` and drop the branch.
|
|
4
|
+
*/
|
|
5
|
+
export declare const devWarn: (tag: string, message: string) => void;
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latty-ds/web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Web Components for the Latty design system — framework-agnostic UI components built with Lit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -148,10 +148,6 @@
|
|
|
148
148
|
"import": "./dist/components/select/index.js",
|
|
149
149
|
"default": "./dist/components/select/index.js"
|
|
150
150
|
},
|
|
151
|
-
"./shared": {
|
|
152
|
-
"import": "./dist/components/shared/index.js",
|
|
153
|
-
"default": "./dist/components/shared/index.js"
|
|
154
|
-
},
|
|
155
151
|
"./sidepanel": {
|
|
156
152
|
"import": "./dist/components/sidepanel/index.js",
|
|
157
153
|
"default": "./dist/components/sidepanel/index.js"
|
|
@@ -224,8 +220,8 @@
|
|
|
224
220
|
},
|
|
225
221
|
"dependencies": {
|
|
226
222
|
"@floating-ui/dom": "^1.7.6",
|
|
227
|
-
"@latty-ds/icons": "0.
|
|
223
|
+
"@latty-ds/icons": "1.0.0"
|
|
228
224
|
},
|
|
229
225
|
"customElements": "custom-elements.json",
|
|
230
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "fa5fe02064dea0ecfbb11423a5e51093b2bf7095"
|
|
231
227
|
}
|