@roadtrip/components 2.26.0 → 2.27.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.
Files changed (56) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/road-duration.cjs.entry.js +60 -0
  3. package/dist/cjs/roadtrip.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +1 -0
  5. package/dist/collection/components/card/card.stories.js +2 -2
  6. package/dist/collection/components/duration/duration.css +31 -0
  7. package/dist/collection/components/duration/duration.js +212 -0
  8. package/dist/collection/components/duration/duration.stories.js +108 -0
  9. package/dist/collection/components/icon/svg/device-smartphone-music-color.svg +1 -0
  10. package/dist/collection/components/icon/svg/device-smartphone-music.svg +1 -0
  11. package/dist/collection/components/icon/svg/mic-off-outline-color.svg +1 -0
  12. package/dist/collection/components/icon/svg/mic-off-outline.svg +1 -0
  13. package/dist/collection/components/icon/svg/mic-off.svg +1 -0
  14. package/dist/collection/components/icon/svg/people-community-outline-color.svg +1 -0
  15. package/dist/collection/components/icon/svg/people-community-outline.svg +1 -0
  16. package/dist/collection/components/icon/svg/people-community.svg +1 -0
  17. package/dist/collection/components/icon/svg/people-coworker-color.svg +1 -1
  18. package/dist/collection/components/icon/svg/people-coworker.svg +1 -1
  19. package/dist/collection/components/icon/svg/player-radio-music-outline-color.svg +1 -0
  20. package/dist/collection/components/icon/svg/player-radio-music-outline.svg +1 -0
  21. package/dist/collection/components/icon/svg/station-electric-outline-color.svg +1 -0
  22. package/dist/collection/components/icon/svg/station-electric-outline.svg +1 -0
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/esm/road-duration.entry.js +56 -0
  25. package/dist/esm/roadtrip.js +1 -1
  26. package/dist/esm-es5/loader.js +1 -1
  27. package/dist/esm-es5/road-duration.entry.js +1 -0
  28. package/dist/esm-es5/roadtrip.js +1 -1
  29. package/dist/html.html-data.json +35 -0
  30. package/dist/icons/icons.svg +1 -1
  31. package/dist/icons/index.d.ts +12 -0
  32. package/dist/icons/index.js +14 -2
  33. package/dist/roadtrip/p-6bc4c517.system.entry.js +1 -0
  34. package/dist/roadtrip/p-7a07a70f.entry.js +1 -0
  35. package/dist/roadtrip/p-b205281e.system.js +1 -1
  36. package/dist/roadtrip/roadtrip.esm.js +1 -1
  37. package/dist/roadtrip/svg/device-smartphone-music-color.svg +1 -0
  38. package/dist/roadtrip/svg/device-smartphone-music.svg +1 -0
  39. package/dist/roadtrip/svg/mic-off-outline-color.svg +1 -0
  40. package/dist/roadtrip/svg/mic-off-outline.svg +1 -0
  41. package/dist/roadtrip/svg/mic-off.svg +1 -0
  42. package/dist/roadtrip/svg/people-community-outline-color.svg +1 -0
  43. package/dist/roadtrip/svg/people-community-outline.svg +1 -0
  44. package/dist/roadtrip/svg/people-community.svg +1 -0
  45. package/dist/roadtrip/svg/people-coworker-color.svg +1 -1
  46. package/dist/roadtrip/svg/people-coworker.svg +1 -1
  47. package/dist/roadtrip/svg/player-radio-music-outline-color.svg +1 -0
  48. package/dist/roadtrip/svg/player-radio-music-outline.svg +1 -0
  49. package/dist/roadtrip/svg/station-electric-outline-color.svg +1 -0
  50. package/dist/roadtrip/svg/station-electric-outline.svg +1 -0
  51. package/dist/types/components/duration/duration.d.ts +44 -0
  52. package/dist/types/components.d.ts +68 -0
  53. package/icons/icons.svg +1 -1
  54. package/icons/index.d.ts +12 -0
  55. package/icons/index.js +14 -2
  56. package/package.json +1 -1
@@ -395,6 +395,36 @@ export namespace Components {
395
395
  */
396
396
  "isOpen": boolean;
397
397
  }
