sccoreui 6.3.97 → 6.3.98

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 (121) hide show
  1. package/dist/components/formula-template/{FormulaCoponent.js → FormulaComponent.js} +3 -1
  2. package/dist/index.js +5 -3
  3. package/dist/types/index.d.ts +11 -10
  4. package/package.json +1 -1
  5. package/dist/pages/RowGroupingServerside/DragandDropFeatures.js +0 -49
  6. package/dist/pages/RowGroupingServerside/RowGroupingServerSide.js +0 -125
  7. package/dist/pages/RowGroupingServerside/dummyData.js +0 -226
  8. package/dist/pages/VirtualScrollDropDown/VirtualScrollDropDown.js +0 -9
  9. package/dist/pages/aggrid/AgGrid.js +0 -837
  10. package/dist/pages/aggrid/BulkAction.js +0 -9
  11. package/dist/pages/aggrid/RowGroupTrail.js +0 -125
  12. package/dist/pages/aggrid/Template.js +0 -11
  13. package/dist/pages/aggrid/TestingWIthAdminConfig.js +0 -243
  14. package/dist/pages/aggrid/TestingWithAdminClientSide.js +0 -447
  15. package/dist/pages/aggrid/fakeServer.js +0 -95
  16. package/dist/pages/aggrid/id-cell.js +0 -9
  17. package/dist/pages/aggrid/interface.js +0 -2
  18. package/dist/pages/avatar/avatar.js +0 -338
  19. package/dist/pages/badges/badge.js +0 -73
  20. package/dist/pages/breadcrumb/breadcrumb.js +0 -14
  21. package/dist/pages/button/button.js +0 -10
  22. package/dist/pages/button-group/button-group.js +0 -10
  23. package/dist/pages/chart/chart.js +0 -257
  24. package/dist/pages/checkbox/checkbox.js +0 -26
  25. package/dist/pages/checkbox-group/checkbox-group-component.js +0 -21
  26. package/dist/pages/color-picker/color-picker.js +0 -13
  27. package/dist/pages/content-dividers/content-dividers.js +0 -11
  28. package/dist/pages/custom-color-picker/custom-color-picker.js +0 -12
  29. package/dist/pages/custom-multiselect/CustomMultiSelect.js +0 -37
  30. package/dist/pages/date-picker/date-picker.js +0 -20
  31. package/dist/pages/dropdown/dropdown-component.js +0 -39
  32. package/dist/pages/file-upload/file-upload.js +0 -34
  33. package/dist/pages/flex.js +0 -15
  34. package/dist/pages/formulaTemplate/formulaTemplate.js +0 -105
  35. package/dist/pages/frolaTextEditor/froala-text-editor.js +0 -14
  36. package/dist/pages/home.js +0 -57
  37. package/dist/pages/input/input-text.js +0 -112
  38. package/dist/pages/list-box-dropdown/listboxdropdown.js +0 -61
  39. package/dist/pages/loader-indicator/loader-indicator.js +0 -10
  40. package/dist/pages/mega-mennu/mega-menu.js +0 -84
  41. package/dist/pages/multi-select-dropdown/multi-select-dropdown.js +0 -51
  42. package/dist/pages/not-found/not-found.js +0 -10
  43. package/dist/pages/paginator/pagination.js +0 -122
  44. package/dist/pages/progress-bar/progress-bar.js +0 -27
  45. package/dist/pages/progress-steps/progress-steps.js +0 -24
  46. package/dist/pages/radio-button/radio-button-component.js +0 -11
  47. package/dist/pages/shadows/shadows.js +0 -7
  48. package/dist/pages/slideout-menus/slideout-menus.js +0 -104
  49. package/dist/pages/sliders/slider.js +0 -39
  50. package/dist/pages/tabels/table-data.js +0 -2193
  51. package/dist/pages/tabels/table.js +0 -98
  52. package/dist/pages/tabs/tabs.js +0 -9
  53. package/dist/pages/tags/tags.js +0 -70
  54. package/dist/pages/testingcomponents/NormalAgGrid.js +0 -58
  55. package/dist/pages/testingcomponents/TestComponent.js +0 -69
  56. package/dist/pages/testingcomponents/data.js +0 -326
  57. package/dist/pages/testingcomponents/fom-feild-testing/MainformComp.js +0 -16
  58. package/dist/pages/toast/toast.js +0 -47
  59. package/dist/pages/toggle/toggle.js +0 -10
  60. package/dist/pages/tooltip/tooltip.js +0 -13
  61. package/dist/pages/treeDropdownSelect/treedropdowselect.js +0 -34
  62. package/dist/pages/types/type.js +0 -2
  63. package/dist/types/pages/RowGroupingServerside/DragandDropFeatures.d.ts +0 -4
  64. package/dist/types/pages/RowGroupingServerside/RowGroupingServerSide.d.ts +0 -4
  65. package/dist/types/pages/RowGroupingServerside/dummyData.d.ts +0 -9
  66. package/dist/types/pages/VirtualScrollDropDown/VirtualScrollDropDown.d.ts +0 -2
  67. package/dist/types/pages/aggrid/AgGrid.d.ts +0 -2
  68. package/dist/types/pages/aggrid/BulkAction.d.ts +0 -2
  69. package/dist/types/pages/aggrid/RowGroupTrail.d.ts +0 -4
  70. package/dist/types/pages/aggrid/Template.d.ts +0 -2
  71. package/dist/types/pages/aggrid/TestingWIthAdminConfig.d.ts +0 -2
  72. package/dist/types/pages/aggrid/TestingWithAdminClientSide.d.ts +0 -2
  73. package/dist/types/pages/aggrid/fakeServer.d.ts +0 -7
  74. package/dist/types/pages/aggrid/id-cell.d.ts +0 -2
  75. package/dist/types/pages/aggrid/interface.d.ts +0 -12
  76. package/dist/types/pages/avatar/avatar.d.ts +0 -2
  77. package/dist/types/pages/badges/badge.d.ts +0 -3
  78. package/dist/types/pages/breadcrumb/breadcrumb.d.ts +0 -2
  79. package/dist/types/pages/button/button.d.ts +0 -2
  80. package/dist/types/pages/button-group/button-group.d.ts +0 -2
  81. package/dist/types/pages/chart/chart.d.ts +0 -2
  82. package/dist/types/pages/checkbox/checkbox.d.ts +0 -2
  83. package/dist/types/pages/checkbox-group/checkbox-group-component.d.ts +0 -3
  84. package/dist/types/pages/color-picker/color-picker.d.ts +0 -2
  85. package/dist/types/pages/content-dividers/content-dividers.d.ts +0 -2
  86. package/dist/types/pages/custom-color-picker/custom-color-picker.d.ts +0 -2
  87. package/dist/types/pages/custom-multiselect/CustomMultiSelect.d.ts +0 -2
  88. package/dist/types/pages/date-picker/date-picker.d.ts +0 -2
  89. package/dist/types/pages/dropdown/dropdown-component.d.ts +0 -2
  90. package/dist/types/pages/file-upload/file-upload.d.ts +0 -3
  91. package/dist/types/pages/flex.d.ts +0 -2
  92. package/dist/types/pages/formulaTemplate/formulaTemplate.d.ts +0 -2
  93. package/dist/types/pages/frolaTextEditor/froala-text-editor.d.ts +0 -2
  94. package/dist/types/pages/home.d.ts +0 -2
  95. package/dist/types/pages/input/input-text.d.ts +0 -3
  96. package/dist/types/pages/list-box-dropdown/listboxdropdown.d.ts +0 -2
  97. package/dist/types/pages/loader-indicator/loader-indicator.d.ts +0 -3
  98. package/dist/types/pages/mega-mennu/mega-menu.d.ts +0 -2
  99. package/dist/types/pages/multi-select-dropdown/multi-select-dropdown.d.ts +0 -2
  100. package/dist/types/pages/not-found/not-found.d.ts +0 -2
  101. package/dist/types/pages/paginator/pagination.d.ts +0 -2
  102. package/dist/types/pages/progress-bar/progress-bar.d.ts +0 -3
  103. package/dist/types/pages/progress-steps/progress-steps.d.ts +0 -2
  104. package/dist/types/pages/radio-button/radio-button-component.d.ts +0 -2
  105. package/dist/types/pages/shadows/shadows.d.ts +0 -2
  106. package/dist/types/pages/slideout-menus/slideout-menus.d.ts +0 -2
  107. package/dist/types/pages/sliders/slider.d.ts +0 -1
  108. package/dist/types/pages/tabels/table-data.d.ts +0 -3
  109. package/dist/types/pages/tabels/table.d.ts +0 -2
  110. package/dist/types/pages/tabs/tabs.d.ts +0 -3
  111. package/dist/types/pages/tags/tags.d.ts +0 -3
  112. package/dist/types/pages/testingcomponents/NormalAgGrid.d.ts +0 -4
  113. package/dist/types/pages/testingcomponents/TestComponent.d.ts +0 -4
  114. package/dist/types/pages/testingcomponents/data.d.ts +0 -1
  115. package/dist/types/pages/testingcomponents/fom-feild-testing/MainformComp.d.ts +0 -2
  116. package/dist/types/pages/toast/toast.d.ts +0 -2
  117. package/dist/types/pages/toggle/toggle.d.ts +0 -2
  118. package/dist/types/pages/tooltip/tooltip.d.ts +0 -2
  119. package/dist/types/pages/treeDropdownSelect/treedropdowselect.d.ts +0 -2
  120. package/dist/types/pages/types/type.d.ts +0 -64
  121. /package/dist/types/components/formula-template/{FormulaCoponent.d.ts → FormulaComponent.d.ts} +0 -0
