@clickhouse/click-ui 0.0.202 → 0.0.204

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.
@@ -2884,6 +2884,18 @@ const Azure = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64"
2884
2884
  ] })
2885
2885
  ] })
2886
2886
  ] });
2887
+ const AzureBlobStorage = (props) => /* @__PURE__ */ jsxs("svg", { width: "62", height: "50", viewBox: "0 0 62 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2888
+ /* @__PURE__ */ jsx("path", { d: "M0.777344 13.5801H61.2218V47.2796C61.2218 47.8153 61.009 48.3289 60.6303 48.7077C60.2515 49.0864 59.7378 49.2992 59.2022 49.2992H2.7969C2.26128 49.2992 1.7476 49.0864 1.36886 48.7077C0.990118 48.3289 0.777344 47.8153 0.777344 47.2796V13.5801Z", fill: "url(#paint0_linear_11640_11692)" }),
2889
+ /* @__PURE__ */ jsx("path", { d: "M2.80757 0.7012H59.1916C59.4568 0.7012 59.7194 0.753438 59.9644 0.85493C60.2094 0.956422 60.4321 1.10518 60.6196 1.29271C60.8071 1.48025 60.9559 1.70288 61.0574 1.94791C61.1589 2.19293 61.2111 2.45554 61.2111 2.72076V13.5794H0.777344V2.72076C0.77734 2.45464 0.829929 2.19116 0.932087 1.94543C1.03425 1.69971 1.18396 1.4766 1.37262 1.28893C1.56129 1.10126 1.78518 0.95272 2.03144 0.851858C2.2777 0.750995 2.54146 0.699795 2.80757 0.7012Z", fill: "#0078D4" }),
2890
+ /* @__PURE__ */ jsx("path", { d: "M28.6036 18.0625H8.28357C7.72784 18.0625 7.27734 18.513 7.27734 19.0687V29.1736C7.27734 29.7293 7.72784 30.1798 8.28357 30.1798H28.6036C29.1593 30.1798 29.6098 29.7293 29.6098 29.1736V19.0687C29.6098 18.513 29.1593 18.0625 28.6036 18.0625Z", fill: "#0078D4" }),
2891
+ /* @__PURE__ */ jsx("path", { d: "M53.5215 18.0625H33.2015C32.6458 18.0625 32.1953 18.513 32.1953 19.0687V29.1736C32.1953 29.7293 32.6458 30.1798 33.2015 30.1798H53.5215C54.0773 30.1798 54.5278 29.7293 54.5278 29.1736V19.0687C54.5278 18.513 54.0773 18.0625 53.5215 18.0625Z", fill: "white" }),
2892
+ /* @__PURE__ */ jsx("path", { d: "M28.4903 32.5664H8.17028C7.61456 32.5664 7.16406 33.0169 7.16406 33.5726V43.6775C7.16406 44.2332 7.61456 44.6837 8.17028 44.6837H28.4903C29.046 44.6837 29.4965 44.2332 29.4965 43.6775V33.5726C29.4965 33.0169 29.046 32.5664 28.4903 32.5664Z", fill: "#0078D4" }),
2893
+ /* @__PURE__ */ jsx("path", { d: "M53.4083 32.5664H33.0883C32.5325 32.5664 32.082 33.0169 32.082 33.5726V43.6775C32.082 44.2332 32.5325 44.6837 33.0883 44.6837H53.4083C53.964 44.6837 54.4145 44.2332 54.4145 43.6775V33.5726C54.4145 33.0169 53.964 32.5664 53.4083 32.5664Z", fill: "#0078D4" }),
2894
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "paint0_linear_11640_11692", x1: "30.9996", y1: "49.2992", x2: "30.9996", y2: "13.5801", gradientUnits: "userSpaceOnUse", children: [
2895
+ /* @__PURE__ */ jsx("stop", { stopColor: "#32BEDD" }),
2896
+ /* @__PURE__ */ jsx("stop", { offset: "0.775", stopColor: "#32D4F5" })
2897
+ ] }) })
2898
+ ] });
2887
2899
  const AzureEventHub = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2888
2900
  /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_7362_17014)", children: [
2889
2901
  /* @__PURE__ */ jsx("path", { d: "M6.33051 4.0693H57.6037C58.0583 4.0693 58.6529 3.99941 59.0376 4.24404C59.3524 4.45373 59.3174 4.76825 59.3174 5.08278V16.1961C59.3174 16.5107 59.2825 16.8252 59.0376 17.0349C58.7578 17.3145 58.4431 17.3145 58.0583 17.3145H53.1269C52.7072 17.3145 52.2875 17.2795 52.0077 16.965C51.7629 16.6854 51.7629 16.301 51.7629 15.9515V11.5831H11.8915V16.0564C11.8915 16.4058 11.8565 16.7553 11.6117 17.0349C11.3319 17.3145 10.9822 17.3145 10.6324 17.3145H5.45613C5.10639 17.3145 4.75664 17.3145 4.47684 17.0349C4.19704 16.7553 4.19704 16.4408 4.16206 16.0564V5.99142C4.16206 5.607 4.12709 5.18763 4.19704 4.8032C4.26699 4.45373 4.58176 4.17414 4.93151 4.10425C5.42116 4.03435 5.87583 4.0693 6.33051 4.0693Z", fill: "#006FD4" }),
@@ -3381,6 +3393,7 @@ const LogosLight = {
3381
3393
  "aws-redshift": AWSRedshift,
3382
3394
  "aws-s3": AWS_S3,
3383
3395
  azure: Azure,
3396
+ "azure-blob-storage": AzureBlobStorage,
3384
3397
  "azure-event-hub": AzureEventHub,
3385
3398
  bigquery: BigQueryLight,
3386
3399
  "c#": ChashLight,
@@ -3567,6 +3580,7 @@ const LogosDark = {
3567
3580
  "aws-redshift": AWSRedshift,
3568
3581
  "aws-s3": AWS_S3,
3569
3582
  azure: Azure,
3583
+ "azure-blob-storage": AzureBlobStorage,
3570
3584
  "azure-event-hub": AzureEventHub,
3571
3585
  bigquery: BigQueryLight,
3572
3586
  "c#": ChashLight,
@@ -17126,13 +17140,6 @@ pt.svg.withConfig({
17126
17140
  }
17127
17141
  `);
17128
17142
  const locale = "en-US";
17129
- const weekdayFormatter = new Intl.DateTimeFormat(locale, {
17130
- weekday: "short"
17131
- });
17132
- const headerDateFormatter = new Intl.DateTimeFormat(locale, {
17133
- month: "short",
17134
- year: "numeric"
17135
- });
17136
17143
  const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
17137
17144
  day: "2-digit",
17138
17145
  month: "short",
@@ -17140,20 +17147,41 @@ const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
17140
17147
  });
17141
17148
  const explicitWidth = "250px";
17142
17149
  const HighlightedInputWrapper = pt(InputWrapper).withConfig({
17143
- componentId: "sc-1kfphgn-0"
17150
+ componentId: "sc-1m6g9rm-0"
17144
17151
  })(["", " width:", ";}"], ({
17145
17152
  $isActive,
17146
17153
  theme: theme2
17147
17154
  }) => {
17148
17155
  return `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isActive ? theme2.click.datePicker.dateOption.color.stroke.active : theme2.click.field.color.stroke.default};`;
17149
17156
  }, explicitWidth);
17157
+ const DatePickerInput = ({
17158
+ isActive,
17159
+ disabled,
17160
+ id,
17161
+ placeholder,
17162
+ selectedDate
17163
+ }) => {
17164
+ const defaultId = useId();
17165
+ const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
17166
+ return /* @__PURE__ */ jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
17167
+ /* @__PURE__ */ jsx(SvgImage, { name: "calendar" }),
17168
+ /* @__PURE__ */ jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
17169
+ ] });
17170
+ };
17171
+ const weekdayFormatter = new Intl.DateTimeFormat(locale, {
17172
+ weekday: "short"
17173
+ });
17174
+ const headerDateFormatter = new Intl.DateTimeFormat(locale, {
17175
+ month: "short",
17176
+ year: "numeric"
17177
+ });
17150
17178
  const DatePickerContainer = pt(Container).withConfig({
17151
- componentId: "sc-1kfphgn-1"
17179
+ componentId: "sc-1m6g9rm-1"
17152
17180
  })(["background:", ";"], ({
17153
17181
  theme: theme2
17154
17182
  }) => theme2.click.datePicker.dateOption.color.background.default);
17155
17183
  const UnselectableTitle = pt.h2.withConfig({
17156
- componentId: "sc-1kfphgn-2"
17184
+ componentId: "sc-1m6g9rm-2"
17157
17185
  })(["", " user-select:none;"], ({
17158
17186
  theme: theme2
17159
17187
  }) => `
@@ -17161,16 +17189,14 @@ const UnselectableTitle = pt.h2.withConfig({
17161
17189
  font: ${theme2.click.datePicker.typography.title.default};
17162
17190
  `);
17163
17191
  const DateTable = pt.table.withConfig({
17164
- componentId: "sc-1kfphgn-3"
17165
- })(["border-collapse:separate;border-spacing:0;font:", " table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{", ";padding:4px;}"], ({
17192
+ componentId: "sc-1m6g9rm-3"
17193
+ })(["border-collapse:separate;border-spacing:0;font:", ";table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{padding:4px;}"], ({
17166
17194
  theme: theme2
17167
17195
  }) => theme2.typography.styles.product.text.normal.md, explicitWidth, ({
17168
17196
  theme: theme2
17169
- }) => theme2.click.datePicker.dateOption.size.height, ({
17170
- theme: theme2
17171
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default}`);
17197
+ }) => theme2.click.datePicker.dateOption.size.height);
17172
17198
  const DateTableHeader = pt.th.withConfig({
17173
- componentId: "sc-1kfphgn-4"
17199
+ componentId: "sc-1m6g9rm-4"
17174
17200
  })(["", " width:14%;"], ({
17175
17201
  theme: theme2
17176
17202
  }) => `
@@ -17178,10 +17204,11 @@ const DateTableHeader = pt.th.withConfig({
17178
17204
  font: ${theme2.click.datePicker.typography.daytitle.default};
17179
17205
  `);
