@fluidattacks/design 3.1.13 → 3.1.14

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 (159) hide show
  1. package/dist/assets/design.css +1 -0
  2. package/dist/components/@core/index.js +15 -16
  3. package/dist/components/accordion/accordion-content/index.js +3 -20
  4. package/dist/components/accordion/index.js +5 -76
  5. package/dist/components/alert/index.js +4 -162
  6. package/dist/components/button/index.js +4 -67
  7. package/dist/components/card/card-header/index.js +4 -81
  8. package/dist/components/card/card-with-image/index.js +5 -91
  9. package/dist/components/card/card-with-input/index.js +5 -103
  10. package/dist/components/card/card-with-selector/index.js +4 -69
  11. package/dist/components/card/card-with-switch/index.js +4 -48
  12. package/dist/components/card/index.js +6 -10
  13. package/dist/components/carousel/index.js +4 -73
  14. package/dist/components/checkbox/index.js +4 -116
  15. package/dist/components/cloud-image/index.js +2 -2
  16. package/dist/components/code-snippet/index.js +6 -70
  17. package/dist/components/code-snippet/location-code/index.js +7 -169
  18. package/dist/components/colors/index.js +7 -222
  19. package/dist/components/confirm-dialog/index.js +4 -43
  20. package/dist/components/container/index.js +4 -49
  21. package/dist/components/content-card/category-tag/index.js +4 -40
  22. package/dist/components/content-card/event-date/index.js +5 -59
  23. package/dist/components/content-card/index.js +4 -166
  24. package/dist/components/content-card-carousel/index.js +4 -93
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
  26. package/dist/components/divider/index.js +4 -23
  27. package/dist/components/empty-state/empty-button/index.js +3 -4
  28. package/dist/components/empty-state/index.js +3 -83
  29. package/dist/components/file-preview/index.js +3 -42
  30. package/dist/components/form/index.js +4 -61
  31. package/dist/components/grid-container/index.js +4 -46
  32. package/dist/components/group-selector/index.js +6 -133
  33. package/dist/components/group-selector/option-container/index.js +3 -7
  34. package/dist/components/icon/index.js +4 -106
  35. package/dist/components/icon-button/index.js +4 -74
  36. package/dist/components/indicator-card/index.js +5 -72
  37. package/dist/components/info-sidebar/index.js +4 -114
  38. package/dist/components/inputs/fields/combobox/index.js +7 -144
  39. package/dist/components/inputs/fields/combobox/option/index.js +2 -3
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -25
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -24
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +4 -36
  43. package/dist/components/inputs/fields/date/calendar/index.js +6 -28
  44. package/dist/components/inputs/fields/date/index.js +8 -66
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +7 -33
  46. package/dist/components/inputs/fields/date-range/index.js +6 -106
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +7 -62
  48. package/dist/components/inputs/fields/date-time/index.js +6 -67
  49. package/dist/components/inputs/fields/editable/index.js +4 -26
  50. package/dist/components/inputs/fields/input/index.js +5 -75
  51. package/dist/components/inputs/fields/input-file/index.js +6 -123
  52. package/dist/components/inputs/fields/input-tags/index.js +4 -66
  53. package/dist/components/inputs/fields/number/index.js +4 -55
  54. package/dist/components/inputs/fields/number-range/index.js +4 -47
  55. package/dist/components/inputs/fields/phone/index.js +7 -577
  56. package/dist/components/inputs/fields/text-area/index.js +5 -79
  57. package/dist/components/inputs/index.js +14 -26
  58. package/dist/components/inputs/label/index.js +5 -36
  59. package/dist/components/inputs/outline-container/index.js +4 -102
  60. package/dist/components/inputs/utils/action-button/index.js +4 -29
  61. package/dist/components/inputs/utils/calendar-button/index.js +5 -35
  62. package/dist/components/inputs/utils/date-selector/index.js +3 -60
  63. package/dist/components/inputs/utils/date-time-field/index.js +10 -131
  64. package/dist/components/inputs/utils/dialog/index.js +5 -12
  65. package/dist/components/inputs/utils/number-field/index.js +5 -84
  66. package/dist/components/inputs/utils/popover/index.js +5 -42
  67. package/dist/components/interactive-card/icon/index.js +2 -4
  68. package/dist/components/interactive-card/index.js +4 -116
  69. package/dist/components/language-selector/index.js +4 -35
  70. package/dist/components/language-selector/item-list/index.js +2 -5
  71. package/dist/components/link/index.js +3 -104
  72. package/dist/components/list-item/index.js +6 -65
  73. package/dist/components/little-flag/index.js +3 -30
  74. package/dist/components/loading/index.js +4 -92
  75. package/dist/components/logo/index.js +2 -10
  76. package/dist/components/logo-carousel/index.js +4 -85
  77. package/dist/components/lottie/index.js +3 -18
  78. package/dist/components/menu/index.js +5 -64
  79. package/dist/components/message-banner/index.js +5 -99
  80. package/dist/components/modal/index.js +6 -63
  81. package/dist/components/modal/modal-confirm/index.js +3 -49
  82. package/dist/components/modal/modal-footer/index.js +5 -23
  83. package/dist/components/modal/modal-header/index.js +6 -49
  84. package/dist/components/notification/index.js +5 -111
  85. package/dist/components/notification-sign/index.js +4 -45
  86. package/dist/components/number-input/index.js +5 -87
  87. package/dist/components/oauth-selector/index.js +6 -98
  88. package/dist/components/oauth-selector/option-container/index.js +4 -74
  89. package/dist/components/plan-card/index.js +3 -153
  90. package/dist/components/plan-card/recommended-tag/index.js +3 -29
  91. package/dist/components/pop-up/description/index.js +5 -49
  92. package/dist/components/pop-up/index.js +7 -150
  93. package/dist/components/premium-feature/index.js +4 -83
  94. package/dist/components/priority-score/index.js +4 -27
  95. package/dist/components/progress/index.js +5 -45
  96. package/dist/components/progress-bar/index.js +3 -151
  97. package/dist/components/radio-button/index.js +4 -123
  98. package/dist/components/scroll-button/index.js +4 -40
  99. package/dist/components/search/index.js +7 -103
  100. package/dist/components/search-bar/index.js +4 -217
  101. package/dist/components/search-bar/item-searching/index.js +2 -7
  102. package/dist/components/severity-badge/index.js +4 -72
  103. package/dist/components/severity-overview/badge/index.js +4 -67
  104. package/dist/components/severity-overview/index.js +3 -15
  105. package/dist/components/show-on-hover/index.js +3 -29
  106. package/dist/components/slide-out-menu/index.js +6 -3453
  107. package/dist/components/slide-out-menu/menu-item/index.js +4 -65
  108. package/dist/components/slider/index.js +7 -122
  109. package/dist/components/slider/thumb/index.js +5 -15
  110. package/dist/components/step-lapse/index.js +4 -157
  111. package/dist/components/table-button/index.js +4 -95
  112. package/dist/components/tabs/fixed-tabs/index.js +3 -27
  113. package/dist/components/tabs/index.js +6 -55
  114. package/dist/components/tabs/tab/index.js +3 -37
  115. package/dist/components/tag/index.js +4 -182
  116. package/dist/components/timeline/card/index.js +2 -5
  117. package/dist/components/timeline/index.js +4 -15
  118. package/dist/components/toggle/index.js +4 -101
  119. package/dist/components/toggle-buttons/index.js +4 -101
  120. package/dist/components/tooltip/index.js +3 -6
  121. package/dist/components/tour/index.js +7 -4582
  122. package/dist/components/typography/heading/index.js +4 -45
  123. package/dist/components/typography/index.js +4 -6
  124. package/dist/components/typography/span/index.js +4 -39
  125. package/dist/components/typography/text/index.js +4 -45
  126. package/dist/components/web-form/index.js +4 -78
  127. package/dist/components-C2JBXbtI.mjs +9653 -0
  128. package/dist/hooks/index.js +6 -10
  129. package/dist/index.js +113 -205
  130. package/dist/vendor-CVMqCpkZ.mjs +14504 -0
  131. package/package.json +2 -1
  132. package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
  133. package/dist/assets/index.css +0 -1
  134. package/dist/assets/index2.css +0 -1
  135. package/dist/index-BMHVi812.mjs +0 -234
  136. package/dist/index-BzAniA2J.mjs +0 -135
  137. package/dist/index-C6LbClYh.mjs +0 -146
  138. package/dist/index-CAIe8hBv.mjs +0 -130
  139. package/dist/index-CUQBAqt_.mjs +0 -75
  140. package/dist/index-CWlrSlUk.mjs +0 -68
  141. package/dist/index-Ckmu1TfV.mjs +0 -86
  142. package/dist/index-DwznImvK.mjs +0 -1678
  143. package/dist/index-maWH3JYC.mjs +0 -3561
  144. package/dist/styles-B2N0JLw1.mjs +0 -114
  145. package/dist/styles-B64DVBIF.mjs +0 -115
  146. package/dist/styles-BXFVwnWT.mjs +0 -133
  147. package/dist/styles-BZQOqe8p.mjs +0 -141
  148. package/dist/styles-Bdque9TT.mjs +0 -65
  149. package/dist/styles-BlHspTrz.mjs +0 -144
  150. package/dist/styles-CROOwXEH.mjs +0 -76
  151. package/dist/styles-CplEd2kw.mjs +0 -228
  152. package/dist/styles-D1eTIklB.mjs +0 -110
  153. package/dist/styles-ePGii_9g.mjs +0 -74
  154. package/dist/use-carousel-CgAF78h3.mjs +0 -23
  155. package/dist/use-click-outside-BUll8Ag-.mjs +0 -18
  156. package/dist/use-cloudinary-image-BCxwj15o.mjs +0 -1176
  157. package/dist/use-modal-CtgexKnf.mjs +0 -14
  158. package/dist/use-search-Dj47QDw9.mjs +0 -15
  159. package/dist/utils-V0EumEPM.mjs +0 -6
