UNPKG

@mantine/dates

Version:

Calendars, date and time pickers based on Mantine components

1 lines 681 B
{"version":3,"file":"compare-time.cjs","names":["timeToSeconds"],"sources":["../../../src/components/TimeGrid/compare-time.ts"],"sourcesContent":["import { timeToSeconds } from '../TimePicker/utils/time-to-seconds/time-to-seconds';\n\nexport function isTimeBefore(value: string, compareTo: string) {\n return timeToSeconds(value) < timeToSeconds(compareTo);\n}\n\nexport function isTimeAfter(value: string, compareTo: string) {\n return timeToSeconds(value) > timeToSeconds(compareTo);\n}\n"],"mappings":";;;AAEA,SAAgB,aAAa,OAAe,WAAmB;CAC7D,OAAOA,wBAAAA,cAAc,KAAK,IAAIA,wBAAAA,cAAc,SAAS;AACvD;AAEA,SAAgB,YAAY,OAAe,WAAmB;CAC5D,OAAOA,wBAAAA,cAAc,KAAK,IAAIA,wBAAAA,cAAc,SAAS;AACvD"}