@kickstartds/ds-agency-premium 1.6.71--canary.45.1776.0 → 1.6.71--canary.45.1780.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.
@@ -0,0 +1,73 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ /**
7
+ * List of categories to filter appointments
8
+ */
9
+ type Label = string[];
10
+ interface EventFilterProps {
11
+ datePicker?: {
12
+ /**
13
+ * Title for the date picker
14
+ */
15
+ title?: string;
16
+ dateFromInput?: {
17
+ /**
18
+ * Label for the date-from input
19
+ */
20
+ label?: string;
21
+ /**
22
+ * Placeholder text for the date-from input
23
+ */
24
+ placeholder?: string;
25
+ };
26
+ dateToInput?: {
27
+ /**
28
+ * Label for the date-to input
29
+ */
30
+ label?: string;
31
+ /**
32
+ * Placeholder text for the date-to input
33
+ */
34
+ placeholder?: string;
35
+ };
36
+ /**
37
+ * Toggle to enable or disable the date picker
38
+ */
39
+ toggle?: boolean;
40
+ };
41
+ categories?: {
42
+ /**
43
+ * Title for the categories filter
44
+ */
45
+ title?: string;
46
+ categoryCheckboxes?: Label;
47
+ /**
48
+ * Toggle to enable or disable the category filter
49
+ */
50
+ toggle?: boolean;
51
+ };
52
+ applyButton?: {
53
+ /**
54
+ * Label for the button
55
+ */
56
+ label?: string;
57
+ /**
58
+ * Function to call on button click
59
+ */
60
+ onClick?: string;
61
+ };
62
+ resetButton?: {
63
+ /**
64
+ * Label for the button
65
+ */
66
+ label?: string;
67
+ /**
68
+ * Function to call on button click
69
+ */
70
+ onClick?: string;
71
+ };
72
+ }
73
+ export { Label, EventFilterProps };
@@ -1,4 +1,4 @@
1
- import { BlogPostProps } from "../../BlogPostProps-6b3cff22.js";
1
+ import { BlogPostProps } from "../../BlogPostProps-c760fd2a.js";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  declare const BlogPost: FC<PropsWithChildren<BlogPostProps>>;
4
4
  export type { BlogPostProps };
@@ -66,7 +66,10 @@
66
66
  "description": "List of categories to filter appointments",
67
67
  "items": {
68
68
  "type": "string",
69
- "description": "Category name"
69
+ "description": "Category name",
70
+ "examples": [
71
+ "Category Filter"
72
+ ]
70
73
  }
71
74
  },
72
75
  "toggle": {
@@ -51,7 +51,6 @@
51
51
  },
