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.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: "_tooltip_1rs7r_1",
7
- tooltipIn: "_tooltipIn_1rs7r_1",
8
- bottom: "_bottom_1rs7r_17",
9
- top: "_top_1rs7r_20"
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: "_switch_vrgp6_1",
963
- input: "_input_vrgp6_7",
964
- control: "_control_vrgp6_10",
965
- track: "_track_vrgp6_26",
966
- thumb: "_thumb_vrgp6_52",
967
- sm: "_sm_vrgp6_65",
968
- base: "_base_vrgp6_74",
969
- labelText: "_labelText_vrgp6_84"
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: "_popup_em2ap_1" };
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: "_field_12tzs_1",
1657
- trigger: "_trigger_12tzs_11",
1658
- errorWrap: "_errorWrap_12tzs_41",
1659
- sm: "_sm_12tzs_64",
1660
- base: "_base_12tzs_72",
1661
- icon: "_icon_12tzs_80",
1662
- value: "_value_12tzs_94",
1663
- placeholder: "_placeholder_12tzs_102",
1664
- chevron: "_chevron_12tzs_105",
1665
- chevronOpen: "_chevronOpen_12tzs_120",
1666
- helperText: "_helperText_12tzs_123",
1667
- errorText: "_errorText_12tzs_128",
1668
- popup: "_popup_12tzs_134",
1669
- popupIn: "_popupIn_12tzs_1",
1670
- presets: "_presets_12tzs_169",
1671
- preset: "_preset_12tzs_169",
1672
- main: "_main_12tzs_207",
1673
- months: "_months_12tzs_214",
1674
- month: "_month_12tzs_214",
1675
- footer: "_footer_12tzs_222"
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: "_field_1dolc_1",
1982
- fieldInline: "_fieldInline_1dolc_2",
1983
- trigger: "_trigger_1dolc_19",
1984
- errorWrap: "_errorWrap_1dolc_43",
1985
- sm: "_sm_1dolc_62",
1986
- base: "_base_1dolc_70",
1987
- icon: "_icon_1dolc_79",
1988
- value: "_value_1dolc_93",
1989
- placeholder: "_placeholder_1dolc_101",
1990
- chevron: "_chevron_1dolc_104",
1991
- chevronOpen: "_chevronOpen_1dolc_119",
1992
- menuWrap: "_menuWrap_1dolc_123",
1993
- menuIn: "_menuIn_1dolc_1",
1994
- menuWrapAuto: "_menuWrapAuto_1dolc_134",
1995
- menuWrapEnd: "_menuWrapEnd_1dolc_141",
1996
- menuWrapUp: "_menuWrapUp_1dolc_146",
1997
- menuWrapClosing: "_menuWrapClosing_1dolc_158",
1998
- menuOut: "_menuOut_1dolc_1",
1999
- list: "_list_1dolc_182",
2000
- itemIn: "_itemIn_1dolc_1",
2001
- highlight: "_highlight_1dolc_210",
2002
- highlightInstant: "_highlightInstant_1dolc_223",
2003
- pillChevron: "_pillChevron_1dolc_248",
2004
- buttonChevron: "_buttonChevron_1dolc_249",
2005
- pillTrigger: "_pillTrigger_1dolc_255",
2006
- pillIcon: "_pillIcon_1dolc_291",
2007
- buttonTriggerBase: "_buttonTriggerBase_1dolc_303",
2008
- search: "_search_1dolc_333",
2009
- noResults: "_noResults_1dolc_351",
2010
- helperText: "_helperText_1dolc_356",
2011
- errorText: "_errorText_1dolc_361",
2012
- prefix: "_prefix_1dolc_366",
2013
- menuWrapMultiple: "_menuWrapMultiple_1dolc_370"
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: "_group_9b7ud_1",
2484
- btn: "_btn_9b7ud_4",
2485
- caret: "_caret_9b7ud_29",
2486
- label: "_label_9b7ud_38",
2487
- badge: "_badge_9b7ud_41",
2488
- value: "_value_9b7ud_56",
2489
- panel: "_panel_9b7ud_60",
2490
- open: "_open_9b7ud_76",
2491
- panelRight: "_panelRight_9b7ud_79",
2492
- panelWide: "_panelWide_9b7ud_83",
2493
- sectionHeader: "_sectionHeader_9b7ud_87",
2494
- sectionLabel: "_sectionLabel_9b7ud_94",
2495
- allToggle: "_allToggle_9b7ud_101",
2496
- divider: "_divider_9b7ud_119",
2497
- option: "_option_9b7ud_124",
2498
- search: "_search_9b7ud_136",
2499
- optionsList: "_optionsList_9b7ud_152",
2500
- empty: "_empty_9b7ud_155"
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: "_backdrop_p7w84_1",
2714
- visible: "_visible_p7w84_12",
2715
- modal: "_modal_p7w84_16",
2716
- vertical: "_vertical_p7w84_39",
2717
- horizontal: "_horizontal_p7w84_42",
2718
- cover: "_cover_p7w84_46",
2719
- closeButton: "_closeButton_p7w84_58",
2720
- message: "_message_p7w84_65",
2721
- content: "_content_p7w84_85",
2722
- icon: "_icon_p7w84_96",
2723
- "tone-neutral": "_tone-neutral_p7w84_111",
2724
- "tone-brand": "_tone-brand_p7w84_115",
2725
- "tone-danger": "_tone-danger_p7w84_120",
2726
- title: "_title_p7w84_126",
2727
- description: "_description_p7w84_133",
2728
- hint: "_hint_p7w84_140",
2729
- body: "_body_p7w84_147",
2730
- footer: "_footer_p7w84_153",
2731
- sheet: "_sheet_p7w84_206",
2732
- fullscreen: "_fullscreen_p7w84_212",
2733
- instant: "_instant_p7w84_222"
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: "_photoPreview_t98hl_2" }, Ln = 180, Rn = 12, zn = 8;
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;