@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
1 lines • 634 B
Source Map (JSON)
{"version":3,"file":"compare-time.mjs","names":[],"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,OAAO,cAAc,KAAK,IAAI,cAAc,SAAS;AACvD;AAEA,SAAgB,YAAY,OAAe,WAAmB;CAC5D,OAAO,cAAc,KAAK,IAAI,cAAc,SAAS;AACvD"}