@televet/kibble-ui 5.0.21-alpha.hunter.9 → 5.0.21
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/chunks/dateTimePicker.component-BlWhC5aT.js +2 -0
- package/dist/chunks/{dateTimePicker.component-BF2pZ_Rn.js.map → dateTimePicker.component-BlWhC5aT.js.map} +1 -1
- package/dist/chunks/dateTimePicker.component-DnYStcAJ.js +317 -0
- package/dist/chunks/dateTimePicker.component-DnYStcAJ.js.map +1 -0
- package/dist/chunks/timePicker.component-BCMX6aqb.js +220 -0
- package/dist/chunks/timePicker.component-BCMX6aqb.js.map +1 -0
- package/dist/chunks/timePicker.component-D5hw80VV.js +2 -0
- package/dist/chunks/timePicker.component-D5hw80VV.js.map +1 -0
- package/dist/chunks/{timeRange.component-9v9d8kQw.js → timeRange.component-BZHpZeAX.js} +2 -2
- package/dist/chunks/{timeRange.component-9v9d8kQw.js.map → timeRange.component-BZHpZeAX.js.map} +1 -1
- package/dist/chunks/{timeRange.component-D3aPwElS.js → timeRange.component-D3Db8lvh.js} +2 -2
- package/dist/chunks/{timeRange.component-D3aPwElS.js.map → timeRange.component-D3Db8lvh.js.map} +1 -1
- package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs +1 -1
- package/dist/cjs/components/Icon/generated/index.cjs.map +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/DateTimePicker/index.js +1 -1
- package/dist/esm/components/Icon/generated/index.js +562 -318
- package/dist/esm/components/Icon/generated/index.js.map +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/index.js +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/types/components/DateTimePicker/components/DateTimePickerCustomView/dateTimePickerCustomView.component.d.ts +1 -2
- package/dist/types/components/DateTimePicker/components/DateTimePickerRangeSelector/dateTimePickerRangeSelector.component.d.ts +1 -2
- package/dist/types/components/DateTimePicker/dateTimePicker.component.d.ts +1 -6
- package/dist/types/components/Icon/generated/BarcodeReader.d.ts +10 -0
- package/dist/types/components/Icon/generated/Battery.d.ts +10 -0
- package/dist/types/components/Icon/generated/BatteryCharging.d.ts +10 -0
- package/dist/types/components/Icon/generated/BatteryFull.d.ts +10 -0
- package/dist/types/components/Icon/generated/BatteryLow.d.ts +10 -0
- package/dist/types/components/Icon/generated/Connect.d.ts +10 -0
- package/dist/types/components/Icon/generated/MagicPen.d.ts +10 -0
- package/dist/types/components/Icon/generated/Wifi.d.ts +10 -0
- package/dist/types/components/Icon/generated/WifiOff.d.ts +10 -0
- package/dist/types/components/Icon/generated/WifiWarning.d.ts +10 -0
- package/dist/types/components/Icon/generated/Workflows.d.ts +10 -0
- package/dist/types/components/Icon/generated/index.d.ts +1 -1
- package/dist/types/components/TimePicker/timePicker.component.d.ts +1 -2
- package/package.json +14 -16
- package/dist/chunks/dateTimePicker.component-BF2pZ_Rn.js +0 -2
- package/dist/chunks/dateTimePicker.component-yelD1jlj.js +0 -331
- package/dist/chunks/dateTimePicker.component-yelD1jlj.js.map +0 -1
- package/dist/chunks/timePicker.component-DBjjLiQi.js +0 -232
- package/dist/chunks/timePicker.component-DBjjLiQi.js.map +0 -1
- package/dist/chunks/timePicker.component-xjn9FtR7.js +0 -2
- package/dist/chunks/timePicker.component-xjn9FtR7.js.map +0 -1
- package/dist/types/shared/utils/localToClinicTimezone.d.ts +0 -5
|
@@ -14,7 +14,7 @@ import { W as h } from "../../chunks/checkboxGroup.component-DW9qUlSm.js";
|
|
|
14
14
|
import { C as R } from "../../chunks/conversationCard.component-HYxRoILR.js";
|
|
15
15
|
import { D as w } from "../../chunks/datePicker.component-Dq2vL7Mk.js";
|
|
16
16
|
import { D as N } from "../../chunks/datePicker.provider-CavuOZl4.js";
|
|
17
|
-
import { D as F, a as H, c as j } from "../../chunks/dateTimePicker.component-
|
|
17
|
+
import { D as F, a as H, c as j } from "../../chunks/dateTimePicker.component-DnYStcAJ.js";
|
|
18
18
|
import { D as E } from "../../chunks/divider.component-CFOh4Nw3.js";
|
|
19
19
|
import { d as K, a as Q, b as U } from "../../chunks/divider.types-6MEkMNbx.js";
|
|
20
20
|
import { W as Y } from "../../chunks/heading.component-CpSAN3cv.js";
|
|
@@ -48,8 +48,8 @@ import { T as da, a as la } from "../../chunks/tagBlock.component-R4FY7ytN.js";
|
|
|
48
48
|
import { W as Ta } from "../../chunks/text.component-DhuUgP3j.js";
|
|
49
49
|
import { W as ba } from "../../chunks/textInput.component-BeiTxTkS.js";
|
|
50
50
|
import { W as Ca } from "../../chunks/textarea.component-C6Wt1Pk8.js";
|
|
51
|
-
import { M as ga, T as Da } from "../../chunks/timePicker.component-
|
|
52
|
-
import { T as za } from "../../chunks/timeRange.component-
|
|
51
|
+
import { M as ga, T as Da } from "../../chunks/timePicker.component-BCMX6aqb.js";
|
|
52
|
+
import { T as za } from "../../chunks/timeRange.component-BZHpZeAX.js";
|
|
53
53
|
import { T as Aa } from "../../chunks/timestamp.component-DkLjxUsy.js";
|
|
54
54
|
import { useToast as Ba } from "./Toast/index.js";
|
|
55
55
|
import { T as Va } from "../../chunks/tooltip.component-CHohp2qn.js";
|
package/dist/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { W as B } from "../chunks/checkboxGroup.component-DW9qUlSm.js";
|
|
|
14
14
|
import { C as I } from "../chunks/conversationCard.component-HYxRoILR.js";
|
|
15
15
|
import { D as R } from "../chunks/datePicker.component-Dq2vL7Mk.js";
|
|
16
16
|
import { D as K } from "../chunks/datePicker.provider-CavuOZl4.js";
|
|
17
|
-
import { D as O, a as F, c as H } from "../chunks/dateTimePicker.component-
|
|
17
|
+
import { D as O, a as F, c as H } from "../chunks/dateTimePicker.component-DnYStcAJ.js";
|
|
18
18
|
import { D as q } from "../chunks/divider.component-CFOh4Nw3.js";
|
|
19
19
|
import { d as J, a as Q, b as U } from "../chunks/divider.types-6MEkMNbx.js";
|
|
20
20
|
import { W as Y } from "../chunks/heading.component-CpSAN3cv.js";
|
|
@@ -48,8 +48,8 @@ import { T as lr, a as dr } from "../chunks/tagBlock.component-R4FY7ytN.js";
|
|
|
48
48
|
import { W as Tr } from "../chunks/text.component-DhuUgP3j.js";
|
|
49
49
|
import { W as br } from "../chunks/textInput.component-BeiTxTkS.js";
|
|
50
50
|
import { W as gr } from "../chunks/textarea.component-C6Wt1Pk8.js";
|
|
51
|
-
import { M as Dr, T as Pr } from "../chunks/timePicker.component-
|
|
52
|
-
import { T as kr } from "../chunks/timeRange.component-
|
|
51
|
+
import { M as Dr, T as Pr } from "../chunks/timePicker.component-BCMX6aqb.js";
|
|
52
|
+
import { T as kr } from "../chunks/timeRange.component-BZHpZeAX.js";
|
|
53
53
|
import { T as Wr } from "../chunks/timestamp.component-DkLjxUsy.js";
|
|
54
54
|
import { useToast as Mr } from "./components/Toast/index.js";
|
|
55
55
|
import { T as Ar } from "../chunks/tooltip.component-CHohp2qn.js";
|
|
@@ -2,7 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
interface DateTimePickerCustomViewProps {
|
|
3
3
|
/** Determines if the calendar view is single. */
|
|
4
4
|
isSingleView: boolean;
|
|
5
|
-
timezone?: string;
|
|
6
5
|
}
|
|
7
|
-
export declare const DateTimePickerCustomView: ({ isSingleView
|
|
6
|
+
export declare const DateTimePickerCustomView: ({ isSingleView }: DateTimePickerCustomViewProps) => React.JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -5,7 +5,6 @@ interface DateTimePickerRangeSelectorProps {
|
|
|
5
5
|
label: string;
|
|
6
6
|
/** Type of range selector. */
|
|
7
7
|
rangeType: FocusedInput;
|
|
8
|
-
timezone?: string;
|
|
9
8
|
}
|
|
10
|
-
export declare const DateTimePickerRangeSelector: ({ label, rangeType,
|
|
9
|
+
export declare const DateTimePickerRangeSelector: ({ label, rangeType, }: DateTimePickerRangeSelectorProps) => React.JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -25,14 +25,9 @@ export interface DateTimePickerProps extends DateProps {
|
|
|
25
25
|
* @default true
|
|
26
26
|
*/
|
|
27
27
|
showQuickOptions?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Whether a specific timezone should override the default timezone we detect from the browser,
|
|
30
|
-
* typically used for impersonations
|
|
31
|
-
*/
|
|
32
|
-
timezone?: string;
|
|
33
28
|
/** Data test id for the date time picker.
|
|
34
29
|
* @default kibble-datetime-picker
|
|
35
30
|
*/
|
|
36
31
|
'data-testid'?: string;
|
|
37
32
|
}
|
|
38
|
-
export declare const DateTimePicker: ({ trigger, calendarView, portalled, showQuickOptions, ["data-testid"]: dataTestId,
|
|
33
|
+
export declare const DateTimePicker: ({ trigger, calendarView, portalled, showQuickOptions, ["data-testid"]: dataTestId, ...rest }: DateTimePickerProps) => React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
titleId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ForwardRef: React.ForwardRefExoticComponent<SVGRProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default ForwardRef;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type IconName = 'aiMicrophone' | 'alertCircle' | 'animalBird' | 'animalCat' | 'animalCow' | 'animalDog' | 'animalHorse' | 'animalMouse' | 'animalPig' | 'animalSnake' | 'archive' | 'arrowCircle' | 'arrowDownRight' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'arrowsIn' | 'arrowsOut' | 'article' | 'award' | 'backspace' | 'bank' | 'bellCancel' | 'bell' | 'bone' | 'bookmark' | 'bulkSelect' | 'buttons' | 'calendarCheck' | 'calendarDate' | 'calendarInfo' | 'calendarPen' | 'calendarPlus' | 'cameraOff' | 'camera' | 'cancel' | 'caretDown' | 'caretLeft' | 'caretUp' | 'cellphoneCancel' | 'cellphone' | 'chainLink' | 'chatBubble' | 'checkList' | 'checkmarkBox' | 'checkmarkCircle' | 'checkmark' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'clinic' | 'clock' | 'closeCircleSolid' | 'closeCircle' | 'close' | 'code' | 'creditCardLogoAmex' | 'creditCardLogoDiners' | 'creditCardLogoDiscover' | 'creditCardLogoGeneric' | 'creditCardLogoJcb' | 'creditCardLogoMastercard' | 'creditCardLogoUnionpay' | 'creditCardLogoVisa' | 'creditCard' | 'cut' | 'dollarCircle' | 'dollar' | 'dotsHorizontal' | 'dotsVertical' | 'doubleArrowCircle' | 'download' | 'emailSend' | 'envelopeCancel' | 'envelope' | 'externalLink' | 'eyeOpen' | 'eyeSlash' | 'eyedropper' | 'fileHealth' | 'filter' | 'form' | 'gear' | 'gif' | 'globe' | 'grid' | 'hashtag' | 'health' | 'heartSolid' | 'heart' | 'house' | 'image' | 'infoCircle' | 'inputAlt' | 'input' | 'invoice' | 'kanbanBoard' | 'lightBulb' | 'list' | 'liveagent' | 'loader' | 'locationMarker' | 'lock' | 'logo' | 'loudspeaker' | 'magic' | 'magnifyingGlass' | 'mailbox' | 'menu' | 'messageDetail' | 'messageWarning' | 'message' | 'messages' | 'microphoneMute' | 'microphone' | 'minus' | 'moveDown' | 'moveLeft' | 'moveRight' | 'moveUp' | 'notification' | 'package' | 'paperclip' | 'pause' | 'paw' | 'penSquare' | 'pen' | 'personAdd' | 'personCircle' | 'person' | 'phoneButtons' | 'phoneCancel' | 'phone' | 'pill' | 'pinCancel' | 'pin' | 'play' | 'plus' | 'popup' | 'printer' | 'questionMarkCircleSolid' | 'questionMarkCircle' | 'questionMark' | 'record' | 'report' | 'ribbon' | 'robot' | 'selectDropDown' | 'send' | 'sliders' | 'smileyFace' | 'sort' | 'starCircle' | 'starSolid' | 'star' | 'stopRecording' | 'stop' | 'support' | 'table' | 'tag' | 'targetSolid' | 'target' | 'taskList' | 'team' | 'textArea' | 'textBlock' | 'thumbsDown' | 'thumbsUp' | 'transfer' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website' | 'wrench';
|
|
1
|
+
export type IconName = 'aiMicrophone' | 'alertCircle' | 'animalBird' | 'animalCat' | 'animalCow' | 'animalDog' | 'animalHorse' | 'animalMouse' | 'animalPig' | 'animalSnake' | 'archive' | 'arrowCircle' | 'arrowDownRight' | 'arrowDown' | 'arrowLeft' | 'arrowRight' | 'arrowUp' | 'arrowsIn' | 'arrowsOut' | 'article' | 'award' | 'backspace' | 'bank' | 'barcodeReader' | 'batteryCharging' | 'batteryFull' | 'batteryLow' | 'battery' | 'bellCancel' | 'bell' | 'bone' | 'bookmark' | 'bulkSelect' | 'buttons' | 'calendarCheck' | 'calendarDate' | 'calendarInfo' | 'calendarPen' | 'calendarPlus' | 'cameraOff' | 'camera' | 'cancel' | 'caretDown' | 'caretLeft' | 'caretUp' | 'cellphoneCancel' | 'cellphone' | 'chainLink' | 'chatBubble' | 'checkList' | 'checkmarkBox' | 'checkmarkCircle' | 'checkmark' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'clinic' | 'clock' | 'closeCircleSolid' | 'closeCircle' | 'close' | 'code' | 'connect' | 'creditCardLogoAmex' | 'creditCardLogoDiners' | 'creditCardLogoDiscover' | 'creditCardLogoGeneric' | 'creditCardLogoJcb' | 'creditCardLogoMastercard' | 'creditCardLogoUnionpay' | 'creditCardLogoVisa' | 'creditCard' | 'cut' | 'dollarCircle' | 'dollar' | 'dotsHorizontal' | 'dotsVertical' | 'doubleArrowCircle' | 'download' | 'emailSend' | 'envelopeCancel' | 'envelope' | 'externalLink' | 'eyeOpen' | 'eyeSlash' | 'eyedropper' | 'fileHealth' | 'filter' | 'form' | 'gear' | 'gif' | 'globe' | 'grid' | 'hashtag' | 'health' | 'heartSolid' | 'heart' | 'house' | 'image' | 'infoCircle' | 'inputAlt' | 'input' | 'invoice' | 'kanbanBoard' | 'lightBulb' | 'list' | 'liveagent' | 'loader' | 'locationMarker' | 'lock' | 'logo' | 'loudspeaker' | 'magicPen' | 'magic' | 'magnifyingGlass' | 'mailbox' | 'menu' | 'messageDetail' | 'messageWarning' | 'message' | 'messages' | 'microphoneMute' | 'microphone' | 'minus' | 'moveDown' | 'moveLeft' | 'moveRight' | 'moveUp' | 'notification' | 'package' | 'paperclip' | 'pause' | 'paw' | 'penSquare' | 'pen' | 'personAdd' | 'personCircle' | 'person' | 'phoneButtons' | 'phoneCancel' | 'phone' | 'pill' | 'pinCancel' | 'pin' | 'play' | 'plus' | 'popup' | 'printer' | 'questionMarkCircleSolid' | 'questionMarkCircle' | 'questionMark' | 'record' | 'report' | 'ribbon' | 'robot' | 'selectDropDown' | 'send' | 'sliders' | 'smileyFace' | 'sort' | 'starCircle' | 'starSolid' | 'star' | 'stopRecording' | 'stop' | 'support' | 'table' | 'tag' | 'targetSolid' | 'target' | 'taskList' | 'team' | 'textArea' | 'textBlock' | 'thumbsDown' | 'thumbsUp' | 'transfer' | 'trashcan' | 'twoSquares' | 'upload' | 'videoCamera' | 'warningSign' | 'website' | 'wifiOff' | 'wifiWarning' | 'wifi' | 'workflows' | 'wrench';
|
|
2
2
|
export declare const IconMap: Record<IconName, any>;
|
|
@@ -20,11 +20,10 @@ export interface TimePickerProps {
|
|
|
20
20
|
* @default bottom
|
|
21
21
|
*/
|
|
22
22
|
placement?: Placement;
|
|
23
|
-
timezone?: string;
|
|
24
23
|
/**
|
|
25
24
|
* Data test id for the time picker.
|
|
26
25
|
* @default kibble-timepicker
|
|
27
26
|
*/
|
|
28
27
|
'data-testid'?: string;
|
|
29
28
|
}
|
|
30
|
-
export declare const TimePicker: ({ initialTime, inputProps, minuteInterval, onTimeChange, onClose, placement,
|
|
29
|
+
export declare const TimePicker: ({ initialTime, inputProps, minuteInterval, onTimeChange, onClose, placement, ["data-testid"]: dataTestId, }: TimePickerProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"packages/*"
|
|
5
5
|
],
|
|
6
6
|
"description": "Kibble Design System by Otto",
|
|
7
|
-
"version": "5.0.21
|
|
7
|
+
"version": "5.0.21",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/cjs/index.cjs",
|
|
10
10
|
"module": "./dist/esm/index.js",
|
|
@@ -34,10 +34,9 @@
|
|
|
34
34
|
"predeploy": "npm run build",
|
|
35
35
|
"prepare": "husky",
|
|
36
36
|
"publishBeta": "npm run build && npm publish --tag beta",
|
|
37
|
-
"start": "npm run generate:icons & npm run generate:logos & npm run theme:watch & storybook dev -p 6006",
|
|
37
|
+
"start": "WATCHPACK_POLLING=1 npm run generate:icons & WATCHPACK_POLLING=1 npm run generate:logos & WATCHPACK_POLLING=1 npm run theme:watch & WATCHPACK_POLLING=1 storybook dev -p 6006",
|
|
38
38
|
"test-storybook": "npm run build:preparation && vitest --project=storybook",
|
|
39
|
-
"theme:watch": "chakra typegen ./src/theme/theme.config.ts --watch"
|
|
40
|
-
"makeLocalPackage": "npm run build && npm pack"
|
|
39
|
+
"theme:watch": "chakra typegen ./src/theme/theme.config.ts --watch"
|
|
41
40
|
},
|
|
42
41
|
"engines": {
|
|
43
42
|
"node": ">=20.0.0",
|
|
@@ -134,16 +133,16 @@
|
|
|
134
133
|
},
|
|
135
134
|
"devDependencies": {
|
|
136
135
|
"@chakra-ui/cli": "^3.19.2",
|
|
137
|
-
"@chromatic-com/storybook": "^
|
|
136
|
+
"@chromatic-com/storybook": "^5.1.2",
|
|
138
137
|
"@emotion/react": "^11.14.0",
|
|
139
138
|
"@eslint/js": "^9.21.0",
|
|
140
|
-
"@storybook/addon-a11y": "^10.
|
|
141
|
-
"@storybook/addon-docs": "^10.
|
|
142
|
-
"@storybook/addon-onboarding": "^10.
|
|
143
|
-
"@storybook/addon-themes": "^10.
|
|
144
|
-
"@storybook/addon-vitest": "^10.
|
|
145
|
-
"@storybook/react-vite": "^10.
|
|
146
|
-
"@storybook/test-runner": "^0.24.
|
|
139
|
+
"@storybook/addon-a11y": "^10.3.5",
|
|
140
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
141
|
+
"@storybook/addon-onboarding": "^10.3.5",
|
|
142
|
+
"@storybook/addon-themes": "^10.3.5",
|
|
143
|
+
"@storybook/addon-vitest": "^10.3.5",
|
|
144
|
+
"@storybook/react-vite": "^10.3.5",
|
|
145
|
+
"@storybook/test-runner": "^0.24.3",
|
|
147
146
|
"@types/lodash-es": "^4.17.12",
|
|
148
147
|
"@types/react": "^19.0.10",
|
|
149
148
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -153,7 +152,7 @@
|
|
|
153
152
|
"eslint": "^9.21.0",
|
|
154
153
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
155
154
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
156
|
-
"eslint-plugin-storybook": "^10.
|
|
155
|
+
"eslint-plugin-storybook": "^10.3.5",
|
|
157
156
|
"gh-pages": "^6.3.0",
|
|
158
157
|
"glob": "^13.0.0",
|
|
159
158
|
"globals": "^15.15.0",
|
|
@@ -163,7 +162,7 @@
|
|
|
163
162
|
"plop": "^4.0.1",
|
|
164
163
|
"prettier": "^3.5.3",
|
|
165
164
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
166
|
-
"storybook": "^10.
|
|
165
|
+
"storybook": "^10.3.5",
|
|
167
166
|
"typescript": "~5.7.2",
|
|
168
167
|
"typescript-eslint": "^8.24.1",
|
|
169
168
|
"vite": "^6.2.0",
|
|
@@ -177,8 +176,7 @@
|
|
|
177
176
|
"@emotion/react": "^11.14.0",
|
|
178
177
|
"date-fns": "^4.1.0",
|
|
179
178
|
"lodash-es": "^4.17.21",
|
|
180
|
-
"react": "^19.0.0"
|
|
181
|
-
"date-fns-tz": "^3.2.0"
|
|
179
|
+
"react": "^19.0.0"
|
|
182
180
|
},
|
|
183
181
|
"dependencies": {
|
|
184
182
|
"@televet/kibble-primitives": "*",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./jsx-runtime-BjDatQAs.js"),l=require("react"),F=require("./button.component-DjdgBXDC.js"),c=require("./datePicker.provider-i35-VNAb.js"),L=require("./usePortalContentRef-CTrvBQ7I.js"),B=require("./popover.recipe-CtptsJg6.js"),x=require("./format-CK7Imh-5.js"),v=require("./isToday-BgNkHh5t.js"),H=require("./popover-root-provider-CZDbUJ2K.js"),T=require("./flex-BOU6tYUd.js"),$=require("../cjs/hooks/useBreakpoint/index.cjs"),f=require("./index-BQRnVsAg.js"),q=require("./text.component-BDDz5KQP.js"),G=require("./textInput.component-CwTc0h_F.js"),P=require("./timePicker.component-xjn9FtR7.js"),R=require("./grid-item-CH3dbZHL.js"),A=require("./divider.component-BX3zyB7O.js"),Q=require("./create-slot-recipe-context-HXE1VazG.js"),V=require("./index-Ts8g8jZd.js"),g=require("./popover-C7aj8Iwj.js");var r=(t=>(t.Today="Today",t.Yesterday="Yesterday",t.ThisWeek="ThisWeek",t.LastWeek="LastWeek",t.ThisMonth="ThisMonth",t.LastMonth="LastMonth",t.Custom="Custom",t))(r||{});const J=["single","double"],K=[{label:"Today",value:r.Today},{label:"Yesterday",value:r.Yesterday},{label:"This Week",value:r.ThisWeek},{label:"Last Week",value:r.LastWeek},{label:"This Month",value:r.ThisMonth},{label:"Last Month",value:r.LastMonth},{label:"Custom",value:r.Custom,iconName:"calendarPen"}],U={single:1,double:2};function X(t){return x.startOfDay(Date.now(),t)}function Z(t){return c.endOfDay(Date.now(),t)}function z(t){const e=v.constructNow(t?.in),s=e.getFullYear(),o=e.getMonth(),a=e.getDate(),u=v.constructNow(t?.in);return u.setFullYear(s,o,a-1),u.setHours(0,0,0,0),u}function ee(t){const e=v.constructNow(t?.in),s=x.constructFrom(t?.in,0);return s.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),s.setHours(23,59,59,999),s}function _(t,e){const s=x.getDefaultOptions(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,a=x.toDate(t,e?.in),u=a.getDay(),d=(u<o?-7:0)+6-(u-o);return a.setDate(a.getDate()+d),a.setHours(23,59,59,999),a}function w(t,e){const s=x.toDate(t,e?.in);return s.setDate(1),s.setHours(0,0,0,0),s}function O(t,e){const s=x.toDate(t,e?.in),o=s.getMonth();return s.setFullYear(s.getFullYear(),o+1,0),s.setHours(23,59,59,999),s}function te(t,e,s){return c.addDays(t,e*7,s)}function se(t,e,s){return te(t,-1,s)}function ne(t,e,s){return c.addMonths(t,-1,s)}function S(t,e){return+x.toDate(t)==+x.toDate(e)}const N=t=>{const e=new Date;switch(t){case r.Today:return{startDate:X(),endDate:Z()};case r.Yesterday:return{startDate:z(),endDate:ee()};case r.ThisWeek:return{startDate:x.startOfWeek(e,{weekStartsOn:1}),endDate:_(e,{weekStartsOn:1})};case r.LastWeek:{const s=se(e);return{startDate:x.startOfWeek(s,{weekStartsOn:1}),endDate:_(s,{weekStartsOn:1})}}case r.ThisMonth:return{startDate:w(e),endDate:O(e)};case r.LastMonth:{const s=ne(e);return{startDate:w(s),endDate:O(s)}}default:return null}},re=(t,e)=>{if(!t||!e)return r.Today;const s=[r.Today,r.Yesterday,r.ThisWeek,r.LastWeek,r.ThisMonth,r.LastMonth];for(const o of s){const a=N(o);if(a&&S(t,a.startDate)&&S(e,a.endDate))return o}return r.Custom},oe=({selectedQuickOption:t,setSelectedQuickOption:e,["data-testid"]:s="kibble-datetime-picker-quick-options"})=>{const{setFocusedInput:o,onQuickOptionSelect:a}=c.useDatePickerContext(),{setOpen:u}=H.usePopoverContext(),d=i=>{if(e(i),i===r.Custom){o(c.FocusedInput.StartDate);return}const p=N(i);p&&(a(p),u(!1))};return n.jsxRuntimeExports.jsx(T.Flex,{className:"DateTimePicker__QuickFilters",flexDirection:"column",gap:2,w:"100%",maxW:"120px",children:K.map(i=>n.jsxRuntimeExports.jsx(F.Button,{className:"DateTimePicker__Option","data-testid":`${s}-option-${i.value}`,variant:"secondarySubtle",...i.iconName&&{iconName:i.iconName,iconPosition:"right"},...t===i.value&&{active:!0},onClick:()=>d(i.value),children:i.label},i.value))})},W=({label:t,rangeType:e,timezone:s})=>{const{startDate:o,endDate:a,dateFormat:u,focusedInput:d,setFocusedInput:i,onTimeChange:p}=c.useDatePickerContext(),h=l.useMemo(()=>(e===c.FocusedInput.StartDate?o:a)||new Date,[o,a,e]),b=l.useMemo(()=>x.format(h,u),[h,u]),D=m=>{m&&(s&&(m=P.localToClinicTimezone({date:m,timezone:s})),p(m,e))};return n.jsxRuntimeExports.jsxs(R.Grid,{alignItems:"center",templateColumns:"repeat(5, 1fr)",gap:1,bgColor:"background.secondaryAlpha",borderRadius:"md",p:1,flex:"0 0 50%",children:[n.jsxRuntimeExports.jsx(R.GridItem,{colSpan:1,children:n.jsxRuntimeExports.jsx(q.WrappedText,{size:"sm",fontWeight:"semibold",textAlign:"center",children:t})}),n.jsxRuntimeExports.jsx(R.GridItem,{colSpan:2,children:n.jsxRuntimeExports.jsx(G.WrappedTextInput,{readOnly:!0,value:b,onClick:()=>i(e),...d===e&&{"data-focus":!0}})}),n.jsxRuntimeExports.jsx(R.GridItem,{colSpan:2,children:n.jsxRuntimeExports.jsx(P.TimePicker,{minuteInterval:1,initialTime:h,onClose:m=>D(m),inputProps:{rightElement:void 0,onClick:()=>i(e)},timezone:s})})]})},ae=({isSingleView:t,timezone:e})=>{const{focusedInput:s,setFocusedInput:o}=c.useDatePickerContext();return l.useEffect(()=>{s||o(c.FocusedInput.StartDate)},[s,o]),n.jsxRuntimeExports.jsxs(f.Box,{className:"DateTimePicker__CustomFilters",mt:-1,children:[e&&n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsxs(q.WrappedText,{color:"text.danger",fontWeight:"bold",children:["Once you select a timing, it'll be converted to ",e," time."]}),n.jsxRuntimeExports.jsx("br",{})]}),n.jsxRuntimeExports.jsxs(T.Flex,{className:"DateTimePicker__CustomFilters__RangeSelectors",flexDirection:t?"column":"row",alignItems:"center",gap:2,justifyContent:"space-between",children:[n.jsxRuntimeExports.jsx(W,{label:"Start",rangeType:c.FocusedInput.StartDate,timezone:e}),n.jsxRuntimeExports.jsx(W,{label:"End",rangeType:c.FocusedInput.EndDate,timezone:e})]}),n.jsxRuntimeExports.jsxs(f.Box,{className:"CalendarView",bgColor:"background.secondaryAlpha",borderRadius:"md",p:1,mt:5,children:[n.jsxRuntimeExports.jsx(f.Box,{className:"CalendarView__Header",bgColor:"background.accent.subtle",borderRadius:"md",children:n.jsxRuntimeExports.jsx(c.DatePickerHeader,{triggerProps:{variant:"ghostNeutral"}})}),n.jsxRuntimeExports.jsx(f.Box,{className:"CalendarView__Body",children:n.jsxRuntimeExports.jsx(c.DatePickerCalendar,{showMonthLabels:!0})})]})]})},ie=({trigger:t,calendarView:e="double",portalled:s=!0,showQuickOptions:o=!0,["data-testid"]:a="kibble-datetime-picker",timezone:u,...d})=>{const i=l.useMemo(()=>{const M=new Date;return{startDate:x.startOfDay(M),endDate:c.endOfDay(M)}},[]),{contentRef:p}=L.usePortalContentRef(),b=Q.useSlotRecipe({recipe:B.popoverRecipe})(),D=$.useBreakpoint(),m=l.useMemo(()=>o?re(d.startDate||null,d.endDate||null):r.Custom,[o,d.startDate,d.endDate]),[j,y]=l.useState(m);l.useEffect(()=>{y(m)},[m]);const k=l.useMemo(()=>["base","sm"].includes(D)?"single":e,[e,D]),I=l.useMemo(()=>U[k],[k]),C=l.useMemo(()=>k==="single",[k]),E=l.useMemo(()=>j===r.Custom,[j]),Y=l.useMemo(()=>E?"max-content":"160px",[E]);return n.jsxRuntimeExports.jsxs(c.DatePickerProvider,{...d,startDate:d.startDate||i.startDate,endDate:d.endDate||i.endDate,withDateRange:!0,numberOfMonths:I,sameWidth:!0,children:[n.jsxRuntimeExports.jsx(g.PopoverTrigger,{asChild:!0,w:"max-content",children:t||n.jsxRuntimeExports.jsx(F.Button,{variant:"secondarySubtle",iconName:"calendarInfo","data-testid":`${a}-default-trigger`,children:"Date/Time Range"})}),n.jsxRuntimeExports.jsx(V.Portal,{container:p||void 0,disabled:!s,children:n.jsxRuntimeExports.jsx(g.PopoverPositioner,{className:"DateTimePicker","data-testid":a,children:n.jsxRuntimeExports.jsx(g.PopoverContent,{className:"DateTimePicker__Content","data-testid":`${a}-content`,css:{...b.content,"--popover-size":Y,maxW:o?C?"550px":"890px":C?"390px":"730px",...E&&{minW:o?"550px":"390px"}},children:n.jsxRuntimeExports.jsx(g.PopoverBody,{css:{"--popover-padding":0},children:n.jsxRuntimeExports.jsxs(T.Flex,{className:"DateTimePicker__Container","data-testid":`${a}-container`,p:5,children:[o&&n.jsxRuntimeExports.jsx(oe,{selectedQuickOption:j,setSelectedQuickOption:y}),j===r.Custom&&n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[o&&n.jsxRuntimeExports.jsx(A.Divider,{orientation:"vertical",my:-5,mx:5}),n.jsxRuntimeExports.jsx(ae,{isSingleView:C,timezone:u})]})]})})})})})]})};exports.DateTimePicker=ie;exports.DateTimePickerDefaultOptionValue=r;exports.calendarViews=J;
|
|
2
|
-
//# sourceMappingURL=dateTimePicker.component-BF2pZ_Rn.js.map
|