@@ -1,8 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "react-aria";
4
- import { O } from "../../../../../index-CUQBAqt_.mjs";
5
- import "../../../../icon/index.js";
4
+ import { aW as m } from "../../../../../components-C2JBXbtI.mjs";
6
5
  export {
7
- O as Option
6
+ m as Option
8
7
  };
@@ -1,27 +1,9 @@
1
- import { jsx as n, jsxs as p } from "react/jsx-runtime";
2
- import { isToday as u, getLocalTimeZone as R, isSameDay as a } from "@internationalized/date";
3
- import { isNull as g } from "lodash";
4
- import { useRef as S } from "react";
5
- import { useCalendarCell as b } from "react-aria";
6
- import { a as x, b as y } from "../../../../../../styles-BlHspTrz.mjs";
7
- import { Icon as C } from "../../../../../icon/index.js";
8
- const k = ({ state: e, date: i }) => {
9
- const r = S(null), o = u(i, R()), { cellProps: h, buttonProps: m, isSelected: l, isDisabled: c, formattedDate: f } = b({ date: i }, e, r), s = "highlightedRange" in e && !g(e.highlightedRange) ? a(i, e.highlightedRange.start) : l, d = "highlightedRange" in e && !g(e.highlightedRange) ? a(i, e.highlightedRange.end) : l, t = l && !c && !(s || d) ? "range" : "";
10
- return /* @__PURE__ */ n(x, { id: t, ...h, children: /* @__PURE__ */ p(
11
- "div",
12
- {
13
- ...m,
14
- className: `cell ${s || d ? "selected" : ""}
15
- ${c ? "disabled" : ""} ${o ? "today" : ""}
16
- ${!e.isFocused && !o ? "focused" : ""} ${t}`,
17
- ref: r,
18
- children: [
19
- f,
20
- o ? /* @__PURE__ */ n(y, { children: /* @__PURE__ */ n(C, { clickable: !1, icon: "circle", iconSize: "xxs" }) }) : void 0
21
- ]
22
- }
23
- ) });
24
- };
1
+ import "react/jsx-runtime";
2
+ import "@internationalized/date";
3
+ import "lodash";
4
+ import "react";
5
+ import "react-aria";
6
+ import { aZ as e } from "../../../../../../components-C2JBXbtI.mjs";
25
7
  export {
26
- k as CalendarCell
8
+ e as CalendarCell
27
9
  };