17180
17206
  const DateTableCell = pt.td.withConfig({
17181
- componentId: "sc-1kfphgn-5"
17207
+ componentId: "sc-1m6g9rm-5"
17182
17208
  })(["", " ", " ", " text-align:center;", " &:hover{", ";}"], ({
17183
17209
  theme: theme2
17184
17210
  }) => `
17211
+ border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default};
17185
17212
  border-radius: ${theme2.click.datePicker.dateOption.radii.default};
17186
17213
  font: ${theme2.click.datePicker.dateOption.typography.label.default};
17187
17214
  `, ({
@@ -17203,50 +17230,35 @@ const DateTableCell = pt.td.withConfig({
17203
17230
  }) => $isToday && `font: ${theme2.click.datePicker.dateOption.typography.label.active};`, ({
17204
17231
  $isDisabled,
17205
17232
  theme: theme2
17206
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover}`);
17207
- const DatePickerInput = ({
17208
- isActive,
17209
- disabled,
17210
- id,
17211
- placeholder,
17212
- selectedDate
17213
- }) => {
17214
- const defaultId = useId();
17215
- const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
17216
- return /* @__PURE__ */ jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
17217
- /* @__PURE__ */ jsx(SvgImage, { name: "calendar" }),
17218
- /* @__PURE__ */ jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
17219
- ] });
17220
- };
17221
- const Calendar = ({
17222
- closeDatepicker,
17223
- futureDatesDisabled,
17224
- selectedDate,
17225
- setSelectedDate
17233
+ }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover};
17234
+
17235
+
17236
+ border-radius: ${theme2.click.datePicker.dateOption.radii.default};`);
17237
+ const CalendarRenderer = ({
17238
+ calendarOptions = {},
17239
+ children,
17240
+ ...props
17226
17241
  }) => {
17227
- const calendarOptions = {
17228
- defaultWeekStart: 1
17229
- };
17230
- if (selectedDate) {
17231
- calendarOptions.defaultDate = selectedDate;
17232
- }
17233
17242
  const {
17234
17243
  body,
17235
17244
  headers,
17236
17245
  month,
17237
17246
  navigation,
17238
17247
  year
17239
- } = useCalendar(calendarOptions);
17240
- const handleNextClick = () => {
17248
+ } = useCalendar({
17249
+ defaultWeekStart: 1,
17250
+ ...calendarOptions
17251
+ });
17252
+ const handleNextClick = useCallback(() => {
17241
17253
  navigation.toNext();
17242
- };
17243
- const handlePreviousClick = () => {
17254
+ }, [navigation]);
17255
+ const handlePreviousClick = useCallback(() => {
17244
17256
  navigation.toPrev();
17245
- };
17257
+ }, [navigation]);
17246
17258
  const headerDate = /* @__PURE__ */ new Date();
17247
17259
  headerDate.setMonth(month);
17248
17260
  headerDate.setFullYear(year);
17249
- return /* @__PURE__ */ jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", children: [
17261
+ return /* @__PURE__ */ jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", ...props, children: [
17250
17262
  /* @__PURE__ */ jsxs(Container, { isResponsive: false, justifyContent: "space-between", orientation: "horizontal", children: [
17251
17263
  /* @__PURE__ */ jsx(IconButton$1, { icon: "chevron-left", onClick: handlePreviousClick, size: "sm", type: "ghost" }),
17252
17264
  /* @__PURE__ */ jsx(UnselectableTitle, { children: headerDateFormatter.format(headerDate) }),
@@ -17259,32 +17271,42 @@ const Calendar = ({
17259
17271
  }) => {
17260
17272
  return /* @__PURE__ */ jsx(DateTableHeader, { children: weekdayFormatter.format(date) }, key);
17261
17273
  }) }) }),
17262
- /* @__PURE__ */ jsx("tbody", { children: body.value.map(({
17263
- key: weekKey,
17264
- value: week
17265
- }) => {
17266
- return /* @__PURE__ */ jsx("tr", { children: week.map(({
17267
- date,
17268
- isCurrentMonth,
17269
- key: dayKey,
17270
- value: fullDate
17271
- }) => {
17272
- const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
17273
- const today = /* @__PURE__ */ new Date();
17274
- const isCurrentDate = isSameDate(today, fullDate);
17275
- const isDisabled = futureDatesDisabled ? fullDate > today : false;
17276
- return /* @__PURE__ */ jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: () => {
17277
- if (isDisabled) {
17278
- return false;
17279
- }
17280
- setSelectedDate(fullDate);
17281
- closeDatepicker();
17282
- }, children: date }, dayKey);
17283
- }) }, weekKey);
17284
- }) })
17274
+ /* @__PURE__ */ jsx("tbody", { children: children(body) })
17285
17275
  ] })
17286
17276
  ] });
17287
17277
  };
17278
+ const Calendar = ({
17279
+ calendarBody,
17280
+ closeDatepicker,
17281
+ futureDatesDisabled,
17282
+ selectedDate,
17283
+ setSelectedDate
17284
+ }) => {
17285
+ return calendarBody.value.map(({
17286
+ key: weekKey,
17287
+ value: week
17288
+ }) => {
17289
+ return /* @__PURE__ */ jsx("tr", { children: week.map(({
17290
+ date,
17291
+ isCurrentMonth,
17292
+ key: dayKey,
17293
+ value: fullDate
17294
+ }) => {
17295
+ const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
17296
+ const today = /* @__PURE__ */ new Date();
17297
+ const isCurrentDate = isSameDate(today, fullDate);
17298
+ const isDisabled = futureDatesDisabled ? fullDate > today : false;
17299
+ const handleClick = () => {
17300
+ if (isDisabled) {
17301
+ return false;
17302
+ }
17303
+ setSelectedDate(fullDate);
17304
+ closeDatepicker();
17305
+ };
17306
+ return /* @__PURE__ */ jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: handleClick, children: date }, dayKey);
17307
+ }) }, weekKey);
17308
+ });
17309
+ };
17288
17310
  const DatePicker = ({
17289
17311
  date,
17290
17312
  disabled = false,
@@ -17294,6 +17316,10 @@ const DatePicker = ({
17294
17316
  }) => {
17295
17317
  const [isOpen, setIsOpen] = useState(false);
17296
17318
  const [selectedDate, setSelectedDate] = useState();
17319
+ const calendarOptions = {};
17320
+ if (selectedDate) {
17321
+ calendarOptions.defaultDate = selectedDate;
17322
+ }
17297
17323
  useEffect(() => {
17298
17324
  if (date) {
17299
17325
  setSelectedDate(date);
@@ -17307,8 +17333,8 @@ const DatePicker = ({
17307
17333
  onSelectDate(selectedDate2);
17308
17334
  };
17309
17335
  return /* @__PURE__ */ jsxs(Dropdown, { onOpenChange: setIsOpen, open: isOpen, children: [
17310
- /* @__PURE__ */ jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsx(DatePickerInput, { "data-testid": "datepicker-inpcontainer", disabled, isActive: isOpen, placeholder, selectedDate }) }),
17311
- /* @__PURE__ */ jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsx(Calendar, { closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) })
17336
+ /* @__PURE__ */ jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsx(DatePickerInput, { "data-testid": "datepicker-input-container", disabled, isActive: isOpen, placeholder, selectedDate }) }),
17337
+ /* @__PURE__ */ jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsx(CalendarRenderer, { calendarOptions, children: (body) => /* @__PURE__ */ jsx(Calendar, { calendarBody: body, closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) }) })
17312
17338
  ] });
17313
17339
  };
17314
17340
  const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
@@ -2900,6 +2900,18 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2900
2900
  ] })
2901
2901
  ] })
2902
2902
  ] });
