@warp-ds/elements 2.3.1 → 2.3.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.3.0",
4
+ "version": "2.3.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -722,6 +722,86 @@
722
722
  "attributes": [],
723
723
  "events": [],
724
724
  "js": { "properties": [], "events": [] }
725
+ },
726
+ {
727
+ "name": "w-datepicker",
728
+ "description": "An input for dates.\n\nUses the `lang` attribute on either the element or on `<html>` to determine the locale options.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)\n---\n",
729
+ "doc-url": "",
730
+ "attributes": [
731
+ { "name": "label", "value": { "type": "string" } },
732
+ {
733
+ "name": "lang",
734
+ "description": "Takes precedence over the `<html>` lang attribute.",
735
+ "value": { "type": "string" }
736
+ },
737
+ { "name": "name", "value": { "type": "string" } },
738
+ { "name": "value", "value": { "type": "string" } },
739
+ {
740
+ "name": "header-format",
741
+ "description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
742
+ "value": { "type": "string", "default": "'MMMM yyyy'" }
743
+ },
744
+ {
745
+ "name": "weekday-format",
746
+ "description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
747
+ "value": { "type": "string", "default": "'EEEEEE'" }
748
+ },
749
+ {
750
+ "name": "day-format",
751
+ "description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
752
+ "value": { "type": "string", "default": "'PPPP'" }
753
+ }
754
+ ],
755
+ "events": [],
756
+ "js": {
757
+ "properties": [
758
+ { "name": "label", "type": "string" },
759
+ {
760
+ "name": "lang",
761
+ "description": "Takes precedence over the `<html>` lang attribute.",
762
+ "type": "string"
763
+ },
764
+ { "name": "name", "type": "string" },
765
+ { "name": "value", "type": "string" },
766
+ {
767
+ "name": "headerFormat",
768
+ "description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
769
+ "type": "string"
770
+ },
771
+ {
772
+ "name": "weekdayFormat",
773
+ "description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
774
+ "type": "string"
775
+ },
776
+ {
777
+ "name": "isDayDisabled",
778
+ "description": "Lets you control if a date in the calendar should be disabled.\n\nThis needs to be set on the element instance in JavaScript, not as an HTML attribute.",
779
+ "type": "(day: Date) => boolean"
780
+ },
781
+ {
782
+ "name": "dayFormat",
783
+ "description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
784
+ "type": "string"
785
+ },
786
+ { "name": "isCalendarOpen", "type": "boolean" },
787
+ { "name": "navigationDate", "type": "Date" },
788
+ { "name": "selectedDate", "type": "Date | null" },
789
+ { "name": "month" },
790
+ { "name": "weeks" },
791
+ { "name": "calendar", "type": "HTMLDivElement" },
792
+ { "name": "input", "type": "HTMLInputElement" },
793
+ { "name": "toggleButton", "type": "HTMLButtonElement" },
794
+ { "name": "wrapper", "type": "HTMLDivElement" },
795
+ {
796
+ "name": "previousMonthButton",
797
+ "description": "This is the first focusable element, needed for the modal focus trap.\n\nDon't cache this and other `@query` fields from inside the calendar modal.\nThey work the first time, but once the calendar is closed and reopened\nthe query will point to an element that doesn't exist anymore.",
798
+ "type": "HTMLButtonElement"
799
+ },
800
+ { "name": "todayCell", "type": "HTMLTableCellElement" },
801
+ { "name": "selectedCell", "type": "HTMLTableCellElement" }
802
+ ],
803
+ "events": []
804
+ }
725
805
  }
726
806
  ]
727
807
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@warp-ds/elements",
3
3
  "type": "module",
4
- "version": "2.3.1",
4
+ "version": "2.3.2",
5
5
  "packageManager": "pnpm@10.20.0",
6
6
  "description": "Custom elements for Warp",
7
7
  "exports": {