@octaviaflow/core 3.1.0-beta.87 → 3.1.0-beta.89
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.
package/dist/index.js
CHANGED
|
@@ -8080,7 +8080,6 @@ var TimezonePicker = forwardRef32(
|
|
|
8080
8080
|
TimezonePicker.displayName = "TimezonePicker";
|
|
8081
8081
|
|
|
8082
8082
|
// src/components/ScheduleBuilder/ScheduleBuilder.tsx
|
|
8083
|
-
import styles from "./ScheduleBuilder.module.scss";
|
|
8084
8083
|
import { jsx as jsx40, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
8085
8084
|
var FREQUENCY_LABELS = {
|
|
8086
8085
|
immediate: "Immediately",
|
|
@@ -8163,15 +8162,15 @@ function ScheduleBuilder({
|
|
|
8163
8162
|
return /* @__PURE__ */ jsxs40(
|
|
8164
8163
|
"div",
|
|
8165
8164
|
{
|
|
8166
|
-
className: cn(
|
|
8165
|
+
className: cn("ods-schedule-builder", className),
|
|
8167
8166
|
"data-size": size,
|
|
8168
8167
|
id: baseId,
|
|
8169
8168
|
role: "group",
|
|
8170
8169
|
"aria-label": typeof label === "string" ? label : "Schedule",
|
|
8171
8170
|
"aria-describedby": helperText ? helperId : void 0,
|
|
8172
8171
|
children: [
|
|
8173
|
-
label && /* @__PURE__ */ jsx40("div", { className:
|
|
8174
|
-
/* @__PURE__ */ jsx40("div", { className:
|
|
8172
|
+
label && /* @__PURE__ */ jsx40("div", { className: "ods-schedule-builder__label", children: label }),
|
|
8173
|
+
/* @__PURE__ */ jsx40("div", { className: "ods-schedule-builder__row", children: /* @__PURE__ */ jsx40(
|
|
8175
8174
|
SegmentedControl,
|
|
8176
8175
|
{
|
|
8177
8176
|
"aria-label": "Frequency",
|
|
@@ -8182,7 +8181,7 @@ function ScheduleBuilder({
|
|
|
8182
8181
|
options: frequencies.map((f) => ({ value: f, label: FREQUENCY_LABELS[f] }))
|
|
8183
8182
|
}
|
|
8184
8183
|
) }),
|
|
8185
|
-
(showTime || showZone || frequency === "weekly" || frequency === "monthly") && /* @__PURE__ */ jsxs40("div", { className:
|
|
8184
|
+
(showTime || showZone || frequency === "weekly" || frequency === "monthly") && /* @__PURE__ */ jsxs40("div", { className: "ods-schedule-builder__fields", children: [
|
|
8186
8185
|
frequency === "weekly" && /* @__PURE__ */ jsx40(
|
|
8187
8186
|
MultiSelect,
|
|
8188
8187
|
{
|
|
@@ -8237,11 +8236,11 @@ function ScheduleBuilder({
|
|
|
8237
8236
|
}
|
|
8238
8237
|
)
|
|
8239
8238
|
] }),
|
|
8240
|
-
error ? /* @__PURE__ */ jsx40(InlineMessage, { tone: "danger", children: error }) : showSummary ? /* @__PURE__ */ jsxs40("div", { className:
|
|
8239
|
+
error ? /* @__PURE__ */ jsx40(InlineMessage, { tone: "danger", children: error }) : showSummary ? /* @__PURE__ */ jsxs40("div", { className: "ods-schedule-builder__summary", "aria-live": "polite", children: [
|
|
8241
8240
|
/* @__PURE__ */ jsx40(CalendarIcon, { size: "sm", "aria-hidden": "true" }),
|
|
8242
8241
|
/* @__PURE__ */ jsx40("span", { children: describeSchedule(value) })
|
|
8243
8242
|
] }) : null,
|
|
8244
|
-
helperText && /* @__PURE__ */ jsx40("div", { id: helperId, className:
|
|
8243
|
+
helperText && /* @__PURE__ */ jsx40("div", { id: helperId, className: "ods-schedule-builder__helper", children: helperText })
|
|
8245
8244
|
]
|
|
8246
8245
|
}
|
|
8247
8246
|
);
|