2903
+ const AzureBlobStorage = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "62", height: "50", viewBox: "0 0 62 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2904
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M0.777344 13.5801H61.2218V47.2796C61.2218 47.8153 61.009 48.3289 60.6303 48.7077C60.2515 49.0864 59.7378 49.2992 59.2022 49.2992H2.7969C2.26128 49.2992 1.7476 49.0864 1.36886 48.7077C0.990118 48.3289 0.777344 47.8153 0.777344 47.2796V13.5801Z", fill: "url(#paint0_linear_11640_11692)" }),
2905
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M2.80757 0.7012H59.1916C59.4568 0.7012 59.7194 0.753438 59.9644 0.85493C60.2094 0.956422 60.4321 1.10518 60.6196 1.29271C60.8071 1.48025 60.9559 1.70288 61.0574 1.94791C61.1589 2.19293 61.2111 2.45554 61.2111 2.72076V13.5794H0.777344V2.72076C0.77734 2.45464 0.829929 2.19116 0.932087 1.94543C1.03425 1.69971 1.18396 1.4766 1.37262 1.28893C1.56129 1.10126 1.78518 0.95272 2.03144 0.851858C2.2777 0.750995 2.54146 0.699795 2.80757 0.7012Z", fill: "#0078D4" }),
2906
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M28.6036 18.0625H8.28357C7.72784 18.0625 7.27734 18.513 7.27734 19.0687V29.1736C7.27734 29.7293 7.72784 30.1798 8.28357 30.1798H28.6036C29.1593 30.1798 29.6098 29.7293 29.6098 29.1736V19.0687C29.6098 18.513 29.1593 18.0625 28.6036 18.0625Z", fill: "#0078D4" }),
2907
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M53.5215 18.0625H33.2015C32.6458 18.0625 32.1953 18.513 32.1953 19.0687V29.1736C32.1953 29.7293 32.6458 30.1798 33.2015 30.1798H53.5215C54.0773 30.1798 54.5278 29.7293 54.5278 29.1736V19.0687C54.5278 18.513 54.0773 18.0625 53.5215 18.0625Z", fill: "white" }),
2908
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M28.4903 32.5664H8.17028C7.61456 32.5664 7.16406 33.0169 7.16406 33.5726V43.6775C7.16406 44.2332 7.61456 44.6837 8.17028 44.6837H28.4903C29.046 44.6837 29.4965 44.2332 29.4965 43.6775V33.5726C29.4965 33.0169 29.046 32.5664 28.4903 32.5664Z", fill: "#0078D4" }),
2909
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M53.4083 32.5664H33.0883C32.5325 32.5664 32.082 33.0169 32.082 33.5726V43.6775C32.082 44.2332 32.5325 44.6837 33.0883 44.6837H53.4083C53.964 44.6837 54.4145 44.2332 54.4145 43.6775V33.5726C54.4145 33.0169 53.964 32.5664 53.4083 32.5664Z", fill: "#0078D4" }),
2910
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("linearGradient", { id: "paint0_linear_11640_11692", x1: "30.9996", y1: "49.2992", x2: "30.9996", y2: "13.5801", gradientUnits: "userSpaceOnUse", children: [
2911
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { stopColor: "#32BEDD" }),
2912
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "0.775", stopColor: "#32D4F5" })
2913
+ ] }) })
2914
+ ] });
2903
2915
  const AzureEventHub = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
2904
2916
  /* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_7362_17014)", children: [
2905
2917
  /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.33051 4.0693H57.6037C58.0583 4.0693 58.6529 3.99941 59.0376 4.24404C59.3524 4.45373 59.3174 4.76825 59.3174 5.08278V16.1961C59.3174 16.5107 59.2825 16.8252 59.0376 17.0349C58.7578 17.3145 58.4431 17.3145 58.0583 17.3145H53.1269C52.7072 17.3145 52.2875 17.2795 52.0077 16.965C51.7629 16.6854 51.7629 16.301 51.7629 15.9515V11.5831H11.8915V16.0564C11.8915 16.4058 11.8565 16.7553 11.6117 17.0349C11.3319 17.3145 10.9822 17.3145 10.6324 17.3145H5.45613C5.10639 17.3145 4.75664 17.3145 4.47684 17.0349C4.19704 16.7553 4.19704 16.4408 4.16206 16.0564V5.99142C4.16206 5.607 4.12709 5.18763 4.19704 4.8032C4.26699 4.45373 4.58176 4.17414 4.93151 4.10425C5.42116 4.03435 5.87583 4.0693 6.33051 4.0693Z", fill: "#006FD4" }),
@@ -3397,6 +3409,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3397
3409
  "aws-redshift": AWSRedshift,
3398
3410
  "aws-s3": AWS_S3,
3399
3411
  azure: Azure,
3412
+ "azure-blob-storage": AzureBlobStorage,
3400
3413
  "azure-event-hub": AzureEventHub,
3401
3414
  bigquery: BigQueryLight,
3402
3415
  "c#": ChashLight,
@@ -3583,6 +3596,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3583
3596
  "aws-redshift": AWSRedshift,
3584
3597
  "aws-s3": AWS_S3,
3585
3598
  azure: Azure,
3599
+ "azure-blob-storage": AzureBlobStorage,
3586
3600
  "azure-event-hub": AzureEventHub,
3587
3601
  bigquery: BigQueryLight,
3588
3602
  "c#": ChashLight,
@@ -17142,13 +17156,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17142
17156
  }
17143
17157
  `);
17144
17158
  const locale = "en-US";
17145
- const weekdayFormatter = new Intl.DateTimeFormat(locale, {
17146
- weekday: "short"
17147
- });
17148
- const headerDateFormatter = new Intl.DateTimeFormat(locale, {
17149
- month: "short",
17150
- year: "numeric"
17151
- });
17152
17159
  const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
17153
17160
  day: "2-digit",
17154
17161
  month: "short",
@@ -17156,20 +17163,41 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17156
17163
  });
17157
17164
  const explicitWidth = "250px";
17158
17165
  const HighlightedInputWrapper = pt(InputWrapper).withConfig({
17159
- componentId: "sc-1kfphgn-0"
17166
+ componentId: "sc-1m6g9rm-0"
17160
17167
  })(["", " width:", ";}"], ({
17161
17168
  $isActive,
17162
17169
  theme: theme2
17163
17170
  }) => {
17164
17171
  return `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isActive ? theme2.click.datePicker.dateOption.color.stroke.active : theme2.click.field.color.stroke.default};`;
17165
17172
  }, explicitWidth);
17173
+ const DatePickerInput = ({
17174
+ isActive,
17175
+ disabled,
17176
+ id,
17177
+ placeholder,
17178
+ selectedDate
17179
+ }) => {
17180
+ const defaultId = React.useId();
17181
+ const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
17182
+ return /* @__PURE__ */ jsxRuntime.jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
17183
+ /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "calendar" }),
17184
+ /* @__PURE__ */ jsxRuntime.jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
17185
+ ] });
17186
+ };
17187
+ const weekdayFormatter = new Intl.DateTimeFormat(locale, {
17188
+ weekday: "short"
17189
+ });
17190
+ const headerDateFormatter = new Intl.DateTimeFormat(locale, {
17191
+ month: "short",
17192
+ year: "numeric"
17193
+ });
17166
17194
  const DatePickerContainer = pt(Container).withConfig({
17167
- componentId: "sc-1kfphgn-1"
17195
+ componentId: "sc-1m6g9rm-1"
17168
17196
  })(["background:", ";"], ({
17169
17197
  theme: theme2
17170
17198
  }) => theme2.click.datePicker.dateOption.color.background.default);
17171
17199
  const UnselectableTitle = pt.h2.withConfig({
17172
- componentId: "sc-1kfphgn-2"
17200
+ componentId: "sc-1m6g9rm-2"
17173
17201
  })(["", " user-select:none;"], ({
17174
17202
  theme: theme2
17175
17203
  }) => `
@@ -17177,16 +17205,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17177
17205
  font: ${theme2.click.datePicker.typography.title.default};
17178
17206
  `);