52
52
  "categories": {
53
53
  "type": "object",
54
-
55
54
  "properties": {
56
55
  "title": {
57
56
  "type": "string",
@@ -64,7 +63,8 @@
64
63
  "description": "List of categories to filter appointments",
65
64
  "items": {
66
65
  "type": "string",
67
- "description": "Category name"
66
+ "description": "Category name",
67
+ "examples": ["Category Filter"]
68
68
  }
69
69
  },
70
70
  "toggle": {
@@ -1,77 +1,5 @@
1
1
  /// <reference types="react" />
2
- /* eslint-disable */
3
- /**
4
- * This file was automatically generated by json-schema-to-typescript.
5
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
- * and run json-schema-to-typescript to regenerate this file.
7
- */
8
- /**
9
- * List of categories to filter appointments
10
- */
11
- type Label = string[];
12
- interface EventFilterProps {
13
- datePicker?: {
14
- /**
15
- * Title for the date picker
16
- */
17
- title?: string;
18
- dateFromInput?: {
19
- /**
20
- * Label for the date-from input
21
- */
22
- label?: string;
23
- /**
24
- * Placeholder text for the date-from input
25
- */
26
- placeholder?: string;
27
- };
28
- dateToInput?: {
29
- /**
30
- * Label for the date-to input
31
- */
32
- label?: string;
33
- /**
34
- * Placeholder text for the date-to input
35
- */
36
- placeholder?: string;
37
- };
38
- /**
39
- * Toggle to enable or disable the date picker
40
- */
41
- toggle?: boolean;
42
- };
43
- categories?: {
44
- /**
45
- * Title for the categories filter
46
- */
47
- title?: string;
48
- categoryCheckboxes?: Label;
49
- /**
50
- * Toggle to enable or disable the category filter
51
- */
52
- toggle?: boolean;
53
- };
54
- applyButton?: {
55
- /**
56
- * Label for the button
57
- */
58
- label?: string;
59
- /**
60
- * Function to call on button click
61
- */
62
- onClick?: string;
63
- };
64
- resetButton?: {
65
- /**
66
- * Label for the button
67
- */
68
- label?: string;
69
- /**
70
- * Function to call on button click
71
- */
72
- onClick?: string;
73
- };
74
- }
2
+ import { EventFilterProps } from "../../EventFilterProps-b190eb86.js";
75
3
  declare const EventFilterContextDefault: import("react").ForwardRefExoticComponent<EventFilterProps & import("react").RefAttributes<HTMLDivElement>>;
76
4
  declare const EventFilterContext: import("react").Context<import("react").ForwardRefExoticComponent<EventFilterProps & import("react").RefAttributes<HTMLDivElement>>>;
77
5
  declare const EventFilter: import("react").ForwardRefExoticComponent<EventFilterProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -17,7 +17,7 @@ const EventFilterContextDefault = forwardRef(({ categories = {
17
17
  label: "Filter Appointments",
18
18
  }, resetButton = {
19
19
  label: "Reset Filters",
20
- }, }, ref) => (jsxs("div", { className: "dsa-event-filter", ref: ref, children: [datePicker?.toggle && (jsxs("div", { className: "dsa-event-filter__item", children: [jsx("span", { className: "dsa-event-filter__topic", children: datePicker.title || "Find Appointment" }), jsxs("div", { className: "dsa-event-filter__date-picker", children: [jsx(TextField, { label: datePicker.dateFromInput.label || "From", placeholder: datePicker.dateFromInput.placeholder || "Select a date" }), jsx(TextField, { label: datePicker.dateToInput.label || "To", placeholder: datePicker.dateToInput.placeholder || "Select a date" })] })] })), categories?.toggle && (jsxs("div", { className: "dsa-event-filter__item", children: [jsx("span", { className: "dsa-event-filter__topic", children: categories?.title || "Categories" }), jsx("div", { className: "dsa-event-filter__categories", children: categories &&
20
+ }, }, ref) => (jsxs("div", { className: "dsa-event-filter", ref: ref, children: [datePicker?.toggle && (jsxs("div", { className: "dsa-event-filter__item", children: [jsx("span", { className: "dsa-event-filter__topic", children: datePicker.title || "Find Appointment" }), jsxs("div", { className: "dsa-event-filter__date-picker", children: [jsx(TextField, { label: datePicker.dateFromInput.label || "From", placeholder: datePicker.dateFromInput.placeholder || "Select a date" }), jsx(TextField, { label: datePicker.dateToInput.label || "To", placeholder: datePicker.dateToInput.placeholder || "Select a date" })] })] })), categories && categories?.toggle && (jsxs("div", { className: "dsa-event-filter__item", children: [jsx("span", { className: "dsa-event-filter__topic", children: categories?.title || "Categories" }), jsx("div", { className: "dsa-event-filter__categories", children: categories &&
21
21
  categories.categoryCheckboxes.length > 0 &&
22
22
  categories.categoryCheckboxes.map((category, index) => (jsx(Checkbox, { label: category }, index))) })] })), jsxs("div", { className: "dsa-event-filter__buttons", children: [jsx(Button, { size: "small", label: applyButton?.label || "Filter Appointments", variant: "primary", onClick: () => {
23
23
  // Handle button click
@@ -0,0 +1,130 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/cms/event-list.schema.json",
4
+ "title": "Event List",
5
+ "type": "object",
6
+ "properties": {
7
+ "filter": {
8
+ "$schema": "http://json-schema.org/draft-07/schema#",
9
+ "$id": "http://schema.mydesignsystem.com/event-filter.schema.json",
10
+ "title": "Event Filter",
11
+ "type": "object",
12
+ "properties": {
13
+ "datePicker": {
14
+ "type": "object",
15
+ "properties": {
16
+ "title": {
17
+ "type": "string",
18
+ "description": "Title for the date picker",
19
+ "default": "Find Appointment"
20
+ },
21
+ "dateFromInput": {
22
+ "type": "object",
23
+ "properties": {
24
+ "label": {
25
+ "type": "string",
26
+ "description": "Label for the date-from input",
27
+ "default": "From"
28
+ },
29
+ "placeholder": {
30
+ "type": "string",
31
+ "description": "Placeholder text for the date-from input",
32
+ "default": "Select a date"
33
+ }
34
+ },
35
+ "additionalProperties": false
36
+ },
37
+ "dateToInput": {
38
+ "type": "object",
39
+ "properties": {
40
+ "label": {
41
+ "type": "string",
42
+ "description": "Label for the date-to input",
43
+ "default": "To"
44
+ },
45
+ "placeholder": {
46
+ "type": "string",
47
+ "description": "Placeholder text for the date-to input",
48
+ "default": "Select a date"
49
+ }
50
+ },
51
+ "additionalProperties": false
52
+ },
53
+ "toggle": {
54
+ "type": "boolean",
55
+ "description": "Toggle to enable or disable the date picker",
56
+ "default": true
57
+ }
58
+ },
59
+ "additionalProperties": false
60
+ },
61
+ "categories": {
62
+ "type": "object",
63
+ "properties": {
64
+ "title": {
65
+ "type": "string",
66
+ "description": "Title for the categories filter",
67
+ "default": "Categories"
68
+ },
69
+ "categoryCheckboxes": {
70
+ "type": "array",
71
+ "title": "Label",
72
+ "description": "List of categories to filter appointments",
73
+ "items": {
74
+ "type": "string",
75
+ "description": "Category name",
76
+ "examples": [
77
+ "Category Filter"
78
+ ]
79
+ }
80
+ },
81
+ "toggle": {
82
+ "type": "boolean",
83
+ "description": "Toggle to enable or disable the category filter",
84
+ "default": true
85
+ }
86
+ },
87
+ "additionalProperties": false
88
+ },
89
+ "applyButton": {
90
+ "type": "object",
91
+ "properties": {
92
+ "label": {
93
+ "type": "string",
94
+ "description": "Label for the button",
95
+ "default": "Filter Appointments"
96
+ },
97
+ "onClick": {
98
+ "type": "string",
99
+ "description": "Function to call on button click"
100
+ }
101
+ },
102
+ "additionalProperties": false
103
+ },
104
+ "resetButton": {
105
+ "type": "object",
106
+ "properties": {
107
+ "label": {
108
+ "type": "string",
109
+ "description": "Label for the button",
110
+ "default": "Reset Filters"
111
+ },
112
+ "onClick": {
113
+ "type": "string",
114
+ "description": "Function to call on button click"
115
+ }
116
+ },
117
+ "additionalProperties": false
118
+ },
119
+ "type": {
120
+ "const": "event-filter"
121
+ }
122
+ },
123
+ "additionalProperties": false
124
+ },
125
+ "type": {
126
+ "const": "event-list"
127
+ }
128
+ },
129
+ "additionalProperties": false
130
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/cms/event-list.schema.json",
4
+ "title": "Event List",
5
+ "type": "object",
6
+ "properties": {
7
+ "filter": {
8
+ "$ref": "http://schema.mydesignsystem.com/event-filter.schema.json"
9
+ }
10
+ },
11
+ "additionalProperties": false
12
+ }
@@ -0,0 +1,17 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by json-schema-to-typescript.
5
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
+ * and run json-schema-to-typescript to regenerate this file.
7
+ */
8
+ import { EventFilterProps } from "../../EventFilterProps-b190eb86.js";
9
+ interface EventListProps {
10
+ /**
11
+ * Referenced component EventFilterProps
12
+ */
13
+ filter?: EventFilterProps;
14
+ }
15
+ declare const EventList: FC<PropsWithChildren<EventListProps>>;
16
+ export type { EventListProps };
17
+ export { EventList };
@@ -0,0 +1,22 @@
1
+ import { jsx, Fragment } from 'react/jsx-runtime';
2
+ import { Section } from '../section/index.js';
3
+ import { SplitWeighted } from '../split-weighted/index.js';
4
+ import { EventFilter } from '../event-filter/index.js';
5
+ import 'react';
6
+ import 'classnames';
7
+ import '@kickstartds/core/lib/react';
8
+ import '@kickstartds/base/lib/section';
9
+ import '../section/js/Section.client.js';
10
+ import '@kickstartds/core/lib/component';
11
+ import '@kickstartds/form/lib/text-field';
12
+ import '@kickstartds/form/lib/checkbox';
13
+ import '../button/index.js';
14
+ import '@kickstartds/base/lib/button';
15
+
16
+ const EventList = ({ filter, }) => (jsx(Fragment, { children: jsx(Section, { width: "wide", children: jsx(SplitWeighted, { order: {
17
+ desktop: "asideFirst",
18
+ mobile: "asideFirst",
19
+ }, aside: jsx(EventFilter, { ...filter }) }) }) }));
20
+ EventList.displayName = "EventList";
21
+
22
+ export { EventList };
@@ -29,7 +29,7 @@ interface SettingsProps {
29
29
  seo: SeoProps;
30
30
  iconSprite?: IconSprite;
31
31
  }
32
- export * from "../../BlogPostProps-6b3cff22.js";
32
+ export * from "../../BlogPostProps-c760fd2a.js";
33
33
  export * from "../../BlogOverviewProps-9f207f1c.js";
34
34
  export * from "../../PageProps-aa29c554.js";
35
35
  export { IconSprite, SettingsProps };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 03 Jul 2025 11:03:33 GMT
3
+ * Generated on Thu, 03 Jul 2025 11:19:15 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-fg-to-bg-9-base);
@@ -935,6 +935,47 @@
935
935
  },
936
936
  "screenshot": "img/screenshots/page-archetypes-event-detail--event-detail.png"
937
937
  },
938
+ {
939
+ "id": "page-archetypes-event-list--event-list",
940
+ "group": "Page Archetypes/Event List",
941
+ "name": "EventList",
942
+ "code": "<EventList\n filter={{\n applyButton: {\n label: 'Filter Appointments'\n },\n categories: {\n categoryCheckboxes: [\n 'All',\n 'Buyers',\n 'Sellers',\n 'Renters',\n 'Landlords',\n 'Tenants'\n ],\n title: 'Categories',\n toggle: true\n },\n datePicker: {\n dateFromInput: {\n label: 'From',\n placeholder: 'Select a date'\n },\n dateToInput: {\n label: 'To',\n placeholder: 'Select a date'\n },\n title: 'Find Appointment',\n toggle: true\n },\n resetButton: {\n label: 'Reset Filters'\n }\n }}\n />",
943
+ "args": {
944
+ "filter": {
945
+ "datePicker": {
946
+ "title": "Find Appointment",
947
+ "dateFromInput": {
948
+ "label": "From",
949
+ "placeholder": "Select a date"
950
+ },
951
+ "dateToInput": {
952
+ "label": "To",
953
+ "placeholder": "Select a date"
954
+ },
955
+ "toggle": true
956
+ },
957
+ "categories": {
958
+ "title": "Categories",
959
+ "categoryCheckboxes": [
960
+ "All",
961
+ "Buyers",
962
+ "Sellers",
963
+ "Renters",
964
+ "Landlords",
965
+ "Tenants"
966
+ ],
967
+ "toggle": true
968
+ },
969
+ "applyButton": {
970
+ "label": "Filter Appointments"
971
+ },
972
+ "resetButton": {
973
+ "label": "Reset Filters"
974
+ }
975
+ }
976
+ },
977
+ "screenshot": "img/screenshots/page-archetypes-event-list--event-list.png"
978
+ },
938
979
  {
939
980
  "id": "components-contact--wide-image",
940
981
  "group": "Components/Contact",
@@ -1596,7 +1637,6 @@
1596
1637
  },
1597
1638
  "categories": {
1598
1639
  "title": "Categories",
1599
- "toggle": true,
1600
1640
  "categoryCheckboxes": [
1601
1641
  "All",
1602
1642
  "Buyers",
@@ -1604,7 +1644,8 @@
1604
1644
  "Renters",
1605
1645
  "Landlords",
1606
1646
  "Tenants"
1607
- ]
1647
+ ],
1648
+ "toggle": true
1608
1649
  },
1609
1650
  "applyButton": {
1610
1651
  "label": "Filter Appointments"
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 03 Jul 2025 11:03:36 GMT
3
+ * Generated on Thu, 03 Jul 2025 11:19:17 GMT
4
4
  */
5
5
  :root [ks-theme=business] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2727,7 +2727,7 @@
2727
2727
  }
2728
2728
  /**
2729
2729
  * Do not edit directly
2730
- * Generated on Thu, 03 Jul 2025 11:03:39 GMT
2730
+ * Generated on Thu, 03 Jul 2025 11:19:21 GMT
2731
2731
  */
2732
2732
  :root [ks-theme=google] {
2733
2733
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -5458,7 +5458,7 @@
5458
5458
  }
5459
5459
  /**
5460
5460
  * Do not edit directly
5461
- * Generated on Thu, 03 Jul 2025 11:03:37 GMT
5461
+ * Generated on Thu, 03 Jul 2025 11:19:19 GMT
5462
5462
  */
5463
5463
  :root [ks-theme=ngo] {
5464
5464
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -8459,7 +8459,7 @@
8459
8459
  }
8460
8460
  /**
8461
8461
  * Do not edit directly
8462
- * Generated on Thu, 03 Jul 2025 11:03:41 GMT
8462
+ * Generated on Thu, 03 Jul 2025 11:19:23 GMT
8463
8463
  */
8464
8464
  :root [ks-theme=telekom] {
8465
8465
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 03 Jul 2025 11:03:33 GMT
3
+ * Generated on Thu, 03 Jul 2025 11:19:15 GMT
4
4
  */
5
5
 
6
6
  :root, [ks-theme] {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 03 Jul 2025 11:03:34 GMT
3
+ * Generated on Thu, 03 Jul 2025 11:19:16 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#f3f3f4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kickstartds/ds-agency-premium",
3
- "version": "1.6.71--canary.45.1776.0",
3
+ "version": "1.6.71--canary.45.1780.0",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {