@fuf-stack/uniform 1.22.0 → 1.22.2
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/DatePicker/index.d.cts +1 -1
- package/dist/DatePicker/index.d.ts +1 -1
- package/dist/Input/index.d.cts +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/Select/index.d.cts +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/Slider/index.d.cts +1 -1
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Switch/index.d.cts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TextArea/index.d.cts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/Time/index.cjs +1 -1
- package/dist/Time/index.d.cts +1 -1
- package/dist/Time/index.d.ts +1 -1
- package/dist/Time/index.js +1 -1
- package/dist/{Time-CC2O-VD1.js → Time-CDptQ3CK.js} +8 -4
- package/dist/Time-CDptQ3CK.js.map +1 -0
- package/dist/{Time-D2-bRv-T.cjs → Time-mmSE7FJg.cjs} +7 -3
- package/dist/Time-mmSE7FJg.cjs.map +1 -0
- package/dist/hooks/useUniformFieldArray/index.d.cts +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.ts +1 -1
- package/dist/{index-BIvupnq_.d.cts → index-7UT2Ki5e.d.cts} +7 -7
- package/dist/{index-BIvupnq_.d.cts.map → index-7UT2Ki5e.d.cts.map} +1 -1
- package/dist/{index-CSmkHvH5.d.cts → index-B61zRzeS.d.cts} +4 -4
- package/dist/{index-CSmkHvH5.d.cts.map → index-B61zRzeS.d.cts.map} +1 -1
- package/dist/{index-1EuWAERx.d.ts → index-BDFJDKmz.d.ts} +4 -4
- package/dist/{index-1EuWAERx.d.ts.map → index-BDFJDKmz.d.ts.map} +1 -1
- package/dist/{index-Ct5-g-RZ.d.ts → index-BSwiB7ug.d.ts} +10 -10
- package/dist/{index-Ct5-g-RZ.d.ts.map → index-BSwiB7ug.d.ts.map} +1 -1
- package/dist/{index-CmOkjok9.d.cts → index-CJEqtwN7.d.cts} +10 -10
- package/dist/{index-CmOkjok9.d.cts.map → index-CJEqtwN7.d.cts.map} +1 -1
- package/dist/{index-DbRnysyM.d.ts → index-C_zjtsGM.d.ts} +7 -7
- package/dist/{index-DbRnysyM.d.ts.map → index-C_zjtsGM.d.ts.map} +1 -1
- package/dist/{index-D9FemJbE.d.cts → index-CaqBRMFF.d.cts} +13 -13
- package/dist/{index-D9FemJbE.d.cts.map → index-CaqBRMFF.d.cts.map} +1 -1
- package/dist/{index-BZqqP2U8.d.ts → index-CbGiXZQv.d.ts} +13 -13
- package/dist/{index-BZqqP2U8.d.ts.map → index-CbGiXZQv.d.ts.map} +1 -1
- package/dist/{index-B0MgOw9G.d.ts → index-CbPJiRK2.d.ts} +4 -4
- package/dist/{index-B0MgOw9G.d.ts.map → index-CbPJiRK2.d.ts.map} +1 -1
- package/dist/{index-Cq8UB0ir.d.cts → index-DUmNI6cE.d.cts} +4 -4
- package/dist/{index-Cq8UB0ir.d.cts.map → index-DUmNI6cE.d.cts.map} +1 -1
- package/dist/{index-ClRcSBRW.d.cts → index-DZaZ82uM.d.cts} +13 -13
- package/dist/{index-ClRcSBRW.d.cts.map → index-DZaZ82uM.d.cts.map} +1 -1
- package/dist/{index-DDuUbZ3x.d.cts → index-Db0WD4d1.d.cts} +4 -4
- package/dist/{index-DDuUbZ3x.d.cts.map → index-Db0WD4d1.d.cts.map} +1 -1
- package/dist/{index-B87U0Tx5.d.ts → index-PMCqBX0t.d.ts} +4 -4
- package/dist/{index-B87U0Tx5.d.ts.map → index-PMCqBX0t.d.ts.map} +1 -1
- package/dist/{index-DKpPzE3w.d.ts → index-kBbApopL.d.ts} +13 -13
- package/dist/{index-DKpPzE3w.d.ts.map → index-kBbApopL.d.ts.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/{useUniformFieldArray-B7kOxpV0.d.cts → useUniformFieldArray-CuZB9JPM.d.cts} +2 -2
- package/dist/{useUniformFieldArray-B7kOxpV0.d.cts.map → useUniformFieldArray-CuZB9JPM.d.cts.map} +1 -1
- package/dist/{useUniformFieldArray-C5L45Xt5.d.ts → useUniformFieldArray-CzUfdsFB.d.ts} +2 -2
- package/dist/{useUniformFieldArray-C5L45Xt5.d.ts.map → useUniformFieldArray-CzUfdsFB.d.ts.map} +1 -1
- package/package.json +4 -4
- package/dist/Time-CC2O-VD1.js.map +0 -1
- package/dist/Time-D2-bRv-T.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DatePickerProps, t as DatePicker } from "../index-
|
|
1
|
+
import { n as DatePickerProps, t as DatePicker } from "../index-Db0WD4d1.cjs";
|
|
2
2
|
export { DatePicker, DatePicker as default, type DatePickerProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DatePickerProps, t as DatePicker } from "../index-
|
|
1
|
+
import { n as DatePickerProps, t as DatePicker } from "../index-BDFJDKmz.js";
|
|
2
2
|
export { DatePicker, DatePicker as default, type DatePickerProps };
|
package/dist/Input/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputProps, t as Input } from "../index-
|
|
1
|
+
import { n as InputProps, t as Input } from "../index-B61zRzeS.cjs";
|
|
2
2
|
export { Input, Input as default, type InputProps };
|
package/dist/Input/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputProps, t as Input } from "../index-
|
|
1
|
+
import { n as InputProps, t as Input } from "../index-PMCqBX0t.js";
|
|
2
2
|
export { Input, Input as default, type InputProps };
|
package/dist/Select/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SelectProps, t as Select } from "../index-
|
|
1
|
+
import { n as SelectProps, t as Select } from "../index-DZaZ82uM.cjs";
|
|
2
2
|
export { Select, Select as default, type SelectProps };
|
package/dist/Select/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SelectProps, t as Select } from "../index-
|
|
1
|
+
import { n as SelectProps, t as Select } from "../index-CbGiXZQv.js";
|
|
2
2
|
export { Select, Select as default, type SelectProps };
|
package/dist/Slider/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SliderProps, t as Slider } from "../index-
|
|
1
|
+
import { n as SliderProps, t as Slider } from "../index-CaqBRMFF.cjs";
|
|
2
2
|
export { Slider, Slider as default, type SliderProps };
|
package/dist/Slider/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SliderProps, t as Slider } from "../index-
|
|
1
|
+
import { n as SliderProps, t as Slider } from "../index-kBbApopL.js";
|
|
2
2
|
export { Slider, Slider as default, type SliderProps };
|
package/dist/Switch/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SwitchProps, t as Switch } from "../index-
|
|
1
|
+
import { n as SwitchProps, t as Switch } from "../index-CJEqtwN7.cjs";
|
|
2
2
|
export { Switch, Switch as default, type SwitchProps };
|
package/dist/Switch/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SwitchProps, t as Switch } from "../index-
|
|
1
|
+
import { n as SwitchProps, t as Switch } from "../index-BSwiB7ug.js";
|
|
2
2
|
export { Switch, Switch as default, type SwitchProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TextAreaProps, t as TextArea } from "../index-
|
|
1
|
+
import { n as TextAreaProps, t as TextArea } from "../index-DUmNI6cE.cjs";
|
|
2
2
|
export { TextArea, TextArea as default, type TextAreaProps };
|
package/dist/TextArea/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TextAreaProps, t as TextArea } from "../index-
|
|
1
|
+
import { n as TextAreaProps, t as TextArea } from "../index-CbPJiRK2.js";
|
|
2
2
|
export { TextArea, TextArea as default, type TextAreaProps };
|
package/dist/Time/index.cjs
CHANGED
package/dist/Time/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TimeProps, t as Time } from "../index-
|
|
1
|
+
import { n as TimeProps, t as Time } from "../index-7UT2Ki5e.cjs";
|
|
2
2
|
export { Time, type TimeProps };
|
package/dist/Time/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TimeProps, t as Time } from "../index-
|
|
1
|
+
import { n as TimeProps, t as Time } from "../index-C_zjtsGM.js";
|
|
2
2
|
export { Time, type TimeProps };
|
package/dist/Time/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Time } from "../Time-
|
|
1
|
+
import { t as Time } from "../Time-CDptQ3CK.js";
|
|
2
2
|
export { Time };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useUniformField } from "./hooks/useUniformField/index.js";
|
|
2
2
|
import { tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { getLocalTimeZone,
|
|
4
|
+
import { getLocalTimeZone, parseAbsolute, parseAbsoluteToLocal, parseDateTime, parseZonedDateTime } from "@internationalized/date";
|
|
5
5
|
import { TimeInput } from "@heroui/date-input";
|
|
6
6
|
//#region src/Time/timeHelpers.ts
|
|
7
7
|
/** Cast unknown input to the TimeInput value union type. */
|
|
@@ -100,9 +100,13 @@ const parseTimeValue = (value, timeZone) => {
|
|
|
100
100
|
const resolveTimeFieldTimeZone = (timeZone) => {
|
|
101
101
|
return timeZone ?? getLocalTimeZone();
|
|
102
102
|
};
|
|
103
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Build default placeholder value for TimeInput.
|
|
105
|
+
*
|
|
106
|
+
* Uses a fixed reference time to keep snapshots deterministic.
|
|
107
|
+
*/
|
|
104
108
|
const getTimeFieldPlaceholderValue = (timeZone) => {
|
|
105
|
-
return asTimeValue(
|
|
109
|
+
return asTimeValue(parseZonedDateTime(`1970-01-01T00:00:00[${resolveTimeFieldTimeZone(timeZone)}]`));
|
|
106
110
|
};
|
|
107
111
|
/**
|
|
108
112
|
* Convert a TimeValue into a UTC time-only string for form state.
|
|
@@ -206,4 +210,4 @@ const Time = ({ className: _className = void 0, granularity = "minute", hideTime
|
|
|
206
210
|
//#endregion
|
|
207
211
|
export { Time as t };
|
|
208
212
|
|
|
209
|
-
//# sourceMappingURL=Time-
|
|
213
|
+
//# sourceMappingURL=Time-CDptQ3CK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Time-CDptQ3CK.js","names":["HeroTimeInput"],"sources":["../src/Time/timeHelpers.ts","../src/Time/Time.tsx"],"sourcesContent":["import type { TimeInput as HeroTimeInput } from '@heroui/date-input';\nimport type { ComponentProps } from 'react';\n\nimport {\n getLocalTimeZone,\n parseAbsolute,\n parseAbsoluteToLocal,\n parseDateTime,\n parseZonedDateTime,\n} from '@internationalized/date';\n\n/** Value type accepted by HeroUI TimeInput */\nexport type TimeValue = ComponentProps<typeof HeroTimeInput>['value'];\n\n/** Cast unknown input to the TimeInput value union type. */\nconst asTimeValue = (value: unknown): TimeValue => {\n return value as TimeValue;\n};\n\n/** Check whether a value already looks like an @internationalized/date value. */\nconst isTimeValueLike = (value: unknown): value is object => {\n if (!value || typeof value !== 'object') {\n return false;\n }\n\n return 'hour' in value || 'calendar' in value;\n};\n\n/** Check if the incoming string represents a plain time (e.g. 09:30 or 09:30:45). */\nconst isTimeOnlyString = (value: string): boolean => {\n return /^\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,3})?)?$/.test(value);\n};\n\n/** Check if the incoming string is a UTC time-only value (e.g. 09:30Z). */\nconst isUtcTimeOnlyString = (value: string): boolean => {\n return /^\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,3})?)?Z$/.test(value);\n};\n\n/** Zero-pad integer segments for time serialization. */\nconst pad = (value: number): string => {\n return String(value).padStart(2, '0');\n};\n\n/** Convert an absolute ISO string into UTC time-only store format. */\nconst toUtcTimeString = (\n absoluteIsoString: string,\n granularity: 'hour' | 'minute',\n): string | null => {\n const utcDate = new Date(absoluteIsoString);\n if (Number.isNaN(utcDate.getTime())) {\n return null;\n }\n\n const hour = pad(utcDate.getUTCHours());\n if (granularity === 'hour') {\n return `${hour}:00Z`;\n }\n\n return `${hour}:${pad(utcDate.getUTCMinutes())}Z`;\n};\n\n/** True when an input already carries timezone/offset information. */\nconst hasExplicitTimeZone = (value: string): boolean => {\n if (value.includes('[') && value.includes(']')) {\n return true;\n }\n\n return /(?:[zZ]|[+-]\\d{2}:\\d{2})$/.test(value);\n};\n\n/** True for date-time strings without timezone/offset. */\nconst isNaiveDateTimeString = (value: string): boolean => {\n return /^\\d{4}-\\d{2}-\\d{2}T/.test(value) && !hasExplicitTimeZone(value);\n};\n\n/** Safely run a parser and return `null` on parsing errors. */\nconst tryParse = (parser: () => unknown): TimeValue => {\n try {\n return asTimeValue(parser());\n } catch {\n return null;\n }\n};\n\n/**\n * Parse a form value into a HeroUI TimeInput compatible `TimeValue`.\n *\n * Supports existing `TimeValue` objects, native `Date` instances, plain time\n * strings (`HH:mm[:ss]`), absolute ISO date-time strings, zoned date-time\n * strings, and local date-time strings.\n *\n * Time-only strings are interpreted in the active timezone and normalized to a\n * `ZonedDateTime` (using a fixed reference date) so timezone abbreviations can\n * remain visible in the UI.\n */\nexport const parseTimeValue = (\n value: unknown,\n timeZone?: string,\n): TimeValue => {\n if (value == null || value === '') {\n return null;\n }\n\n if (isTimeValueLike(value)) {\n return asTimeValue(value);\n }\n\n if (value instanceof Date) {\n return asTimeValue(\n timeZone\n ? parseAbsolute(value.toISOString(), timeZone)\n : parseAbsoluteToLocal(value.toISOString()),\n );\n }\n\n if (typeof value !== 'string') {\n return null;\n }\n\n const normalizedValue = value.trim();\n if (normalizedValue === '') {\n return null;\n }\n\n if (isTimeOnlyString(normalizedValue)) {\n return tryParse(() => {\n const [hourValue, minuteValue, secondValue] = normalizedValue\n .split(':')\n .map(Number);\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n const hour = pad(hourValue);\n const minute = pad(minuteValue);\n const second = pad(secondValue ?? 0);\n\n return parseZonedDateTime(\n `1970-01-01T${hour}:${minute}:${second}[${resolvedTimeZone}]`,\n );\n });\n }\n\n if (isUtcTimeOnlyString(normalizedValue)) {\n return tryParse(() => {\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n return parseAbsolute(`1970-01-01T${normalizedValue}`, resolvedTimeZone);\n });\n }\n\n const parsers: (() => unknown)[] = [\n ...(timeZone && isNaiveDateTimeString(normalizedValue)\n ? [\n () => {\n return parseZonedDateTime(`${normalizedValue}[${timeZone}]`);\n },\n ]\n : []),\n () => {\n return timeZone\n ? parseAbsolute(normalizedValue, timeZone)\n : parseAbsoluteToLocal(normalizedValue);\n },\n () => {\n return parseZonedDateTime(normalizedValue);\n },\n () => {\n return parseDateTime(normalizedValue);\n },\n ];\n\n return (\n parsers\n .map((parser) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return tryParse(parser);\n })\n .find((parsedValue) => {\n return parsedValue != null;\n }) ?? null\n );\n};\n\n/** Resolve the timezone used for parsing and string conversion. */\nexport const resolveTimeFieldTimeZone = (timeZone?: string): string => {\n return timeZone ?? getLocalTimeZone();\n};\n\n/**\n * Build default placeholder value for TimeInput.\n *\n * Uses a fixed reference time to keep snapshots deterministic.\n */\nexport const getTimeFieldPlaceholderValue = (timeZone?: string): TimeValue => {\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n return asTimeValue(\n parseZonedDateTime(`1970-01-01T00:00:00[${resolvedTimeZone}]`),\n );\n};\n\n/**\n * Convert a TimeValue into a UTC time-only string for form state.\n *\n * The stored format is `HH:mmZ` (or `HH:00Z` when granularity is `hour`).\n */\nexport const timeValueToString = (\n value: TimeValue,\n timeZone: string,\n granularity: 'hour' | 'minute' = 'minute',\n): string | null => {\n if (value == null) {\n return null;\n }\n\n const maybeWithAbsoluteString = value as { toAbsoluteString?: () => string };\n if (typeof maybeWithAbsoluteString.toAbsoluteString === 'function') {\n return toUtcTimeString(\n maybeWithAbsoluteString.toAbsoluteString(),\n granularity,\n );\n }\n\n const maybeWithToDate = value as { toDate?: (zone: string) => Date };\n if (typeof maybeWithToDate.toDate === 'function') {\n return toUtcTimeString(\n maybeWithToDate.toDate(timeZone).toISOString(),\n granularity,\n );\n }\n\n const maybeTime = value as {\n hour?: number;\n minute?: number;\n second?: number;\n };\n if (\n typeof maybeTime.hour === 'number' &&\n typeof maybeTime.minute === 'number'\n ) {\n const hour = pad(maybeTime.hour);\n const minute = pad(maybeTime.minute);\n const second = pad(maybeTime.second ?? 0);\n return toUtcTimeString(\n parseZonedDateTime(\n `1970-01-01T${hour}:${minute}:${second}[${timeZone}]`,\n ).toAbsoluteString(),\n granularity,\n );\n }\n\n return null;\n};\n","import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\nimport type { TimeValue } from './timeHelpers';\n\nimport { TimeInput as HeroTimeInput } from '@heroui/date-input';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\nimport {\n getTimeFieldPlaceholderValue,\n parseTimeValue,\n resolveTimeFieldTimeZone,\n timeValueToString,\n} from './timeHelpers';\n\nexport const timeVariants = tv({\n slots: {\n /** wrapper around the whole time input */\n base: '',\n /** helper wrapper for error/description */\n helperWrapper: [\n // set padding to 0 for error message exit animation\n 'p-0',\n ],\n /** the segmented input element */\n input: '',\n /** inner wrapper around segments and optional content */\n innerWrapper: '',\n /** outer input wrapper */\n inputWrapper: 'bg-content1 focus-within:border-focus',\n /** field label */\n label: '',\n /** individual segment */\n segment: '',\n },\n});\n\ntype VariantProps = TVProps<typeof timeVariants>;\ntype ClassName = TVClassName<typeof timeVariants>;\n\nexport interface TimeProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** input is disabled */\n disabled?: boolean;\n /** smallest visible unit in the segmented time input */\n granularity?: 'hour' | 'minute';\n /** hide timezone abbreviation for zoned values */\n hideTimeZone?: boolean;\n /** force hour granularity and store UTC hour as number (0-23) */\n hourAsNumber?: boolean;\n /** hour cycle formatting */\n hourCycle?: 12 | 24;\n /** form field label */\n label?: ReactNode;\n /** form field name */\n name: string;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /**\n * Optional timezone used for parsing date-time strings and serializing values.\n * When omitted, local timezone is used.\n */\n timeZone?: string;\n /** value format stored in form state (`string` stores UTC minute values, e.g. `10:15Z`) */\n valueType?: 'string' | 'timeValue';\n}\n\n/**\n * Time component based on [HeroUI TimeInput](https://v2.heroui.com/docs/components/time-input)\n */\nconst Time = ({\n className: _className = undefined,\n granularity = 'minute',\n hideTimeZone = false,\n hourAsNumber = false,\n hourCycle = undefined,\n name,\n timeZone = undefined,\n valueType = 'string',\n ...uniformFieldProps\n}: TimeProps) => {\n const {\n ariaLabel,\n disabled,\n errorMessage,\n field: { onBlur, onChange, value },\n invalid,\n label,\n required,\n testId,\n } = useUniformField({ name, ...uniformFieldProps });\n\n // classNames from slots\n const variants = timeVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n const effectiveGranularity = hourAsNumber ? 'hour' : granularity;\n\n // `hourAsNumber` stores 0-23; convert this into a parseable UTC time for display.\n const normalizedFieldValue =\n hourAsNumber && typeof value === 'number'\n ? `${String(Math.max(0, Math.min(23, value))).padStart(2, '0')}:00Z`\n : value;\n\n // Normalize incoming form value into HeroUI TimeInput value shape.\n const parsedValue = parseTimeValue(normalizedFieldValue, timeZone);\n const placeholderValue = getTimeFieldPlaceholderValue(timeZone);\n\n // Normalize TimeInput output into the configured storage format.\n const handleChange = (nextValue: TimeValue) => {\n if (nextValue == null) {\n onChange(null);\n return;\n }\n\n if (hourAsNumber) {\n const serializedValue = timeValueToString(\n nextValue,\n resolvedTimeZone,\n 'hour',\n );\n\n if (!serializedValue) {\n onChange(null);\n return;\n }\n\n const [hoursSegment] = serializedValue.split(':');\n const parsedHours = Number(hoursSegment);\n onChange(Number.isNaN(parsedHours) ? null : parsedHours);\n return;\n }\n\n if (valueType === 'timeValue') {\n onChange(nextValue);\n return;\n }\n\n onChange(\n timeValueToString(nextValue, resolvedTimeZone, effectiveGranularity) ??\n String(nextValue),\n );\n };\n\n return (\n <HeroTimeInput\n aria-label={label ? undefined : ariaLabel}\n classNames={{\n base: classNames.base,\n helperWrapper: classNames.helperWrapper,\n innerWrapper: classNames.innerWrapper,\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n label: classNames.label,\n segment: classNames.segment,\n }}\n data-testid={testId}\n errorMessage={errorMessage}\n granularity={effectiveGranularity}\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n id={testId}\n isDisabled={disabled}\n isInvalid={invalid}\n isRequired={required}\n label={label}\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={handleChange}\n placeholderValue={placeholderValue ?? undefined}\n radius=\"sm\"\n value={parsedValue ?? undefined}\n variant=\"bordered\"\n />\n );\n};\n\nexport default Time;\n"],"mappings":";;;;;;;AAeA,MAAM,eAAe,UAA8B;CACjD,OAAO;AACT;;AAGA,MAAM,mBAAmB,UAAoC;CAC3D,IAAI,CAAC,SAAS,OAAO,UAAU,UAC7B,OAAO;CAGT,OAAO,UAAU,SAAS,cAAc;AAC1C;;AAGA,MAAM,oBAAoB,UAA2B;CACnD,OAAO,yCAAyC,KAAK,KAAK;AAC5D;;AAGA,MAAM,uBAAuB,UAA2B;CACtD,OAAO,0CAA0C,KAAK,KAAK;AAC7D;;AAGA,MAAM,OAAO,UAA0B;CACrC,OAAO,OAAO,KAAK,EAAE,SAAS,GAAG,GAAG;AACtC;;AAGA,MAAM,mBACJ,mBACA,gBACkB;CAClB,MA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D;EACE,cAAY,QAAQ,KAAA,IAAY;EAChC,YAAY;GACV,MAAM,WAAW;GACjB,eAAe,WAAW;GAC1B,cAAc,WAAW;GACzB,OAAO,WAAW;GAClB,cAAc,WAAW;GACzB,OAAO,WAAW;GAClB,SAAS,WAAW;EACtB;EACA,eAAa;EACC;EACd,aAAa;EACC;EACH;EACX,IAAI;EACJ,YAAY;EACZ,WAAW;EACX,YAAY;EACL;EACP,gBAAe;EACT;EACE;EACR,UAAU;EACV,kBAAkB,oBAAoB,KAAA;EACtC,QAAO;EACP,OAAO,eAAe,KAAA;EACtB,SAAQ;CACT,CAAA;AAEL"}
|
|
@@ -101,9 +101,13 @@ const parseTimeValue = (value, timeZone) => {
|
|
|
101
101
|
const resolveTimeFieldTimeZone = (timeZone) => {
|
|
102
102
|
return timeZone ?? (0, _internationalized_date.getLocalTimeZone)();
|
|
103
103
|
};
|
|
104
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Build default placeholder value for TimeInput.
|
|
106
|
+
*
|
|
107
|
+
* Uses a fixed reference time to keep snapshots deterministic.
|
|
108
|
+
*/
|
|
105
109
|
const getTimeFieldPlaceholderValue = (timeZone) => {
|
|
106
|
-
return asTimeValue((0, _internationalized_date.
|
|
110
|
+
return asTimeValue((0, _internationalized_date.parseZonedDateTime)(`1970-01-01T00:00:00[${resolveTimeFieldTimeZone(timeZone)}]`));
|
|
107
111
|
};
|
|
108
112
|
/**
|
|
109
113
|
* Convert a TimeValue into a UTC time-only string for form state.
|
|
@@ -212,4 +216,4 @@ Object.defineProperty(exports, "Time", {
|
|
|
212
216
|
}
|
|
213
217
|
});
|
|
214
218
|
|
|
215
|
-
//# sourceMappingURL=Time-
|
|
219
|
+
//# sourceMappingURL=Time-mmSE7FJg.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Time-mmSE7FJg.cjs","names":["useUniformField","HeroTimeInput"],"sources":["../src/Time/timeHelpers.ts","../src/Time/Time.tsx"],"sourcesContent":["import type { TimeInput as HeroTimeInput } from '@heroui/date-input';\nimport type { ComponentProps } from 'react';\n\nimport {\n getLocalTimeZone,\n parseAbsolute,\n parseAbsoluteToLocal,\n parseDateTime,\n parseZonedDateTime,\n} from '@internationalized/date';\n\n/** Value type accepted by HeroUI TimeInput */\nexport type TimeValue = ComponentProps<typeof HeroTimeInput>['value'];\n\n/** Cast unknown input to the TimeInput value union type. */\nconst asTimeValue = (value: unknown): TimeValue => {\n return value as TimeValue;\n};\n\n/** Check whether a value already looks like an @internationalized/date value. */\nconst isTimeValueLike = (value: unknown): value is object => {\n if (!value || typeof value !== 'object') {\n return false;\n }\n\n return 'hour' in value || 'calendar' in value;\n};\n\n/** Check if the incoming string represents a plain time (e.g. 09:30 or 09:30:45). */\nconst isTimeOnlyString = (value: string): boolean => {\n return /^\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,3})?)?$/.test(value);\n};\n\n/** Check if the incoming string is a UTC time-only value (e.g. 09:30Z). */\nconst isUtcTimeOnlyString = (value: string): boolean => {\n return /^\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,3})?)?Z$/.test(value);\n};\n\n/** Zero-pad integer segments for time serialization. */\nconst pad = (value: number): string => {\n return String(value).padStart(2, '0');\n};\n\n/** Convert an absolute ISO string into UTC time-only store format. */\nconst toUtcTimeString = (\n absoluteIsoString: string,\n granularity: 'hour' | 'minute',\n): string | null => {\n const utcDate = new Date(absoluteIsoString);\n if (Number.isNaN(utcDate.getTime())) {\n return null;\n }\n\n const hour = pad(utcDate.getUTCHours());\n if (granularity === 'hour') {\n return `${hour}:00Z`;\n }\n\n return `${hour}:${pad(utcDate.getUTCMinutes())}Z`;\n};\n\n/** True when an input already carries timezone/offset information. */\nconst hasExplicitTimeZone = (value: string): boolean => {\n if (value.includes('[') && value.includes(']')) {\n return true;\n }\n\n return /(?:[zZ]|[+-]\\d{2}:\\d{2})$/.test(value);\n};\n\n/** True for date-time strings without timezone/offset. */\nconst isNaiveDateTimeString = (value: string): boolean => {\n return /^\\d{4}-\\d{2}-\\d{2}T/.test(value) && !hasExplicitTimeZone(value);\n};\n\n/** Safely run a parser and return `null` on parsing errors. */\nconst tryParse = (parser: () => unknown): TimeValue => {\n try {\n return asTimeValue(parser());\n } catch {\n return null;\n }\n};\n\n/**\n * Parse a form value into a HeroUI TimeInput compatible `TimeValue`.\n *\n * Supports existing `TimeValue` objects, native `Date` instances, plain time\n * strings (`HH:mm[:ss]`), absolute ISO date-time strings, zoned date-time\n * strings, and local date-time strings.\n *\n * Time-only strings are interpreted in the active timezone and normalized to a\n * `ZonedDateTime` (using a fixed reference date) so timezone abbreviations can\n * remain visible in the UI.\n */\nexport const parseTimeValue = (\n value: unknown,\n timeZone?: string,\n): TimeValue => {\n if (value == null || value === '') {\n return null;\n }\n\n if (isTimeValueLike(value)) {\n return asTimeValue(value);\n }\n\n if (value instanceof Date) {\n return asTimeValue(\n timeZone\n ? parseAbsolute(value.toISOString(), timeZone)\n : parseAbsoluteToLocal(value.toISOString()),\n );\n }\n\n if (typeof value !== 'string') {\n return null;\n }\n\n const normalizedValue = value.trim();\n if (normalizedValue === '') {\n return null;\n }\n\n if (isTimeOnlyString(normalizedValue)) {\n return tryParse(() => {\n const [hourValue, minuteValue, secondValue] = normalizedValue\n .split(':')\n .map(Number);\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n const hour = pad(hourValue);\n const minute = pad(minuteValue);\n const second = pad(secondValue ?? 0);\n\n return parseZonedDateTime(\n `1970-01-01T${hour}:${minute}:${second}[${resolvedTimeZone}]`,\n );\n });\n }\n\n if (isUtcTimeOnlyString(normalizedValue)) {\n return tryParse(() => {\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n return parseAbsolute(`1970-01-01T${normalizedValue}`, resolvedTimeZone);\n });\n }\n\n const parsers: (() => unknown)[] = [\n ...(timeZone && isNaiveDateTimeString(normalizedValue)\n ? [\n () => {\n return parseZonedDateTime(`${normalizedValue}[${timeZone}]`);\n },\n ]\n : []),\n () => {\n return timeZone\n ? parseAbsolute(normalizedValue, timeZone)\n : parseAbsoluteToLocal(normalizedValue);\n },\n () => {\n return parseZonedDateTime(normalizedValue);\n },\n () => {\n return parseDateTime(normalizedValue);\n },\n ];\n\n return (\n parsers\n .map((parser) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return tryParse(parser);\n })\n .find((parsedValue) => {\n return parsedValue != null;\n }) ?? null\n );\n};\n\n/** Resolve the timezone used for parsing and string conversion. */\nexport const resolveTimeFieldTimeZone = (timeZone?: string): string => {\n return timeZone ?? getLocalTimeZone();\n};\n\n/**\n * Build default placeholder value for TimeInput.\n *\n * Uses a fixed reference time to keep snapshots deterministic.\n */\nexport const getTimeFieldPlaceholderValue = (timeZone?: string): TimeValue => {\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n return asTimeValue(\n parseZonedDateTime(`1970-01-01T00:00:00[${resolvedTimeZone}]`),\n );\n};\n\n/**\n * Convert a TimeValue into a UTC time-only string for form state.\n *\n * The stored format is `HH:mmZ` (or `HH:00Z` when granularity is `hour`).\n */\nexport const timeValueToString = (\n value: TimeValue,\n timeZone: string,\n granularity: 'hour' | 'minute' = 'minute',\n): string | null => {\n if (value == null) {\n return null;\n }\n\n const maybeWithAbsoluteString = value as { toAbsoluteString?: () => string };\n if (typeof maybeWithAbsoluteString.toAbsoluteString === 'function') {\n return toUtcTimeString(\n maybeWithAbsoluteString.toAbsoluteString(),\n granularity,\n );\n }\n\n const maybeWithToDate = value as { toDate?: (zone: string) => Date };\n if (typeof maybeWithToDate.toDate === 'function') {\n return toUtcTimeString(\n maybeWithToDate.toDate(timeZone).toISOString(),\n granularity,\n );\n }\n\n const maybeTime = value as {\n hour?: number;\n minute?: number;\n second?: number;\n };\n if (\n typeof maybeTime.hour === 'number' &&\n typeof maybeTime.minute === 'number'\n ) {\n const hour = pad(maybeTime.hour);\n const minute = pad(maybeTime.minute);\n const second = pad(maybeTime.second ?? 0);\n return toUtcTimeString(\n parseZonedDateTime(\n `1970-01-01T${hour}:${minute}:${second}[${timeZone}]`,\n ).toAbsoluteString(),\n granularity,\n );\n }\n\n return null;\n};\n","import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\nimport type { TimeValue } from './timeHelpers';\n\nimport { TimeInput as HeroTimeInput } from '@heroui/date-input';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { useUniformField } from '../hooks/useUniformField';\nimport {\n getTimeFieldPlaceholderValue,\n parseTimeValue,\n resolveTimeFieldTimeZone,\n timeValueToString,\n} from './timeHelpers';\n\nexport const timeVariants = tv({\n slots: {\n /** wrapper around the whole time input */\n base: '',\n /** helper wrapper for error/description */\n helperWrapper: [\n // set padding to 0 for error message exit animation\n 'p-0',\n ],\n /** the segmented input element */\n input: '',\n /** inner wrapper around segments and optional content */\n innerWrapper: '',\n /** outer input wrapper */\n inputWrapper: 'bg-content1 focus-within:border-focus',\n /** field label */\n label: '',\n /** individual segment */\n segment: '',\n },\n});\n\ntype VariantProps = TVProps<typeof timeVariants>;\ntype ClassName = TVClassName<typeof timeVariants>;\n\nexport interface TimeProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** input is disabled */\n disabled?: boolean;\n /** smallest visible unit in the segmented time input */\n granularity?: 'hour' | 'minute';\n /** hide timezone abbreviation for zoned values */\n hideTimeZone?: boolean;\n /** force hour granularity and store UTC hour as number (0-23) */\n hourAsNumber?: boolean;\n /** hour cycle formatting */\n hourCycle?: 12 | 24;\n /** form field label */\n label?: ReactNode;\n /** form field name */\n name: string;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /**\n * Optional timezone used for parsing date-time strings and serializing values.\n * When omitted, local timezone is used.\n */\n timeZone?: string;\n /** value format stored in form state (`string` stores UTC minute values, e.g. `10:15Z`) */\n valueType?: 'string' | 'timeValue';\n}\n\n/**\n * Time component based on [HeroUI TimeInput](https://v2.heroui.com/docs/components/time-input)\n */\nconst Time = ({\n className: _className = undefined,\n granularity = 'minute',\n hideTimeZone = false,\n hourAsNumber = false,\n hourCycle = undefined,\n name,\n timeZone = undefined,\n valueType = 'string',\n ...uniformFieldProps\n}: TimeProps) => {\n const {\n ariaLabel,\n disabled,\n errorMessage,\n field: { onBlur, onChange, value },\n invalid,\n label,\n required,\n testId,\n } = useUniformField({ name, ...uniformFieldProps });\n\n // classNames from slots\n const variants = timeVariants();\n const classNames = variantsToClassNames(variants, _className, 'base');\n const resolvedTimeZone = resolveTimeFieldTimeZone(timeZone);\n const effectiveGranularity = hourAsNumber ? 'hour' : granularity;\n\n // `hourAsNumber` stores 0-23; convert this into a parseable UTC time for display.\n const normalizedFieldValue =\n hourAsNumber && typeof value === 'number'\n ? `${String(Math.max(0, Math.min(23, value))).padStart(2, '0')}:00Z`\n : value;\n\n // Normalize incoming form value into HeroUI TimeInput value shape.\n const parsedValue = parseTimeValue(normalizedFieldValue, timeZone);\n const placeholderValue = getTimeFieldPlaceholderValue(timeZone);\n\n // Normalize TimeInput output into the configured storage format.\n const handleChange = (nextValue: TimeValue) => {\n if (nextValue == null) {\n onChange(null);\n return;\n }\n\n if (hourAsNumber) {\n const serializedValue = timeValueToString(\n nextValue,\n resolvedTimeZone,\n 'hour',\n );\n\n if (!serializedValue) {\n onChange(null);\n return;\n }\n\n const [hoursSegment] = serializedValue.split(':');\n const parsedHours = Number(hoursSegment);\n onChange(Number.isNaN(parsedHours) ? null : parsedHours);\n return;\n }\n\n if (valueType === 'timeValue') {\n onChange(nextValue);\n return;\n }\n\n onChange(\n timeValueToString(nextValue, resolvedTimeZone, effectiveGranularity) ??\n String(nextValue),\n );\n };\n\n return (\n <HeroTimeInput\n aria-label={label ? undefined : ariaLabel}\n classNames={{\n base: classNames.base,\n helperWrapper: classNames.helperWrapper,\n innerWrapper: classNames.innerWrapper,\n input: classNames.input,\n inputWrapper: classNames.inputWrapper,\n label: classNames.label,\n segment: classNames.segment,\n }}\n data-testid={testId}\n errorMessage={errorMessage}\n granularity={effectiveGranularity}\n hideTimeZone={hideTimeZone}\n hourCycle={hourCycle}\n id={testId}\n isDisabled={disabled}\n isInvalid={invalid}\n isRequired={required}\n label={label}\n labelPlacement=\"outside\"\n name={name}\n onBlur={onBlur}\n onChange={handleChange}\n placeholderValue={placeholderValue ?? undefined}\n radius=\"sm\"\n value={parsedValue ?? undefined}\n variant=\"bordered\"\n />\n );\n};\n\nexport default Time;\n"],"mappings":";;;;;;;;AAeA,MAAM,eAAe,UAA8B;CACjD,OAAO;AACT;;AAGA,MAAM,mBAAmB,UAAoC;CAC3D,IAAI,CAAC,SAAS,OAAO,UAAU,UAC7B,OAAO;CAGT,OAAO,UAAU,SAAS,cAAc;AAC1C;;AAGA,MAAM,oBAAoB,UAA2B;CACnD,OAAO,yCAAyC,KAAK,KAAK;AAC5D;;AAGA,MAAM,uBAAuB,UAA2B;CACtD,OAAO,0CAA0C,KAAK,KAAK;AAC7D;;AAGA,MAAM,OAAO,UAA0B;CACrC,OAAO,OAAO,KAAK,EAAE,SAAS,GAAG,GAAG;AACtC;;AAGA,MAAM,mBACJ,mBACA,gBACkB;CAClB,MAAM,UAAU,IAAI,KAAK,iBAAiB;CAC1C,IAAI,OAAO,MAAM,QAAQ,QAAQ,CAAC,GAChC,OAAO;CAGT,MAAM,OAAO,IAAI,QAAQ,YAAY,CAAC;CACtC,IAAI,gBAAgB,QAClB,OAAO,GAAG,KAAK;CAGjB,OAAO,GAAG,KAAK,GAAG,IAAI,QAAQ,cAAc,CAAC,EAAE;AACjD;;AAGA,MAAM,uBAAuB,UAA2B;CACtD,IAAI,MAAM,SAAS,GAAG,KAAK,MAAM,SAAS,GAAG,GAC3C,OAAO;CAGT,OAAO,4BAA4B,KAAK,KAAK;AAC/C;;AAGA,MAAM,yBAAyB,UAA2B;CACxD,OAAO,sBAAsB,KAAK,KAAK,KAAK,CAAC,oBAAoB,KAAK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,WAAW;EACX,YAAY;EACL;EACP,gBAAe;EACT;EACE;EACR,UAAU;EACV,kBAAkB,oBAAoB,KAAA;EACtC,QAAO;EACP,OAAO,eAAe,KAAA;EACtB,SAAQ;CACT,CAAA;AAEL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-
|
|
1
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-CuZB9JPM.cjs";
|
|
2
2
|
export { UseUniformFieldArrayProps, useUniformFieldArray };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-
|
|
1
|
+
import { n as useUniformFieldArray, t as UseUniformFieldArrayProps } from "../../useUniformFieldArray-CzUfdsFB.js";
|
|
2
2
|
export { UseUniformFieldArrayProps, useUniformFieldArray };
|
|
@@ -6,10 +6,10 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
11
9
|
label?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
12
11
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
13
13
|
innerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
segment?: import("tailwind-merge").ClassNameValue;
|
|
15
15
|
};
|
|
@@ -18,10 +18,10 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
20
|
base?: import("tailwind-merge").ClassNameValue;
|
|
21
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
22
|
-
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
23
21
|
label?: import("tailwind-merge").ClassNameValue;
|
|
22
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
24
23
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
25
25
|
innerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
26
26
|
segment?: import("tailwind-merge").ClassNameValue;
|
|
27
27
|
};
|
|
@@ -38,10 +38,10 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
40
40
|
base?: import("tailwind-merge").ClassNameValue;
|
|
41
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
42
|
-
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
43
41
|
label?: import("tailwind-merge").ClassNameValue;
|
|
42
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
44
43
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
44
|
+
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
45
45
|
innerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
46
46
|
segment?: import("tailwind-merge").ClassNameValue;
|
|
47
47
|
};
|
|
@@ -110,4 +110,4 @@ declare const Time: ({
|
|
|
110
110
|
}: TimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
111
111
|
//#endregion
|
|
112
112
|
export { TimeProps as n, Time as t };
|
|
113
|
-
//# sourceMappingURL=index-
|
|
113
|
+
//# sourceMappingURL=index-7UT2Ki5e.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-7UT2Ki5e.d.cts","names":[],"sources":["../src/Time/Time.tsx"],"mappings":";;;;cAgBa,YAAA,8BAAY,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsBpB,YAAA,GAAe,OAAO,QAAQ,YAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,YAAA;AAAA,UAEnB,SAAA,SAAkB,YAAA;EAHf;EAKlB,SAAA;EAJG;EAMH,SAAA,GAAY,SAAA;;EAEZ,QAAA;EAR8C;EAU9C,WAAA;EARyB;EAUzB,YAAA;EANY;EAQZ,YAAA;EAZiC;EAcjC,SAAA;EAd6C;EAgB7C,KAAA,GAAQ,SAAA;EAdR;EAgBA,IAAA;EAdY;EAgBZ,MAAA;EAZA;;;;EAiBA,QAAA;EATQ;EAWR,SAAA;AAAA;;;;cAMI,IAAA;EAAQ,SAAA,EAAA,UAAA;EAAA,WAAA;EAAA,YAAA;EAAA,YAAA;EAAA,SAAA;EAAA,IAAA;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAUX,SAAA,iCAAS,GAAA,CAAA,OAAA"}
|
|
@@ -7,18 +7,18 @@ declare const inputVariants: import("tailwind-variants").TVReturnType<{
|
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
9
|
base?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
clearButton?: import("tailwind-merge").ClassNameValue;
|
|
11
10
|
input?: import("tailwind-merge").ClassNameValue;
|
|
12
11
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
clearButton?: import("tailwind-merge").ClassNameValue;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
} | {
|
|
16
16
|
[x: string]: {
|
|
17
17
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
18
18
|
base?: import("tailwind-merge").ClassNameValue;
|
|
19
|
-
clearButton?: import("tailwind-merge").ClassNameValue;
|
|
20
19
|
input?: import("tailwind-merge").ClassNameValue;
|
|
21
20
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
21
|
+
clearButton?: import("tailwind-merge").ClassNameValue;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
} | {}, {
|
|
@@ -30,9 +30,9 @@ declare const inputVariants: import("tailwind-variants").TVReturnType<{
|
|
|
30
30
|
[key: string]: {
|
|
31
31
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
32
32
|
base?: import("tailwind-merge").ClassNameValue;
|
|
33
|
-
clearButton?: import("tailwind-merge").ClassNameValue;
|
|
34
33
|
input?: import("tailwind-merge").ClassNameValue;
|
|
35
34
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
clearButton?: import("tailwind-merge").ClassNameValue;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
} | {}, {
|
|
@@ -98,4 +98,4 @@ declare const Input: ({
|
|
|
98
98
|
}: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
99
99
|
//#endregion
|
|
100
100
|
export { InputProps as n, Input as t };
|
|
101
|
-
//# sourceMappingURL=index-
|
|
101
|
+
//# sourceMappingURL=index-B61zRzeS.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-B61zRzeS.d.cts","names":[],"sources":["../src/Input/Input.tsx"],"mappings":";;;;;cAca,aAAA,8BAAa,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAarB,YAAA,GAAe,OAAO,QAAQ,aAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,aAAA;AAAA,UAEnB,UAAA,SAAmB,YAAA;EAHhB;EAKlB,SAAA;EAJG;EAMH,SAAA,GAAY,SAAA;;EAEZ,SAAA;EAR+C;EAU/C,aAAA;EAR0B;EAU1B,QAAA;EANY;EAQZ,UAAA,GAAa,SAAA;EAEL;EAAR,KAAA,GAAQ,SAAA;EAcI;EAZZ,IAAA;EAhB8C;EAkB9C,OAAA;EAlBkC;EAoBlC,WAAA;EAhBA;EAkBA,IAAA;EAhBA;EAkBA,YAAA,GAAe,SAAA;EAdf;EAgBA,MAAA;EAda;EAgBb,SAAA,GAAY,mBAAA;EAdJ;EAgBR,IAAA;AAAA;;;;cAMI,KAAA;EAAS,SAAA,EAAA,UAAA;EAAA,SAAA;EAAA,aAAA;EAAA,UAAA;EAAA,IAAA;EAAA,OAAA;EAAA,WAAA;EAAA,IAAA;EAAA,YAAA;EAAA,IAAA;EAAA,GAAA;AAAA,GAYZ,UAAA,iCAAU,GAAA,CAAA,OAAA"}
|
|
@@ -6,6 +6,7 @@ declare const datePickerVariants: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
9
10
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
10
11
|
calendar?: import("tailwind-merge").ClassNameValue;
|
|
11
12
|
calendarContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -14,13 +15,13 @@ declare const datePickerVariants: import("tailwind-variants").TVReturnType<{
|
|
|
14
15
|
selectorIcon?: import("tailwind-merge").ClassNameValue;
|
|
15
16
|
timeInput?: import("tailwind-merge").ClassNameValue;
|
|
16
17
|
timeInputLabel?: import("tailwind-merge").ClassNameValue;
|
|
17
|
-
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
21
21
|
[x: string]: {
|
|
22
22
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
23
23
|
base?: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
24
25
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
25
26
|
calendar?: import("tailwind-merge").ClassNameValue;
|
|
26
27
|
calendarContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -29,7 +30,6 @@ declare const datePickerVariants: import("tailwind-variants").TVReturnType<{
|
|
|
29
30
|
selectorIcon?: import("tailwind-merge").ClassNameValue;
|
|
30
31
|
timeInput?: import("tailwind-merge").ClassNameValue;
|
|
31
32
|
timeInputLabel?: import("tailwind-merge").ClassNameValue;
|
|
32
|
-
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
} | {}, {
|
|
@@ -54,6 +54,7 @@ declare const datePickerVariants: import("tailwind-variants").TVReturnType<{
|
|
|
54
54
|
[key: string]: {
|
|
55
55
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
56
56
|
base?: import("tailwind-merge").ClassNameValue;
|
|
57
|
+
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
57
58
|
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
58
59
|
calendar?: import("tailwind-merge").ClassNameValue;
|
|
59
60
|
calendarContent?: import("tailwind-merge").ClassNameValue;
|
|
@@ -62,7 +63,6 @@ declare const datePickerVariants: import("tailwind-variants").TVReturnType<{
|
|
|
62
63
|
selectorIcon?: import("tailwind-merge").ClassNameValue;
|
|
63
64
|
timeInput?: import("tailwind-merge").ClassNameValue;
|
|
64
65
|
timeInputLabel?: import("tailwind-merge").ClassNameValue;
|
|
65
|
-
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
} | {}, {
|
|
@@ -163,4 +163,4 @@ declare const DatePicker: ({
|
|
|
163
163
|
}: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
164
164
|
//#endregion
|
|
165
165
|
export { DatePickerProps as n, DatePicker as t };
|
|
166
|
-
//# sourceMappingURL=index-
|
|
166
|
+
//# sourceMappingURL=index-BDFJDKmz.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BDFJDKmz.d.ts","names":[],"sources":["../src/DatePicker/DatePicker.tsx"],"mappings":";;;;cAiBa,kBAAA,8BAAkB,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgC5B;;;;AAEkD;AAAA;;0BACC;0BAErB;wBAInB;qBAJ2B;;;KAHpC,YAAA,GAAe,OAAO,QAAQ,kBAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,kBAAA;AAAA,UAEnB,eAAA,SAAwB,YAAA;EAI3B;EAFZ,SAAA;EAUA;EARA,SAAA,GAAY,SAAA;EAYZ;EAVA,QAAA;EAYA;;;;;EANA,SAAA;EA4BA;EA1BA,YAAA;EA0BS;EAxBT,KAAA,GAAQ,SAAA;EAuIT;EArIC,QAAA;EA4BkB;EA1BlB,QAAA;EA0BkB;EAxBlB,IAAA;EAwBkB;EAtBlB,MAAA;EAsBkB;;;;;;EAflB,QAAA;EAekB;;;;;;EARlB,QAAA;EAQkB;EANlB,SAAA;AAAA;;;;cAMI,UAAA;EAAc,SAAA,EAAA,UAAA;EAAA,SAAA;EAAA,YAAA;EAAA,QAAA;EAAA,QAAA;EAAA,IAAA;EAAA,QAAA;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAWjB,eAAA,iCAAe,GAAA,CAAA,OAAA"}
|
|
@@ -8,13 +8,13 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
9
|
base?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
startContent?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
13
11
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
14
|
-
|
|
12
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
15
13
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
startContent?: import("tailwind-merge").ClassNameValue;
|
|
16
15
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
17
16
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
@@ -22,13 +22,13 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
22
22
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
23
23
|
base?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
25
|
-
startContent?: import("tailwind-merge").ClassNameValue;
|
|
26
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
27
25
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
28
|
-
|
|
26
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
29
27
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
28
|
+
startContent?: import("tailwind-merge").ClassNameValue;
|
|
30
29
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
31
30
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
31
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
} | {}, {
|
|
@@ -46,13 +46,13 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
46
46
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
47
47
|
base?: import("tailwind-merge").ClassNameValue;
|
|
48
48
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
startContent?: import("tailwind-merge").ClassNameValue;
|
|
50
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
51
49
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
52
|
-
|
|
50
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
53
51
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
52
|
+
startContent?: import("tailwind-merge").ClassNameValue;
|
|
54
53
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
55
54
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
55
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
} | {}, {
|
|
@@ -113,4 +113,4 @@ declare const Switch$1: ({
|
|
|
113
113
|
}: SwitchProps$1) => import("react/jsx-runtime").JSX.Element;
|
|
114
114
|
//#endregion
|
|
115
115
|
export { SwitchProps$1 as n, Switch$1 as t };
|
|
116
|
-
//# sourceMappingURL=index-
|
|
116
|
+
//# sourceMappingURL=index-BSwiB7ug.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BSwiB7ug.d.ts","names":[],"sources":["../src/Switch/Switch.tsx"],"mappings":";;;;;cAaa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,aAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,UAAA,GAAa,SAAA;;EAEb,KAAA,GAAQ,SAAA;;EAER,IAAA;EAEA,IAAA;;EAEA,YAAA,GAAe,SAAA;;EAEf,MAAA;;EAEA,SAAA,GAAY,WAAA;AAAA;;;;cAMR,QAAA;EAAU,SAAA;EAAA,UAAA;EAAA,IAAA;EAAA,IAAA;EAAA,YAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAQb,aAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -8,13 +8,13 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
8
8
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
9
9
|
base?: import("tailwind-merge").ClassNameValue;
|
|
10
10
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
11
|
-
startContent?: import("tailwind-merge").ClassNameValue;
|
|
12
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
13
11
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
14
|
-
|
|
12
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
15
13
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
startContent?: import("tailwind-merge").ClassNameValue;
|
|
16
15
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
17
16
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
@@ -22,13 +22,13 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
22
22
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
23
23
|
base?: import("tailwind-merge").ClassNameValue;
|
|
24
24
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
25
|
-
startContent?: import("tailwind-merge").ClassNameValue;
|
|
26
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
27
25
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
28
|
-
|
|
26
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
29
27
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
28
|
+
startContent?: import("tailwind-merge").ClassNameValue;
|
|
30
29
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
31
30
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
31
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
} | {}, {
|
|
@@ -46,13 +46,13 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
46
46
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
47
47
|
base?: import("tailwind-merge").ClassNameValue;
|
|
48
48
|
endContent?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
startContent?: import("tailwind-merge").ClassNameValue;
|
|
50
|
-
label?: import("tailwind-merge").ClassNameValue;
|
|
51
49
|
errorMessage?: import("tailwind-merge").ClassNameValue;
|
|
52
|
-
|
|
50
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
53
51
|
outerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
52
|
+
startContent?: import("tailwind-merge").ClassNameValue;
|
|
54
53
|
thumb?: import("tailwind-merge").ClassNameValue;
|
|
55
54
|
thumbIcon?: import("tailwind-merge").ClassNameValue;
|
|
55
|
+
wrapper?: import("tailwind-merge").ClassNameValue;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
} | {}, {
|
|
@@ -113,4 +113,4 @@ declare const Switch: ({
|
|
|
113
113
|
}: SwitchProps$1) => import("react/jsx-runtime").JSX.Element;
|
|
114
114
|
//#endregion
|
|
115
115
|
export { SwitchProps$1 as n, Switch as t };
|
|
116
|
-
//# sourceMappingURL=index-
|
|
116
|
+
//# sourceMappingURL=index-CJEqtwN7.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CJEqtwN7.d.cts","names":[],"sources":["../src/Switch/Switch.tsx"],"mappings":";;;;;cAaa,cAAA,8BAAc,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiBtB,YAAA,GAAe,OAAO,QAAQ,cAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,cAAA;AAAA,UAEnB,aAAA,SAAoB,YAAA;;EAEnC,SAAA;;EAEA,SAAA,GAAY,SAAA;;EAEZ,QAAA;;EAEA,UAAA,GAAa,SAAA;;EAEb,KAAA,GAAQ,SAAA;;EAER,IAAA;EAEA,IAAA;;EAEA,YAAA,GAAe,SAAA;;EAEf,MAAA;;EAEA,SAAA,GAAY,WAAA;AAAA;;;;cAMR,MAAA;EAAU,SAAA;EAAA,UAAA;EAAA,IAAA;EAAA,IAAA;EAAA,YAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAQb,aAAA,iCAAW,GAAA,CAAA,OAAA"}
|
|
@@ -6,10 +6,10 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
8
8
|
base?: import("tailwind-merge").ClassNameValue;
|
|
9
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
10
|
-
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
11
9
|
label?: import("tailwind-merge").ClassNameValue;
|
|
10
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
12
11
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
12
|
+
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
13
13
|
innerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
14
14
|
segment?: import("tailwind-merge").ClassNameValue;
|
|
15
15
|
};
|
|
@@ -18,10 +18,10 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
20
20
|
base?: import("tailwind-merge").ClassNameValue;
|
|
21
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
22
|
-
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
23
21
|
label?: import("tailwind-merge").ClassNameValue;
|
|
22
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
24
23
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
24
|
+
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
25
25
|
innerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
26
26
|
segment?: import("tailwind-merge").ClassNameValue;
|
|
27
27
|
};
|
|
@@ -38,10 +38,10 @@ declare const timeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
40
40
|
base?: import("tailwind-merge").ClassNameValue;
|
|
41
|
-
input?: import("tailwind-merge").ClassNameValue;
|
|
42
|
-
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
43
41
|
label?: import("tailwind-merge").ClassNameValue;
|
|
42
|
+
input?: import("tailwind-merge").ClassNameValue;
|
|
44
43
|
helperWrapper?: import("tailwind-merge").ClassNameValue;
|
|
44
|
+
inputWrapper?: import("tailwind-merge").ClassNameValue;
|
|
45
45
|
innerWrapper?: import("tailwind-merge").ClassNameValue;
|
|
46
46
|
segment?: import("tailwind-merge").ClassNameValue;
|
|
47
47
|
};
|
|
@@ -110,4 +110,4 @@ declare const Time: ({
|
|
|
110
110
|
}: TimeProps) => import("react/jsx-runtime").JSX.Element;
|
|
111
111
|
//#endregion
|
|
112
112
|
export { TimeProps as n, Time as t };
|
|
113
|
-
//# sourceMappingURL=index-
|
|
113
|
+
//# sourceMappingURL=index-C_zjtsGM.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C_zjtsGM.d.ts","names":[],"sources":["../src/Time/Time.tsx"],"mappings":";;;;cAgBa,YAAA,8BAAY,YAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsBpB,YAAA,GAAe,OAAO,QAAQ,YAAA;AAAA,KAC9B,SAAA,GAAY,WAAW,QAAQ,YAAA;AAAA,UAEnB,SAAA,SAAkB,YAAA;EAHf;EAKlB,SAAA;EAJG;EAMH,SAAA,GAAY,SAAA;;EAEZ,QAAA;EAR8C;EAU9C,WAAA;EARyB;EAUzB,YAAA;EANY;EAQZ,YAAA;EAZiC;EAcjC,SAAA;EAd6C;EAgB7C,KAAA,GAAQ,SAAA;EAdR;EAgBA,IAAA;EAdY;EAgBZ,MAAA;EAZA;;;;EAiBA,QAAA;EATQ;EAWR,SAAA;AAAA;;;;cAMI,IAAA;EAAQ,SAAA,EAAA,UAAA;EAAA,WAAA;EAAA,YAAA;EAAA,YAAA;EAAA,SAAA;EAAA,IAAA;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,GAUX,SAAA,iCAAS,GAAA,CAAA,OAAA"}
|