17179
17207
  const DateTable = pt.table.withConfig({
17180
- componentId: "sc-1kfphgn-3"
17181
- })(["border-collapse:separate;border-spacing:0;font:", " table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{", ";padding:4px;}"], ({
17208
+ componentId: "sc-1m6g9rm-3"
17209
+ })(["border-collapse:separate;border-spacing:0;font:", ";table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{padding:4px;}"], ({
17182
17210
  theme: theme2
17183
17211
  }) => theme2.typography.styles.product.text.normal.md, explicitWidth, ({
17184
17212
  theme: theme2
17185
- }) => theme2.click.datePicker.dateOption.size.height, ({
17186
- theme: theme2
17187
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default}`);
17213
+ }) => theme2.click.datePicker.dateOption.size.height);
17188
17214
  const DateTableHeader = pt.th.withConfig({
17189
- componentId: "sc-1kfphgn-4"
17215
+ componentId: "sc-1m6g9rm-4"
17190
17216
  })(["", " width:14%;"], ({
17191
17217
  theme: theme2
17192
17218
  }) => `
@@ -17194,10 +17220,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17194
17220
  font: ${theme2.click.datePicker.typography.daytitle.default};
17195
17221
  `);
17196
17222
  const DateTableCell = pt.td.withConfig({
17197
- componentId: "sc-1kfphgn-5"
17223
+ componentId: "sc-1m6g9rm-5"
17198
17224
  })(["", " ", " ", " text-align:center;", " &:hover{", ";}"], ({
17199
17225
  theme: theme2
17200
17226
  }) => `
17227
+ border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default};
17201
17228
  border-radius: ${theme2.click.datePicker.dateOption.radii.default};
17202
17229
  font: ${theme2.click.datePicker.dateOption.typography.label.default};
17203
17230
  `, ({
@@ -17219,50 +17246,35 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17219
17246
  }) => $isToday && `font: ${theme2.click.datePicker.dateOption.typography.label.active};`, ({
17220
17247
  $isDisabled,
17221
17248
  theme: theme2
17222
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover}`);
17223
- const DatePickerInput = ({
17224
- isActive,
17225
- disabled,
17226
- id,
17227
- placeholder,
17228
- selectedDate
17229
- }) => {
17230
- const defaultId = React.useId();
17231
- const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
17232
- return /* @__PURE__ */ jsxRuntime.jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
17233
- /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "calendar" }),
17234
- /* @__PURE__ */ jsxRuntime.jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
17235
- ] });
17236
- };
17237
- const Calendar = ({
17238
- closeDatepicker,
17239
- futureDatesDisabled,
17240
- selectedDate,
17241
- setSelectedDate
17249
+ }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover};
17250
+
17251
+
17252
+ border-radius: ${theme2.click.datePicker.dateOption.radii.default};`);
17253
+ const CalendarRenderer = ({
17254
+ calendarOptions = {},
17255
+ children,
17256
+ ...props
17242
17257
  }) => {
17243
- const calendarOptions = {
17244
- defaultWeekStart: 1
17245
- };
17246
- if (selectedDate) {
17247
- calendarOptions.defaultDate = selectedDate;
17248
- }
17249
17258
  const {
17250
17259
  body,
17251
17260
  headers,
17252
17261
  month,
17253
17262
  navigation,
17254
17263
  year
17255
- } = useCalendar(calendarOptions);
17256
- const handleNextClick = () => {
17264
+ } = useCalendar({
17265
+ defaultWeekStart: 1,
17266
+ ...calendarOptions
17267
+ });
17268
+ const handleNextClick = React.useCallback(() => {
17257
17269
  navigation.toNext();
17258
- };
17259
- const handlePreviousClick = () => {
17270
+ }, [navigation]);
17271
+ const handlePreviousClick = React.useCallback(() => {
17260
17272
  navigation.toPrev();
17261
- };
17273
+ }, [navigation]);
17262
17274
  const headerDate = /* @__PURE__ */ new Date();
17263
17275
  headerDate.setMonth(month);
17264
17276
  headerDate.setFullYear(year);
17265
- return /* @__PURE__ */ jsxRuntime.jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", children: [
17277
+ return /* @__PURE__ */ jsxRuntime.jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", ...props, children: [
17266
17278
  /* @__PURE__ */ jsxRuntime.jsxs(Container, { isResponsive: false, justifyContent: "space-between", orientation: "horizontal", children: [
17267
17279
  /* @__PURE__ */ jsxRuntime.jsx(IconButton$1, { icon: "chevron-left", onClick: handlePreviousClick, size: "sm", type: "ghost" }),
17268
17280
  /* @__PURE__ */ jsxRuntime.jsx(UnselectableTitle, { children: headerDateFormatter.format(headerDate) }),
@@ -17275,32 +17287,42 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17275
17287
  }) => {
17276
17288
  return /* @__PURE__ */ jsxRuntime.jsx(DateTableHeader, { children: weekdayFormatter.format(date) }, key);
17277
17289
  }) }) }),
17278
- /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: body.value.map(({
17279
- key: weekKey,
17280
- value: week
17281
- }) => {
17282
- return /* @__PURE__ */ jsxRuntime.jsx("tr", { children: week.map(({
17283
- date,
17284
- isCurrentMonth,
17285
- key: dayKey,
17286
- value: fullDate
17287
- }) => {
17288
- const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
17289
- const today = /* @__PURE__ */ new Date();
17290
- const isCurrentDate = isSameDate(today, fullDate);
17291
- const isDisabled = futureDatesDisabled ? fullDate > today : false;
17292
- return /* @__PURE__ */ jsxRuntime.jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: () => {
17293
- if (isDisabled) {
17294
- return false;
17295
- }
17296
- setSelectedDate(fullDate);
17297
- closeDatepicker();
17298
- }, children: date }, dayKey);
17299
- }) }, weekKey);
17300
- }) })
17290
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: children(body) })
17301
17291
  ] })
17302
17292
  ] });
17303
17293
  };
17294
+ const Calendar = ({
17295
+ calendarBody,
17296
+ closeDatepicker,
17297
+ futureDatesDisabled,
17298
+ selectedDate,
17299
+ setSelectedDate
17300
+ }) => {
17301
+ return calendarBody.value.map(({
17302
+ key: weekKey,
17303
+ value: week
17304
+ }) => {
17305
+ return /* @__PURE__ */ jsxRuntime.jsx("tr", { children: week.map(({
17306
+ date,
17307
+ isCurrentMonth,
17308
+ key: dayKey,
17309
+ value: fullDate
17310
+ }) => {
17311
+ const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
17312
+ const today = /* @__PURE__ */ new Date();
17313
+ const isCurrentDate = isSameDate(today, fullDate);
17314
+ const isDisabled = futureDatesDisabled ? fullDate > today : false;
17315
+ const handleClick = () => {
17316
+ if (isDisabled) {
17317
+ return false;
17318
+ }
17319
+ setSelectedDate(fullDate);
17320
+ closeDatepicker();
17321
+ };
17322
+ return /* @__PURE__ */ jsxRuntime.jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: handleClick, children: date }, dayKey);
17323
+ }) }, weekKey);
17324
+ });
17325
+ };
17304
17326
  const DatePicker = ({
17305
17327
  date,
17306
17328
  disabled = false,
@@ -17310,6 +17332,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17310
17332
  }) => {
17311
17333
  const [isOpen, setIsOpen] = React.useState(false);
17312
17334
  const [selectedDate, setSelectedDate] = React.useState();
17335
+ const calendarOptions = {};
17336
+ if (selectedDate) {
17337
+ calendarOptions.defaultDate = selectedDate;
17338
+ }
17313
17339
  React.useEffect(() => {
17314
17340
  if (date) {
17315
17341
  setSelectedDate(date);
@@ -17323,8 +17349,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17323
17349
  onSelectDate(selectedDate2);
17324
17350
  };
17325
17351
  return /* @__PURE__ */ jsxRuntime.jsxs(Dropdown, { onOpenChange: setIsOpen, open: isOpen, children: [
17326
- /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsxRuntime.jsx(DatePickerInput, { "data-testid": "datepicker-inpcontainer", disabled, isActive: isOpen, placeholder, selectedDate }) }),
17327
- /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsxRuntime.jsx(Calendar, { closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) })
17352
+ /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsxRuntime.jsx(DatePickerInput, { "data-testid": "datepicker-input-container", disabled, isActive: isOpen, placeholder, selectedDate }) }),
17353
+ /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsxRuntime.jsx(CalendarRenderer, { calendarOptions, children: (body) => /* @__PURE__ */ jsxRuntime.jsx(Calendar, { calendarBody: body, closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) }) })
17328
17354
  ] });
17329
17355
  };
17330
17356
  const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
@@ -1688,6 +1688,18 @@ const Azure = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64"
1688
1688
  ] })
1689
1689
  ] })
1690
1690
  ] });
1691
+ const AzureBlobStorage = (props) => /* @__PURE__ */ jsxs("svg", { width: "62", height: "50", viewBox: "0 0 62 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1692
+ /* @__PURE__ */ jsx("path", { d: "M0.777344 13.5801H61.2218V47.2796C61.2218 47.8153 61.009 48.3289 60.6303 48.7077C60.2515 49.0864 59.7378 49.2992 59.2022 49.2992H2.7969C2.26128 49.2992 1.7476 49.0864 1.36886 48.7077C0.990118 48.3289 0.777344 47.8153 0.777344 47.2796V13.5801Z", fill: "url(#paint0_linear_11640_11692)" }),
1693
+ /* @__PURE__ */ jsx("path", { d: "M2.80757 0.7012H59.1916C59.4568 0.7012 59.7194 0.753438 59.9644 0.85493C60.2094 0.956422 60.4321 1.10518 60.6196 1.29271C60.8071 1.48025 60.9559 1.70288 61.0574 1.94791C61.1589 2.19293 61.2111 2.45554 61.2111 2.72076V13.5794H0.777344V2.72076C0.77734 2.45464 0.829929 2.19116 0.932087 1.94543C1.03425 1.69971 1.18396 1.4766 1.37262 1.28893C1.56129 1.10126 1.78518 0.95272 2.03144 0.851858C2.2777 0.750995 2.54146 0.699795 2.80757 0.7012Z", fill: "#0078D4" }),
1694
+ /* @__PURE__ */ jsx("path", { d: "M28.6036 18.0625H8.28357C7.72784 18.0625 7.27734 18.513 7.27734 19.0687V29.1736C7.27734 29.7293 7.72784 30.1798 8.28357 30.1798H28.6036C29.1593 30.1798 29.6098 29.7293 29.6098 29.1736V19.0687C29.6098 18.513 29.1593 18.0625 28.6036 18.0625Z", fill: "#0078D4" }),
1695
+ /* @__PURE__ */ jsx("path", { d: "M53.5215 18.0625H33.2015C32.6458 18.0625 32.1953 18.513 32.1953 19.0687V29.1736C32.1953 29.7293 32.6458 30.1798 33.2015 30.1798H53.5215C54.0773 30.1798 54.5278 29.7293 54.5278 29.1736V19.0687C54.5278 18.513 54.0773 18.0625 53.5215 18.0625Z", fill: "white" }),
1696
+ /* @__PURE__ */ jsx("path", { d: "M28.4903 32.5664H8.17028C7.61456 32.5664 7.16406 33.0169 7.16406 33.5726V43.6775C7.16406 44.2332 7.61456 44.6837 8.17028 44.6837H28.4903C29.046 44.6837 29.4965 44.2332 29.4965 43.6775V33.5726C29.4965 33.0169 29.046 32.5664 28.4903 32.5664Z", fill: "#0078D4" }),
1697
+ /* @__PURE__ */ jsx("path", { d: "M53.4083 32.5664H33.0883C32.5325 32.5664 32.082 33.0169 32.082 33.5726V43.6775C32.082 44.2332 32.5325 44.6837 33.0883 44.6837H53.4083C53.964 44.6837 54.4145 44.2332 54.4145 43.6775V33.5726C54.4145 33.0169 53.964 32.5664 53.4083 32.5664Z", fill: "#0078D4" }),
1698
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "paint0_linear_11640_11692", x1: "30.9996", y1: "49.2992", x2: "30.9996", y2: "13.5801", gradientUnits: "userSpaceOnUse", children: [
1699
+ /* @__PURE__ */ jsx("stop", { stopColor: "#32BEDD" }),
1700
+ /* @__PURE__ */ jsx("stop", { offset: "0.775", stopColor: "#32D4F5" })
1701
+ ] }) })
1702
+ ] });
1691
1703
  const AzureEventHub = (props) => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1692
1704
  /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_7362_17014)", children: [
1693
1705
  /* @__PURE__ */ jsx("path", { d: "M6.33051 4.0693H57.6037C58.0583 4.0693 58.6529 3.99941 59.0376 4.24404C59.3524 4.45373 59.3174 4.76825 59.3174 5.08278V16.1961C59.3174 16.5107 59.2825 16.8252 59.0376 17.0349C58.7578 17.3145 58.4431 17.3145 58.0583 17.3145H53.1269C52.7072 17.3145 52.2875 17.2795 52.0077 16.965C51.7629 16.6854 51.7629 16.301 51.7629 15.9515V11.5831H11.8915V16.0564C11.8915 16.4058 11.8565 16.7553 11.6117 17.0349C11.3319 17.3145 10.9822 17.3145 10.6324 17.3145H5.45613C5.10639 17.3145 4.75664 17.3145 4.47684 17.0349C4.19704 16.7553 4.19704 16.4408 4.16206 16.0564V5.99142C4.16206 5.607 4.12709 5.18763 4.19704 4.8032C4.26699 4.45373 4.58176 4.17414 4.93151 4.10425C5.42116 4.03435 5.87583 4.0693 6.33051 4.0693Z", fill: "#006FD4" }),
@@ -2185,6 +2197,7 @@ const LogosLight = {
2185
2197
  "aws-redshift": AWSRedshift,
2186
2198
  "aws-s3": AWS_S3,
2187
2199
  azure: Azure,
2200
+ "azure-blob-storage": AzureBlobStorage,
2188
2201
  "azure-event-hub": AzureEventHub,
2189
2202
  bigquery: BigQueryLight,
2190
2203
  "c#": ChashLight,
@@ -2371,6 +2384,7 @@ const LogosDark = {
2371
2384
  "aws-redshift": AWSRedshift,
2372
2385
  "aws-s3": AWS_S3,
2373
2386
  azure: Azure,
2387
+ "azure-blob-storage": AzureBlobStorage,
2374
2388
  "azure-event-hub": AzureEventHub,
2375
2389
  bigquery: BigQueryLight,
2376
2390
  "c#": ChashLight,
@@ -15958,62 +15972,75 @@ styled.svg.withConfig({
15958
15972
  }
15959
15973
  `);