@@ -1,26 +1,7 @@
1
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { getWeeksInMonth as h } from "@internationalized/date";
3
- import { useLocale as k, useCalendarGrid as p } from "react-aria";
4
- import { CalendarCell as y } from "../cell/index.js";
5
- import { W as s, D as f } from "../../../../../../styles-BlHspTrz.mjs";
6
- const g = ({
7
- state: r,
8
- ...l
9
- }) => {
10
- const { locale: d } = k(), { weekDays: i } = p(l, r), c = h(r.visibleRange.start, d);
11
- return /* @__PURE__ */ m("table", { children: [
12
- /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e(s, { children: i.map((n, o) => {
13
- const a = `key_${o}`;
14
- return /* @__PURE__ */ e(f, { children: n }, a);
15
- }) }) }),
16
- /* @__PURE__ */ e("tbody", { children: [...new Array(c).keys()].map(
17
- (n) => /* @__PURE__ */ e(s, { children: r.getDatesInWeek(n).map((o, a) => {
18
- const t = `key_${a}`;
19
- return o ? /* @__PURE__ */ e(y, { date: o, state: r }, t) : /* @__PURE__ */ e("td", {}, t);
20
- }) }, n)
21
- ) })
22
- ] });
23
- };
1
+ import "react/jsx-runtime";
2
+ import "@internationalized/date";
3
+ import "react-aria";
4
+ import { a_ as p } from "../../../../../../components-C2JBXbtI.mjs";
24
5
  export {
25
- g as CalendarGrid
6
+ p as CalendarGrid
26
7
  };
