cattle-care-ui 0.3.1 → 0.3.3
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.css +1 -1
- package/dist/index.js +106 -106
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import { Children as e, Fragment as t, cloneElement as n, createContext as r, cr
|
|
|
3
3
|
import { createPortal as g } from "react-dom";
|
|
4
4
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
5
5
|
var b = {
|
|
6
|
-
tooltip: "
|
|
7
|
-
tooltipIn: "
|
|
8
|
-
bottom: "
|
|
9
|
-
top: "
|
|
6
|
+
tooltip: "_tooltip_hjyx4_1",
|
|
7
|
+
tooltipIn: "_tooltipIn_hjyx4_1",
|
|
8
|
+
bottom: "_bottom_hjyx4_17",
|
|
9
|
+
top: "_top_hjyx4_20"
|
|
10
10
|
}, x = 8, S = 8;
|
|
11
11
|
function C({ content: e, side: t = "bottom", delay: r = 400, children: i }) {
|
|
12
12
|
let [a, o] = m(!1), [c, u] = m(null), f = p(null), h = p(null), C = p(void 0), w = i.props, T = w.ref, E = s((e) => {
|
|
@@ -959,14 +959,14 @@ function Ze({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
|
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
var Qe = {
|
|
962
|
-
switch: "
|
|
963
|
-
input: "
|
|
964
|
-
control: "
|
|
965
|
-
track: "
|
|
966
|
-
thumb: "
|
|
967
|
-
sm: "
|
|
968
|
-
base: "
|
|
969
|
-
labelText: "
|
|
962
|
+
switch: "_switch_102e5_1",
|
|
963
|
+
input: "_input_102e5_7",
|
|
964
|
+
control: "_control_102e5_10",
|
|
965
|
+
track: "_track_102e5_20",
|
|
966
|
+
thumb: "_thumb_102e5_53",
|
|
967
|
+
sm: "_sm_102e5_66",
|
|
968
|
+
base: "_base_102e5_75",
|
|
969
|
+
labelText: "_labelText_102e5_85"
|
|
970
970
|
};
|
|
971
971
|
//#endregion
|
|
972
972
|
//#region src/components/Switch.tsx
|
|
@@ -1532,7 +1532,7 @@ function Ct({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
|
|
|
1532
1532
|
t
|
|
1533
1533
|
]);
|
|
1534
1534
|
}
|
|
1535
|
-
var wt = { popup: "
|
|
1535
|
+
var wt = { popup: "_popup_eco0g_1" };
|
|
1536
1536
|
//#endregion
|
|
1537
1537
|
//#region src/components/DatePicker.tsx
|
|
1538
1538
|
function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale: a = "en", weekStartsOn: o = 0, formatValue: c, placement: l = "bottom-start", label: d, helperText: h, error: b, size: x, openLabel: S, placeholder: C, dialogLabel: w = "Choose date", className: T, id: E }) {
|
|
@@ -1653,26 +1653,26 @@ function Mt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue:
|
|
|
1653
1653
|
return i && !a ? l(i) : !i && a ? l(a) : lt(i, a) ? l(i) : `${l(i)}${jt}${l(a)}`;
|
|
1654
1654
|
}
|
|
1655
1655
|
var J = {
|
|
1656
|
-
field: "
|
|
1657
|
-
trigger: "
|
|
1658
|
-
errorWrap: "
|
|
1659
|
-
sm: "
|
|
1660
|
-
base: "
|
|
1661
|
-
icon: "
|
|
1662
|
-
value: "
|
|
1663
|
-
placeholder: "
|
|
1664
|
-
chevron: "
|
|
1665
|
-
chevronOpen: "
|
|
1666
|
-
helperText: "
|
|
1667
|
-
errorText: "
|
|
1668
|
-
popup: "
|
|
1669
|
-
popupIn: "
|
|
1670
|
-
presets: "
|
|
1671
|
-
preset: "
|
|
1672
|
-
main: "
|
|
1673
|
-
months: "
|
|
1674
|
-
month: "
|
|
1675
|
-
footer: "
|
|
1656
|
+
field: "_field_18ses_1",
|
|
1657
|
+
trigger: "_trigger_18ses_11",
|
|
1658
|
+
errorWrap: "_errorWrap_18ses_41",
|
|
1659
|
+
sm: "_sm_18ses_64",
|
|
1660
|
+
base: "_base_18ses_72",
|
|
1661
|
+
icon: "_icon_18ses_80",
|
|
1662
|
+
value: "_value_18ses_94",
|
|
1663
|
+
placeholder: "_placeholder_18ses_102",
|
|
1664
|
+
chevron: "_chevron_18ses_105",
|
|
1665
|
+
chevronOpen: "_chevronOpen_18ses_120",
|
|
1666
|
+
helperText: "_helperText_18ses_123",
|
|
1667
|
+
errorText: "_errorText_18ses_128",
|
|
1668
|
+
popup: "_popup_18ses_134",
|
|
1669
|
+
popupIn: "_popupIn_18ses_1",
|
|
1670
|
+
presets: "_presets_18ses_169",
|
|
1671
|
+
preset: "_preset_18ses_169",
|
|
1672
|
+
main: "_main_18ses_207",
|
|
1673
|
+
months: "_months_18ses_214",
|
|
1674
|
+
month: "_month_18ses_214",
|
|
1675
|
+
footer: "_footer_18ses_222"
|
|
1676
1676
|
}, Nt = "(min-width: 640px)";
|
|
1677
1677
|
function Pt(e) {
|
|
1678
1678
|
return h((t) => {
|
|
@@ -1978,39 +1978,39 @@ function Gt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
|
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
1980
|
var Y = {
|
|
1981
|
-
field: "
|
|
1982
|
-
fieldInline: "
|
|
1983
|
-
trigger: "
|
|
1984
|
-
errorWrap: "
|
|
1985
|
-
sm: "
|
|
1986
|
-
base: "
|
|
1987
|
-
icon: "
|
|
1988
|
-
value: "
|
|
1989
|
-
placeholder: "
|
|
1990
|
-
chevron: "
|
|
1991
|
-
chevronOpen: "
|
|
1992
|
-
menuWrap: "
|
|
1993
|
-
menuIn: "
|
|
1994
|
-
menuWrapAuto: "
|
|
1995
|
-
menuWrapEnd: "
|
|
1996
|
-
menuWrapUp: "
|
|
1997
|
-
menuWrapClosing: "
|
|
1998
|
-
menuOut: "
|
|
1999
|
-
list: "
|
|
2000
|
-
itemIn: "
|
|
2001
|
-
highlight: "
|
|
2002
|
-
highlightInstant: "
|
|
2003
|
-
pillChevron: "
|
|
2004
|
-
buttonChevron: "
|
|
2005
|
-
pillTrigger: "
|
|
2006
|
-
pillIcon: "
|
|
2007
|
-
buttonTriggerBase: "
|
|
2008
|
-
search: "
|
|
2009
|
-
noResults: "
|
|
2010
|
-
helperText: "
|
|
2011
|
-
errorText: "
|
|
2012
|
-
prefix: "
|
|
2013
|
-
menuWrapMultiple: "
|
|
1981
|
+
field: "_field_b02km_1",
|
|
1982
|
+
fieldInline: "_fieldInline_b02km_2",
|
|
1983
|
+
trigger: "_trigger_b02km_19",
|
|
1984
|
+
errorWrap: "_errorWrap_b02km_43",
|
|
1985
|
+
sm: "_sm_b02km_62",
|
|
1986
|
+
base: "_base_b02km_70",
|
|
1987
|
+
icon: "_icon_b02km_79",
|
|
1988
|
+
value: "_value_b02km_93",
|
|
1989
|
+
placeholder: "_placeholder_b02km_101",
|
|
1990
|
+
chevron: "_chevron_b02km_104",
|
|
1991
|
+
chevronOpen: "_chevronOpen_b02km_119",
|
|
1992
|
+
menuWrap: "_menuWrap_b02km_123",
|
|
1993
|
+
menuIn: "_menuIn_b02km_1",
|
|
1994
|
+
menuWrapAuto: "_menuWrapAuto_b02km_134",
|
|
1995
|
+
menuWrapEnd: "_menuWrapEnd_b02km_141",
|
|
1996
|
+
menuWrapUp: "_menuWrapUp_b02km_146",
|
|
1997
|
+
menuWrapClosing: "_menuWrapClosing_b02km_158",
|
|
1998
|
+
menuOut: "_menuOut_b02km_1",
|
|
1999
|
+
list: "_list_b02km_182",
|
|
2000
|
+
itemIn: "_itemIn_b02km_1",
|
|
2001
|
+
highlight: "_highlight_b02km_210",
|
|
2002
|
+
highlightInstant: "_highlightInstant_b02km_223",
|
|
2003
|
+
pillChevron: "_pillChevron_b02km_248",
|
|
2004
|
+
buttonChevron: "_buttonChevron_b02km_249",
|
|
2005
|
+
pillTrigger: "_pillTrigger_b02km_255",
|
|
2006
|
+
pillIcon: "_pillIcon_b02km_291",
|
|
2007
|
+
buttonTriggerBase: "_buttonTriggerBase_b02km_303",
|
|
2008
|
+
search: "_search_b02km_333",
|
|
2009
|
+
noResults: "_noResults_b02km_351",
|
|
2010
|
+
helperText: "_helperText_b02km_356",
|
|
2011
|
+
errorText: "_errorText_b02km_361",
|
|
2012
|
+
prefix: "_prefix_b02km_366",
|
|
2013
|
+
menuWrapMultiple: "_menuWrapMultiple_b02km_370"
|
|
2014
2014
|
};
|
|
2015
2015
|
//#endregion
|
|
2016
2016
|
//#region src/components/Dropdown.tsx
|
|
@@ -2480,24 +2480,24 @@ function cn({ text: e, query: n }) {
|
|
|
2480
2480
|
}, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
|
|
2481
2481
|
}
|
|
2482
2482
|
var ln = {
|
|
2483
|
-
group: "
|
|
2484
|
-
btn: "
|
|
2485
|
-
caret: "
|
|
2486
|
-
label: "
|
|
2487
|
-
badge: "
|
|
2488
|
-
value: "
|
|
2489
|
-
panel: "
|
|
2490
|
-
open: "
|
|
2491
|
-
panelRight: "
|
|
2492
|
-
panelWide: "
|
|
2493
|
-
sectionHeader: "
|
|
2494
|
-
sectionLabel: "
|
|
2495
|
-
allToggle: "
|
|
2496
|
-
divider: "
|
|
2497
|
-
option: "
|
|
2498
|
-
search: "
|
|
2499
|
-
optionsList: "
|
|
2500
|
-
empty: "
|
|
2483
|
+
group: "_group_1bg0h_1",
|
|
2484
|
+
btn: "_btn_1bg0h_4",
|
|
2485
|
+
caret: "_caret_1bg0h_29",
|
|
2486
|
+
label: "_label_1bg0h_38",
|
|
2487
|
+
badge: "_badge_1bg0h_41",
|
|
2488
|
+
value: "_value_1bg0h_56",
|
|
2489
|
+
panel: "_panel_1bg0h_60",
|
|
2490
|
+
open: "_open_1bg0h_76",
|
|
2491
|
+
panelRight: "_panelRight_1bg0h_79",
|
|
2492
|
+
panelWide: "_panelWide_1bg0h_83",
|
|
2493
|
+
sectionHeader: "_sectionHeader_1bg0h_87",
|
|
2494
|
+
sectionLabel: "_sectionLabel_1bg0h_94",
|
|
2495
|
+
allToggle: "_allToggle_1bg0h_101",
|
|
2496
|
+
divider: "_divider_1bg0h_119",
|
|
2497
|
+
option: "_option_1bg0h_124",
|
|
2498
|
+
search: "_search_1bg0h_136",
|
|
2499
|
+
optionsList: "_optionsList_1bg0h_152",
|
|
2500
|
+
empty: "_empty_1bg0h_155"
|
|
2501
2501
|
};
|
|
2502
2502
|
//#endregion
|
|
2503
2503
|
//#region src/components/FilterSection.tsx
|
|
@@ -2710,27 +2710,27 @@ function gn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2710
2710
|
});
|
|
2711
2711
|
}
|
|
2712
2712
|
var Z = {
|
|
2713
|
-
backdrop: "
|
|
2714
|
-
visible: "
|
|
2715
|
-
modal: "
|
|
2716
|
-
vertical: "
|
|
2717
|
-
horizontal: "
|
|
2718
|
-
cover: "
|
|
2719
|
-
closeButton: "
|
|
2720
|
-
message: "
|
|
2721
|
-
content: "
|
|
2722
|
-
icon: "
|
|
2723
|
-
"tone-neutral": "_tone-
|
|
2724
|
-
"tone-brand": "_tone-
|
|
2725
|
-
"tone-danger": "_tone-
|
|
2726
|
-
title: "
|
|
2727
|
-
description: "
|
|
2728
|
-
hint: "
|
|
2729
|
-
body: "
|
|
2730
|
-
footer: "
|
|
2731
|
-
sheet: "
|
|
2732
|
-
fullscreen: "
|
|
2733
|
-
instant: "
|
|
2713
|
+
backdrop: "_backdrop_3vs6a_1",
|
|
2714
|
+
visible: "_visible_3vs6a_12",
|
|
2715
|
+
modal: "_modal_3vs6a_16",
|
|
2716
|
+
vertical: "_vertical_3vs6a_39",
|
|
2717
|
+
horizontal: "_horizontal_3vs6a_42",
|
|
2718
|
+
cover: "_cover_3vs6a_46",
|
|
2719
|
+
closeButton: "_closeButton_3vs6a_58",
|
|
2720
|
+
message: "_message_3vs6a_65",
|
|
2721
|
+
content: "_content_3vs6a_85",
|
|
2722
|
+
icon: "_icon_3vs6a_96",
|
|
2723
|
+
"tone-neutral": "_tone-neutral_3vs6a_111",
|
|
2724
|
+
"tone-brand": "_tone-brand_3vs6a_115",
|
|
2725
|
+
"tone-danger": "_tone-danger_3vs6a_120",
|
|
2726
|
+
title: "_title_3vs6a_126",
|
|
2727
|
+
description: "_description_3vs6a_133",
|
|
2728
|
+
hint: "_hint_3vs6a_140",
|
|
2729
|
+
body: "_body_3vs6a_147",
|
|
2730
|
+
footer: "_footer_3vs6a_153",
|
|
2731
|
+
sheet: "_sheet_3vs6a_206",
|
|
2732
|
+
fullscreen: "_fullscreen_3vs6a_212",
|
|
2733
|
+
instant: "_instant_3vs6a_222"
|
|
2734
2734
|
}, _n = 200, vn = "(max-width: 639px)", yn = "(prefers-reduced-motion: reduce)", bn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", xn = r(null);
|
|
2735
2735
|
function Sn(e) {
|
|
2736
2736
|
let t = c(xn);
|
|
@@ -2988,7 +2988,7 @@ function Fn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ..
|
|
|
2988
2988
|
})]
|
|
2989
2989
|
});
|
|
2990
2990
|
}
|
|
2991
|
-
var In = { photoPreview: "
|
|
2991
|
+
var In = { photoPreview: "_photoPreview_1m76k_2" }, Ln = 180, Rn = 12, zn = 8;
|
|
2992
2992
|
function Bn(e, t, n = Ln) {
|
|
2993
2993
|
let r = (e, t) => {
|
|
2994
2994
|
let r = e + Rn, i = r + n + zn > t ? e - Rn - n : r;
|