15960
15974
  const locale = "en-US";
15961
- const weekdayFormatter = new Intl.DateTimeFormat(locale, {
15962
- weekday: "short"
15963
- });
15964
- const headerDateFormatter = new Intl.DateTimeFormat(locale, {
15965
- month: "short",
15966
- year: "numeric"
15967
- });
15968
15975
  const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
15969
15976
  day: "2-digit",
15970
15977
  month: "short",
15971
15978
  year: "numeric"
15972
15979
  });
15973
15980
  const explicitWidth = "250px";
15974
- const HighlightedInputWrapper = styled(InputWrapper).withConfig({
15975
- componentId: "sc-1kfphgn-0"
15981
+ const HighlightedInputWrapper = styled$1(InputWrapper).withConfig({
15982
+ componentId: "sc-1m6g9rm-0"
15976
15983
  })(["", " width:", ";}"], ({
15977
15984
  $isActive,
15978
15985
  theme: theme2
15979
15986
  }) => {
15980
15987
  return `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isActive ? theme2.click.datePicker.dateOption.color.stroke.active : theme2.click.field.color.stroke.default};`;
15981
15988
  }, explicitWidth);
15982
- const DatePickerContainer = styled(Container).withConfig({
15983
- componentId: "sc-1kfphgn-1"
15989
+ const DatePickerInput = ({
15990
+ isActive,
15991
+ disabled,
15992
+ id,
15993
+ placeholder,
15994
+ selectedDate
15995
+ }) => {
15996
+ const defaultId = useId();
15997
+ const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
15998
+ return /* @__PURE__ */ jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
15999
+ /* @__PURE__ */ jsx(SvgImage, { name: "calendar" }),
16000
+ /* @__PURE__ */ jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
16001
+ ] });
16002
+ };
16003
+ const weekdayFormatter = new Intl.DateTimeFormat(locale, {
16004
+ weekday: "short"
16005
+ });
16006
+ const headerDateFormatter = new Intl.DateTimeFormat(locale, {
16007
+ month: "short",
16008
+ year: "numeric"
16009
+ });
16010
+ const DatePickerContainer = styled$1(Container).withConfig({
16011
+ componentId: "sc-1m6g9rm-1"
15984
16012
  })(["background:", ";"], ({
15985
16013
  theme: theme2
15986
16014
  }) => theme2.click.datePicker.dateOption.color.background.default);
15987
- const UnselectableTitle = styled.h2.withConfig({
15988
- componentId: "sc-1kfphgn-2"
16015
+ const UnselectableTitle = styled$1.h2.withConfig({
16016
+ componentId: "sc-1m6g9rm-2"
15989
16017
  })(["", " user-select:none;"], ({
15990
16018
  theme: theme2
15991
16019
  }) => `
15992
16020
  color: ${theme2.click.datePicker.color.title.default};
15993
16021
  font: ${theme2.click.datePicker.typography.title.default};
15994
16022
  `);
15995
- const DateTable = styled.table.withConfig({
15996
- componentId: "sc-1kfphgn-3"
15997
- })(["border-collapse:separate;border-spacing:0;font:", " table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{", ";padding:4px;}"], ({
16023
+ const DateTable = styled$1.table.withConfig({
16024
+ componentId: "sc-1m6g9rm-3"
16025
+ })(["border-collapse:separate;border-spacing:0;font:", ";table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{padding:4px;}"], ({
15998
16026
  theme: theme2
15999
16027
  }) => theme2.typography.styles.product.text.normal.md, explicitWidth, ({
16000
16028
  theme: theme2
16001
- }) => theme2.click.datePicker.dateOption.size.height, ({
16002
- theme: theme2
16003
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default}`);
16004
- const DateTableHeader = styled.th.withConfig({
16005
- componentId: "sc-1kfphgn-4"
16029
+ }) => theme2.click.datePicker.dateOption.size.height);
16030
+ const DateTableHeader = styled$1.th.withConfig({
16031
+ componentId: "sc-1m6g9rm-4"
16006
16032
  })(["", " width:14%;"], ({
16007
16033
  theme: theme2
16008
16034
  }) => `
16009
16035
  color: ${theme2.click.datePicker.color.daytitle.default};
16010
16036
  font: ${theme2.click.datePicker.typography.daytitle.default};
16011
16037
  `);
16012
- const DateTableCell = styled.td.withConfig({
16013
- componentId: "sc-1kfphgn-5"
16038
+ const DateTableCell = styled$1.td.withConfig({
16039
+ componentId: "sc-1m6g9rm-5"
16014
16040
  })(["", " ", " ", " text-align:center;", " &:hover{", ";}"], ({
16015
16041
  theme: theme2
16016
16042
  }) => `
16043
+ border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default};
16017
16044
  border-radius: ${theme2.click.datePicker.dateOption.radii.default};
16018
16045
  font: ${theme2.click.datePicker.dateOption.typography.label.default};
16019
16046
  `, ({
@@ -16035,50 +16062,35 @@ const DateTableCell = styled.td.withConfig({
16035
16062
  }) => $isToday && `font: ${theme2.click.datePicker.dateOption.typography.label.active};`, ({
16036
16063
  $isDisabled,
16037
16064
  theme: theme2
16038
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover}`);
16039
- const DatePickerInput = ({
16040
- isActive,
16041
- disabled,
16042
- id,
16043
- placeholder,
16044
- selectedDate
16045
- }) => {
16046
- const defaultId = useId();
16047
- const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
16048
- return /* @__PURE__ */ jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
16049
- /* @__PURE__ */ jsx(SvgImage, { name: "calendar" }),
16050
- /* @__PURE__ */ jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
16051
- ] });
16052
- };
16053
- const Calendar = ({
16054
- closeDatepicker,
16055
- futureDatesDisabled,
16056
- selectedDate,
16057
- setSelectedDate
16065
+ }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover};
16066
+
16067
+
16068
+ border-radius: ${theme2.click.datePicker.dateOption.radii.default};`);
16069
+ const CalendarRenderer = ({
16070
+ calendarOptions = {},
16071
+ children,
16072
+ ...props
16058
16073
  }) => {
16059
- const calendarOptions = {
16060
- defaultWeekStart: 1
16061
- };
16062
- if (selectedDate) {
16063
- calendarOptions.defaultDate = selectedDate;
16064
- }
16065
16074
  const {
16066
16075
  body,
16067
16076
  headers,
16068
16077
  month,
16069
16078
  navigation,
16070
16079
  year
16071
- } = useCalendar(calendarOptions);
16072
- const handleNextClick = () => {
16080
+ } = useCalendar({
16081
+ defaultWeekStart: 1,
16082
+ ...calendarOptions
16083
+ });
16084
+ const handleNextClick = useCallback(() => {
16073
16085
  navigation.toNext();
16074
- };
16075
- const handlePreviousClick = () => {
16086
+ }, [navigation]);
16087
+ const handlePreviousClick = useCallback(() => {
16076
16088
  navigation.toPrev();
16077
- };
16089
+ }, [navigation]);
16078
16090
  const headerDate = /* @__PURE__ */ new Date();
16079
16091
  headerDate.setMonth(month);
16080
16092
  headerDate.setFullYear(year);
16081
- return /* @__PURE__ */ jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", children: [
16093
+ return /* @__PURE__ */ jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", ...props, children: [
16082
16094
  /* @__PURE__ */ jsxs(Container, { isResponsive: false, justifyContent: "space-between", orientation: "horizontal", children: [
16083
16095
  /* @__PURE__ */ jsx(IconButton$1, { icon: "chevron-left", onClick: handlePreviousClick, size: "sm", type: "ghost" }),
16084
16096
  /* @__PURE__ */ jsx(UnselectableTitle, { children: headerDateFormatter.format(headerDate) }),
@@ -16091,32 +16103,42 @@ const Calendar = ({
16091
16103
  }) => {
16092
16104
  return /* @__PURE__ */ jsx(DateTableHeader, { children: weekdayFormatter.format(date) }, key);
16093
16105
  }) }) }),
16094
- /* @__PURE__ */ jsx("tbody", { children: body.value.map(({
16095
- key: weekKey,
16096
- value: week
16097
- }) => {
16098
- return /* @__PURE__ */ jsx("tr", { children: week.map(({
16099
- date,
16100
- isCurrentMonth,
16101
- key: dayKey,
16102
- value: fullDate
16103
- }) => {
16104
- const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
16105
- const today = /* @__PURE__ */ new Date();
16106
- const isCurrentDate = isSameDate(today, fullDate);
16107
- const isDisabled = futureDatesDisabled ? fullDate > today : false;
16108
- return /* @__PURE__ */ jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: () => {
16109
- if (isDisabled) {
16110
- return false;
16111
- }
16112
- setSelectedDate(fullDate);
16113
- closeDatepicker();
16114
- }, children: date }, dayKey);
16115
- }) }, weekKey);
16116
- }) })
16106
+ /* @__PURE__ */ jsx("tbody", { children: children(body) })
16117
16107
  ] })
16118
16108
  ] });
16119
16109
  };
16110
+ const Calendar = ({
16111
+ calendarBody,
16112
+ closeDatepicker,
16113
+ futureDatesDisabled,
16114
+ selectedDate,
16115
+ setSelectedDate
16116
+ }) => {
16117
+ return calendarBody.value.map(({
16118
+ key: weekKey,
16119
+ value: week
16120
+ }) => {
16121
+ return /* @__PURE__ */ jsx("tr", { children: week.map(({
16122
+ date,
16123
+ isCurrentMonth,
16124
+ key: dayKey,
16125
+ value: fullDate
16126
+ }) => {
16127
+ const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
16128
+ const today = /* @__PURE__ */ new Date();
16129
+ const isCurrentDate = isSameDate(today, fullDate);
16130
+ const isDisabled = futureDatesDisabled ? fullDate > today : false;
16131
+ const handleClick = () => {
16132
+ if (isDisabled) {
16133
+ return false;
16134
+ }
16135
+ setSelectedDate(fullDate);
16136
+ closeDatepicker();
16137
+ };
16138
+ return /* @__PURE__ */ jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: handleClick, children: date }, dayKey);
16139
+ }) }, weekKey);
16140
+ });
16141
+ };
16120
16142
  const DatePicker = ({
16121
16143
  date,
16122
16144
  disabled = false,
@@ -16126,6 +16148,10 @@ const DatePicker = ({
16126
16148
  }) => {
16127
16149
  const [isOpen, setIsOpen] = useState(false);
16128
16150
  const [selectedDate, setSelectedDate] = useState();
16151
+ const calendarOptions = {};
16152
+ if (selectedDate) {
16153
+ calendarOptions.defaultDate = selectedDate;
16154
+ }
16129
16155
  useEffect(() => {
16130
16156
  if (date) {
16131
16157
  setSelectedDate(date);
@@ -16139,8 +16165,8 @@ const DatePicker = ({
16139
16165
  onSelectDate(selectedDate2);
16140
16166
  };
16141
16167
  return /* @__PURE__ */ jsxs(Dropdown, { onOpenChange: setIsOpen, open: isOpen, children: [
16142
- /* @__PURE__ */ jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsx(DatePickerInput, { "data-testid": "datepicker-inpcontainer", disabled, isActive: isOpen, placeholder, selectedDate }) }),
16143
- /* @__PURE__ */ jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsx(Calendar, { closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) })
16168
+ /* @__PURE__ */ jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsx(DatePickerInput, { "data-testid": "datepicker-input-container", disabled, isActive: isOpen, placeholder, selectedDate }) }),
16169
+ /* @__PURE__ */ jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsx(CalendarRenderer, { calendarOptions, children: (body) => /* @__PURE__ */ jsx(Calendar, { calendarBody: body, closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) }) })
16144
16170
  ] });
16145
16171
  };
16146
16172
  const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
@@ -1703,6 +1703,18 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1703
1703
  ] })
1704
1704
  ] })
1705
1705
  ] });
1706
+ const AzureBlobStorage = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "62", height: "50", viewBox: "0 0 62 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1707
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M0.777344 13.5801H61.2218V47.2796C61.2218 47.8153 61.009 48.3289 60.6303 48.7077C60.2515 49.0864 59.7378 49.2992 59.2022 49.2992H2.7969C2.26128 49.2992 1.7476 49.0864 1.36886 48.7077C0.990118 48.3289 0.777344 47.8153 0.777344 47.2796V13.5801Z", fill: "url(#paint0_linear_11640_11692)" }),
1708
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M2.80757 0.7012H59.1916C59.4568 0.7012 59.7194 0.753438 59.9644 0.85493C60.2094 0.956422 60.4321 1.10518 60.6196 1.29271C60.8071 1.48025 60.9559 1.70288 61.0574 1.94791C61.1589 2.19293 61.2111 2.45554 61.2111 2.72076V13.5794H0.777344V2.72076C0.77734 2.45464 0.829929 2.19116 0.932087 1.94543C1.03425 1.69971 1.18396 1.4766 1.37262 1.28893C1.56129 1.10126 1.78518 0.95272 2.03144 0.851858C2.2777 0.750995 2.54146 0.699795 2.80757 0.7012Z", fill: "#0078D4" }),
1709
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M28.6036 18.0625H8.28357C7.72784 18.0625 7.27734 18.513 7.27734 19.0687V29.1736C7.27734 29.7293 7.72784 30.1798 8.28357 30.1798H28.6036C29.1593 30.1798 29.6098 29.7293 29.6098 29.1736V19.0687C29.6098 18.513 29.1593 18.0625 28.6036 18.0625Z", fill: "#0078D4" }),
1710
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M53.5215 18.0625H33.2015C32.6458 18.0625 32.1953 18.513 32.1953 19.0687V29.1736C32.1953 29.7293 32.6458 30.1798 33.2015 30.1798H53.5215C54.0773 30.1798 54.5278 29.7293 54.5278 29.1736V19.0687C54.5278 18.513 54.0773 18.0625 53.5215 18.0625Z", fill: "white" }),
1711
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M28.4903 32.5664H8.17028C7.61456 32.5664 7.16406 33.0169 7.16406 33.5726V43.6775C7.16406 44.2332 7.61456 44.6837 8.17028 44.6837H28.4903C29.046 44.6837 29.4965 44.2332 29.4965 43.6775V33.5726C29.4965 33.0169 29.046 32.5664 28.4903 32.5664Z", fill: "#0078D4" }),
1712
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M53.4083 32.5664H33.0883C32.5325 32.5664 32.082 33.0169 32.082 33.5726V43.6775C32.082 44.2332 32.5325 44.6837 33.0883 44.6837H53.4083C53.964 44.6837 54.4145 44.2332 54.4145 43.6775V33.5726C54.4145 33.0169 53.964 32.5664 53.4083 32.5664Z", fill: "#0078D4" }),
1713
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("linearGradient", { id: "paint0_linear_11640_11692", x1: "30.9996", y1: "49.2992", x2: "30.9996", y2: "13.5801", gradientUnits: "userSpaceOnUse", children: [
1714
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { stopColor: "#32BEDD" }),
1715
+ /* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "0.775", stopColor: "#32D4F5" })
1716
+ ] }) })
1717
+ ] });
1706
1718
  const AzureEventHub = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
1707
1719
  /* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_7362_17014)", children: [
1708
1720
  /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.33051 4.0693H57.6037C58.0583 4.0693 58.6529 3.99941 59.0376 4.24404C59.3524 4.45373 59.3174 4.76825 59.3174 5.08278V16.1961C59.3174 16.5107 59.2825 16.8252 59.0376 17.0349C58.7578 17.3145 58.4431 17.3145 58.0583 17.3145H53.1269C52.7072 17.3145 52.2875 17.2795 52.0077 16.965C51.7629 16.6854 51.7629 16.301 51.7629 15.9515V11.5831H11.8915V16.0564C11.8915 16.4058 11.8565 16.7553 11.6117 17.0349C11.3319 17.3145 10.9822 17.3145 10.6324 17.3145H5.45613C5.10639 17.3145 4.75664 17.3145 4.47684 17.0349C4.19704 16.7553 4.19704 16.4408 4.16206 16.0564V5.99142C4.16206 5.607 4.12709 5.18763 4.19704 4.8032C4.26699 4.45373 4.58176 4.17414 4.93151 4.10425C5.42116 4.03435 5.87583 4.0693 6.33051 4.0693Z", fill: "#006FD4" }),
@@ -2200,6 +2212,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2200
2212
  "aws-redshift": AWSRedshift,
2201
2213
  "aws-s3": AWS_S3,
2202
2214
  azure: Azure,
2215
+ "azure-blob-storage": AzureBlobStorage,
2203
2216
  "azure-event-hub": AzureEventHub,
2204
2217
  bigquery: BigQueryLight,
2205
2218
  "c#": ChashLight,
@@ -2386,6 +2399,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2386
2399
  "aws-redshift": AWSRedshift,
2387
2400
  "aws-s3": AWS_S3,
2388
2401
  azure: Azure,
2402
+ "azure-blob-storage": AzureBlobStorage,
2389
2403
  "azure-event-hub": AzureEventHub,
2390
2404
  bigquery: BigQueryLight,
2391
2405
  "c#": ChashLight,
@@ -15973,62 +15987,75 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
15973
15987
  }
15974
15988
  `);
15975
15989
  const locale = "en-US";
15976
- const weekdayFormatter = new Intl.DateTimeFormat(locale, {
15977
- weekday: "short"
15978
- });
15979
- const headerDateFormatter = new Intl.DateTimeFormat(locale, {
15980
- month: "short",
15981
- year: "numeric"
15982
- });
15983
15990
  const selectedDateFormatter = new Intl.DateTimeFormat(locale, {
15984
15991
  day: "2-digit",
15985
15992
  month: "short",
15986
15993
  year: "numeric"
15987
15994
  });
15988
15995
  const explicitWidth = "250px";
15989
- const HighlightedInputWrapper = styled.styled(InputWrapper).withConfig({
15990
- componentId: "sc-1kfphgn-0"
15996
+ const HighlightedInputWrapper = styled(InputWrapper).withConfig({
15997
+ componentId: "sc-1m6g9rm-0"
15991
15998
  })(["", " width:", ";}"], ({
15992
15999
  $isActive,
15993
16000
  theme: theme2
15994
16001
  }) => {
15995
16002
  return `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isActive ? theme2.click.datePicker.dateOption.color.stroke.active : theme2.click.field.color.stroke.default};`;
15996
16003
  }, explicitWidth);
15997
- const DatePickerContainer = styled.styled(Container).withConfig({
15998
- componentId: "sc-1kfphgn-1"
16004
+ const DatePickerInput = ({
16005
+ isActive,
16006
+ disabled,
16007
+ id,
16008
+ placeholder,
16009
+ selectedDate
16010
+ }) => {
16011
+ const defaultId = React.useId();
16012
+ const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
16013
+ return /* @__PURE__ */ jsxRuntime.jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
16014
+ /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "calendar" }),
16015
+ /* @__PURE__ */ jsxRuntime.jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
16016
+ ] });
16017
+ };
16018
+ const weekdayFormatter = new Intl.DateTimeFormat(locale, {
16019
+ weekday: "short"
16020
+ });
16021
+ const headerDateFormatter = new Intl.DateTimeFormat(locale, {
16022
+ month: "short",
16023
+ year: "numeric"
16024
+ });
16025
+ const DatePickerContainer = styled(Container).withConfig({
16026
+ componentId: "sc-1m6g9rm-1"
15999
16027
  })(["background:", ";"], ({
16000
16028
  theme: theme2
16001
16029
  }) => theme2.click.datePicker.dateOption.color.background.default);
16002
- const UnselectableTitle = styled.styled.h2.withConfig({
16003
- componentId: "sc-1kfphgn-2"
16030
+ const UnselectableTitle = styled.h2.withConfig({
16031
+ componentId: "sc-1m6g9rm-2"
16004
16032
  })(["", " user-select:none;"], ({
16005
16033
  theme: theme2
16006
16034
  }) => `
16007
16035
  color: ${theme2.click.datePicker.color.title.default};
16008
16036
  font: ${theme2.click.datePicker.typography.title.default};
16009
16037
  `);
16010
- const DateTable = styled.styled.table.withConfig({
16011
- componentId: "sc-1kfphgn-3"
16012
- })(["border-collapse:separate;border-spacing:0;font:", " table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{", ";padding:4px;}"], ({
16038
+ const DateTable = styled.table.withConfig({
16039
+ componentId: "sc-1m6g9rm-3"
16040
+ })(["border-collapse:separate;border-spacing:0;font:", ";table-layout:fixed;user-select:none;width:", ";thead tr{height:", ";}tbody{cursor:pointer;}td,th{padding:4px;}"], ({
16013
16041
  theme: theme2
16014
16042
  }) => theme2.typography.styles.product.text.normal.md, explicitWidth, ({
16015
16043
  theme: theme2
16016
- }) => theme2.click.datePicker.dateOption.size.height, ({
16017
- theme: theme2
16018
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default}`);
16019
- const DateTableHeader = styled.styled.th.withConfig({
16020
- componentId: "sc-1kfphgn-4"
16044
+ }) => theme2.click.datePicker.dateOption.size.height);
16045
+ const DateTableHeader = styled.th.withConfig({
16046
+ componentId: "sc-1m6g9rm-4"
16021
16047
  })(["", " width:14%;"], ({
16022
16048
  theme: theme2
16023
16049
  }) => `
16024
16050
  color: ${theme2.click.datePicker.color.daytitle.default};
16025
16051
  font: ${theme2.click.datePicker.typography.daytitle.default};
16026
16052
  `);
16027
- const DateTableCell = styled.styled.td.withConfig({
16028
- componentId: "sc-1kfphgn-5"
16053
+ const DateTableCell = styled.td.withConfig({
16054
+ componentId: "sc-1m6g9rm-5"
16029
16055
  })(["", " ", " ", " text-align:center;", " &:hover{", ";}"], ({
16030
16056
  theme: theme2
16031
16057
  }) => `
16058
+ border: ${theme2.click.datePicker.dateOption.stroke} solid ${theme2.click.datePicker.dateOption.color.stroke.default};
16032
16059
  border-radius: ${theme2.click.datePicker.dateOption.radii.default};
16033
16060
  font: ${theme2.click.datePicker.dateOption.typography.label.default};
16034
16061
  `, ({
@@ -16050,50 +16077,35 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16050
16077
  }) => $isToday && `font: ${theme2.click.datePicker.dateOption.typography.label.active};`, ({
16051
16078
  $isDisabled,
16052
16079
  theme: theme2
16053
- }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover}`);
16054
- const DatePickerInput = ({
16055
- isActive,
16056
- disabled,
16057
- id,
16058
- placeholder,
16059
- selectedDate
16060
- }) => {
16061
- const defaultId = React.useId();
16062
- const formattedSelectedDate = selectedDate instanceof Date ? selectedDateFormatter.format(selectedDate) : "";
16063
- return /* @__PURE__ */ jsxRuntime.jsxs(HighlightedInputWrapper, { $isActive: isActive, disabled, id: id ?? defaultId, children: [
16064
- /* @__PURE__ */ jsxRuntime.jsx(SvgImage, { name: "calendar" }),
16065
- /* @__PURE__ */ jsxRuntime.jsx(InputElement, { "data-testid": "datepicker-input", placeholder, readOnly: true, value: formattedSelectedDate })
16066
- ] });
16067
- };
16068
- const Calendar = ({
16069
- closeDatepicker,
16070
- futureDatesDisabled,
16071
- selectedDate,
16072
- setSelectedDate
16080
+ }) => `border: ${theme2.click.datePicker.dateOption.stroke} solid ${$isDisabled ? theme2.click.datePicker.dateOption.color.stroke.disabled : theme2.click.datePicker.dateOption.color.stroke.hover};
16081
+
16082
+
16083
+ border-radius: ${theme2.click.datePicker.dateOption.radii.default};`);
16084
+ const CalendarRenderer = ({
16085
+ calendarOptions = {},
16086
+ children,
16087
+ ...props
16073
16088
  }) => {
16074
- const calendarOptions = {
16075
- defaultWeekStart: 1
16076
- };
16077
- if (selectedDate) {
16078
- calendarOptions.defaultDate = selectedDate;
16079
- }
16080
16089
  const {
16081
16090
  body,
16082
16091
  headers,
16083
16092
  month,
16084
16093
  navigation,
16085
16094
  year
16086
- } = useCalendar(calendarOptions);
16087
- const handleNextClick = () => {
16095
+ } = useCalendar({
16096
+ defaultWeekStart: 1,
16097
+ ...calendarOptions
16098
+ });
16099
+ const handleNextClick = React.useCallback(() => {
16088
16100
  navigation.toNext();
16089
- };
16090
- const handlePreviousClick = () => {
16101
+ }, [navigation]);
16102
+ const handlePreviousClick = React.useCallback(() => {
16091
16103
  navigation.toPrev();
16092
- };
16104
+ }, [navigation]);
16093
16105
  const headerDate = /* @__PURE__ */ new Date();
16094
16106
  headerDate.setMonth(month);
16095
16107
  headerDate.setFullYear(year);
16096
- return /* @__PURE__ */ jsxRuntime.jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", children: [
16108
+ return /* @__PURE__ */ jsxRuntime.jsxs(DatePickerContainer, { "data-testid": "datepicker-calendar-container", isResponsive: false, fillWidth: false, orientation: "vertical", padding: "sm", ...props, children: [
16097
16109
  /* @__PURE__ */ jsxRuntime.jsxs(Container, { isResponsive: false, justifyContent: "space-between", orientation: "horizontal", children: [
16098
16110
  /* @__PURE__ */ jsxRuntime.jsx(IconButton$1, { icon: "chevron-left", onClick: handlePreviousClick, size: "sm", type: "ghost" }),
16099
16111
  /* @__PURE__ */ jsxRuntime.jsx(UnselectableTitle, { children: headerDateFormatter.format(headerDate) }),
@@ -16106,32 +16118,42 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16106
16118
  }) => {
16107
16119
  return /* @__PURE__ */ jsxRuntime.jsx(DateTableHeader, { children: weekdayFormatter.format(date) }, key);
16108
16120
  }) }) }),
16109
- /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: body.value.map(({
16110
- key: weekKey,
16111
- value: week
16112
- }) => {
16113
- return /* @__PURE__ */ jsxRuntime.jsx("tr", { children: week.map(({
16114
- date,
16115
- isCurrentMonth,
16116
- key: dayKey,
16117
- value: fullDate
16118
- }) => {
16119
- const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
16120
- const today = /* @__PURE__ */ new Date();
16121
- const isCurrentDate = isSameDate(today, fullDate);
16122
- const isDisabled = futureDatesDisabled ? fullDate > today : false;
16123
- return /* @__PURE__ */ jsxRuntime.jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: () => {
16124
- if (isDisabled) {
16125
- return false;
16126
- }
16127
- setSelectedDate(fullDate);
16128
- closeDatepicker();
16129
- }, children: date }, dayKey);
16130
- }) }, weekKey);
16131
- }) })
16121
+ /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: children(body) })
16132
16122
  ] })
