@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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduleBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduleBuilder/ScheduleBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAO3D,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduleBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ScheduleBuilder/ScheduleBuilder.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAO3D,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAO3D,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,qEAAqE;IACrE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,kDAAkD;IAClD,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yEAAyE;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AA+FD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,WAAmE,EACnE,KAAK,EACL,UAAU,EACV,IAAW,EACX,QAAgB,EAChB,YAAmB,EACnB,WAAkB,EAClB,KAAK,EACL,SAAS,EACT,EAAE,GACH,EAAE,oBAAoB,2CA0HtB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,CA4B7D;AAED,eAAe,eAAe,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -13211,7 +13211,6 @@ var TimezonePicker = (0, import_react73.forwardRef)(
|
|
|
13211
13211
|
TimezonePicker.displayName = "TimezonePicker";
|
|
13212
13212
|
|
|
13213
13213
|
// src/components/ScheduleBuilder/ScheduleBuilder.tsx
|
|
13214
|
-
var import_ScheduleBuilder_module = __toESM(require("./ScheduleBuilder.module.scss"), 1);
|
|
13215
13214
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
13216
13215
|
var FREQUENCY_LABELS = {
|
|
13217
13216
|
immediate: "Immediately",
|
|
@@ -13294,15 +13293,15 @@ function ScheduleBuilder({
|
|
|
13294
13293
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
13295
13294
|
"div",
|
|
13296
13295
|
{
|
|
13297
|
-
className: cn(
|
|
13296
|
+
className: cn("ods-schedule-builder", className),
|
|
13298
13297
|
"data-size": size,
|
|
13299
13298
|
id: baseId,
|
|
13300
13299
|
role: "group",
|
|
13301
13300
|
"aria-label": typeof label === "string" ? label : "Schedule",
|
|
13302
13301
|
"aria-describedby": helperText ? helperId : void 0,
|
|
13303
13302
|
children: [
|
|
13304
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className:
|
|
13305
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className:
|
|
13303
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "ods-schedule-builder__label", children: label }),
|
|
13304
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "ods-schedule-builder__row", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13306
13305
|
SegmentedControl,
|
|
13307
13306
|
{
|
|
13308
13307
|
"aria-label": "Frequency",
|
|
@@ -13313,7 +13312,7 @@ function ScheduleBuilder({
|
|
|
13313
13312
|
options: frequencies.map((f) => ({ value: f, label: FREQUENCY_LABELS[f] }))
|
|
13314
13313
|
}
|
|
13315
13314
|
) }),
|
|
13316
|
-
(showTime || showZone || frequency === "weekly" || frequency === "monthly") && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className:
|
|
13315
|
+
(showTime || showZone || frequency === "weekly" || frequency === "monthly") && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "ods-schedule-builder__fields", children: [
|
|
13317
13316
|
frequency === "weekly" && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13318
13317
|
MultiSelect,
|
|
13319
13318
|
{
|
|
@@ -13368,11 +13367,11 @@ function ScheduleBuilder({
|
|
|
13368
13367
|
}
|
|
13369
13368
|
)
|
|
13370
13369
|
] }),
|
|
13371
|
-
error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(InlineMessage, { tone: "danger", children: error }) : showSummary ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className:
|
|
13370
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(InlineMessage, { tone: "danger", children: error }) : showSummary ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "ods-schedule-builder__summary", "aria-live": "polite", children: [
|
|
13372
13371
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_icons22.CalendarIcon, { size: "sm", "aria-hidden": "true" }),
|
|
13373
13372
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: describeSchedule(value) })
|
|
13374
13373
|
] }) : null,
|
|
13375
|
-
helperText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { id: helperId, className:
|
|
13374
|
+
helperText && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { id: helperId, className: "ods-schedule-builder__helper", children: helperText })
|
|
13376
13375
|
]
|
|
13377
13376
|
}
|
|
13378
13377
|
);
|
|
@@ -23796,7 +23795,7 @@ function findOpenTrigger(value, caret, trigger) {
|
|
|
23796
23795
|
function getCaretRect(textarea, caret) {
|
|
23797
23796
|
if (typeof document === "undefined") return null;
|
|
23798
23797
|
const mirror = document.createElement("div");
|
|
23799
|
-
const
|
|
23798
|
+
const styles = window.getComputedStyle(textarea);
|
|
23800
23799
|
for (const prop of [
|
|
23801
23800
|
"boxSizing",
|
|
23802
23801
|
"width",
|
|
@@ -23819,7 +23818,7 @@ function getCaretRect(textarea, caret) {
|
|
|
23819
23818
|
"tabSize",
|
|
23820
23819
|
"whiteSpace"
|
|
23821
23820
|
]) {
|
|
23822
|
-
mirror.style[prop] =
|
|
23821
|
+
mirror.style[prop] = styles[prop];
|
|
23823
23822
|
}
|
|
23824
23823
|
mirror.style.position = "absolute";
|
|
23825
23824
|
mirror.style.visibility = "hidden";
|
|
@@ -23976,7 +23975,7 @@ function getSelectionRect(textarea, start, end) {
|
|
|
23976
23975
|
if (typeof document === "undefined") return null;
|
|
23977
23976
|
if (start === end) return null;
|
|
23978
23977
|
const mirror = document.createElement("div");
|
|
23979
|
-
const
|
|
23978
|
+
const styles = window.getComputedStyle(textarea);
|
|
23980
23979
|
for (const prop of [
|
|
23981
23980
|
"boxSizing",
|
|
23982
23981
|
"width",
|
|
@@ -23999,7 +23998,7 @@ function getSelectionRect(textarea, start, end) {
|
|
|
23999
23998
|
"tabSize",
|
|
24000
23999
|
"whiteSpace"
|
|
24001
24000
|
]) {
|
|
24002
|
-
mirror.style[prop] =
|
|
24001
|
+
mirror.style[prop] = styles[prop];
|
|
24003
24002
|
}
|
|
24004
24003
|
mirror.style.position = "absolute";
|
|
24005
24004
|
mirror.style.visibility = "hidden";
|