@@ -1,257 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const chart_1 = require("primereact/chart");
6
- const ChartsComponent = () => {
7
- /// chart 1 states ++++++++++++++++++++++++++++++++++++
8
- const [chartData, setChartData] = (0, react_1.useState)({});
9
- const [chartOptions, setChartOptions] = (0, react_1.useState)({});
10
- /// chart 2 states ++++++++++++++++++++++++++++++++++++
11
- const [chartData2, setChartData2] = (0, react_1.useState)({});
12
- const [chartOptions2, setChartOptions2] = (0, react_1.useState)({});
13
- /// chart 3 states ++++++++++++++++++++++++++++++++++++
14
- const [chartData3, setChartData3] = (0, react_1.useState)({});
15
- const [chartOptions3, setChartOptions3] = (0, react_1.useState)({});
16
- // chart 4 states +++++++++++++++++++++++++++++++++
17
- const [chartData4, setChartData4] = (0, react_1.useState)({});
18
- const [chartOptions4, setChartOptions4] = (0, react_1.useState)({});
19
- // chart1 data+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
20
- (0, react_1.useEffect)(() => {
21
- const documentStyle = getComputedStyle(document.documentElement);
22
- const textColor = documentStyle.getPropertyValue("--text-color");
23
- const textColorSecondary = documentStyle.getPropertyValue("--gray-700");
24
- const surfaceBorder = documentStyle.getPropertyValue("--surface-border");
25
- const data = {
26
- labels: [
27
- "Jan",
28
- "Feb",
29
- "Mar",
30
- "Apr",
31
- "May",
32
- "Jun",
33
- "Jul",
34
- "Aug",
35
- "Sep",
36
- "Oct",
37
- "Nov",
38
- "Dec",
39
- ],
40
- datasets: [
41
- {
42
- type: "bar",
43
- label: "Dataset 2",
44
- backgroundColor: documentStyle.getPropertyValue("--primary-700"),
45
- data: [21, 84, 24, 75, 37, 65, 34, 100, 34, 100, 22, 400],
46
- },
47
- {
48
- type: "bar",
49
- label: "Dataset 1",
50
- backgroundColor: documentStyle.getPropertyValue("--primary-500"),
51
- data: [50, 25, 12, 48, 90, 76, 42, 32, 36, 36, 36, 36, 36],
52
- },
53
- {
54
- type: "bar",
55
- label: "Dataset 3",
56
- backgroundColor: documentStyle.getPropertyValue("--primary-300"),
57
- data: [41, 52, 24, 74, 23, 21, 32, 12, 24, 14, 24, 34, 29],
58
- },
59
- ],
60
- };
61
- const options = {
62
- maintainAspectRatio: false,
63
- aspectRatio: 0.8,
64
- plugins: {
65
- tooltips: {
66
- mode: "index",
67
- intersect: true,
68
- },
69
- legend: {
70
- labels: {
71
- color: textColor,
72
- },
73
- },
74
- },
75
- scales: {
76
- x: {
77
- stacked: true,
78
- ticks: {
79
- color: textColorSecondary,
80
- },
81
- grid: {
82
- color: surfaceBorder,
83
- },
84
- },
85
- y: {
86
- max: 400,
87
- stacked: true,
88
- ticks: {
89
- color: textColorSecondary,
90
- },
91
- grid: {
92
- color: surfaceBorder,
93
- },
94
- },
95
- },
96
- };
97
- setChartData(data);
98
- setChartOptions(options);
99
- }, []);
100
- //chart2 data++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
101
- (0, react_1.useEffect)(() => {
102
- const documentStyle = getComputedStyle(document.documentElement);
103
- const textColor = documentStyle.getPropertyValue("--text-color");
104
- const textColorSecondary = documentStyle.getPropertyValue("--text-color-secondary");
105
- const surfaceBorder = documentStyle.getPropertyValue("--surface-border");
106
- const data = {
107
- labels: ["January", "February", "March", "April", "May", "June", "July"],
108
- datasets: [
109
- {
110
- label: "First Dataset",
111
- data: [65, 59, 80, 81, 56, 55, 40],
112
- fill: false,
113
- tension: 0.4,
114
- borderColor: documentStyle.getPropertyValue("--primary-600"),
115
- },
116
- {
117
- label: "Second Dataset",
118
- data: [28, 48, 40, 19, 86, 27, 90],
119
- fill: false,
120
- tension: 0.4,
121
- borderColor: documentStyle.getPropertyValue("--primary-400"),
122
- },
123
- {
124
- label: "Third Dataset",
125
- data: [12, 51, 62, 33, 21, 62, 45],
126
- fill: false,
127
- borderColor: documentStyle.getPropertyValue("--primary-800"),
128
- tension: 0.4,
129
- },
130
- ],
131
- };
132
- const options = {
133
- maintainAspectRatio: false,
134
- aspectRatio: 0.6,
135
- plugins: {
136
- legend: {
137
- labels: {
138
- color: textColor,
139
- },
140
- },
141
- },
142
- scales: {
143
- x: {
144
- ticks: {
145
- color: textColorSecondary,
146
- },
147
- grid: {
148
- color: surfaceBorder,
149
- },
150
- },
151
- y: {
152
- ticks: {
153
- color: textColorSecondary,
154
- },
155
- grid: {
156
- color: surfaceBorder,
157
- },
158
- },
159
- },
160
- };
161
- setChartData2(data);
162
- setChartOptions2(options);
163
- }, []);
164
- //chart3 data ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
165
- (0, react_1.useEffect)(() => {
166
- const documentStyle = getComputedStyle(document.documentElement);
167
- const data = {
168
- labels: ["A", "B", "C"],
169
- datasets: [
170
- {
171
- data: [300, 50, 100],
172
- backgroundColor: [
173
- documentStyle.getPropertyValue("--primary-500"),
174
- documentStyle.getPropertyValue("--primary-600"),
175
- documentStyle.getPropertyValue("--primary-100"),
176
- ],
177
- hoverBackgroundColor: [
178
- documentStyle.getPropertyValue("--primary-500"),
179
- documentStyle.getPropertyValue("--primary-600"),
180
- documentStyle.getPropertyValue("--primary-100"),
181
- ],
182
- },
183
- ],
184
- };
185
- const options = {
186
- cutout: "60%",
187
- };
188
- setChartData3(data);
189
- setChartOptions3(options);
190
- }, []);
191
- //Chart4 data ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
192
- (0, react_1.useEffect)(() => {
193
- const documentStyle = getComputedStyle(document.documentElement);
194
- const textColor = documentStyle.getPropertyValue("--text-color");
195
- const textColorSecondary = documentStyle.getPropertyValue("--gray-100");
196
- const data = {
197
- labels: [
198
- "Eating",
199
- "Drinking",
200
- "Sleeping",
201
- "Designing",
202
- "Coding",
203
- "Cycling",
204
- "Running",
205
- ],
206
- datasets: [
207
- {
208
- label: "My First dataset",
209
- borderColor: documentStyle.getPropertyValue("--pink-500"),
210
- pointBackgroundColor: documentStyle.getPropertyValue("--pink-500"),
211
- pointBorderColor: documentStyle.getPropertyValue("--pink-500"),
212
- pointHoverBackgroundColor: textColor,
213
- pointHoverBorderColor: documentStyle.getPropertyValue("--pink-500"),
214
- data: [65, 59, 90, 81, 56, 55, 40],
215
- },
216
- {
217
- label: "My Second dataset",
218
- borderColor: documentStyle.getPropertyValue("--primary-600"),
219
- pointBackgroundColor: documentStyle.getPropertyValue("--primary-600"),
220
- pointBorderColor: documentStyle.getPropertyValue("--primary-600"),
221
- pointHoverBackgroundColor: textColor,
222
- pointHoverBorderColor: documentStyle.getPropertyValue("--primary-600"),
223
- data: [28, 48, 40, 19, 96, 27, 100],
224
- },
225
- {
226
- label: "My Third dataset",
227
- borderColor: documentStyle.getPropertyValue("--teal-300"),
228
- pointBackgroundColor: documentStyle.getPropertyValue("--teal-300"),
229
- pointBorderColor: documentStyle.getPropertyValue("--teal-300"),
230
- pointHoverBackgroundColor: textColor,
231
- pointHoverBorderColor: documentStyle.getPropertyValue("--teal-300"),
232
- data: [70, 89, 30, 39, 100, 72, 40],
233
- },
234
- ],
235
- };
236
- const options = {
237
- plugins: {
238
- legend: {
239
- labels: {
240
- color: textColor,
241
- },
242
- },
243
- },
244
- scales: {
245
- r: {
246
- grid: {
247
- color: textColorSecondary,
248
- },
249
- },
250
- },
251
- };
252
- setChartData4(data);
253
- setChartOptions4(options);
254
- }, []);
255
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "h-full w-full flex flex-column justify-content-center" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "grid my-8 mx-4" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "col-12 md:col-6 flex align-items-center p-6" }, { children: [(0, jsx_runtime_1.jsx)("p", Object.assign({ className: "-rotate-90 text-gray-600 w-6rem my-1 font-medium text-sm" }, { children: "Active users" })), (0, jsx_runtime_1.jsx)(chart_1.Chart, { type: "bar", className: "w-full", data: chartData, options: chartOptions })] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "col-12 md:col-6 flex align-items-center p-6" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card w-full" }, { children: (0, jsx_runtime_1.jsx)(chart_1.Chart, { type: "line", className: "w-full", data: chartData2, options: chartOptions2 }) })) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "col-12 md:col-6 flex align-items-center p-6" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card w-full" }, { children: (0, jsx_runtime_1.jsx)(chart_1.Chart, { type: "doughnut", data: chartData3, options: chartOptions3, className: "w-full md:w-30rem" }) })) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "col-12 md:col-6 flex align-items-center p-6" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card w-full" }, { children: (0, jsx_runtime_1.jsx)(chart_1.Chart, { type: "radar", data: chartData4, options: chartOptions4, className: "w-full md:w-30rem" }) })) }))] })) })));
256
- };
257
- exports.default = ChartsComponent;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const checkbox_1 = require("primereact/checkbox");
6
- const react_1 = require("react");
7
- const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
8
- const CheckboxComponent = () => {
9
- const [checkedBox, setCheckedBox] = (0, react_1.useState)(false);
10
- const [checkedCircle, setCheckedCircle] = (0, react_1.useState)(false);
11
- const [indeterminateBox, setIndeterminateBox] = (0, react_1.useState)(false);
12
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-3" }, { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "flex bg-gray-200 p-3 justify-content-center mt-0 mb-4" }, { children: "Checkbox & Checkcircle" })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column justify-content-center align-items-center gap-4" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "card flex align-items-center gap-4" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onChange: (e) => {
13
- setCheckedBox(e.checked);
14
- }, checked: checkedBox, icon: checkedBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: false, disabled: true, icon: checkedBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { className: "p-invalid", checked: false })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onChange: (e) => {
15
- setIndeterminateBox(e.checked);
16
- }, checked: indeterminateBox, icon: indeterminateBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "hyphen-selected" }) }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "hyphen-selected" }) }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: false, disabled: true, icon: indeterminateBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "hyphen-selected" }) }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { className: "p-invalid", checked: false })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onChange: (e) => {
17
- setCheckedCircle(e.checked);
18
- }, checked: checkedCircle, icon: checkedCircle && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }), className: "p-checkcircle" }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }), className: "p-checkcircle" }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: false, disabled: true, icon: checkedCircle && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }), className: "p-checkcircle" }), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { className: "p-invalid p-checkcircle", checked: false })] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex justify-content-center gap-4" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onChange: (e) => {
19
- setCheckedBox(e.checked);
20
- }, checked: checkedBox, className: "mt-1", icon: checkedBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-medium text-base" }, { children: "Remember me" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal text-base" }, { children: "Save my login details for next time." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, className: "mt-1", icon: checkedBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-medium text-base" }, { children: "Remember me" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal text-base" }, { children: "Save my login details for next time." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onChange: (e) => {
21
- setIndeterminateBox(e.checked);
22
- }, checked: indeterminateBox, className: "mt-1", icon: indeterminateBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "hyphen-selected" }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-medium text-base" }, { children: "Remember me" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal text-base" }, { children: "Save my login details for next time." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, className: "mt-1", icon: indeterminateBox && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "hyphen-selected" }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-medium text-base" }, { children: "Remember me" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal text-base" }, { children: "Save my login details for next time." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onChange: (e) => {
23
- setCheckedCircle(e.checked);
24
- }, checked: checkedCircle, className: "mt-1 p-checkcircle", icon: checkedCircle && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-medium text-base" }, { children: "Remember me" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal text-base" }, { children: "Save my login details for next time." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-2" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, className: "mt-1 p-checkcircle", icon: checkedCircle && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-medium text-base" }, { children: "Remember me" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal text-base" }, { children: "Save my login details for next time." }))] }))] }))] }))] }))] }))] })));
25
- };
26
- exports.default = CheckboxComponent;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const checkbox_1 = require("primereact/checkbox");
6
- const radiobutton_1 = require("primereact/radiobutton");
7
- const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
8
- const react_1 = require("react");
9
- require("./checkbox-group-component.scss");
10
- const Payment_method_card_white_png_1 = tslib_1.__importDefault(require("../../assets/images/Payment-method-card-white.png"));
11
- const CheckboxGroupComponent = () => {
12
- const [isChecked, setIsChecked] = (0, react_1.useState)(false);
13
- const handleGroupClick = (e, state) => {
14
- e.stopPropagation();
15
- if (state === "default") {
16
- setIsChecked(!isChecked);
17
- }
18
- };
19
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "flex bg-gray-200 p-3 justify-content-center mt-0 mb-4" }, { children: "Checkbox & Radio Button Group" })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column gap-8" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column align-items-start gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group ${isChecked ? "p-group-highlight" : ""} group-wide`, onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: isChecked, onChange: () => setIsChecked(!isChecked), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group ${isChecked ? "p-group-highlight" : ""} group-narrow`, onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: isChecked, onChange: () => setIsChecked(!isChecked), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-highlight group-wide", onClick: (e) => handleGroupClick(e, "checked") }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-highlight group-narrow", onClick: (e) => handleGroupClick(e, "checked") }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-disabled group-wide" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-disabled group-narrow" }, { children: [(0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected" }) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column align-items-start gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group ${isChecked ? "p-group-highlight" : ""} group-wide`, onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { checked: isChecked, onChange: () => setIsChecked(!isChecked) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group ${isChecked ? "p-group-highlight" : ""} group-narrow`, onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { checked: isChecked, onChange: () => setIsChecked(!isChecked) }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-highlight group-wide", onClick: (e) => handleGroupClick(e, "checked") }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { checked: true }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-highlight group-narrow", onClick: (e) => handleGroupClick(e, "checked") }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { checked: true }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-disabled group-wide" }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { disabled: true, checked: false }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-disabled group-narrow" }, { children: [(0, jsx_runtime_1.jsx)(radiobutton_1.RadioButton, { disabled: true, checked: false }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column align-items-start gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group ${isChecked ? "p-group-highlight" : ""} group-wide`, onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: isChecked, className: "p-checkcircle ml-auto", onChange: () => setIsChecked(!isChecked), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group ${isChecked ? "p-group-highlight" : ""} group-narrow`, onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: isChecked, className: "p-checkcircle", onChange: () => setIsChecked(!isChecked), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-highlight group-wide", onClick: (e) => handleGroupClick(e, "checked") }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, className: "p-checkcircle ml-auto", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })) })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-disabled group-wide" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack-disabled" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, className: "p-checkcircle ml-auto", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-start gap-3 p-4 border-round-xl p-checkbox-group p-group-disabled group-narrow" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack-disabled" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Basic plan $10/month" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, className: "p-checkcircle", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column align-items-start gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ id: "header-group", className: "flex flex-column border-round-xl p-checkbox-group group-wide", onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: `flex align-items-center ${isChecked ? "p-header-highlight" : ""} gap-3 p-3` }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack" }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: `${isChecked ? "text-primary-800" : "text-gray-700"} text-lg font-semibold` }, { children: "Basic plan" })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: isChecked, onChange: () => setIsChecked(!isChecked), className: "p-checkcircle ml-auto", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsx)("span", { className: "w-full m-0", id: "separator" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text p-3" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex justify-content-between line-height-3" }, { children: [(0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-3xl text-gray-700 font-semibold" }, { children: "$10" })), " ", "per month"] })), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "align-self-start bg-green-50 text-green-700 font-medium border-round-xl text-sm offer-label" }, { children: "Limited time only" }))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ id: "header-group", className: `flex flex-column border-round-xl p-checkbox-group group-narrow`, onClick: (e) => handleGroupClick(e, "default") }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: `flex align-items-center ${isChecked ? "p-header-highlight" : ""} gap-3 p-3` }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack" }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: `${isChecked ? "text-primary-800" : "text-gray-700"} text-lg font-semibold` }, { children: "Basic plan" })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: isChecked, className: "p-checkcircle ml-auto", onChange: () => setIsChecked(!isChecked), icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsx)("span", { className: "w-full mt-0", id: "separator" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text p-3" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex flex-column line-height-3" }, { children: [(0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "text-gray-600 text-base font-normal flex-order-1 mt-2" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-3xl text-gray-700 font-semibold" }, { children: "$10" })), " ", "per month"] })), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "bg-green-50 text-green-700 font-medium border-round-xl text-sm offer-label flex-order-0 align-self-start" }, { children: "Limited time only" }))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ id: "header-group", className: "flex flex-column border-round-xl p-checkbox-group group-wide", onClick: (e) => handleGroupClick(e, "checked") }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex align-items-center gap-3 p-3 p-header-highlight" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack" }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-primary-800 text-lg font-semibold" }, { children: "Basic plan" })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, className: "p-checkcircle ml-auto", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsx)("span", { className: "w-full m-0", id: "separator" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text p-3" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex justify-content-between line-height-3" }, { children: [(0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-3xl text-gray-700 font-semibold" }, { children: "$10" })), " ", "per month"] })), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "align-self-start bg-green-50 text-green-700 font-medium border-round-xl text-sm offer-label" }, { children: "Limited time only" }))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ id: "header-group", className: "flex flex-column border-round-xl p-checkbox-group group-narrow", onClick: (e) => handleGroupClick(e, "checked") }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex align-items-center gap-3 p-3 p-header-highlight" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack" }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-primary-800 text-lg font-semibold" }, { children: "Basic plan" })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { checked: true, className: "p-checkcircle ml-auto", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsx)("span", { className: "w-full mt-0", id: "separator" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text p-3" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex flex-column line-height-3" }, { children: [(0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "text-gray-600 text-base font-normal flex-order-1 mt-2" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-3xl text-gray-700 font-semibold" }, { children: "$10" })), " ", "per month"] })), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "bg-green-50 text-green-700 font-medium border-round-xl text-sm offer-label flex-order-0 align-self-start" }, { children: "Limited time only" }))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 align-items-start px-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ id: "header-group", className: "flex flex-column border-round-xl p-checkbox-group group-wide p-group-disabled" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex align-items-center gap-3 p-3" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack-disabled" }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-gray-700 text-lg font-semibold" }, { children: "Basic plan" })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, className: "p-checkcircle ml-auto", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsx)("span", { className: "w-full m-0", id: "separator" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text p-3" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex justify-content-between line-height-3" }, { children: [(0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-3xl text-gray-700 font-semibold" }, { children: "$10" })), " ", "per month"] })), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "align-self-start bg-gray-100 text-gray-700 font-medium border-round-xl text-sm offer-label" }, { children: "Limited time only" }))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ id: "header-group", className: "flex flex-column border-round-xl p-checkbox-group group-narrow p-group-disabled" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex align-items-center gap-3 p-3" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "featured-icon-stack-disabled" }), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-gray-700 text-lg font-semibold" }, { children: "Basic plan" })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { disabled: true, checked: false, className: "p-checkcircle ml-auto", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] })), (0, jsx_runtime_1.jsx)("span", { className: "w-full mt-0", id: "separator" }), (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex flex-column group-text p-3" }, { children: [(0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex flex-column line-height-3" }, { children: [(0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "text-gray-600 text-base font-normal flex-order-1 mt-2" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-3xl text-gray-700 font-semibold" }, { children: "$10" })), " ", "per month"] })), (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "bg-gray-100 text-gray-700 font-medium border-round-xl text-sm offer-label flex-order-0 align-self-start" }, { children: "Limited time only" }))] })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-base font-normal" }, { children: "Includes up to 10 users, 20GB individual data and access to all features." }))] }))] }))] }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `flex align-items-start justify-content-between gap-3 p-4 border-round-xl p-checkbox-group ${isChecked ? "p-group-highlight" : ""} group-narrow`, onClick: () => setIsChecked(!isChecked) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: Payment_method_card_white_png_1.default, alt: "." }), (0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex flex-column align-items-start w-full" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-800 text-lg font-medium line-height-2" }, { children: "Visa ending in 1234" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 text-lg font-normal line-height-2" }, { children: "Expiry 06/2024" })), (0, jsx_runtime_1.jsxs)("section", Object.assign({ className: "flex align-items-center gap-2 my-2" }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base text-primary-500" }, { children: "Set as default" })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "font-semibold text-base" }, { children: "Edit" }))] }))] })), (0, jsx_runtime_1.jsx)(checkbox_1.Checkbox, { onClick: () => setIsChecked(!isChecked), checked: isChecked, className: "p-checkcircle", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "check-selected-white" }) })] }))] }))] }));
20
- };
21
- exports.default = CheckboxGroupComponent;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const colorpicker_1 = require("primereact/colorpicker");
7
- const button_1 = require("primereact/button");
8
- const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
9
- const ColorPickerComponent = () => {
10
- const [color, setColor] = (0, react_1.useState)();
11
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "card flex justify-content-center" }, { children: [(0, jsx_runtime_1.jsx)(colorpicker_1.ColorPicker, { value: color, onChange: (e) => setColor(e.value) }), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "p-0 gap-1", link: true, icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "user" }), label: "Add User" })] })));
12
- };
13
- exports.default = ColorPickerComponent;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const button_1 = require("primereact/button");
6
- const divider_1 = require("primereact/divider");
7
- const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
8
- const ContentDividersComponent = () => {
9
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "flex bg-gray-200 p-3 justify-content-center mt-0 mb-4" }, { children: "Slideout Menus" })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-full flex flex-column align-items-center justify-content-center gap-3" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-8" }, { children: [(0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-xl text-gray-900 linehight-3 font-medium' }, { children: "Notifications" })) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-base text-gray-600 linehight-3 font-medium' }, { children: "Today" })) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center" }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Add', outlined: true }) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center" }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "p-buttonset" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "arrow-left-gray-700-md" }), outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus-icon-2xl-gray-500" }), outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "arrow-right-gray-500-md" }), outlined: true })] })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center" }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "p-buttonset" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { label: 'View all', outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Active', outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Inactive', outlined: true })] })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center" }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus-icon-2xl-gray-500" }), outlined: true }) }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-8" }, { children: [(0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'border-1 py-2 border-x-none divider-top-bottom border-gray-200' }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-xl text-gray-900 linehight-3 font-medium' }, { children: "Notifications" })) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'border-1 py-2 border-x-none divider-top-bottom border-gray-200' }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-base text-gray-600 linehight-3 font-medium' }, { children: "Today" })) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'border-1 py-2 border-x-none divider-top-bottom border-gray-200' }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Add', outlined: true }) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'border-1 py-2 border-x-none divider-top-bottom border-gray-200' }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "p-buttonset" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "arrow-left-gray-700-md" }), outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus-icon-2xl-gray-500" }), outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "arrow-right-gray-500-md" }), outlined: true })] })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'border-1 py-2 border-x-none divider-top-bottom border-gray-200' }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "p-buttonset" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { label: 'View all', outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Active', outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Inactive', outlined: true })] })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'border-1 py-2 border-x-none divider-top-bottom border-gray-200' }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus-icon-2xl-gray-500" }), outlined: true }) }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-8" }, { children: [(0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'bg-gray-50 devider-background py-2' }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-xl text-gray-900 linehight-3 font-medium' }, { children: "Notifications" })) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'bg-gray-50 devider-background py-2' }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "inline-flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-base text-gray-600 linehight-3 font-medium' }, { children: "Today" })) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'bg-gray-50 devider-background py-2' }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Add', outlined: true }) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'bg-gray-50 devider-background py-2' }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "p-buttonset" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "arrow-left-gray-700-md" }), outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus-icon-2xl-gray-500" }), outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "arrow-right-gray-500-md" }), outlined: true })] })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'bg-gray-50 devider-background py-2' }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "p-buttonset" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { label: 'View all', outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Active', outlined: true }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: 'Inactive', outlined: true })] })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, Object.assign({ align: "center", className: 'bg-gray-50 devider-background py-2' }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus-icon-2xl-gray-500" }), outlined: true }) }))] }))] }))] }));
10
- };
11
- exports.default = ContentDividersComponent;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const color_picker_1 = tslib_1.__importDefault(require("../../components/custom-color-picker/color-picker"));
6
- const CustomColorPickerPage = () => {
7
- const onchange = (clr) => {
8
- console.log(clr);
9
- };
10
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(color_picker_1.default, { defaultValue: "#2842AD", onChange: onchange }) }));
11
- };
12
- exports.default = CustomColorPickerPage;
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const scMultiSelect_1 = tslib_1.__importDefault(require("../../components/sc-multi-select/scMultiSelect"));
7
- const button_1 = require("primereact/button");
8
- const CustomMultiSelect = () => {
9
- const [selectedItems, setSelectedItems] = (0, react_1.useState)([
10
- 'a',
11
- 'b',
12
- 'c',
13
- 'd',
14
- 'E'
15
- ]);
16
- const items = [
17
- { label: 'a', value: 'a' },
18
- { label: 'b', value: 'b' },
19
- { label: 'c', value: 'c' },
20
- { label: 'd', value: 'd' },
21
- { label: 'ltettestttI3', value: 'ltettestttI3' },
22
- { label: 'E', value: 'E' },
23
- { label: 'j', value: 'j' },
24
- { label: 's', value: 's' },
25
- { label: 'I54', value: 'I54' }
26
- ];
27
- const onChange = (e) => {
28
- setSelectedItems(e.value);
29
- // Custom event handler
30
- console.log('Selected items:', e.value);
31
- };
32
- const onAdd = () => {
33
- setSelectedItems([...selectedItems, 'Sam3']);
34
- };
35
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(scMultiSelect_1.default, { display: "chip", showClear: true, showSelectedCount: true, className: "form_field config-chip", removeChipIcon: true, value: selectedItems, onChange: (e) => onChange(e), options: items, optionLabel: "label" }), (0, jsx_runtime_1.jsx)(button_1.Button, { label: "add", onClick: () => onAdd() })] }));
36
- };
37
- exports.default = CustomMultiSelect;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const calendar_1 = require("primereact/calendar");
7
- const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
8
- const date_picker_1 = tslib_1.__importDefault(require("../../components/date-picker/date-picker"));
9
- const DatePickerComponent = () => {
10
- const [date, setDate] = (0, react_1.useState)(null);
11
- const [dateValue, setDateValue] = (0, react_1.useState)(null);
12
- const dateUpdated = (e) => {
13
- setDateValue(e.value);
14
- };
15
- const onClearDate = () => {
16
- setDateValue(null);
17
- };
18
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "flex bg-gray-200 p-3 justify-content-center mt-0 mb-4" }, { children: "Date-Picker" })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "grid my-8 mx-8 px-8" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card clo-12 md:col-6 my-8" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, { value: date, dateFormat: "M d, yy", clearButtonClassName: "text-gray-700 border-1 border-gray-300", todayButtonClassName: "bg-primary-600 text-white", showButtonBar: true, onChange: (e) => setDate(e.value), placeholder: "Select dates", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "calendar-gray-700" }), showIcon: true, iconPos: "left", className: "w-9rem" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card clo-12 md:col-6 my-8" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, { numberOfMonths: 2, value: date, dateFormat: "M d, yy", clearButtonClassName: "text-gray-700 border-1 border-gray-300", todayButtonClassName: "bg-primary-600 text-white", showButtonBar: true, onChange: (e) => setDate(e.value), placeholder: "Select dates", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "calendar-gray-700" }), showIcon: true, iconPos: "left", className: "w-9rem" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card clo-12 md:col-6 my-8" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, { numberOfMonths: 2, selectionMode: "range", value: date, dateFormat: "M d, yy", clearButtonClassName: "text-gray-700 border-1 border-gray-300", todayButtonClassName: "bg-primary-600 text-white", showButtonBar: true, onChange: (e) => setDate(e.value), placeholder: "Select dates", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "calendar-gray-700" }), showIcon: true, iconPos: "left", className: "w-9rem" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card clo-12 md:col-6 my-8" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, { selectionMode: "range", value: date, dateFormat: "M d, yy", clearButtonClassName: "text-gray-700 border-1 border-gray-300", todayButtonClassName: "bg-primary-600 text-white", showButtonBar: true, onChange: (e) => setDate(e.value), placeholder: "Select dates", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "calendar-gray-700" }), showIcon: true, iconPos: "left", className: "w-9rem" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card clo-12 md:col-6 my-8" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, { selectionMode: "range", numberOfMonths: 2, value: date, dateFormat: "M d, yy", clearButtonClassName: "text-gray-700 border-1 border-gray-300", touchUI: true, todayButtonClassName: "bg-primary-600 text-white", showButtonBar: true, onChange: (e) => setDate(e.value), placeholder: "Select dates", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "calendar-gray-700" }), showIcon: true, iconPos: "left", className: "w-9rem" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "card clo-12 md:col-6 my-8" }, { children: (0, jsx_runtime_1.jsx)(calendar_1.Calendar, { selectionMode: "range", value: date, dateFormat: "M d, yy", clearButtonClassName: "text-gray-700 border-1 border-gray-300", touchUI: true, todayButtonClassName: "bg-primary-600 text-white", showButtonBar: true, onChange: (e) => setDate(e.value), placeholder: "Select dates", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "calendar-gray-700" }), showIcon: true, iconPos: "left", className: "w-9rem" }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex" }, { children: (0, jsx_runtime_1.jsx)(date_picker_1.default, { showIcon: true, maxDate: new Date, value: dateValue, clear: "x-close", iconPos: "left", icon: 'calendar-gray-700', numberOfMonths: 2, dateFormat: 'M d, yy', selectionMode: 'range', placeholder: 'Select a date', onClear: onClearDate, onChange: (e) => dateUpdated(e), className: "w-9rem" }) }))] }))] }));
19
- };
20
- exports.default = DatePickerComponent;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const dropdown_1 = require("primereact/dropdown");
6
- const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
7
- const react_1 = require("react");
8
- const svg_component_2 = tslib_1.__importDefault(require("../../directives/svg-component"));
9
- const svg_icons_1 = require("../../directives/svg-icons");
10
- const DropdownComponent = () => {
11
- const [selectedValue, setSelectedValue] = (0, react_1.useState)(null);
12
- // Dropdown options
13
- const members = [
14
- { name: "Phoenix Baker", at: "@phoenix" },
15
- { name: "Olivia Rhye", at: "@olivia" },
16
- { name: "Lana Steiner", at: "@lana" },
17
- { name: "Demi Wilkinson", at: "@demi" },
18
- { name: "Candice Wu", at: "@candice" },
19
- { name: "Natali Craig", at: "@natali" },
20
- { name: "Drew Cano", at: "@drew" },
21
- ];
22
- const handleDropdownChange = (e) => {
23
- setSelectedValue(e.value);
24
- };
25
- console.log(selectedValue);
26
- // Item Template to display the options in the dropdown pannel
27
- const itemTemplate = (option, isIcon) => {
28
- return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex justify-content-between align-items-center w-full" }, { children: [(0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex align-items-center gap-2" }, { children: [isIcon && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "user" }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "font-medium text-gray-900 text-lg" }, { children: option.name })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "font-normal text-gray-600 text-lg" }, { children: option.at }))] })), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: option.name === (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.name) && ((0, jsx_runtime_1.jsx)(svg_component_2.default, { icon: "dropdown-panel-check" })) })] })));
29
- };
30
- // Value Template to display value in the dropdown after selecting an option from the dropdown.
31
- const selectedOptionTemplate = (option, isIcon, props) => {
32
- if (option) {
33
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex justify-content-between align-items-center" }, { children: (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex align-items-center gap-2" }, { children: [isIcon && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "user" }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "font-medium text-gray-900 text-lg" }, { children: option.name })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "font-normal text-gray-600 text-lg" }, { children: option.at }))] })) })));
34
- }
35
- return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex gap-2" }, { children: [isIcon && (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "user" }), (0, jsx_runtime_1.jsx)("span", { children: props.placeholder })] })));
36
- };
37
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "flex bg-gray-200 p-3 justify-content-center mb-4" }, { children: "Dropdown" })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "grid px-7 py-7" }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "card flex flex-column justify-content-between ml-2" }, { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-base font-medium text-gray-700 mb-1" }, { children: "Team member" })), (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { value: selectedValue, onChange: handleDropdownChange, options: members, optionLabel: "name", valueTemplate: (option, props) => selectedOptionTemplate(option, false, props), placeholder: "Select team member", className: "w-20rem p-dropdown-xl flex align-items-center pp-check", itemTemplate: (options) => itemTemplate(options, false) }), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "font-normal text-base h-1rem text-gray-600 mt-2" }, { children: "This is a hint text to help user." }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "card flex flex-column justify-content-between ml-2" }, { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-base font-medium text-gray-700 mb-1" }, { children: "Team member" })), (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { value: selectedValue, onChange: handleDropdownChange, options: members, optionLabel: "name", valueTemplate: (option, props) => selectedOptionTemplate(option, false, props), placeholder: "Select team member", className: "w-20rem flex align-items-center", itemTemplate: (options) => itemTemplate(options, false) }), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "font-normal text-base h-1rem text-gray-600 mt-2" }, { children: "This is a hint text to help user." }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "card flex flex-column justify-content-between ml-2" }, { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-base font-medium text-gray-700 mb-1" }, { children: "Team member" })), (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { value: selectedValue, onChange: handleDropdownChange, options: members, optionLabel: "name", valueTemplate: (option, props) => selectedOptionTemplate(option, true, props), placeholder: "Select team member", className: "w-20rem p-dropdown-md flex align-items-center", itemTemplate: (options) => itemTemplate(options, true) }), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "font-normal text-base h-1rem text-gray-600 mt-2" }, { children: "This is a hint text to help user." }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "card flex flex-column justify-content-between ml-2" }, { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-base font-medium text-gray-700 mb-1" }, { children: "Team member" })), (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { value: selectedValue, onChange: handleDropdownChange, options: members, optionLabel: "name", valueTemplate: (option, props) => selectedOptionTemplate(option, false, props), placeholder: "Select team member", className: "w-20rem p-invalid flex align-items-center", itemTemplate: (options) => itemTemplate(options, false) }), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "font-normal text-base h-1rem p-error mt-2" }, { children: "This is an error message." }))] })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "card flex flex-column justify-content-between ml-2" }, { children: [(0, jsx_runtime_1.jsx)("label", Object.assign({ className: "text-base font-medium text-gray-700 mb-1" }, { children: "Team member" })), (0, jsx_runtime_1.jsx)(dropdown_1.Dropdown, { disabled: true, onChange: handleDropdownChange, options: members, optionLabel: "name", placeholder: "Select team member", className: "w-20rem flex align-items-center", itemTemplate: (options) => itemTemplate(options, false) }), (0, jsx_runtime_1.jsx)("p", Object.assign({ className: "font-normal text-base h-1rem text-gray-600 mt-2" }, { children: "This is a hint text to help user." }))] }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "w-full h-full flex flex-wrap gap-4" }, { children: svg_icons_1.iconList.map((each) => ((0, jsx_runtime_1.jsx)(svg_component_2.default, { icon: each.name }))) }))] }));
38
- };
39
- exports.default = DropdownComponent;