@warp-ds/elements 2.2.0-next.6 → 2.2.0-next.8

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.
Files changed (58) hide show
  1. package/dist/custom-elements.json +633 -141
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +363 -129
  4. package/dist/index.js.map +4 -4
  5. package/dist/packages/alert/index.js.map +1 -1
  6. package/dist/packages/alert/react.js.map +1 -1
  7. package/dist/packages/attention/index.js.map +1 -1
  8. package/dist/packages/button/index.d.ts +1 -0
  9. package/dist/packages/button/index.js +214 -9
  10. package/dist/packages/button/index.js.map +4 -4
  11. package/dist/packages/button/react.js +213 -8
  12. package/dist/packages/button/react.js.map +4 -4
  13. package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
  14. package/dist/packages/datepicker/datepicker.d.ts +20 -2
  15. package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
  16. package/dist/packages/datepicker/index.js +81 -78
  17. package/dist/packages/datepicker/index.js.map +3 -3
  18. package/dist/packages/datepicker/react.d.ts +2 -0
  19. package/dist/packages/datepicker/react.js +2805 -0
  20. package/dist/packages/datepicker/react.js.map +7 -0
  21. package/dist/packages/link/index.d.ts +39 -0
  22. package/dist/packages/link/index.js +2646 -0
  23. package/dist/packages/link/index.js.map +7 -0
  24. package/dist/packages/link/link.stories.d.ts +20 -0
  25. package/dist/packages/link/link.test.d.ts +1 -0
  26. package/dist/packages/link/react.d.ts +2 -0
  27. package/dist/packages/link/react.js +2666 -0
  28. package/dist/packages/link/react.js.map +7 -0
  29. package/dist/packages/link/styles.d.ts +1 -0
  30. package/dist/packages/steps/index.d.ts +43 -0
  31. package/dist/packages/steps/index.js +2465 -0
  32. package/dist/packages/steps/index.js.map +7 -0
  33. package/dist/packages/steps/locales/da/messages.d.mts +1 -0
  34. package/dist/packages/steps/locales/en/messages.d.mts +1 -0
  35. package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
  36. package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
  37. package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
  38. package/dist/packages/steps/react.d.ts +3 -0
  39. package/dist/packages/steps/react.js +2485 -0
  40. package/dist/packages/steps/react.js.map +7 -0
  41. package/dist/packages/steps/steps.stories.d.ts +12 -0
  42. package/dist/packages/steps/styles.d.ts +1 -0
  43. package/dist/packages/switch/index.d.ts +20 -0
  44. package/dist/packages/switch/index.js +2455 -0
  45. package/dist/packages/switch/index.js.map +7 -0
  46. package/dist/packages/switch/react.d.ts +2 -0
  47. package/dist/packages/switch/react.js +2475 -0
  48. package/dist/packages/switch/react.js.map +7 -0
  49. package/dist/packages/switch/styles.d.ts +1 -0
  50. package/dist/packages/switch/switch.stories.d.ts +9 -0
  51. package/dist/packages/textfield/index.js +1 -1
  52. package/dist/packages/textfield/index.js.map +2 -2
  53. package/dist/packages/textfield/react.js +1 -1
  54. package/dist/packages/textfield/react.js.map +2 -2
  55. package/dist/packages/toast/index.js.map +1 -1
  56. package/dist/vscode.html-custom-data.json +77 -19
  57. package/dist/web-types.json +156 -41
  58. package/package.json +15 -13
@@ -0,0 +1 @@
1
+ import '../button/index.js';
@@ -60,8 +60,6 @@ declare class WarpDatepicker extends WarpDatepicker_base {
60
60
  */
61
61
  dayFormat: string;
62
62
  isCalendarOpen: boolean;
63
- /** The current input value as a stringified date-like */
64
- internalValue: string;
65
63
  navigationDate: Date;
66
64
  /** @internal This gets picked up by the custom element manifest analyzer as a property for some reason */
67
65
  locale: Locale;
@@ -75,10 +73,30 @@ declare class WarpDatepicker extends WarpDatepicker_base {
75
73
  input: HTMLInputElement;
76
74
  toggleButton: HTMLButtonElement;
77
75
  wrapper: HTMLDivElement;
76
+ /**
77
+ * This is the first focusable element, needed for the modal focus trap.
78
+ *
79
+ * Don't cache this and other `@query` fields from inside the calendar modal.
80
+ * They work the first time, but once the calendar is closed and reopened
81
+ * the query will point to an element that doesn't exist anymore.
82
+ */
83
+ previousMonthButton: HTMLButtonElement;
84
+ todayCell: HTMLTableCellElement;
78
85
  selectedCell: HTMLTableCellElement;
86
+ /**
87
+ * We can't use private fields (`#` prefix) for this method
88
+ * since we can't overwrite private field methods. We need
89
+ * to `.bind(this)` in the constructor because we need one
90
+ * stable method handler we can register and unregister on
91
+ * `document`, that has access to this specific instance
92
+ * of WarpDatepicker to control the calendar.
93
+ * @internal
94
+ */
95
+ private _onClickOutside;
79
96
  constructor();
80
97
  connectedCallback(): void;
81
98
  disconnectedCallback(): void;
99
+ updated(changedProperties: Map<string, unknown>): void;
82
100
  render(): import("lit").TemplateResult<1>;
83
101
  }
84
102
  declare global {
@@ -0,0 +1,2 @@
1
+ import '../button/index.js';
2
+ import './index.js';