@@ -1,38 +1,6 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { useCallback as c } from "react";
3
- import { T as m, Y as u, C as i } from "../../../../../../styles-BlHspTrz.mjs";
4
- import { Icon as s } from "../../../../../icon/index.js";
5
- import { Button as t } from "../../../../utils/calendar-button/index.js";
6
- const v = ({
7
- state: r,
8
- prevButtonProps: n,
9
- nextButtonProps: l,
10
- title: d
11
- }) => {
12
- const e = r.focusedDate, h = c(() => {
13
- r.setFocusedDate(e.add({ years: 1 }));
14
- }, [e, r]), p = c(() => {
15
- r.setFocusedDate(e.subtract({ years: 1 }));
16
- }, [e, r]);
17
- return /* @__PURE__ */ a("div", { className: "header flex items-start", children: [
18
- /* @__PURE__ */ o(t, { icon: "chevron-left", props: n }),
19
- /* @__PURE__ */ a(m, { children: [
20
- d,
21
- /* @__PURE__ */ a(u, { children: [
22
- /* @__PURE__ */ o(i, { "aria-label": "top", onClick: h, children: /* @__PURE__ */ o(s, { icon: "caret-up", iconClass: "fa-sharp", iconSize: "xxss" }) }),
23
- /* @__PURE__ */ o(i, { "aria-label": "bottom", onClick: p, children: /* @__PURE__ */ o(
24
- s,
25
- {
26
- icon: "caret-down",
27
- iconClass: "fa-sharp",
28
- iconSize: "xxss"
29
- }
30
- ) })
31
- ] })
32
- ] }),
33
- /* @__PURE__ */ o(t, { icon: "chevron-right", props: l })
34
- ] });
35
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { b0 as p } from "../../../../../../components-C2JBXbtI.mjs";
36
4
  export {
37
- v as Header
5
+ p as Header
38
6
  };
@@ -1,30 +1,8 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { createCalendar as s } from "@internationalized/date";
3
- import { useLocale as c, useCalendar as d } from "react-aria";
4
- import { useCalendarState as p } from "react-stately";
5
- import { CalendarGrid as f } from "./grid/index.js";
6
- import { Header as C } from "./header/index.js";
7
- import { F as u } from "../../../../../styles-BlHspTrz.mjs";
8
- import { Button as h } from "../../../../button/index.js";
9
- const G = ({
10
- onClose: e,
11
- props: t
12
- }) => {
13
- const { locale: a } = c(), o = p({ ...t, createCalendar: s, locale: a }), { prevButtonProps: n, nextButtonProps: i, title: m } = d(t, o);
14
- return /* @__PURE__ */ l("div", { className: "calendar", children: [
15
- /* @__PURE__ */ r(
16
- C,
17
- {
18
- nextButtonProps: i,
19
- prevButtonProps: n,
20
- state: o,
21
- title: m
22
- }
23
- ),
24
- /* @__PURE__ */ r(f, { state: o }),
25
- /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(h, { onClick: e, variant: "ghost", children: "Cancel" }) })
26
- ] });
27
- };
1
+ import "react/jsx-runtime";
2
+ import "@internationalized/date";
3
+ import "react-aria";
4
+ import "react-stately";
5
+ import { b1 as a } from "../../../../../components-C2JBXbtI.mjs";
28
6
  export {
29
- G as Calendar
7
+ a as Calendar
30
8
  };
