@beweco/aurora-ui 0.1.17 → 0.1.19

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 +1 @@
1
- {"version":3,"file":"schedule-row.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,sBAAsB,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4LlD,CAAC"}
1
+ {"version":3,"file":"schedule-row.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,sBAAsB,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuOlD,CAAC"}
@@ -20,6 +20,43 @@ export interface DaySchedule {
20
20
  isOpen: boolean;
21
21
  timeSlots: TimeSlot[];
22
22
  }
23
+ /**
24
+ * @interface ScheduleRowTranslations
25
+ * @description Translation strings for the ScheduleRow component.
26
+ * Supports internationalization (i18n) without imposing any specific system.
27
+ * @property {string} from - Label for the "from" time field (default: "Desde").
28
+ * @property {string} to - Label for the "to" time field (default: "Hasta").
29
+ * @property {string} open - Label for the open status chip (default: "Abierto").
30
+ * @property {string} closed - Label for the closed status chip (default: "Cerrado").
31
+ * @property {string} copyToAll - Label for the copy to all button (default: "Copiar a todos").
32
+ * @property {string} addTimeSlot - Label for the add time slot button (default: "Agregar horario").
33
+ */
34
+ export interface ScheduleRowTranslations {
35
+ /**
36
+ * Label for the "from" time input field
37
+ */
38
+ from: string;
39
+ /**
40
+ * Label for the "to" time input field
41
+ */
42
+ to: string;
43
+ /**
44
+ * Label displayed when the day is open/active
45
+ */
46
+ open: string;
47
+ /**
48
+ * Label displayed when the day is closed/inactive
49
+ */
50
+ closed: string;
51
+ /**
52
+ * Label for the button that copies the current schedule to all other days
53
+ */
54
+ copyToAll: string;
55
+ /**
56
+ * Label for the button that adds a new time slot
57
+ */
58
+ addTimeSlot: string;
59
+ }
23
60
  /**
24
61
  * @interface ScheduleRowProps
25
62
  * @description Props for the ScheduleRow component.
@@ -34,22 +71,10 @@ export type ScheduleRowProps = {
34
71
  */
35
72
  daySchedule: DaySchedule;
36
73
  /**
37
- * @property {object} translations - An object containing translated strings for the component.
38
- * @property {string} translations.from - Label for the "from" time input.
39
- * @property {string} translations.to - Label for the "to" time input.
40
- * @property {string} translations.open - Text to display when the schedule is open.
41
- * @property {string} translations.closed - Text to display when the schedule is closed.
42
- * @property {string} translations.copyToAll - Label for the "Copy to all" button.
43
- * @property {string} translations.addTimeSlot - Label for the "Add time slot" button.
74
+ * @property {Partial<ScheduleRowTranslations>} [translations] - An object containing translated strings for the component.
75
+ * Allows full internationalization support. If not provided, uses default Spanish translations.
44
76
  */
45
- translations: {
46
- from: string;
47
- to: string;
48
- open: string;
49
- closed: string;
50
- copyToAll: string;
51
- addTimeSlot: string;
52
- };
77
+ translations?: Partial<ScheduleRowTranslations>;
53
78
  /**
54
79
  * @function onChange
55
80
  * @description Callback function that is invoked when the schedule is modified.
@@ -60,7 +85,7 @@ export type ScheduleRowProps = {
60
85
  /**
61
86
  * @function onCopyToAll
62
87
  * @description Callback function that is invoked when the "Copy to all" button is clicked.
63
- * @param {DaySchedule} schedule - The current schedule object to be copied.
88
+ * @param {string} day - The day of the week to copy from.
64
89
  * @returns {void}
65
90
  */
66
91
  onCopyToAll: (day: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"schedule-row.types.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;;;;;OAQG;IACH,YAAY,EAAE;QACb,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC;IACF;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C;;;;;OAKG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC"}
1
+ {"version":3,"file":"schedule-row.types.d.ts","sourceRoot":"","sources":["../../../../src/components/schedule-row/schedule-row.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAuB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAChD;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7C;;;;;OAKG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beweco/aurora-ui",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "Bewe Aurora UI Component Library",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",