16133
16123
  ] });
16134
16124
  };
16125
+ const Calendar = ({
16126
+ calendarBody,
16127
+ closeDatepicker,
16128
+ futureDatesDisabled,
16129
+ selectedDate,
16130
+ setSelectedDate
16131
+ }) => {
16132
+ return calendarBody.value.map(({
16133
+ key: weekKey,
16134
+ value: week
16135
+ }) => {
16136
+ return /* @__PURE__ */ jsxRuntime.jsx("tr", { children: week.map(({
16137
+ date,
16138
+ isCurrentMonth,
16139
+ key: dayKey,
16140
+ value: fullDate
16141
+ }) => {
16142
+ const isSelected = selectedDate ? isSameDate(selectedDate, fullDate) : false;
16143
+ const today = /* @__PURE__ */ new Date();
16144
+ const isCurrentDate = isSameDate(today, fullDate);
16145
+ const isDisabled = futureDatesDisabled ? fullDate > today : false;
16146
+ const handleClick = () => {
16147
+ if (isDisabled) {
16148
+ return false;
16149
+ }
16150
+ setSelectedDate(fullDate);
16151
+ closeDatepicker();
16152
+ };
16153
+ return /* @__PURE__ */ jsxRuntime.jsx(DateTableCell, { $isCurrentMonth: isCurrentMonth, $isDisabled: isDisabled, $isSelected: isSelected, $isToday: isCurrentDate, onClick: handleClick, children: date }, dayKey);
16154
+ }) }, weekKey);
16155
+ });
16156
+ };
16135
16157
  const DatePicker = ({
16136
16158
  date,
16137
16159
  disabled = false,
@@ -16141,6 +16163,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16141
16163
  }) => {
16142
16164
  const [isOpen, setIsOpen] = React.useState(false);
16143
16165
  const [selectedDate, setSelectedDate] = React.useState();
16166
+ const calendarOptions = {};
16167
+ if (selectedDate) {
16168
+ calendarOptions.defaultDate = selectedDate;
16169
+ }
16144
16170
  React.useEffect(() => {
16145
16171
  if (date) {
16146
16172
  setSelectedDate(date);
@@ -16154,8 +16180,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
16154
16180
  onSelectDate(selectedDate2);
16155
16181
  };
16156
16182
  return /* @__PURE__ */ jsxRuntime.jsxs(Dropdown, { onOpenChange: setIsOpen, open: isOpen, children: [
16157
- /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsxRuntime.jsx(DatePickerInput, { "data-testid": "datepicker-inpcontainer", disabled, isActive: isOpen, placeholder, selectedDate }) }),
16158
- /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsxRuntime.jsx(Calendar, { closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) })
16183
+ /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Trigger, { disabled, children: /* @__PURE__ */ jsxRuntime.jsx(DatePickerInput, { "data-testid": "datepicker-input-container", disabled, isActive: isOpen, placeholder, selectedDate }) }),
16184
+ /* @__PURE__ */ jsxRuntime.jsx(Dropdown.Content, { align: "start", children: /* @__PURE__ */ jsxRuntime.jsx(CalendarRenderer, { calendarOptions, children: (body) => /* @__PURE__ */ jsxRuntime.jsx(Calendar, { calendarBody: body, closeDatepicker: closeDatePicker, futureDatesDisabled, selectedDate, setSelectedDate: handleSelectDate }) }) })
16159
16185
  ] });