398
+ interface RoadDuration {
399
+ /**
400
+ * Close the widget
401
+ */
402
+ "close": () => Promise<void>;
403
+ /**
404
+ * title of the widget
405
+ */
406
+ "header": string;
407
+ /**
408
+ * Set isOpen property to true to open the duration widget
409
+ */
410
+ "isOpen": boolean;
411
+ /**
412
+ * The maximum value, which must not be less than its minimum (min attribute) value in minutes.
413
+ */
414
+ "max": number;
415
+ /**
416
+ * The minimum value, which must not be greater than its maximum (max attribute) value in minutes.
417
+ */
418
+ "min": number;
419
+ /**
420
+ * Open the widget
421
+ */
422
+ "open": () => Promise<void>;
423
+ /**
424
+ * Works with the min and max attributes to limit the increments at which a value can be set in minutes.
425
+ */
426
+ "step": number;
427
+ }
398
428
  interface RoadFlap {
399
429
  /**
400
430
  * Set the color of the flap.
@@ -1266,6 +1296,12 @@ declare global {
1266
1296
  prototype: HTMLRoadDropdownElement;
1267
1297
  new (): HTMLRoadDropdownElement;
1268
1298
  };
1299
+ interface HTMLRoadDurationElement extends Components.RoadDuration, HTMLStencilElement {
1300
+ }
1301
+ var HTMLRoadDurationElement: {
1302
+ prototype: HTMLRoadDurationElement;
1303
+ new (): HTMLRoadDurationElement;
1304
+ };
1269
1305
  interface HTMLRoadFlapElement extends Components.RoadFlap, HTMLStencilElement {
1270
1306
  }
1271
1307
  var HTMLRoadFlapElement: {
@@ -1494,6 +1530,7 @@ declare global {
1494
1530
  "road-dialog": HTMLRoadDialogElement;
1495
1531
  "road-drawer": HTMLRoadDrawerElement;
1496
1532
  "road-dropdown": HTMLRoadDropdownElement;
1533
+ "road-duration": HTMLRoadDurationElement;
1497
1534
  "road-flap": HTMLRoadFlapElement;
1498
1535
  "road-grid": HTMLRoadGridElement;
1499
1536
  "road-icon": HTMLRoadIconElement;
@@ -1950,6 +1987,35 @@ declare namespace LocalJSX {
1950
1987
  */
1951
1988
  "isOpen"?: boolean;
1952
1989
  }
1990
+ interface RoadDuration {
1991
+ /**
1992
+ * title of the widget
1993
+ */
1994
+ "header"?: string;
1995
+ /**
1996
+ * Set isOpen property to true to open the duration widget
1997
+ */
1998
+ "isOpen"?: boolean;
1999
+ /**
2000
+ * The maximum value, which must not be less than its minimum (min attribute) value in minutes.
2001
+ */
2002
+ "max"?: number;
2003
+ /**
2004
+ * The minimum value, which must not be greater than its maximum (max attribute) value in minutes.
2005
+ */
2006
+ "min"?: number;
2007
+ /**
2008
+ * Emitt the value and label of the selected option.
2009
+ */
2010
+ "onRoadselected"?: (event: CustomEvent<{
2011
+ value: string | undefined | null,
2012
+ label: string
2013
+ }>) => void;
2014
+ /**
2015
+ * Works with the min and max attributes to limit the increments at which a value can be set in minutes.
2016
+ */
2017
+ "step"?: number;
2018
+ }
1953
2019
  interface RoadFlap {
1954
2020
  /**
1955
2021
  * Set the color of the flap.
@@ -2830,6 +2896,7 @@ declare namespace LocalJSX {
2830
2896
  "road-dialog": RoadDialog;
2831
2897
  "road-drawer": RoadDrawer;
2832
2898
  "road-dropdown": RoadDropdown;
2899
+ "road-duration": RoadDuration;
2833
2900
  "road-flap": RoadFlap;
2834
2901
  "road-grid": RoadGrid;
2835
2902
  "road-icon": RoadIcon;
@@ -2888,6 +2955,7 @@ declare module "@stencil/core" {
2888
2955
  "road-dialog": LocalJSX.RoadDialog & JSXBase.HTMLAttributes<HTMLRoadDialogElement>;
2889
2956
  "road-drawer": LocalJSX.RoadDrawer & JSXBase.HTMLAttributes<HTMLRoadDrawerElement>;
2890
2957
  "road-dropdown": LocalJSX.RoadDropdown & JSXBase.HTMLAttributes<HTMLRoadDropdownElement>;
2958
+ "road-duration": LocalJSX.RoadDuration & JSXBase.HTMLAttributes<HTMLRoadDurationElement>;
2891
2959
  "road-flap": LocalJSX.RoadFlap & JSXBase.HTMLAttributes<HTMLRoadFlapElement>;
2892
2960
  "road-grid": LocalJSX.RoadGrid & JSXBase.HTMLAttributes<HTMLRoadGridElement>;
2893
2961
  "road-icon": LocalJSX.RoadIcon & JSXBase.HTMLAttributes<HTMLRoadIconElement>;