@@ -1,68 +1,10 @@
1
- import { jsxs as h, jsx as t } from "react/jsx-runtime";
2
- import { parseDate as k } from "@internationalized/date";
3
- import a from "lodash";
4
- import { forwardRef as x, useRef as C } from "react";
5
- import { useDatePicker as j } from "react-aria";
6
- import { useDatePickerState as I } from "react-stately";
7
- import { Calendar as O } from "./calendar/index.js";
8
- import { OutlineContainer as S } from "../../outline-container/index.js";
9
- import { DateSelector as b } from "../../utils/date-selector/index.js";
10
- import { Dialog as w } from "../../utils/dialog/index.js";
11
- import { Popover as y } from "../../utils/popover/index.js";
12
- const L = x(function({
13
- disabled: p = !1,
14
- error: s,
15
- required: l,
16
- label: m,
17
- name: e,
18
- tooltip: c,
19
- value: o,
20
- ...f
21
- }, u) {
22
- const i = C(null), r = I(f), { close: P } = r, { groupProps: d, fieldProps: n, buttonProps: D, dialogProps: g, calendarProps: R } = j(
23
- { ...f, "aria-label": m ?? e },
24
- r,
25
- i
26
- );
27
- return /* @__PURE__ */ h(
28
- S,
29
- {
30
- error: s,
31
- htmlFor: e,
32
- label: m,
33
- required: l,
34
- tooltip: c,
35
- children: [
36
- /* @__PURE__ */ t(
37
- b,
38
- {
39
- buttonProps: D,
40
- datePickerRef: i,
41
- disabled: p,
42
- error: s,
43
- fieldProps: a.isNil(o) || a.isEmpty(o) || o === "-" ? n : {
44
- ...n,
45
- value: k(o.replace(/\//gu, "-"))
46
- },
47
- groupProps: d,
48
- inputRef: u,
49
- name: e
50
- }
51
- ),
52
- r.isOpen && !p ? /* @__PURE__ */ t(
53
- y,
54
- {
55
- offset: 8,
56
- placement: "bottom start",
57
- state: r,
58
- triggerRef: i,
59
- children: /* @__PURE__ */ t(w, { ...g, children: /* @__PURE__ */ t(O, { onClose: P, props: { ...R } }) })
60
- }
61
- ) : null
62
- ]
63
- }
64
- );
65
- });
1
+ import "react/jsx-runtime";
2
+ import "@internationalized/date";
3
+ import "lodash";
4
+ import "react";
5
+ import "react-aria";
6
+ import "react-stately";
7
+ import { U as f } from "../../../../components-C2JBXbtI.mjs";
66
8
  export {
67
- L as InputDate
9
+ f as InputDate
68
10
  };
@@ -1,35 +1,9 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
- import { createCalendar as c } from "@internationalized/date";
3
- import { useRef as d } from "react";
4
- import { useLocale as f, useRangeCalendar as p } from "react-aria";
5
- import { useRangeCalendarState as u } from "react-stately";
6
- import { CalendarGrid as C } from "../../date/calendar/grid/index.js";
7
- import { Header as g } from "../../date/calendar/header/index.js";
8
- import { F as h } from "../../../../../styles-BlHspTrz.mjs";
9
- import { Button as x } from "../../../../button/index.js";
10
- const L = ({
11
- onClose: a,
12
- props: o
13
- }) => {
14
- const { locale: n } = f(), t = d(null), e = u({ ...o, createCalendar: c, locale: n }), { prevButtonProps: l, nextButtonProps: m, title: i } = p(
15
- o,
16
- e,
17
- t
18
- );
19
- return /* @__PURE__ */ s("div", { className: "calendar-range", ref: t, children: [
20
- /* @__PURE__ */ r(
21
- g,
22
- {
23
- nextButtonProps: m,
24
- prevButtonProps: l,
25
- state: e,
26
- title: i
27
- }
28
- ),
29
- /* @__PURE__ */ r(C, { state: e }),
30
- /* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(x, { onClick: a, variant: "ghost", children: "Cancel" }) })
31
- ] });
32
- };
1
+ import "react/jsx-runtime";
2
+ import "@internationalized/date";
3
+ import "react";
4
+ import "react-aria";
5
+ import "react-stately";
6
+ import { b6 as e } from "../../../../../components-C2JBXbtI.mjs";
33
7
  export {
34
- L as Calendar
8
+ e as Calendar
35
9
  };
@@ -1,108 +1,8 @@
1
- import { jsxs as m, jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as k, useRef as w } from "react";
3
- import { useDateRangePicker as y } from "react-aria";
4
- import { useDateRangePickerState as S } from "react-stately";
5
- import { Calendar as C } from "./calendar/index.js";
6
- import { styled as F } from "styled-components";
7
- import { OutlineContainer as O } from "../../outline-container/index.js";
8
- import { DateSelector as g } from "../../utils/date-selector/index.js";
9
- import { Dialog as j } from "../../utils/dialog/index.js";
10
- import { Popover as q } from "../../utils/popover/index.js";
11
- const I = F.div`
12
- ${({ theme: t, $disabled: e, $show: a }) => `
13
- border-color: ${a ? t.palette.error[500] : t.palette.gray[300]};
14
- display: flex;
15
- gap: ${t.spacing[0.25]};
16
- width: 100%;
17
-
18
- ~ div {
19
- background: ${e ? t.palette.gray[200] : t.palette.white};
20
- }
21
- `}
22
- `, N = k(function({
23
- disabled: e = !1,
24
- error: a,
25
- label: P,
26
- name: o,
27
- required: $,
28
- tooltip: R,
29
- ...d
30
- }, u) {
31
- const r = w(null), n = S(d), { close: v } = n, b = `min${o}`, D = `max${o}`, {
32
- groupProps: f,
33
- startFieldProps: i,
34
- endFieldProps: s,
35
- buttonProps: c,
36
- dialogProps: h,
37
- calendarProps: x
38
- } = y(d, n, r);
39
- return /* @__PURE__ */ m(
40
- O,
41
- {
42
- error: a,
43
- htmlFor: o,
44
- label: P,
45
- required: $,
46
- tooltip: R,
47
- children: [
48
- /* @__PURE__ */ m(
49
- I,
50
- {
51
- $disabled: e,
52
- $show: a !== void 0,
53
- ref: r,
54
- children: [
55
- /* @__PURE__ */ l(
56
- g,
57
- {
58
- buttonProps: c,
59
- datePickerRef: r,
60
- disabled: e,
61
- error: a,
62
- fieldProps: {
63
- ...i,
64
- "aria-label": `${i["aria-label"]} ${o}`,
65
- validate: (p) => s.value && p > s.value ? "Start date must be less than or equal to end date" : null
66
- },
67
- groupProps: f,
68
- inputRef: u,
69
- name: b
70
- }
71
- ),
72
- /* @__PURE__ */ l(
73
- g,
74
- {
75
- buttonProps: c,
76
- datePickerRef: r,
77
- disabled: e,
78
- error: a,
79
- fieldProps: {
80
- ...s,
81
- "aria-label": `${s["aria-label"]} ${o}`,
82
- validate: (p) => i.value && p < i.value ? "End date must be greater than or equal to start date" : null
83
- },
84
- groupProps: f,
85
- inputRef: u,
86
- name: D
87
- }
88
- )
89
- ]
90
- }
91
- ),
92
- n.isOpen && !e ? /* @__PURE__ */ l(
93
- q,
94
- {
95
- offset: 8,
96
- placement: "bottom start",
97
- state: n,
98
- triggerRef: r,
99
- children: /* @__PURE__ */ l(j, { ...h, children: /* @__PURE__ */ l(C, { onClose: v, props: { ...x } }) })
100
- }
101
- ) : null
102
- ]
103
- }
104
- );
105
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "react-aria";
4
+ import "react-stately";
5
+ import { V as a } from "../../../../components-C2JBXbtI.mjs";
106
6
  export {
107
- N as InputDateRange
7
+ a as InputDateRange
108
8
  };
@@ -1,64 +1,9 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { createCalendar as f } from "@internationalized/date";
3
- import { useLocale as u, useCalendar as g } from "react-aria";
4
- import { useCalendarState as C } from "react-stately";
5
- import { styled as n, useTheme as x } from "styled-components";
6
- import { TimeField as h } from "../../../utils/date-time-field/index.js";
7
- import { CalendarGrid as y } from "../../date/calendar/grid/index.js";
8
- import { Header as v } from "../../date/calendar/header/index.js";
9
- import { F as $ } from "../../../../../styles-BlHspTrz.mjs";
10
- import { Button as T } from "../../../../button/index.js";
11
- import "../../../../typography/heading/index.js";
12
- import "../../../../typography/span/index.js";
13
- import { Text as j } from "../../../../typography/text/index.js";
14
- const b = n.div`
15
- ${({ theme: e }) => `
16
- align-items: center;
17
- border-top: 1px solid ${e.palette.gray[200]};
18
- display: flex;
19
- gap: ${e.spacing[1.5]};
20
- justify-content: center;
21
- padding: ${e.spacing[0.5]} ${e.spacing[1.25]};
22
- `}
23
- `, B = n.div`
24
- align-items: center;
25
- display: flex;
26
- gap: ${({ theme: e }) => e.spacing[0.5]};
27
- justify-content: flex-end;
28
- flex: 1 0 0;
29
- `, w = ({
30
- handleTimeChange: e,
31
- onClose: a,
32
- props: o,
33
- timeState: l
34
- }) => {
35
- const s = x(), { locale: m } = u(), r = C({ ...o, createCalendar: f, locale: m }), { prevButtonProps: c, nextButtonProps: d, title: p } = g(o, r);
36
- return /* @__PURE__ */ i("div", { className: "calendar", children: [
37
- /* @__PURE__ */ t(
38
- v,
39
- {
40
- nextButtonProps: d,
41
- prevButtonProps: c,
42
- state: r,
43
- title: p
44
- }
45
- ),
46
- /* @__PURE__ */ t(y, { state: r }),
47
- /* @__PURE__ */ i(b, { children: [
48
- /* @__PURE__ */ t(j, { color: s.palette.gray[800], fontWeight: "bold", size: "sm", children: "Time" }),
49
- /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(
50
- h,
51
- {
52
- hourCycle: 12,
53
- label: "time-field",
54
- onChange: e,
55
- value: l.timeValue
56
- }
57
- ) })
58
- ] }),
59
- /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(T, { onClick: a, variant: "ghost", children: "Cancel" }) })
60
- ] });
61
- };
1
+ import "react/jsx-runtime";
2
+ import "@internationalized/date";
3
+ import "react-aria";
4
+ import "react-stately";
5
+ import "styled-components";
6
+ import { b7 as e } from "../../../../../components-C2JBXbtI.mjs";
62
7
  export {
63
- w as Calendar
8
+ e as Calendar
64
9
  };
@@ -1,69 +1,8 @@
1
- import { jsxs as D, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as b, useRef as R, useCallback as k } from "react";
3
- import { useDatePicker as S } from "react-aria";
4
- import { useDatePickerState as T } from "react-stately";
5
- import { Calendar as x } from "./calendar/index.js";
6
- import { OutlineContainer as y } from "../../outline-container/index.js";
7
- import { DateSelector as O } from "../../utils/date-selector/index.js";
8
- import { Dialog as j } from "../../utils/dialog/index.js";
9
- import { Popover as I } from "../../utils/popover/index.js";
10
- const J = b(function(o, m) {
11
- const r = R(null), e = T({
12
- ...o,
13
- granularity: "minute",
14
- hourCycle: 12,
15
- shouldCloseOnSelect: !1
16
- }), { close: s } = e, { disabled: i = !1, error: n, required: f, label: p, name: a, tooltip: u } = o, { groupProps: c, fieldProps: d, buttonProps: P, dialogProps: g, calendarProps: h } = S(o, e, r), C = k(
17
- (l) => {
18
- l && e.setTimeValue(l);
19
- },
20
- [e]
21
- );
22
- return /* @__PURE__ */ D(
23
- y,
24
- {
25
- error: n,
26
- htmlFor: a,
27
- label: p,
28
- required: f,
29
- tooltip: u,
30
- children: [
31
- /* @__PURE__ */ t(
32
- O,
33
- {
34
- buttonProps: P,
35
- datePickerRef: r,
36
- disabled: i,
37
- error: n,
38
- fieldProps: d,
39
- granularity: "minute",
40
- groupProps: c,
41
- inputRef: m,
42
- name: a
43
- }
44
- ),
45
- e.isOpen && !i ? /* @__PURE__ */ t(
46
- I,
47
- {
48
- offset: 8,
49
- placement: "bottom start",
50
- state: e,
51
- triggerRef: r,
52
- children: /* @__PURE__ */ t(j, { ...g, children: /* @__PURE__ */ t(
53
- x,
54
- {
55
- handleTimeChange: C,
56
- onClose: s,
57
- props: { ...h },
58
- timeState: e
59
- }
60
- ) })
61
- }
62
- ) : null
63
- ]
64
- }
65
- );
66
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "react-aria";
4
+ import "react-stately";
5
+ import { W as e } from "../../../../components-C2JBXbtI.mjs";
67
6
  export {
68
- J as InputDateTime
7
+ e as InputDateTime
69
8
  };
@@ -1,28 +1,6 @@
1
- import { jsx as r, jsxs as h } from "react/jsx-runtime";
2
- import { isNil as l } from "lodash";
3
- import { Label as d } from "../../label/index.js";
4
- import { Container as c } from "../../../container/index.js";
5
- import { Link as a } from "../../../link/index.js";
6
- import "../../../typography/heading/index.js";
7
- import "../../../typography/span/index.js";
8
- import { Text as x } from "../../../typography/text/index.js";
9
- const z = ({
10
- children: m,
11
- currentValue: i,
12
- externalLink: e,
13
- isEditing: n,
14
- label: s,
15
- name: p,
16
- tooltip: f
17
- }) => {
18
- if (n)
19
- return /* @__PURE__ */ r("div", { children: m });
20
- const t = l(i) ? "" : i, o = String(e ?? t);
21
- return /* @__PURE__ */ h(c, { children: [
22
- /* @__PURE__ */ r(d, { htmlFor: p, label: s, tooltip: f, weight: "bold" }),
23
- o.startsWith("https://") ? /* @__PURE__ */ r(a, { href: o, children: t }) : /* @__PURE__ */ r(x, { size: "md", children: t })
24
- ] });
25
- };
1
+ import "react/jsx-runtime";
2
+ import "lodash";
3
+ import { a0 as i } from "../../../../components-C2JBXbtI.mjs";
26
4
  export {
27
- z as Editable
5
+ i as Editable
28
6
  };
@@ -1,77 +1,7 @@
1
- import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
- import { forwardRef as S } from "react";
3
- import { useTheme as T } from "styled-components";
4
- import { OutlineContainer as $ } from "../../outline-container/index.js";
5
- import { S as b } from "../../../../styles-BXFVwnWT.mjs";
6
- import { Icon as n } from "../../../icon/index.js";
7
- const w = S(function({
8
- disabled: t = !1,
9
- hasIcon: a = !1,
10
- helpLink: l,
11
- helpLinkText: s,
12
- helpText: c,
13
- error: i,
14
- label: f,
15
- name: e,
16
- maskValue: m = !1,
17
- required: r,
18
- tooltip: p,
19
- type: d = "text",
20
- weight: u,
21
- ...x
22
- }, h) {
23
- const C = T();
24
- return /* @__PURE__ */ o(
25
- $,
26
- {
27
- error: i,
28
- helpLink: l,
29
- helpLinkText: s,
30
- helpText: c,
31
- htmlFor: e,
32
- label: f,
33
- required: r,
34
- tooltip: p,
35
- weight: u,
36
- children: /* @__PURE__ */ I(
37
- b,
38
- {
39
- className: `${t ? "disabled" : ""} ${i ? "error" : ""}`,
40
- children: [
41
- a ? /* @__PURE__ */ o(n, { icon: "user", iconSize: "sm", iconType: "fa-light" }) : void 0,
42
- /* @__PURE__ */ o(
43
- "input",
44
- {
45
- "aria-hidden": !1,
46
- "aria-invalid": i ? "true" : "false",
47
- "aria-label": e,
48
- "aria-required": r,
49
- autoComplete: "off",
50
- className: m ? "sr-block" : "",
51
- "data-testid": `${e}-input`,
52
- disabled: t,
53
- id: e,
54
- name: e,
55
- ref: h,
56
- type: d,
57
- ...x
58
- }
59
- ),
60
- i ? /* @__PURE__ */ o(
61
- n,
62
- {
63
- icon: "exclamation-circle",
64
- iconClass: "error-icon",
65
- iconColor: C.palette.error[500],
66
- iconSize: "xs"
67
- }
68
- ) : void 0
69
- ]
70
- }
71
- )
72
- }
73
- );
74
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "styled-components";
4
+ import { T as i } from "../../../../components-C2JBXbtI.mjs";
75
5
  export {
76
- w as Input
6
+ i as Input
77
7
  };