16160
16186
  };
16161
16187
  const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
@@ -0,0 +1,33 @@
1
+ import { ReactNode } from 'react';
2
+ import { useCalendar, UseCalendarOptions } from '@h6s/calendar';
3
+
4
+ interface DatePickerInputProps {
5
+ isActive: boolean;
6
+ disabled: boolean;
7
+ id?: string;
8
+ placeholder?: string;
9
+ selectedDate?: Date;
10
+ }
11
+ export declare const DatePickerInput: ({ isActive, disabled, id, placeholder, selectedDate, }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
12
+ interface DateRangePickerInputProps {
13
+ isActive: boolean;
14
+ disabled: boolean;
15
+ id?: string;
16
+ placeholder?: string;
17
+ selectedEndDate?: Date;
18
+ selectedStartDate?: Date;
19
+ }
20
+ export declare const DateRangePickerInput: ({ isActive, disabled, id, placeholder, selectedEndDate, selectedStartDate, }: DateRangePickerInputProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const DateTableCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
22
+ $isCurrentMonth?: boolean;
23
+ $isDisabled?: boolean;
24
+ $isSelected?: boolean;
25
+ $isToday?: boolean;
26
+ }>> & string;
27
+ export type Body = ReturnType<typeof useCalendar>["body"];
28
+ interface CalendarRendererProps {
29
+ calendarOptions?: UseCalendarOptions;
30
+ children: (body: Body) => ReactNode;
31
+ }
32
+ export declare const CalendarRenderer: ({ calendarOptions, children, ...props }: CalendarRendererProps) => import("react/jsx-runtime").JSX.Element;
33
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface DatePickerProps {
2
+ endDate?: Date;
3
+ disabled?: boolean;
4
+ futureDatesDisabled?: boolean;
5
+ onSelectDateRange: (selectedStartDate: Date, selectedEndDate: Date) => void;
6
+ placeholder?: string;
7
+ startDate?: Date;
8
+ }
9
+ export declare const DateRangePicker: ({ endDate, startDate, disabled, futureDatesDisabled, onSelectDateRange, placeholder, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { SVGAttributes } from 'react';
2
+
3
+ declare const AzureBlobStorage: (props: SVGAttributes<SVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ export default AzureBlobStorage;
@@ -1 +1 @@
1
- export type LogoName = "clickhouse" | "airbyte" | "aws-s3" | "aws-athena" | "aws-kinesis" | "aws-redshift" | "aws-msk" | "kafka" | "digital_ocean" | "feature_database" | "feature_hexagon" | "fivetran" | "confluent" | "hex" | "tableau" | "grafana" | "superset" | "metabase" | "microsoft" | "aws" | "gcp" | "gcs" | "azure" | "azure-event-hub" | "dbeaver" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "prequel" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "redpanda" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg" | "upstash" | "warpstream";
1
+ export type LogoName = "clickhouse" | "airbyte" | "aws-s3" | "aws-athena" | "aws-kinesis" | "aws-redshift" | "aws-msk" | "kafka" | "digital_ocean" | "feature_database" | "feature_hexagon" | "fivetran" | "confluent" | "hex" | "tableau" | "grafana" | "superset" | "metabase" | "microsoft" | "aws" | "gcp" | "gcs" | "azure" | "azure-blob-storage" | "azure-event-hub" | "dbeaver" | "dbt" | "jdbc" | "mysql" | "postgres" | "google" | "github" | "decodeable" | "golang" | "prequel" | "python" | "deepnote" | "nodejs" | "datagrip" | "vector" | "kubenetes" | "c#" | "redpanda" | "rust" | "hudi" | "deltalake" | "snowflake" | "mongodb" | "bigquery" | "iceberg" | "upstash" | "warpstream";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.202",
3
+ "version": "0.0.204",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",