@proyecto-viviana/solidaria-components 0.4.1 → 0.5.1
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/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs.js +3 -2
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/Breadcrumbs.jsx +3 -3
- package/dist/Breadcrumbs.jsx.map +1 -1
- package/dist/DateField.d.ts.map +1 -1
- package/dist/DateField2.js.map +1 -1
- package/dist/DateField2.jsx.map +1 -1
- package/dist/DatePicker2.js.map +1 -1
- package/dist/DatePicker2.jsx.map +1 -1
- package/dist/ElementTag.d.ts +29 -0
- package/dist/ElementTag.d.ts.map +1 -0
- package/dist/ElementTag.js +220 -0
- package/dist/ElementTag.js.map +1 -0
- package/dist/ElementTag.jsx +67 -0
- package/dist/ElementTag.jsx.map +1 -0
- package/dist/Form.d.ts.map +1 -1
- package/dist/Form.js +2 -6
- package/dist/Form.js.map +1 -1
- package/dist/Form.jsx +2 -4
- package/dist/Form.jsx.map +1 -1
- package/dist/Landmark.js +4 -3
- package/dist/Landmark.js.map +1 -1
- package/dist/Landmark.jsx +3 -3
- package/dist/Landmark.jsx.map +1 -1
- package/dist/Link.js +3 -2
- package/dist/Link.js.map +1 -1
- package/dist/Link.jsx +3 -3
- package/dist/Link.jsx.map +1 -1
- package/dist/ListBox.d.ts.map +1 -1
- package/dist/ListBox.js.map +1 -1
- package/dist/ListBox.jsx +51 -51
- package/dist/ListBox.jsx.map +1 -1
- package/dist/SearchField.d.ts.map +1 -1
- package/dist/SearchField.js.map +1 -1
- package/dist/SearchField.jsx.map +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +2 -2
- package/dist/Select.js.map +1 -1
- package/dist/Select.jsx +2 -2
- package/dist/Select.jsx.map +1 -1
- package/dist/Separator.js +3 -2
- package/dist/Separator.js.map +1 -1
- package/dist/Separator.jsx +2 -2
- package/dist/Separator.jsx.map +1 -1
- package/dist/SharedElementTransition.d.ts.map +1 -1
- package/dist/SharedElementTransition.js.map +1 -1
- package/dist/SharedElementTransition.jsx.map +1 -1
- package/dist/Text.d.ts.map +1 -1
- package/dist/Text.js +9 -8
- package/dist/Text.js.map +1 -1
- package/dist/Text.jsx +3 -3
- package/dist/Text.jsx.map +1 -1
- package/dist/TimeField.d.ts.map +1 -1
- package/dist/TimeField.js.map +1 -1
- package/dist/TimeField.jsx.map +1 -1
- package/dist/VisuallyHidden.d.ts.map +1 -1
- package/dist/VisuallyHidden.js +3 -11
- package/dist/VisuallyHidden.js.map +1 -1
- package/dist/VisuallyHidden.jsx +3 -4
- package/dist/VisuallyHidden.jsx.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.jsx +2 -1
- package/package.json +5 -3
- package/src/Breadcrumbs.tsx +5 -7
- package/src/DateField.tsx +5 -7
- package/src/DatePicker.tsx +25 -25
- package/src/ElementTag.tsx +116 -0
- package/src/Form.tsx +18 -1
- package/src/Landmark.tsx +4 -4
- package/src/Link.tsx +4 -4
- package/src/ListBox.tsx +123 -124
- package/src/SearchField.tsx +1 -3
- package/src/Select.tsx +13 -2
- package/src/Separator.tsx +3 -3
- package/src/SharedElementTransition.tsx +64 -67
- package/src/Text.tsx +5 -4
- package/src/TimeField.tsx +3 -10
- package/src/VisuallyHidden.tsx +8 -12
- package/src/index.ts +2 -0
package/dist/Text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAA6B,MAAM,UAAU,CAAC;AAE/D,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAmC,MAAM,SAAS,CAAC;AAE7F,MAAM,WAAW,SAAU,SAAQ,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,SAAS;IAC3E,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,kEAA0D,CAAC;AAEnF;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAA6B,MAAM,UAAU,CAAC;AAE/D,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAmC,MAAM,SAAS,CAAC;AAE7F,MAAM,WAAW,SAAU,SAAQ,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,SAAS;IAC3E,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,kEAA0D,CAAC;AAEnF;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAelD"}
|
package/dist/Text.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { filterDOMProps, useContextProps } from "./utils.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ElementTag } from "./ElementTag.js";
|
|
3
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
3
4
|
import { createContext, splitProps } from "solid-js";
|
|
4
5
|
//#region src/Text.tsx
|
|
5
6
|
/**
|
|
@@ -25,16 +26,16 @@ function Text(props) {
|
|
|
25
26
|
"slot",
|
|
26
27
|
"ref"
|
|
27
28
|
]);
|
|
28
|
-
return createComponent(
|
|
29
|
-
|
|
29
|
+
return createComponent(ElementTag, mergeProps({ get ["class"]() {
|
|
30
|
+
return local.class ?? "solidaria-Text";
|
|
31
|
+
} }, () => filterDOMProps(domProps, { global: true }), {
|
|
32
|
+
get tag() {
|
|
30
33
|
return local.elementType ?? "span";
|
|
31
34
|
},
|
|
32
|
-
get
|
|
33
|
-
return local.
|
|
35
|
+
get children() {
|
|
36
|
+
return local.children;
|
|
34
37
|
}
|
|
35
|
-
}
|
|
36
|
-
return local.children;
|
|
37
|
-
} }));
|
|
38
|
+
}));
|
|
38
39
|
}
|
|
39
40
|
//#endregion
|
|
40
41
|
export { Text, TextContext };
|
package/dist/Text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","names":["JSX","createContext","splitProps","
|
|
1
|
+
{"version":3,"file":"Text.js","names":["JSX","createContext","splitProps","ElementTag","ContextValue","SlotProps","useContextProps","filterDOMProps","TextProps","HTMLAttributes","HTMLElement","elementType","TextContext","Text","props","Element","merged","undefined","local","domProps","_$createComponent","_$mergeProps","class","global","tag","children"],"sources":["../src/Text.tsx"],"sourcesContent":["import { type JSX, createContext, splitProps } from \"solid-js\";\nimport { ElementTag } from \"./ElementTag\";\nimport { type ContextValue, type SlotProps, useContextProps, filterDOMProps } from \"./utils\";\n\nexport interface TextProps extends JSX.HTMLAttributes<HTMLElement>, SlotProps {\n /** The element type to render as. @default 'span' */\n elementType?: string;\n}\n\n/**\n * Slotted context for `Text`. A field provides description / errorMessage props\n * (each carrying the `id` its `aria-describedby` references) under named slots,\n * so a `<Text slot=\"description\">` child picks up the right `id` without the field\n * threading it manually. Mirrors react-aria-components' `TextContext` (default\n * `{}` so an unprovided `Text` merges against an empty context and renders as-is).\n */\nexport const TextContext = createContext<ContextValue<TextProps, HTMLElement>>({});\n\n/**\n * A piece of text, typically a label, description, or error message inside a\n * field. Port of react-aria-components' `Text`: it consumes its slot from\n * `TextContext` (via `useContextProps`) so a field can supply the `id` and other\n * props for the matching slot, then renders them onto the element.\n */\nexport function Text(props: TextProps): JSX.Element {\n const [merged] = useContextProps(props, undefined, TextContext);\n // `slot` stays a logical prop (not a DOM attribute) and `ref`/`class`/`children`\n // are rendered explicitly; everything else (notably the slotted `id`) is spread.\n const [local, domProps] = splitProps(merged, [\"elementType\", \"class\", \"children\", \"slot\", \"ref\"]);\n return (\n <ElementTag\n class={local.class ?? \"solidaria-Text\"}\n {...filterDOMProps(domProps, { global: true })}\n // last, so a stray `tag` in the spread can never redirect the element\n tag={local.elementType ?? \"span\"}\n >\n {local.children}\n </ElementTag>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAaY,cAAcX,cAAoD,CAAC,CAAC;;;;;;;AAQjF,SAAgBY,KAAKC,OAA+B;CAClD,MAAM,CAACE,UAAUV,gBAAgBQ,OAAOG,KAAAA,GAAWL,WAAW;CAG9D,MAAM,CAACM,OAAOC,YAAYjB,WAAWc,QAAQ;EAAC;EAAe;EAAS;EAAY;EAAQ;CAAK,CAAC;CAChG,OAAAI,gBACGjB,YAAUkB,WAAA,EAAA,KAAA,WAAA;EAAA,OACFH,MAAMI,SAAS;CAAgB,EAAA,SAClCf,eAAeY,UAAU,EAAEI,QAAQ,KAAK,CAAC,GAAC;EAAA,IAE9CC,MAAG;GAAA,OAAEN,MAAMP,eAAe;EAAM;EAAA,IAAAc,WAAA;GAAA,OAE/BP,MAAMO;EAAQ;CAAA,CAAA,CAAA;AAGrB"}
|
package/dist/Text.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { filterDOMProps, useContextProps } from "./utils.jsx";
|
|
2
|
+
import { ElementTag } from "./ElementTag.jsx";
|
|
2
3
|
import { createContext, splitProps } from "solid-js";
|
|
3
|
-
import { Dynamic } from "solid-js/web";
|
|
4
4
|
//#region src/Text.tsx
|
|
5
5
|
/**
|
|
6
6
|
* Slotted context for `Text`. A field provides description / errorMessage props
|
|
@@ -25,9 +25,9 @@ function Text(props) {
|
|
|
25
25
|
"slot",
|
|
26
26
|
"ref"
|
|
27
27
|
]);
|
|
28
|
-
return <
|
|
28
|
+
return <ElementTag class={local.class ?? "solidaria-Text"} {...filterDOMProps(domProps, { global: true })} tag={local.elementType ?? "span"}>
|
|
29
29
|
{local.children}
|
|
30
|
-
</
|
|
30
|
+
</ElementTag>;
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Text, TextContext };
|
package/dist/Text.jsx.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.jsx","names":[],"sources":["../src/Text.tsx"],"sourcesContent":["import { type JSX, createContext, splitProps } from \"solid-js\";\nimport {
|
|
1
|
+
{"version":3,"file":"Text.jsx","names":[],"sources":["../src/Text.tsx"],"sourcesContent":["import { type JSX, createContext, splitProps } from \"solid-js\";\nimport { ElementTag } from \"./ElementTag\";\nimport { type ContextValue, type SlotProps, useContextProps, filterDOMProps } from \"./utils\";\n\nexport interface TextProps extends JSX.HTMLAttributes<HTMLElement>, SlotProps {\n /** The element type to render as. @default 'span' */\n elementType?: string;\n}\n\n/**\n * Slotted context for `Text`. A field provides description / errorMessage props\n * (each carrying the `id` its `aria-describedby` references) under named slots,\n * so a `<Text slot=\"description\">` child picks up the right `id` without the field\n * threading it manually. Mirrors react-aria-components' `TextContext` (default\n * `{}` so an unprovided `Text` merges against an empty context and renders as-is).\n */\nexport const TextContext = createContext<ContextValue<TextProps, HTMLElement>>({});\n\n/**\n * A piece of text, typically a label, description, or error message inside a\n * field. Port of react-aria-components' `Text`: it consumes its slot from\n * `TextContext` (via `useContextProps`) so a field can supply the `id` and other\n * props for the matching slot, then renders them onto the element.\n */\nexport function Text(props: TextProps): JSX.Element {\n const [merged] = useContextProps(props, undefined, TextContext);\n // `slot` stays a logical prop (not a DOM attribute) and `ref`/`class`/`children`\n // are rendered explicitly; everything else (notably the slotted `id`) is spread.\n const [local, domProps] = splitProps(merged, [\"elementType\", \"class\", \"children\", \"slot\", \"ref\"]);\n return (\n <ElementTag\n class={local.class ?? \"solidaria-Text\"}\n {...filterDOMProps(domProps, { global: true })}\n // last, so a stray `tag` in the spread can never redirect the element\n tag={local.elementType ?? \"span\"}\n >\n {local.children}\n </ElementTag>\n );\n}\n"],"mappings":";;;;;;;;;;;AAgBA,MAAa,cAAc,cAAoD,CAAC,CAAC;;;;;;;AAQjF,SAAgB,KAAK,OAA+B;CAClD,MAAM,CAAC,UAAU,gBAAgB,OAAO,KAAA,GAAW,WAAW;CAG9D,MAAM,CAAC,OAAO,YAAY,WAAW,QAAQ;EAAC;EAAe;EAAS;EAAY;EAAQ;CAAK,CAAC;CAChG,OACE,CAAC,WACC,OAAO,MAAM,SAAS,sBAClB,eAAe,UAAU,EAAE,QAAQ,KAAK,CAAC,GAE7C,KAAK,MAAM,eAAe,QAC3B;OACE,MAAM,SAAS;IAClB,EAAE;AAEN"}
|
package/dist/TimeField.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../src/TimeField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EAOb,MAAM,UAAU,CAAC;AAClB,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,WAAW,IAAI,eAAe,EACnC,KAAK,SAAS,EACf,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"TimeField.d.ts","sourceRoot":"","sources":["../src/TimeField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EAOb,MAAM,UAAU,CAAC;AAClB,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,WAAW,IAAI,eAAe,EACnC,KAAK,SAAS,EACf,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,SAAS,EAKf,MAAM,SAAS,CAAC;AAIj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c,CAAC,SAAS,CAAC,CAE/D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAehG;AAiLD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAOtE;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CAOlF;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,GAAG,CAAC,OAAO,CAOpF;AAED,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/TimeField.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeField.js","names":["JSX","Context","createContext","createMemo","createSignal","splitProps","useContext","Show","createTimeField","mergeProps","AriaTimeFieldProps","createTimeFieldState","access","TimeFieldState","TimeFieldStateProps","TimeSegment","TimeSegmentType","TimeValue","DateFieldContext","DateFieldStateContext","DateFieldContextValue","ClassNameOrFunction","StyleOrFunction","SlotProps","useRenderProps","dataAttr","useIsHydrated","Provider","TextContext","FormContext","FormProps","TimeFieldRenderProps","isDisabled","isReadOnly","isRequired","isInvalid","TimeFieldProps","Omit","T","children","Element","segment","class","style","locale","TimeFieldContextValue","state","aria","labelProps","Record","inputProps","descriptionProps","errorMessageProps","TimeFieldContext","TimeFieldStateContext","withFormValidationBehavior","props","P","formContext","validationBehavior","Proxy","get","target","property","receiver","localValue","Reflect","undefined","has","ownKeys","keys","Set","add","Array","from","getOwnPropertyDescriptor","descriptor","enumerable","configurable","useTimeFieldContextValue","context","Error","useTimeFieldContext","TimeField","isHydrated","_$createComponent","when","fallback","_$getNextElement","_tmpl$","TimeFieldInner","_$mergeProps","__formContext","TimeFieldInnerProps","mergedProps","local","stateProps","rest","fieldRef","setFieldRef","HTMLDivElement","validationInputRef","setValidationInputRef","HTMLInputElement","fieldAria","description","errorMessage","inputRef","renderValues","renderProps","defaultClassName","textSlots","slots","dateFieldContextValue","fieldProps","hiddenInputProps","ref","value","_el$2","_tmpl$2","_$use","_$insert","values","_$effect","_p$","_v$","_v$2","_v$3","_v$4","_v$5","_v$6","e","_$className","t","_$style","a","_$setAttribute","o","i","n","TimeFieldLabelProps","TimeFieldLabel","_el$3","_tmpl$3","_$spread","_$runHydrationEvents","TimeFieldDescriptionProps","TimeFieldDescription","_el$4","TimeFieldErrorMessageProps","TimeFieldErrorMessage","_el$5"],"sources":["../src/TimeField.tsx"],"sourcesContent":["/**\n * TimeField component for solidaria-components\n *\n * Pre-wired headless time field. Faithful port of react-aria-components'\n * TimeField, which does NOT define its own segment primitives — it reuses\n * `DateInput`/`DateSegment` (there is no `TimeInput`/`TimeSegment` upstream).\n * `TimeFieldState` IS a `DateFieldState` (plus `timeValue`), so this component\n * drives the certified DateField segment/group stack directly: it provides the\n * shared `DateFieldContext`/`DateFieldStateContext` that `DateInput`/`DateSegment`\n * read, plus a `TimeFieldContext` for the time-field label/description/error\n * chrome. Unlike DateField, TimeField renders NO root hidden autofill input (RAC\n * TimeField renders none); its native-validation `<input>` is still emitted by\n * the inner DateInput sibling.\n */\n\nimport {\n type JSX,\n type Context,\n createContext,\n createMemo,\n createSignal,\n splitProps,\n useContext,\n Show,\n} from \"solid-js\";\nimport { createTimeField, mergeProps, type AriaTimeFieldProps } from \"@proyecto-viviana/solidaria\";\nimport {\n createTimeFieldState,\n access,\n type TimeFieldState,\n type TimeFieldStateProps,\n type TimeSegment as TimeSegmentType,\n type TimeValue,\n} from \"@proyecto-viviana/solid-stately\";\nimport {\n DateFieldContext,\n DateFieldStateContext,\n type DateFieldContextValue,\n} from \"./DateField\";\nimport {\n type ClassNameOrFunction,\n type StyleOrFunction,\n type SlotProps,\n useRenderProps,\n dataAttr,\n useIsHydrated,\n Provider,\n} from \"./utils\";\nimport { TextContext } from \"./Text\";\nimport { FormContext, type FormProps } from \"./Form\";\n\nexport interface TimeFieldRenderProps {\n /** Whether the field is disabled. */\n isDisabled: boolean;\n /** Whether the field is read-only. */\n isReadOnly: boolean;\n /** Whether the field is required. */\n isRequired: boolean;\n /** Whether the field is invalid. */\n isInvalid: boolean;\n}\n\nexport interface TimeFieldProps<T extends TimeValue = TimeValue>\n extends\n Omit<AriaTimeFieldProps, \"id\" | \"isDisabled\" | \"isReadOnly\" | \"isRequired\">,\n Omit<TimeFieldStateProps<T>, \"locale\">,\n SlotProps {\n /** The children of the component. */\n children?: JSX.Element | ((segment: TimeSegmentType) => JSX.Element);\n /** The CSS className for the element. */\n class?: ClassNameOrFunction<TimeFieldRenderProps>;\n /** The inline style for the element. */\n style?: StyleOrFunction<TimeFieldRenderProps>;\n /** The locale to use for formatting. */\n locale?: string;\n}\n\nexport interface TimeFieldContextValue {\n state: TimeFieldState<TimeValue>;\n aria: {\n labelProps: Record<string, unknown>;\n inputProps: Record<string, unknown>;\n descriptionProps: Record<string, unknown>;\n errorMessageProps: Record<string, unknown>;\n };\n}\n\nexport const TimeFieldContext = createContext<TimeFieldContextValue | null>(null);\nexport const TimeFieldStateContext = createContext<TimeFieldState<TimeValue> | null>(null);\n\nfunction withFormValidationBehavior<P extends object>(props: P, formContext: FormProps | null): P {\n if (!formContext?.validationBehavior) {\n return props;\n }\n\n return new Proxy(props, {\n get(target, property, receiver) {\n const localValue = Reflect.get(target, property, receiver);\n if (property === \"validationBehavior\" && localValue === undefined) {\n return formContext.validationBehavior;\n }\n\n return localValue;\n },\n has(target, property) {\n return (\n Reflect.has(target, property) ||\n (property === \"validationBehavior\" && formContext.validationBehavior !== undefined)\n );\n },\n ownKeys(target) {\n const keys = new Set(Reflect.ownKeys(target));\n if (formContext.validationBehavior !== undefined) {\n keys.add(\"validationBehavior\");\n }\n\n return Array.from(keys);\n },\n getOwnPropertyDescriptor(target, property) {\n const descriptor = Reflect.getOwnPropertyDescriptor(target, property);\n if (descriptor) {\n return descriptor;\n }\n\n if (property === \"validationBehavior\" && formContext.validationBehavior !== undefined) {\n return {\n enumerable: true,\n configurable: true,\n get: () => formContext.validationBehavior,\n };\n }\n\n return undefined;\n },\n });\n}\n\nfunction useTimeFieldContextValue(): TimeFieldContextValue {\n const context = useContext(TimeFieldContext);\n if (!context) {\n throw new Error(\"TimeField components must be used within a TimeField\");\n }\n return context;\n}\n\nexport function useTimeFieldContext(): TimeFieldState<TimeValue> {\n return useTimeFieldContextValue().state;\n}\n\n/**\n * A time field allows users to enter and edit time values using a keyboard.\n *\n * @example\n * ```tsx\n * <TimeField label=\"Time\">\n * <Label>Time</Label>\n * <DateInput>\n * {(segment) => <DateSegment segment={segment} />}\n * </DateInput>\n * </TimeField>\n * ```\n */\nexport function TimeField<T extends TimeValue = TimeValue>(props: TimeFieldProps<T>): JSX.Element {\n // Use hydration-safe pattern for client-only rendering\n const isHydrated = useIsHydrated();\n const formContext = useContext(FormContext);\n\n return (\n <Show\n when={isHydrated()}\n fallback={\n <div class=\"solidaria-TimeField solidaria-TimeField--placeholder\" aria-hidden=\"true\" />\n }\n >\n <TimeFieldInner {...props} __formContext={formContext} />\n </Show>\n );\n}\n\ntype TimeFieldInnerProps<T extends TimeValue = TimeValue> = TimeFieldProps<T> & {\n __formContext?: FormProps | null;\n};\n\n/**\n * Internal TimeField component that renders after client mount.\n */\nfunction TimeFieldInner<T extends TimeValue = TimeValue>(\n props: TimeFieldInnerProps<T>,\n): JSX.Element {\n const formContext = props.__formContext ?? useContext(FormContext);\n const mergedProps = withFormValidationBehavior(props, formContext);\n const [local, stateProps, rest] = splitProps(\n mergedProps,\n [\"children\", \"class\", \"style\", \"slot\", \"__formContext\"],\n [\n \"value\",\n \"defaultValue\",\n \"onChange\",\n \"minValue\",\n \"maxValue\",\n \"isInvalid\",\n \"isDisabled\",\n \"isReadOnly\",\n \"isRequired\",\n \"locale\",\n \"granularity\",\n \"hourCycle\",\n \"hideTimeZone\",\n \"shouldForceLeadingZeros\",\n \"validationState\",\n \"validationBehavior\",\n \"validate\",\n \"description\",\n \"errorMessage\",\n \"placeholderValue\",\n ],\n );\n\n const [fieldRef, setFieldRef] = createSignal<HTMLDivElement | null>(null);\n // Ref to the hidden validation <input> (the DateInput's `<Input>` sibling).\n // Mirrors DateField: create it here, hand it to createTimeField below, and\n // attach it to the same input through the DateFieldContext getter.\n const [validationInputRef, setValidationInputRef] =\n createSignal<HTMLInputElement | null>(null);\n\n const state = createTimeFieldState(stateProps);\n\n const fieldAria = createTimeField(\n () => ({\n ...(rest as Record<string, unknown>),\n // RAC threads these props into both useTimeFieldState and useTimeField;\n // they live in `stateProps` here, so forward them for the field hook's\n // aria-disabled and the native validation <input> (type/required).\n isDisabled: access(stateProps.isDisabled),\n isReadOnly: access(stateProps.isReadOnly),\n isRequired: access(stateProps.isRequired),\n // Standalone default flips the hidden input to type=\"text\" so an empty\n // required value blocks HTML form submission (mirrors DateField).\n validationBehavior: stateProps.validationBehavior ?? \"native\",\n description: stateProps.description,\n errorMessage: stateProps.errorMessage,\n inputRef: () => validationInputRef() ?? undefined,\n }),\n state as unknown as TimeFieldState<TimeValue>,\n fieldRef,\n );\n\n const renderValues = createMemo<TimeFieldRenderProps>(() => ({\n isDisabled: state.isDisabled(),\n isReadOnly: state.isReadOnly(),\n isRequired: state.isRequired(),\n isInvalid: state.isInvalid(),\n }));\n\n const renderProps = useRenderProps(\n {\n class: local.class,\n style: local.style,\n defaultClassName: \"solidaria-TimeField\",\n },\n renderValues,\n );\n\n const textSlots = {\n slots: {\n get description() {\n return fieldAria.descriptionProps;\n },\n get errorMessage() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n // The shared context read by the reused DateInput/DateSegment. Read through\n // getters so consumers see the LIVE memo values (createDescription appends the\n // value-description id via a deferred effect; a frozen snapshot would miss it).\n const dateFieldContextValue: DateFieldContextValue = {\n get state() {\n return state as unknown as DateFieldContextValue[\"state\"];\n },\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n // The segment group props (role=\"group\", aria-labelledby, unicode-bidi\n // isolate, arrow-key nav, focus-within handlers) are routed to the\n // DateInput element; the outer wrapper stays roleless.\n get inputProps() {\n return fieldAria.fieldProps;\n },\n // The native validation <input> props (type/hidden/required/onChange under\n // native validation), rendered as the DateInput's sibling. Thread the\n // validation-input ref so createTimeField's form-reset/validation wiring\n // resolves to the mounted element.\n get hiddenInputProps() {\n return mergeProps(fieldAria.inputProps, { ref: setValidationInputRef });\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n return (\n <TimeFieldStateContext.Provider value={state as unknown as TimeFieldState<TimeValue>}>\n <DateFieldStateContext.Provider\n value={state as unknown as DateFieldContextValue[\"state\"]}\n >\n <DateFieldContext.Provider value={dateFieldContextValue}>\n <TimeFieldContext.Provider\n value={{\n state: state as unknown as TimeFieldState<TimeValue>,\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n get inputProps() {\n return fieldAria.fieldProps;\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n }}\n >\n <div\n ref={setFieldRef}\n class={renderProps.class()}\n style={renderProps.style()}\n data-disabled={dataAttr(state.isDisabled())}\n data-readonly={dataAttr(state.isReadOnly())}\n data-required={dataAttr(state.isRequired())}\n data-invalid={dataAttr(state.isInvalid())}\n >\n <Provider values={[[TextContext, textSlots]] as Array<[Context<unknown>, unknown]>}>\n {local.children as JSX.Element}\n </Provider>\n </div>\n {/*\n Unlike DateField, TimeField renders NO root hidden autofill input —\n RAC TimeField renders none (react-aria-components TimeField.mjs). The\n native-validation <input> is emitted by the inner DateInput sibling.\n */}\n </TimeFieldContext.Provider>\n </DateFieldContext.Provider>\n </DateFieldStateContext.Provider>\n </TimeFieldStateContext.Provider>\n );\n}\n\nexport interface TimeFieldLabelProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldLabel(props: TimeFieldLabelProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.labelProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldDescriptionProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldDescription(props: TimeFieldDescriptionProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.descriptionProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldErrorMessageProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldErrorMessage(props: TimeFieldErrorMessageProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.errorMessageProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport type { TimeFieldState, TimeSegmentType, TimeValue };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuFA,MAAaqD,mBAAmBnD,cAA4C,IAAI;AAChF,MAAaoD,wBAAwBpD,cAAgD,IAAI;AAEzF,SAASqD,2BAA6CC,OAAUE,aAAkC;CAChG,IAAI,CAACA,aAAaC,oBAChB,OAAOH;CAGT,OAAO,IAAII,MAAMJ,OAAO;EACtBK,IAAIC,QAAQC,UAAUC,UAAU;GAC9B,MAAMC,aAAaC,QAAQL,IAAIC,QAAQC,UAAUC,QAAQ;GACzD,IAAID,aAAa,wBAAwBE,eAAeE,KAAAA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;EAAK,EAAA,CAAA,GAAA,OAAA,IAAA;EAAA+E,OAAA2B,aAChD5F,MAAMjB,QAAQ;EAAA0G,mBAAA;EAAA,OAAAG;CAAA,EAAA,CAAA;AAGrB;AAOA,SAAgBE,sBAAsB9F,OAAgD;CACpF,MAAM,EAAET,SAASgC,yBAAyB;CAC1C,cAAA;EAAA,IAAAwE,QAAA/D,eAAAuD,OAAA;EAAAC,OAAAO,OAAA5D,iBACY5C,KAAKK,mBAAiB,EAAA,KAAA,WAAA;GAAA,OAASI,MAAMd;EAAK,EAAA,CAAA,GAAA,OAAA,IAAA;EAAA+E,OAAA8B,aACjD/F,MAAMjB,QAAQ;EAAA0G,mBAAA;EAAA,OAAAM;CAAA,EAAA,CAAA;AAGrB"}
|
|
1
|
+
{"version":3,"file":"TimeField.js","names":["JSX","Context","createContext","createMemo","createSignal","splitProps","useContext","Show","createTimeField","mergeProps","AriaTimeFieldProps","createTimeFieldState","access","TimeFieldState","TimeFieldStateProps","TimeSegment","TimeSegmentType","TimeValue","DateFieldContext","DateFieldStateContext","DateFieldContextValue","ClassNameOrFunction","StyleOrFunction","SlotProps","useRenderProps","dataAttr","useIsHydrated","Provider","TextContext","FormContext","FormProps","TimeFieldRenderProps","isDisabled","isReadOnly","isRequired","isInvalid","TimeFieldProps","Omit","T","children","Element","segment","class","style","locale","TimeFieldContextValue","state","aria","labelProps","Record","inputProps","descriptionProps","errorMessageProps","TimeFieldContext","TimeFieldStateContext","withFormValidationBehavior","props","P","formContext","validationBehavior","Proxy","get","target","property","receiver","localValue","Reflect","undefined","has","ownKeys","keys","Set","add","Array","from","getOwnPropertyDescriptor","descriptor","enumerable","configurable","useTimeFieldContextValue","context","Error","useTimeFieldContext","TimeField","isHydrated","_$createComponent","when","fallback","_$getNextElement","_tmpl$","TimeFieldInner","_$mergeProps","__formContext","TimeFieldInnerProps","mergedProps","local","stateProps","rest","fieldRef","setFieldRef","HTMLDivElement","validationInputRef","setValidationInputRef","HTMLInputElement","fieldAria","description","errorMessage","inputRef","renderValues","renderProps","defaultClassName","textSlots","slots","dateFieldContextValue","fieldProps","hiddenInputProps","ref","value","_el$2","_tmpl$2","_$use","_$insert","values","_$effect","_p$","_v$","_v$2","_v$3","_v$4","_v$5","_v$6","e","_$className","t","_$style","a","_$setAttribute","o","i","n","TimeFieldLabelProps","TimeFieldLabel","_el$3","_tmpl$3","_$spread","_$runHydrationEvents","TimeFieldDescriptionProps","TimeFieldDescription","_el$4","TimeFieldErrorMessageProps","TimeFieldErrorMessage","_el$5"],"sources":["../src/TimeField.tsx"],"sourcesContent":["/**\n * TimeField component for solidaria-components\n *\n * Pre-wired headless time field. Faithful port of react-aria-components'\n * TimeField, which does NOT define its own segment primitives — it reuses\n * `DateInput`/`DateSegment` (there is no `TimeInput`/`TimeSegment` upstream).\n * `TimeFieldState` IS a `DateFieldState` (plus `timeValue`), so this component\n * drives the certified DateField segment/group stack directly: it provides the\n * shared `DateFieldContext`/`DateFieldStateContext` that `DateInput`/`DateSegment`\n * read, plus a `TimeFieldContext` for the time-field label/description/error\n * chrome. Unlike DateField, TimeField renders NO root hidden autofill input (RAC\n * TimeField renders none); its native-validation `<input>` is still emitted by\n * the inner DateInput sibling.\n */\n\nimport {\n type JSX,\n type Context,\n createContext,\n createMemo,\n createSignal,\n splitProps,\n useContext,\n Show,\n} from \"solid-js\";\nimport { createTimeField, mergeProps, type AriaTimeFieldProps } from \"@proyecto-viviana/solidaria\";\nimport {\n createTimeFieldState,\n access,\n type TimeFieldState,\n type TimeFieldStateProps,\n type TimeSegment as TimeSegmentType,\n type TimeValue,\n} from \"@proyecto-viviana/solid-stately\";\nimport { DateFieldContext, DateFieldStateContext, type DateFieldContextValue } from \"./DateField\";\nimport {\n type ClassNameOrFunction,\n type StyleOrFunction,\n type SlotProps,\n useRenderProps,\n dataAttr,\n useIsHydrated,\n Provider,\n} from \"./utils\";\nimport { TextContext } from \"./Text\";\nimport { FormContext, type FormProps } from \"./Form\";\n\nexport interface TimeFieldRenderProps {\n /** Whether the field is disabled. */\n isDisabled: boolean;\n /** Whether the field is read-only. */\n isReadOnly: boolean;\n /** Whether the field is required. */\n isRequired: boolean;\n /** Whether the field is invalid. */\n isInvalid: boolean;\n}\n\nexport interface TimeFieldProps<T extends TimeValue = TimeValue>\n extends\n Omit<AriaTimeFieldProps, \"id\" | \"isDisabled\" | \"isReadOnly\" | \"isRequired\">,\n Omit<TimeFieldStateProps<T>, \"locale\">,\n SlotProps {\n /** The children of the component. */\n children?: JSX.Element | ((segment: TimeSegmentType) => JSX.Element);\n /** The CSS className for the element. */\n class?: ClassNameOrFunction<TimeFieldRenderProps>;\n /** The inline style for the element. */\n style?: StyleOrFunction<TimeFieldRenderProps>;\n /** The locale to use for formatting. */\n locale?: string;\n}\n\nexport interface TimeFieldContextValue {\n state: TimeFieldState<TimeValue>;\n aria: {\n labelProps: Record<string, unknown>;\n inputProps: Record<string, unknown>;\n descriptionProps: Record<string, unknown>;\n errorMessageProps: Record<string, unknown>;\n };\n}\n\nexport const TimeFieldContext = createContext<TimeFieldContextValue | null>(null);\nexport const TimeFieldStateContext = createContext<TimeFieldState<TimeValue> | null>(null);\n\nfunction withFormValidationBehavior<P extends object>(props: P, formContext: FormProps | null): P {\n if (!formContext?.validationBehavior) {\n return props;\n }\n\n return new Proxy(props, {\n get(target, property, receiver) {\n const localValue = Reflect.get(target, property, receiver);\n if (property === \"validationBehavior\" && localValue === undefined) {\n return formContext.validationBehavior;\n }\n\n return localValue;\n },\n has(target, property) {\n return (\n Reflect.has(target, property) ||\n (property === \"validationBehavior\" && formContext.validationBehavior !== undefined)\n );\n },\n ownKeys(target) {\n const keys = new Set(Reflect.ownKeys(target));\n if (formContext.validationBehavior !== undefined) {\n keys.add(\"validationBehavior\");\n }\n\n return Array.from(keys);\n },\n getOwnPropertyDescriptor(target, property) {\n const descriptor = Reflect.getOwnPropertyDescriptor(target, property);\n if (descriptor) {\n return descriptor;\n }\n\n if (property === \"validationBehavior\" && formContext.validationBehavior !== undefined) {\n return {\n enumerable: true,\n configurable: true,\n get: () => formContext.validationBehavior,\n };\n }\n\n return undefined;\n },\n });\n}\n\nfunction useTimeFieldContextValue(): TimeFieldContextValue {\n const context = useContext(TimeFieldContext);\n if (!context) {\n throw new Error(\"TimeField components must be used within a TimeField\");\n }\n return context;\n}\n\nexport function useTimeFieldContext(): TimeFieldState<TimeValue> {\n return useTimeFieldContextValue().state;\n}\n\n/**\n * A time field allows users to enter and edit time values using a keyboard.\n *\n * @example\n * ```tsx\n * <TimeField label=\"Time\">\n * <Label>Time</Label>\n * <DateInput>\n * {(segment) => <DateSegment segment={segment} />}\n * </DateInput>\n * </TimeField>\n * ```\n */\nexport function TimeField<T extends TimeValue = TimeValue>(props: TimeFieldProps<T>): JSX.Element {\n // Use hydration-safe pattern for client-only rendering\n const isHydrated = useIsHydrated();\n const formContext = useContext(FormContext);\n\n return (\n <Show\n when={isHydrated()}\n fallback={\n <div class=\"solidaria-TimeField solidaria-TimeField--placeholder\" aria-hidden=\"true\" />\n }\n >\n <TimeFieldInner {...props} __formContext={formContext} />\n </Show>\n );\n}\n\ntype TimeFieldInnerProps<T extends TimeValue = TimeValue> = TimeFieldProps<T> & {\n __formContext?: FormProps | null;\n};\n\n/**\n * Internal TimeField component that renders after client mount.\n */\nfunction TimeFieldInner<T extends TimeValue = TimeValue>(\n props: TimeFieldInnerProps<T>,\n): JSX.Element {\n const formContext = props.__formContext ?? useContext(FormContext);\n const mergedProps = withFormValidationBehavior(props, formContext);\n const [local, stateProps, rest] = splitProps(\n mergedProps,\n [\"children\", \"class\", \"style\", \"slot\", \"__formContext\"],\n [\n \"value\",\n \"defaultValue\",\n \"onChange\",\n \"minValue\",\n \"maxValue\",\n \"isInvalid\",\n \"isDisabled\",\n \"isReadOnly\",\n \"isRequired\",\n \"locale\",\n \"granularity\",\n \"hourCycle\",\n \"hideTimeZone\",\n \"shouldForceLeadingZeros\",\n \"validationState\",\n \"validationBehavior\",\n \"validate\",\n \"description\",\n \"errorMessage\",\n \"placeholderValue\",\n ],\n );\n\n const [fieldRef, setFieldRef] = createSignal<HTMLDivElement | null>(null);\n // Ref to the hidden validation <input> (the DateInput's `<Input>` sibling).\n // Mirrors DateField: create it here, hand it to createTimeField below, and\n // attach it to the same input through the DateFieldContext getter.\n const [validationInputRef, setValidationInputRef] = createSignal<HTMLInputElement | null>(null);\n\n const state = createTimeFieldState(stateProps);\n\n const fieldAria = createTimeField(\n () => ({\n ...(rest as Record<string, unknown>),\n // RAC threads these props into both useTimeFieldState and useTimeField;\n // they live in `stateProps` here, so forward them for the field hook's\n // aria-disabled and the native validation <input> (type/required).\n isDisabled: access(stateProps.isDisabled),\n isReadOnly: access(stateProps.isReadOnly),\n isRequired: access(stateProps.isRequired),\n // Standalone default flips the hidden input to type=\"text\" so an empty\n // required value blocks HTML form submission (mirrors DateField).\n validationBehavior: stateProps.validationBehavior ?? \"native\",\n description: stateProps.description,\n errorMessage: stateProps.errorMessage,\n inputRef: () => validationInputRef() ?? undefined,\n }),\n state as unknown as TimeFieldState<TimeValue>,\n fieldRef,\n );\n\n const renderValues = createMemo<TimeFieldRenderProps>(() => ({\n isDisabled: state.isDisabled(),\n isReadOnly: state.isReadOnly(),\n isRequired: state.isRequired(),\n isInvalid: state.isInvalid(),\n }));\n\n const renderProps = useRenderProps(\n {\n class: local.class,\n style: local.style,\n defaultClassName: \"solidaria-TimeField\",\n },\n renderValues,\n );\n\n const textSlots = {\n slots: {\n get description() {\n return fieldAria.descriptionProps;\n },\n get errorMessage() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n // The shared context read by the reused DateInput/DateSegment. Read through\n // getters so consumers see the LIVE memo values (createDescription appends the\n // value-description id via a deferred effect; a frozen snapshot would miss it).\n const dateFieldContextValue: DateFieldContextValue = {\n get state() {\n return state as unknown as DateFieldContextValue[\"state\"];\n },\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n // The segment group props (role=\"group\", aria-labelledby, unicode-bidi\n // isolate, arrow-key nav, focus-within handlers) are routed to the\n // DateInput element; the outer wrapper stays roleless.\n get inputProps() {\n return fieldAria.fieldProps;\n },\n // The native validation <input> props (type/hidden/required/onChange under\n // native validation), rendered as the DateInput's sibling. Thread the\n // validation-input ref so createTimeField's form-reset/validation wiring\n // resolves to the mounted element.\n get hiddenInputProps() {\n return mergeProps(fieldAria.inputProps, { ref: setValidationInputRef });\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n return (\n <TimeFieldStateContext.Provider value={state as unknown as TimeFieldState<TimeValue>}>\n <DateFieldStateContext.Provider value={state as unknown as DateFieldContextValue[\"state\"]}>\n <DateFieldContext.Provider value={dateFieldContextValue}>\n <TimeFieldContext.Provider\n value={{\n state: state as unknown as TimeFieldState<TimeValue>,\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n get inputProps() {\n return fieldAria.fieldProps;\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n }}\n >\n <div\n ref={setFieldRef}\n class={renderProps.class()}\n style={renderProps.style()}\n data-disabled={dataAttr(state.isDisabled())}\n data-readonly={dataAttr(state.isReadOnly())}\n data-required={dataAttr(state.isRequired())}\n data-invalid={dataAttr(state.isInvalid())}\n >\n <Provider values={[[TextContext, textSlots]] as Array<[Context<unknown>, unknown]>}>\n {local.children as JSX.Element}\n </Provider>\n </div>\n {/*\n Unlike DateField, TimeField renders NO root hidden autofill input —\n RAC TimeField renders none (react-aria-components TimeField.mjs). The\n native-validation <input> is emitted by the inner DateInput sibling.\n */}\n </TimeFieldContext.Provider>\n </DateFieldContext.Provider>\n </DateFieldStateContext.Provider>\n </TimeFieldStateContext.Provider>\n );\n}\n\nexport interface TimeFieldLabelProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldLabel(props: TimeFieldLabelProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.labelProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldDescriptionProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldDescription(props: TimeFieldDescriptionProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.descriptionProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldErrorMessageProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldErrorMessage(props: TimeFieldErrorMessageProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.errorMessageProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport type { TimeFieldState, TimeSegmentType, TimeValue };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAaqD,mBAAmBnD,cAA4C,IAAI;AAChF,MAAaoD,wBAAwBpD,cAAgD,IAAI;AAEzF,SAASqD,2BAA6CC,OAAUE,aAAkC;CAChG,IAAI,CAACA,aAAaC,oBAChB,OAAOH;CAGT,OAAO,IAAII,MAAMJ,OAAO;EACtBK,IAAIC,QAAQC,UAAUC,UAAU;GAC9B,MAAMC,aAAaC,QAAQL,IAAIC,QAAQC,UAAUC,QAAQ;GACzD,IAAID,aAAa,wBAAwBE,eAAeE,KAAAA,GACtD,OAAOT,YAAYC;GAGrB,OAAOM;EACT;EACAG,IAAIN,QAAQC,UAAU;GACpB,OACEG,QAAQE,IAAIN,QAAQC,QAAQ,KAC3BA,aAAa,wBAAwBL,YAAYC,uBAAuBQ,KAAAA;EAE7E;EACAE,QAAQP,QAAQ;GACd,MAAMQ,OAAO,IAAIC,IAAIL,QAAQG,QAAQP,MAAM,CAAC;GAC5C,IAAIJ,YAAYC,uBAAuBQ,KAAAA,GACrCG,KAAKE,IAAI,oBAAoB;GAG/B,OAAOC,MAAMC,KAAKJ,IAAI;EACxB;EACAK,yBAAyBb,QAAQC,UAAU;GACzC,MAAMa,aAAaV,QAAQS,yBAAyBb,QA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EAAA,OAAAM;CAAA,EAAA,CAAA;AAGrB"}
|
package/dist/TimeField.jsx.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeField.jsx","names":["mergeProps"],"sources":["../src/TimeField.tsx"],"sourcesContent":["/**\n * TimeField component for solidaria-components\n *\n * Pre-wired headless time field. Faithful port of react-aria-components'\n * TimeField, which does NOT define its own segment primitives — it reuses\n * `DateInput`/`DateSegment` (there is no `TimeInput`/`TimeSegment` upstream).\n * `TimeFieldState` IS a `DateFieldState` (plus `timeValue`), so this component\n * drives the certified DateField segment/group stack directly: it provides the\n * shared `DateFieldContext`/`DateFieldStateContext` that `DateInput`/`DateSegment`\n * read, plus a `TimeFieldContext` for the time-field label/description/error\n * chrome. Unlike DateField, TimeField renders NO root hidden autofill input (RAC\n * TimeField renders none); its native-validation `<input>` is still emitted by\n * the inner DateInput sibling.\n */\n\nimport {\n type JSX,\n type Context,\n createContext,\n createMemo,\n createSignal,\n splitProps,\n useContext,\n Show,\n} from \"solid-js\";\nimport { createTimeField, mergeProps, type AriaTimeFieldProps } from \"@proyecto-viviana/solidaria\";\nimport {\n createTimeFieldState,\n access,\n type TimeFieldState,\n type TimeFieldStateProps,\n type TimeSegment as TimeSegmentType,\n type TimeValue,\n} from \"@proyecto-viviana/solid-stately\";\nimport {\n DateFieldContext,\n DateFieldStateContext,\n type DateFieldContextValue,\n} from \"./DateField\";\nimport {\n type ClassNameOrFunction,\n type StyleOrFunction,\n type SlotProps,\n useRenderProps,\n dataAttr,\n useIsHydrated,\n Provider,\n} from \"./utils\";\nimport { TextContext } from \"./Text\";\nimport { FormContext, type FormProps } from \"./Form\";\n\nexport interface TimeFieldRenderProps {\n /** Whether the field is disabled. */\n isDisabled: boolean;\n /** Whether the field is read-only. */\n isReadOnly: boolean;\n /** Whether the field is required. */\n isRequired: boolean;\n /** Whether the field is invalid. */\n isInvalid: boolean;\n}\n\nexport interface TimeFieldProps<T extends TimeValue = TimeValue>\n extends\n Omit<AriaTimeFieldProps, \"id\" | \"isDisabled\" | \"isReadOnly\" | \"isRequired\">,\n Omit<TimeFieldStateProps<T>, \"locale\">,\n SlotProps {\n /** The children of the component. */\n children?: JSX.Element | ((segment: TimeSegmentType) => JSX.Element);\n /** The CSS className for the element. */\n class?: ClassNameOrFunction<TimeFieldRenderProps>;\n /** The inline style for the element. */\n style?: StyleOrFunction<TimeFieldRenderProps>;\n /** The locale to use for formatting. */\n locale?: string;\n}\n\nexport interface TimeFieldContextValue {\n state: TimeFieldState<TimeValue>;\n aria: {\n labelProps: Record<string, unknown>;\n inputProps: Record<string, unknown>;\n descriptionProps: Record<string, unknown>;\n errorMessageProps: Record<string, unknown>;\n };\n}\n\nexport const TimeFieldContext = createContext<TimeFieldContextValue | null>(null);\nexport const TimeFieldStateContext = createContext<TimeFieldState<TimeValue> | null>(null);\n\nfunction withFormValidationBehavior<P extends object>(props: P, formContext: FormProps | null): P {\n if (!formContext?.validationBehavior) {\n return props;\n }\n\n return new Proxy(props, {\n get(target, property, receiver) {\n const localValue = Reflect.get(target, property, receiver);\n if (property === \"validationBehavior\" && localValue === undefined) {\n return formContext.validationBehavior;\n }\n\n return localValue;\n },\n has(target, property) {\n return (\n Reflect.has(target, property) ||\n (property === \"validationBehavior\" && formContext.validationBehavior !== undefined)\n );\n },\n ownKeys(target) {\n const keys = new Set(Reflect.ownKeys(target));\n if (formContext.validationBehavior !== undefined) {\n keys.add(\"validationBehavior\");\n }\n\n return Array.from(keys);\n },\n getOwnPropertyDescriptor(target, property) {\n const descriptor = Reflect.getOwnPropertyDescriptor(target, property);\n if (descriptor) {\n return descriptor;\n }\n\n if (property === \"validationBehavior\" && formContext.validationBehavior !== undefined) {\n return {\n enumerable: true,\n configurable: true,\n get: () => formContext.validationBehavior,\n };\n }\n\n return undefined;\n },\n });\n}\n\nfunction useTimeFieldContextValue(): TimeFieldContextValue {\n const context = useContext(TimeFieldContext);\n if (!context) {\n throw new Error(\"TimeField components must be used within a TimeField\");\n }\n return context;\n}\n\nexport function useTimeFieldContext(): TimeFieldState<TimeValue> {\n return useTimeFieldContextValue().state;\n}\n\n/**\n * A time field allows users to enter and edit time values using a keyboard.\n *\n * @example\n * ```tsx\n * <TimeField label=\"Time\">\n * <Label>Time</Label>\n * <DateInput>\n * {(segment) => <DateSegment segment={segment} />}\n * </DateInput>\n * </TimeField>\n * ```\n */\nexport function TimeField<T extends TimeValue = TimeValue>(props: TimeFieldProps<T>): JSX.Element {\n // Use hydration-safe pattern for client-only rendering\n const isHydrated = useIsHydrated();\n const formContext = useContext(FormContext);\n\n return (\n <Show\n when={isHydrated()}\n fallback={\n <div class=\"solidaria-TimeField solidaria-TimeField--placeholder\" aria-hidden=\"true\" />\n }\n >\n <TimeFieldInner {...props} __formContext={formContext} />\n </Show>\n );\n}\n\ntype TimeFieldInnerProps<T extends TimeValue = TimeValue> = TimeFieldProps<T> & {\n __formContext?: FormProps | null;\n};\n\n/**\n * Internal TimeField component that renders after client mount.\n */\nfunction TimeFieldInner<T extends TimeValue = TimeValue>(\n props: TimeFieldInnerProps<T>,\n): JSX.Element {\n const formContext = props.__formContext ?? useContext(FormContext);\n const mergedProps = withFormValidationBehavior(props, formContext);\n const [local, stateProps, rest] = splitProps(\n mergedProps,\n [\"children\", \"class\", \"style\", \"slot\", \"__formContext\"],\n [\n \"value\",\n \"defaultValue\",\n \"onChange\",\n \"minValue\",\n \"maxValue\",\n \"isInvalid\",\n \"isDisabled\",\n \"isReadOnly\",\n \"isRequired\",\n \"locale\",\n \"granularity\",\n \"hourCycle\",\n \"hideTimeZone\",\n \"shouldForceLeadingZeros\",\n \"validationState\",\n \"validationBehavior\",\n \"validate\",\n \"description\",\n \"errorMessage\",\n \"placeholderValue\",\n ],\n );\n\n const [fieldRef, setFieldRef] = createSignal<HTMLDivElement | null>(null);\n // Ref to the hidden validation <input> (the DateInput's `<Input>` sibling).\n // Mirrors DateField: create it here, hand it to createTimeField below, and\n // attach it to the same input through the DateFieldContext getter.\n const [validationInputRef, setValidationInputRef] =\n createSignal<HTMLInputElement | null>(null);\n\n const state = createTimeFieldState(stateProps);\n\n const fieldAria = createTimeField(\n () => ({\n ...(rest as Record<string, unknown>),\n // RAC threads these props into both useTimeFieldState and useTimeField;\n // they live in `stateProps` here, so forward them for the field hook's\n // aria-disabled and the native validation <input> (type/required).\n isDisabled: access(stateProps.isDisabled),\n isReadOnly: access(stateProps.isReadOnly),\n isRequired: access(stateProps.isRequired),\n // Standalone default flips the hidden input to type=\"text\" so an empty\n // required value blocks HTML form submission (mirrors DateField).\n validationBehavior: stateProps.validationBehavior ?? \"native\",\n description: stateProps.description,\n errorMessage: stateProps.errorMessage,\n inputRef: () => validationInputRef() ?? undefined,\n }),\n state as unknown as TimeFieldState<TimeValue>,\n fieldRef,\n );\n\n const renderValues = createMemo<TimeFieldRenderProps>(() => ({\n isDisabled: state.isDisabled(),\n isReadOnly: state.isReadOnly(),\n isRequired: state.isRequired(),\n isInvalid: state.isInvalid(),\n }));\n\n const renderProps = useRenderProps(\n {\n class: local.class,\n style: local.style,\n defaultClassName: \"solidaria-TimeField\",\n },\n renderValues,\n );\n\n const textSlots = {\n slots: {\n get description() {\n return fieldAria.descriptionProps;\n },\n get errorMessage() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n // The shared context read by the reused DateInput/DateSegment. Read through\n // getters so consumers see the LIVE memo values (createDescription appends the\n // value-description id via a deferred effect; a frozen snapshot would miss it).\n const dateFieldContextValue: DateFieldContextValue = {\n get state() {\n return state as unknown as DateFieldContextValue[\"state\"];\n },\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n // The segment group props (role=\"group\", aria-labelledby, unicode-bidi\n // isolate, arrow-key nav, focus-within handlers) are routed to the\n // DateInput element; the outer wrapper stays roleless.\n get inputProps() {\n return fieldAria.fieldProps;\n },\n // The native validation <input> props (type/hidden/required/onChange under\n // native validation), rendered as the DateInput's sibling. Thread the\n // validation-input ref so createTimeField's form-reset/validation wiring\n // resolves to the mounted element.\n get hiddenInputProps() {\n return mergeProps(fieldAria.inputProps, { ref: setValidationInputRef });\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n return (\n <TimeFieldStateContext.Provider value={state as unknown as TimeFieldState<TimeValue>}>\n <DateFieldStateContext.Provider\n value={state as unknown as DateFieldContextValue[\"state\"]}\n >\n <DateFieldContext.Provider value={dateFieldContextValue}>\n <TimeFieldContext.Provider\n value={{\n state: state as unknown as TimeFieldState<TimeValue>,\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n get inputProps() {\n return fieldAria.fieldProps;\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n }}\n >\n <div\n ref={setFieldRef}\n class={renderProps.class()}\n style={renderProps.style()}\n data-disabled={dataAttr(state.isDisabled())}\n data-readonly={dataAttr(state.isReadOnly())}\n data-required={dataAttr(state.isRequired())}\n data-invalid={dataAttr(state.isInvalid())}\n >\n <Provider values={[[TextContext, textSlots]] as Array<[Context<unknown>, unknown]>}>\n {local.children as JSX.Element}\n </Provider>\n </div>\n {/*\n Unlike DateField, TimeField renders NO root hidden autofill input —\n RAC TimeField renders none (react-aria-components TimeField.mjs). The\n native-validation <input> is emitted by the inner DateInput sibling.\n */}\n </TimeFieldContext.Provider>\n </DateFieldContext.Provider>\n </DateFieldStateContext.Provider>\n </TimeFieldStateContext.Provider>\n );\n}\n\nexport interface TimeFieldLabelProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldLabel(props: TimeFieldLabelProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.labelProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldDescriptionProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldDescription(props: TimeFieldDescriptionProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.descriptionProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldErrorMessageProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldErrorMessage(props: TimeFieldErrorMessageProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.errorMessageProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport type { TimeFieldState, TimeSegmentType, TimeValue };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuFA,MAAa,mBAAmB,cAA4C,IAAI;AAChF,MAAa,wBAAwB,cAAgD,IAAI;AAEzF,SAAS,2BAA6C,OAAU,aAAkC;CAChG,IAAI,CAAC,aAAa,oBAChB,OAAO;CAGT,OAAO,IAAI,MAAM,OAAO;EACtB,IAAI,QAAQ,UAAU,UAAU;GAC9B,MAAM,aAAa,QAAQ,IAAI,QAAQ,UAAU,QAAQ;GACzD,IAAI,aAAa,wBAAwB,eAAe,KAAA,GACtD,OAAO,YAAY;GAGrB,OAAO;EACT;EACA,IAAI,QAAQ,UAAU;GACpB,OACE,QAAQ,IAAI,QAAQ,QAAQ,KAC3B,aAAa,wBAAwB,YAAY,uBAAuB,KAAA;EAE7E;EACA,QAAQ,QAAQ;GACd,MAAM,OAAO,IAAI,IAAI,QAAQ,QAAQ,MAAM,CAAC;GAC5C,IAAI,YAAY,uBAAuB,KAAA,GACrC,KAAK,IAAI,oBAAoB;GAG/B,OAAO,MAAM,KAAK,IAAI;EACxB;EACA,yBAAyB,QAAQ,UAAU;GACzC,MAAM,aAAa,QAAQ,yBAAyB,QAAQ,QAAQ;GACpE,IAAI,YACF,OAAO;GAGT,IAAI,aAAa,wBAAwB,YAAY,uBAAuB,KAAA,GAC1E,OAAO;IACL,YAAY;IACZ,cAAc;IACd,WAAW,YAAY;GACzB;EAIJ;CACF,CAAC;AACH;AAEA,SAAS,2BAAkD;CACzD,MAAM,UAAU,WAAW,gBAAgB;CAC3C,IAAI,CAAC,SACH,MAAM,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AgB,eAAe,OAAyC;CACtE,MAAM,EAAE,SAAS,yBAAyB;CAC1C,OACE,CAAC,SAAS,KAAK,YAAY,OAAO,MAAM,OAAO;OAC5C,MAAM,SAAS;IAClB,EAAE;AAEN;AAOA,SAAgB,qBAAqB,OAA+C;CAClF,MAAM,EAAE,SAAS,yBAAyB;CAC1C,OACE,CAAC,SAAS,KAAK,kBAAkB,OAAO,MAAM,OAAO;OAClD,MAAM,SAAS;IAClB,EAAE;AAEN;AAOA,SAAgB,sBAAsB,OAAgD;CACpF,MAAM,EAAE,SAAS,yBAAyB;CAC1C,OACE,CAAC,SAAS,KAAK,mBAAmB,OAAO,MAAM,OAAO;OACnD,MAAM,SAAS;IAClB,EAAE;AAEN"}
|
|
1
|
+
{"version":3,"file":"TimeField.jsx","names":["mergeProps"],"sources":["../src/TimeField.tsx"],"sourcesContent":["/**\n * TimeField component for solidaria-components\n *\n * Pre-wired headless time field. Faithful port of react-aria-components'\n * TimeField, which does NOT define its own segment primitives — it reuses\n * `DateInput`/`DateSegment` (there is no `TimeInput`/`TimeSegment` upstream).\n * `TimeFieldState` IS a `DateFieldState` (plus `timeValue`), so this component\n * drives the certified DateField segment/group stack directly: it provides the\n * shared `DateFieldContext`/`DateFieldStateContext` that `DateInput`/`DateSegment`\n * read, plus a `TimeFieldContext` for the time-field label/description/error\n * chrome. Unlike DateField, TimeField renders NO root hidden autofill input (RAC\n * TimeField renders none); its native-validation `<input>` is still emitted by\n * the inner DateInput sibling.\n */\n\nimport {\n type JSX,\n type Context,\n createContext,\n createMemo,\n createSignal,\n splitProps,\n useContext,\n Show,\n} from \"solid-js\";\nimport { createTimeField, mergeProps, type AriaTimeFieldProps } from \"@proyecto-viviana/solidaria\";\nimport {\n createTimeFieldState,\n access,\n type TimeFieldState,\n type TimeFieldStateProps,\n type TimeSegment as TimeSegmentType,\n type TimeValue,\n} from \"@proyecto-viviana/solid-stately\";\nimport { DateFieldContext, DateFieldStateContext, type DateFieldContextValue } from \"./DateField\";\nimport {\n type ClassNameOrFunction,\n type StyleOrFunction,\n type SlotProps,\n useRenderProps,\n dataAttr,\n useIsHydrated,\n Provider,\n} from \"./utils\";\nimport { TextContext } from \"./Text\";\nimport { FormContext, type FormProps } from \"./Form\";\n\nexport interface TimeFieldRenderProps {\n /** Whether the field is disabled. */\n isDisabled: boolean;\n /** Whether the field is read-only. */\n isReadOnly: boolean;\n /** Whether the field is required. */\n isRequired: boolean;\n /** Whether the field is invalid. */\n isInvalid: boolean;\n}\n\nexport interface TimeFieldProps<T extends TimeValue = TimeValue>\n extends\n Omit<AriaTimeFieldProps, \"id\" | \"isDisabled\" | \"isReadOnly\" | \"isRequired\">,\n Omit<TimeFieldStateProps<T>, \"locale\">,\n SlotProps {\n /** The children of the component. */\n children?: JSX.Element | ((segment: TimeSegmentType) => JSX.Element);\n /** The CSS className for the element. */\n class?: ClassNameOrFunction<TimeFieldRenderProps>;\n /** The inline style for the element. */\n style?: StyleOrFunction<TimeFieldRenderProps>;\n /** The locale to use for formatting. */\n locale?: string;\n}\n\nexport interface TimeFieldContextValue {\n state: TimeFieldState<TimeValue>;\n aria: {\n labelProps: Record<string, unknown>;\n inputProps: Record<string, unknown>;\n descriptionProps: Record<string, unknown>;\n errorMessageProps: Record<string, unknown>;\n };\n}\n\nexport const TimeFieldContext = createContext<TimeFieldContextValue | null>(null);\nexport const TimeFieldStateContext = createContext<TimeFieldState<TimeValue> | null>(null);\n\nfunction withFormValidationBehavior<P extends object>(props: P, formContext: FormProps | null): P {\n if (!formContext?.validationBehavior) {\n return props;\n }\n\n return new Proxy(props, {\n get(target, property, receiver) {\n const localValue = Reflect.get(target, property, receiver);\n if (property === \"validationBehavior\" && localValue === undefined) {\n return formContext.validationBehavior;\n }\n\n return localValue;\n },\n has(target, property) {\n return (\n Reflect.has(target, property) ||\n (property === \"validationBehavior\" && formContext.validationBehavior !== undefined)\n );\n },\n ownKeys(target) {\n const keys = new Set(Reflect.ownKeys(target));\n if (formContext.validationBehavior !== undefined) {\n keys.add(\"validationBehavior\");\n }\n\n return Array.from(keys);\n },\n getOwnPropertyDescriptor(target, property) {\n const descriptor = Reflect.getOwnPropertyDescriptor(target, property);\n if (descriptor) {\n return descriptor;\n }\n\n if (property === \"validationBehavior\" && formContext.validationBehavior !== undefined) {\n return {\n enumerable: true,\n configurable: true,\n get: () => formContext.validationBehavior,\n };\n }\n\n return undefined;\n },\n });\n}\n\nfunction useTimeFieldContextValue(): TimeFieldContextValue {\n const context = useContext(TimeFieldContext);\n if (!context) {\n throw new Error(\"TimeField components must be used within a TimeField\");\n }\n return context;\n}\n\nexport function useTimeFieldContext(): TimeFieldState<TimeValue> {\n return useTimeFieldContextValue().state;\n}\n\n/**\n * A time field allows users to enter and edit time values using a keyboard.\n *\n * @example\n * ```tsx\n * <TimeField label=\"Time\">\n * <Label>Time</Label>\n * <DateInput>\n * {(segment) => <DateSegment segment={segment} />}\n * </DateInput>\n * </TimeField>\n * ```\n */\nexport function TimeField<T extends TimeValue = TimeValue>(props: TimeFieldProps<T>): JSX.Element {\n // Use hydration-safe pattern for client-only rendering\n const isHydrated = useIsHydrated();\n const formContext = useContext(FormContext);\n\n return (\n <Show\n when={isHydrated()}\n fallback={\n <div class=\"solidaria-TimeField solidaria-TimeField--placeholder\" aria-hidden=\"true\" />\n }\n >\n <TimeFieldInner {...props} __formContext={formContext} />\n </Show>\n );\n}\n\ntype TimeFieldInnerProps<T extends TimeValue = TimeValue> = TimeFieldProps<T> & {\n __formContext?: FormProps | null;\n};\n\n/**\n * Internal TimeField component that renders after client mount.\n */\nfunction TimeFieldInner<T extends TimeValue = TimeValue>(\n props: TimeFieldInnerProps<T>,\n): JSX.Element {\n const formContext = props.__formContext ?? useContext(FormContext);\n const mergedProps = withFormValidationBehavior(props, formContext);\n const [local, stateProps, rest] = splitProps(\n mergedProps,\n [\"children\", \"class\", \"style\", \"slot\", \"__formContext\"],\n [\n \"value\",\n \"defaultValue\",\n \"onChange\",\n \"minValue\",\n \"maxValue\",\n \"isInvalid\",\n \"isDisabled\",\n \"isReadOnly\",\n \"isRequired\",\n \"locale\",\n \"granularity\",\n \"hourCycle\",\n \"hideTimeZone\",\n \"shouldForceLeadingZeros\",\n \"validationState\",\n \"validationBehavior\",\n \"validate\",\n \"description\",\n \"errorMessage\",\n \"placeholderValue\",\n ],\n );\n\n const [fieldRef, setFieldRef] = createSignal<HTMLDivElement | null>(null);\n // Ref to the hidden validation <input> (the DateInput's `<Input>` sibling).\n // Mirrors DateField: create it here, hand it to createTimeField below, and\n // attach it to the same input through the DateFieldContext getter.\n const [validationInputRef, setValidationInputRef] = createSignal<HTMLInputElement | null>(null);\n\n const state = createTimeFieldState(stateProps);\n\n const fieldAria = createTimeField(\n () => ({\n ...(rest as Record<string, unknown>),\n // RAC threads these props into both useTimeFieldState and useTimeField;\n // they live in `stateProps` here, so forward them for the field hook's\n // aria-disabled and the native validation <input> (type/required).\n isDisabled: access(stateProps.isDisabled),\n isReadOnly: access(stateProps.isReadOnly),\n isRequired: access(stateProps.isRequired),\n // Standalone default flips the hidden input to type=\"text\" so an empty\n // required value blocks HTML form submission (mirrors DateField).\n validationBehavior: stateProps.validationBehavior ?? \"native\",\n description: stateProps.description,\n errorMessage: stateProps.errorMessage,\n inputRef: () => validationInputRef() ?? undefined,\n }),\n state as unknown as TimeFieldState<TimeValue>,\n fieldRef,\n );\n\n const renderValues = createMemo<TimeFieldRenderProps>(() => ({\n isDisabled: state.isDisabled(),\n isReadOnly: state.isReadOnly(),\n isRequired: state.isRequired(),\n isInvalid: state.isInvalid(),\n }));\n\n const renderProps = useRenderProps(\n {\n class: local.class,\n style: local.style,\n defaultClassName: \"solidaria-TimeField\",\n },\n renderValues,\n );\n\n const textSlots = {\n slots: {\n get description() {\n return fieldAria.descriptionProps;\n },\n get errorMessage() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n // The shared context read by the reused DateInput/DateSegment. Read through\n // getters so consumers see the LIVE memo values (createDescription appends the\n // value-description id via a deferred effect; a frozen snapshot would miss it).\n const dateFieldContextValue: DateFieldContextValue = {\n get state() {\n return state as unknown as DateFieldContextValue[\"state\"];\n },\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n // The segment group props (role=\"group\", aria-labelledby, unicode-bidi\n // isolate, arrow-key nav, focus-within handlers) are routed to the\n // DateInput element; the outer wrapper stays roleless.\n get inputProps() {\n return fieldAria.fieldProps;\n },\n // The native validation <input> props (type/hidden/required/onChange under\n // native validation), rendered as the DateInput's sibling. Thread the\n // validation-input ref so createTimeField's form-reset/validation wiring\n // resolves to the mounted element.\n get hiddenInputProps() {\n return mergeProps(fieldAria.inputProps, { ref: setValidationInputRef });\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n };\n\n return (\n <TimeFieldStateContext.Provider value={state as unknown as TimeFieldState<TimeValue>}>\n <DateFieldStateContext.Provider value={state as unknown as DateFieldContextValue[\"state\"]}>\n <DateFieldContext.Provider value={dateFieldContextValue}>\n <TimeFieldContext.Provider\n value={{\n state: state as unknown as TimeFieldState<TimeValue>,\n aria: {\n get labelProps() {\n return fieldAria.labelProps;\n },\n get inputProps() {\n return fieldAria.fieldProps;\n },\n get descriptionProps() {\n return fieldAria.descriptionProps;\n },\n get errorMessageProps() {\n return fieldAria.errorMessageProps;\n },\n },\n }}\n >\n <div\n ref={setFieldRef}\n class={renderProps.class()}\n style={renderProps.style()}\n data-disabled={dataAttr(state.isDisabled())}\n data-readonly={dataAttr(state.isReadOnly())}\n data-required={dataAttr(state.isRequired())}\n data-invalid={dataAttr(state.isInvalid())}\n >\n <Provider values={[[TextContext, textSlots]] as Array<[Context<unknown>, unknown]>}>\n {local.children as JSX.Element}\n </Provider>\n </div>\n {/*\n Unlike DateField, TimeField renders NO root hidden autofill input —\n RAC TimeField renders none (react-aria-components TimeField.mjs). The\n native-validation <input> is emitted by the inner DateInput sibling.\n */}\n </TimeFieldContext.Provider>\n </DateFieldContext.Provider>\n </DateFieldStateContext.Provider>\n </TimeFieldStateContext.Provider>\n );\n}\n\nexport interface TimeFieldLabelProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldLabel(props: TimeFieldLabelProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.labelProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldDescriptionProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldDescription(props: TimeFieldDescriptionProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.descriptionProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport interface TimeFieldErrorMessageProps {\n children?: JSX.Element;\n class?: string;\n}\n\nexport function TimeFieldErrorMessage(props: TimeFieldErrorMessageProps): JSX.Element {\n const { aria } = useTimeFieldContextValue();\n return (\n <span {...aria.errorMessageProps} class={props.class}>\n {props.children}\n </span>\n );\n}\n\nexport type { TimeFieldState, TimeSegmentType, TimeValue };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAa,mBAAmB,cAA4C,IAAI;AAChF,MAAa,wBAAwB,cAAgD,IAAI;AAEzF,SAAS,2BAA6C,OAAU,aAAkC;CAChG,IAAI,CAAC,aAAa,oBAChB,OAAO;CAGT,OAAO,IAAI,MAAM,OAAO;EACtB,IAAI,QAAQ,UAAU,UAAU;GAC9B,MAAM,aAAa,QAAQ,IAAI,QAAQ,UAAU,QAAQ;GACzD,IAAI,aAAa,wBAAwB,eAAe,KAAA,GACtD,OAAO,YAAY;GAGrB,OAAO;EACT;EACA,IAAI,QAAQ,UAAU;GACpB,OACE,QAAQ,IAAI,QAAQ,QAAQ,KAC3B,aAAa,wBAAwB,YAAY,uBAAuB,KAAA;EAE7E;EACA,QAAQ,QAAQ;GACd,MAAM,OAAO,IAAI,IAAI,QAAQ,QAAQ,MAAM,CAAC;GAC5C,IAAI,YAAY,uBAAuB,KAAA,GACrC,KAAK,IAAI,oBAAoB;G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KAAK,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../src/VisuallyHidden.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,WAAW,EAAc,MAAM,UAAU,CAAC;AAIlE,MAAM,WAAW,mBAAoB,SAAQ,WAAW,EAAE,GAAG,CAAC,cAAc,CAAC,WAAW,CAAC;IACvF,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IAC1C,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CA0BtE"}
|
package/dist/VisuallyHidden.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementTag } from "./ElementTag.js";
|
|
2
|
+
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
3
|
import { splitProps } from "solid-js";
|
|
3
4
|
import { createVisuallyHidden, mergeProps as mergeProps$2 } from "@proyecto-viviana/solidaria";
|
|
4
5
|
//#region src/VisuallyHidden.tsx
|
|
@@ -8,7 +9,6 @@ import { createVisuallyHidden, mergeProps as mergeProps$2 } from "@proyecto-vivi
|
|
|
8
9
|
* Hides content visually but keeps it accessible to screen readers.
|
|
9
10
|
* Port of react-aria's VisuallyHidden.
|
|
10
11
|
*/
|
|
11
|
-
var _tmpl$ = /*#__PURE__*/ template(`<span>`);
|
|
12
12
|
/**
|
|
13
13
|
* VisuallyHidden hides its children visually, while keeping content visible to screen readers.
|
|
14
14
|
*/
|
|
@@ -24,15 +24,7 @@ function VisuallyHidden(props) {
|
|
|
24
24
|
isFocusable: local.isFocusable
|
|
25
25
|
}));
|
|
26
26
|
const mergedProps = () => mergeProps$2(others, visuallyHiddenProps());
|
|
27
|
-
|
|
28
|
-
if (tag === "span") return (() => {
|
|
29
|
-
var _el$ = getNextElement(_tmpl$);
|
|
30
|
-
spread(_el$, mergeProps(mergedProps), false, true);
|
|
31
|
-
insert(_el$, () => local.children);
|
|
32
|
-
runHydrationEvents();
|
|
33
|
-
return _el$;
|
|
34
|
-
})();
|
|
35
|
-
return createComponent(Dynamic, mergeProps({ component: tag }, mergedProps, { get children() {
|
|
27
|
+
return createComponent(ElementTag, mergeProps({ tag: local.elementType ?? "span" }, mergedProps, { get children() {
|
|
36
28
|
return local.children;
|
|
37
29
|
} }));
|
|
38
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.js","names":["JSX","ParentProps","splitProps","
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.js","names":["JSX","ParentProps","splitProps","ElementTag","createVisuallyHidden","mergeProps","VisuallyHiddenProps","HTMLAttributes","HTMLElement","elementType","IntrinsicElements","isFocusable","style","CSSProperties","VisuallyHidden","props","Element","local","others","visuallyHiddenProps","mergedProps","Record","tag","_$createComponent","_$mergeProps","children"],"sources":["../src/VisuallyHidden.tsx"],"sourcesContent":["/**\n * VisuallyHidden component for solidaria-components\n *\n * Hides content visually but keeps it accessible to screen readers.\n * Port of react-aria's VisuallyHidden.\n */\n\nimport { type JSX, type ParentProps, splitProps } from \"solid-js\";\nimport { ElementTag } from \"./ElementTag\";\nimport { createVisuallyHidden, mergeProps } from \"@proyecto-viviana/solidaria\";\n\nexport interface VisuallyHiddenProps extends ParentProps, JSX.HTMLAttributes<HTMLElement> {\n /** The element type to render. @default 'span' */\n elementType?: keyof JSX.IntrinsicElements;\n /** Whether the element should be focusable when focused. */\n isFocusable?: boolean;\n /** Inline style object merged with visually hidden styles. */\n style?: JSX.CSSProperties;\n}\n\n/**\n * VisuallyHidden hides its children visually, while keeping content visible to screen readers.\n */\nexport function VisuallyHidden(props: VisuallyHiddenProps): JSX.Element {\n // Split children so the getter is not read once through `{...mergedProps()}`\n // and again during explicit rendering. Hydration code is sensitive to that.\n const [local, others] = splitProps(props, [\"elementType\", \"isFocusable\", \"style\", \"children\"]);\n const { visuallyHiddenProps } = createVisuallyHidden(() => ({\n style: local.style,\n isFocusable: local.isFocusable,\n }));\n\n const mergedProps = () =>\n mergeProps<Record<string, unknown>>(\n others as unknown as Record<string, unknown>,\n visuallyHiddenProps() as unknown as Record<string, unknown>,\n );\n\n // elementType is read once (structural, not reactive). `ElementTag` renders it\n // as a statically compiled element; `<Dynamic component={string}>` desyncs\n // Solid's hydration markers, leaving the registry dirty so a later sibling\n // re-render throws \"template is not a function\" in prod (and a hard hydration\n // crash under solid-refresh in dev). See ElementTag.tsx for the mechanism.\n const tag = local.elementType ?? \"span\";\n return (\n <ElementTag tag={tag} {...mergedProps()}>\n {local.children}\n </ElementTag>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAuBA,SAAgBc,eAAeC,OAAyC;CAGtE,MAAM,CAACE,OAAOC,UAAUhB,WAAWa,OAAO;EAAC;EAAe;EAAe;EAAS;CAAU,CAAC;CAC7F,MAAM,EAAEI,wBAAwBf,4BAA4B;EAC1DQ,OAAOK,MAAML;EACbD,aAAaM,MAAMN;CACrB,EAAE;CAEF,MAAMS,oBACJf,aACEa,QACAC,oBAAoB,CACtB;CAQF,OAAAI,gBACGpB,YAAUqB,WAAA,EAACF,KAFFL,MAAMR,eAAe,OAEX,GAAMW,aAAW,EAAA,IAAAK,WAAA;EAAA,OAClCR,MAAMQ;CAAQ,EAAA,CAAA,CAAA;AAGrB"}
|
package/dist/VisuallyHidden.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ElementTag } from "./ElementTag.jsx";
|
|
1
2
|
import { splitProps } from "solid-js";
|
|
2
|
-
import { Dynamic } from "solid-js/web";
|
|
3
3
|
import { createVisuallyHidden, mergeProps as mergeProps$1 } from "@proyecto-viviana/solidaria";
|
|
4
4
|
//#region src/VisuallyHidden.tsx
|
|
5
5
|
/**
|
|
@@ -24,10 +24,9 @@ function VisuallyHidden(props) {
|
|
|
24
24
|
}));
|
|
25
25
|
const mergedProps = () => mergeProps$1(others, visuallyHiddenProps());
|
|
26
26
|
const tag = local.elementType ?? "span";
|
|
27
|
-
|
|
28
|
-
return <Dynamic component={tag} {...mergedProps()}>
|
|
27
|
+
return <ElementTag tag={tag} {...mergedProps()}>
|
|
29
28
|
{local.children}
|
|
30
|
-
</
|
|
29
|
+
</ElementTag>;
|
|
31
30
|
}
|
|
32
31
|
//#endregion
|
|
33
32
|
export { VisuallyHidden };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.jsx","names":["mergeProps"],"sources":["../src/VisuallyHidden.tsx"],"sourcesContent":["/**\n * VisuallyHidden component for solidaria-components\n *\n * Hides content visually but keeps it accessible to screen readers.\n * Port of react-aria's VisuallyHidden.\n */\n\nimport { type JSX, type ParentProps, splitProps } from \"solid-js\";\nimport {
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.jsx","names":["mergeProps"],"sources":["../src/VisuallyHidden.tsx"],"sourcesContent":["/**\n * VisuallyHidden component for solidaria-components\n *\n * Hides content visually but keeps it accessible to screen readers.\n * Port of react-aria's VisuallyHidden.\n */\n\nimport { type JSX, type ParentProps, splitProps } from \"solid-js\";\nimport { ElementTag } from \"./ElementTag\";\nimport { createVisuallyHidden, mergeProps } from \"@proyecto-viviana/solidaria\";\n\nexport interface VisuallyHiddenProps extends ParentProps, JSX.HTMLAttributes<HTMLElement> {\n /** The element type to render. @default 'span' */\n elementType?: keyof JSX.IntrinsicElements;\n /** Whether the element should be focusable when focused. */\n isFocusable?: boolean;\n /** Inline style object merged with visually hidden styles. */\n style?: JSX.CSSProperties;\n}\n\n/**\n * VisuallyHidden hides its children visually, while keeping content visible to screen readers.\n */\nexport function VisuallyHidden(props: VisuallyHiddenProps): JSX.Element {\n // Split children so the getter is not read once through `{...mergedProps()}`\n // and again during explicit rendering. Hydration code is sensitive to that.\n const [local, others] = splitProps(props, [\"elementType\", \"isFocusable\", \"style\", \"children\"]);\n const { visuallyHiddenProps } = createVisuallyHidden(() => ({\n style: local.style,\n isFocusable: local.isFocusable,\n }));\n\n const mergedProps = () =>\n mergeProps<Record<string, unknown>>(\n others as unknown as Record<string, unknown>,\n visuallyHiddenProps() as unknown as Record<string, unknown>,\n );\n\n // elementType is read once (structural, not reactive). `ElementTag` renders it\n // as a statically compiled element; `<Dynamic component={string}>` desyncs\n // Solid's hydration markers, leaving the registry dirty so a later sibling\n // re-render throws \"template is not a function\" in prod (and a hard hydration\n // crash under solid-refresh in dev). See ElementTag.tsx for the mechanism.\n const tag = local.elementType ?? \"span\";\n return (\n <ElementTag tag={tag} {...mergedProps()}>\n {local.children}\n </ElementTag>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAuBA,SAAgB,eAAe,OAAyC;CAGtE,MAAM,CAAC,OAAO,UAAU,WAAW,OAAO;EAAC;EAAe;EAAe;EAAS;CAAU,CAAC;CAC7F,MAAM,EAAE,wBAAwB,4BAA4B;EAC1D,OAAO,MAAM;EACb,aAAa,MAAM;CACrB,EAAE;CAEF,MAAM,oBACJA,aACE,QACA,oBAAoB,CACtB;CAOF,MAAM,MAAM,MAAM,eAAe;CACjC,OACE,CAAC,WAAW,KAAK,SAAS,YAAY,GAAG;OACtC,MAAM,SAAS;IAClB,EAAE;AAEN"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* ready-to-style components using the render props pattern and data attributes.
|
|
9
9
|
*/
|
|
10
10
|
export { type RenderChildren, type ClassNameOrFunction, type StyleOrFunction, type RenderPropsBase, type SlotProps, type RefLike, type WithRef, type SlottedValue, type SlottedContextValue, type ContextValue, DEFAULT_SLOT, Provider, composeRenderProps, useRenderProps, useContextProps, useSlottedContext, useSlot, createSlottedContext, assignRef, mergeRefs, filterDOMProps, removeDataAttributes, createDataAttributes, dataAttr, } from "./utils";
|
|
11
|
+
export { ElementTag, type ElementTagProps } from "./ElementTag";
|
|
11
12
|
export { VisuallyHidden, type VisuallyHiddenProps } from "./VisuallyHidden";
|
|
12
13
|
export { Button, ButtonContext, type ButtonProps, type ButtonRenderProps } from "./Button";
|
|
13
14
|
export { ToggleSwitch, ToggleSwitchContext, ToggleSwitch as Switch, ToggleSwitchContext as SwitchContext, SwitchField, SwitchButton, SwitchFieldContext, type SwitchFieldProps, type SwitchFieldRenderProps, type SwitchButtonProps, type SwitchButtonRenderProps, type ToggleSwitchProps, type ToggleSwitchRenderProps, type ToggleSwitchProps as SwitchProps, type ToggleSwitchRenderProps as SwitchRenderProps, } from "./Switch";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,oBAAoB,EACpB,SAAS,EACT,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,QAAQ,GACT,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,UA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AI,YAAY,EAC/B,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,MAAM,iCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_SLOT, Provider, assignRef, composeRenderProps, createDataAttributes, createSlottedContext, dataAttr, filterDOMProps, mergeRefs, removeDataAttributes, useContextProps, useRenderProps, useSlot, useSlottedContext } from "./utils.js";
|
|
2
|
+
import { ElementTag } from "./ElementTag.js";
|
|
2
3
|
import { VisuallyHidden } from "./VisuallyHidden.js";
|
|
3
4
|
import { a as useOverlayTriggerState, i as useDialogTrigger, n as OverlayTriggerStateContext, o as usePopoverTrigger, r as PopoverTriggerContext, t as DialogTriggerContext } from "./contexts.js";
|
|
4
5
|
import { ProgressBar, ProgressBarContext } from "./ProgressBar.js";
|
|
@@ -66,4 +67,4 @@ import { Focusable } from "./Focusable.js";
|
|
|
66
67
|
import { Pressable } from "./Pressable.js";
|
|
67
68
|
import { I18nProvider, SSRProvider, createDrag as useDrag, createDrop as useDrop, createFilter as useFilter, isDirectoryDropItem, isFileDropItem, isRTL, isTextDropItem, useLocale } from "@proyecto-viviana/solidaria";
|
|
68
69
|
import { DIRECTORY_DRAG_TYPE, FormValidationContext, ToastQueue as UNSTABLE_ToastQueue, createAsyncList, createAsyncList as useAsyncList, createListData, createListData as useListData, createTreeData, createTreeData as useTreeData, getColorChannels, parseColor } from "@proyecto-viviana/solid-stately";
|
|
69
|
-
export { ActionBar, ActionBarClearButton, ActionBarContainer, ActionBarContext, ActionBarSelectionCount, ActionGroup, ActionGroupContext, ActionGroupStateContext, Alert, AlertContext, AlertDismissButton, Autocomplete, AutocompleteCollectionContext, AutocompleteContext, AutocompleteStateContext, BreadcrumbItem as Breadcrumb, BreadcrumbItem, BreadcrumbItemContext, Breadcrumbs, BreadcrumbsContext, Button, ButtonContext, Calendar, CalendarButton, CalendarCell, CalendarContext, CalendarContext as CalendarStateContext, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, CalendarHeading, CalendarMonthPicker, CalendarYearPicker, TableCell as Cell, TableCell, Checkbox, CheckboxButton, CheckboxContext, CheckboxField, CheckboxFieldContext, CheckboxGroup, CheckboxGroupContext, CheckboxGroupStateContext, Collection, CollectionBuilder, CollectionRendererContext, ColorArea, ColorAreaContext, ColorAreaGradient, ColorAreaStateContext, ColorAreaThumb, ColorEditor, ColorField, ColorFieldContext, ColorFieldInput, ColorFieldStateContext, ColorPicker, ColorPickerContext, ColorPickerStateContext, ColorSlider, ColorSliderContext, ColorSliderLabel, ColorSliderOutput, ColorSliderStateContext, ColorSliderThumb, ColorSliderTrack, ColorSwatch, ColorSwatchContext, ColorSwatchPicker, ColorSwatchPickerContext, ColorSwatchPickerItem, ColorThumb, ColorWheel, ColorWheelContext, ColorWheelStateContext, ColorWheelThumb, ColorWheelTrack, ColorWheelTrackContext, TableColumn as Column, TableColumn, ColumnResizer, ComboBox, ComboBoxButton, ComboBoxContext, ComboBoxDescription, ComboBoxErrorMessage, ComboBoxInput, ComboBoxLabel, ComboBoxListBox, ComboBoxOption, ComboBoxStateContext, ComboBoxTag, ComboBoxTagGroup, ComboBoxValue, ComboBoxValueContext, ContextualHelpTrigger, DEFAULT_SLOT, DIRECTORY_DRAG_TYPE, DateField, DateFieldContext, DateFieldDescription, DateFieldErrorMessage, DateFieldLabel, DateFieldStateContext, DateInput, DatePicker, DatePickerButton, DatePickerContent, DatePickerContext, DatePickerDescription, DatePickerErrorMessage, DatePickerLabel, DatePickerStateContext, DateRangePicker, DateRangePickerButton, DateRangePickerContent, DateRangePickerContext, DateRangePickerDescription, DateRangePickerErrorMessage, DateRangePickerLabel, DateRangePickerStateContext, DateSegment, DefaultCollectionRenderer, DefaultToast, Dialog, DialogContext, Heading as DialogHeading, Heading, DialogTrigger, DialogTriggerContext, Disclosure, DisclosureContext, DisclosureGroup, DisclosureGroupContext, DisclosureGroupStateContext, DisclosurePanel, DisclosureStateContext, DisclosureTrigger, DragAndDropContext, DropIndicator, DropIndicatorContext, DropZone, DropZoneContext, FieldError, FieldErrorContext, FieldInputContext, FileTrigger, Focusable, Form, FormContext, FormValidationContext, GridLayout, GridList, GridListContext, GridListHeader, GridListHeaderContext, GridListHeaderInnerContext, GridListItem, GridListLoadMoreItem, GridListSection, GridListSelectionCheckbox, GridListStateContext, Group, GroupContext, Header, HeaderContext, HeadingContext, HiddenDateInput, I18nProvider, Icon, IconContext, Input, InputContext, Keyboard, KeyboardContext, Label, LabelContext, Landmark, LandmarkContext, Layout, LayoutInfo, Link, LinkContext, ListBox, ListBoxContext, ListBoxOption as ListBoxItem, ListBoxOption, ListBoxLoadMoreItem, ListBoxSection, ListBoxStateContext, ListLayout, ListStateContext, Menu, MenuButton, MenuContext, MenuItem, MenuSection, MenuStateContext, MenuTrigger, MenuTriggerContext, Meter, MeterContext, Modal, ModalContext, ModalOverlay, NumberField, NumberFieldContext, NumberFieldDecrementButton, NumberFieldGroup, NumberFieldIncrementButton, NumberFieldInput, NumberFieldLabel, NumberFieldStateContext, OverlayArrow, OverlayTriggerStateContext, Point, Popover, PopoverContext, PopoverTrigger, PopoverTriggerContext, Pressable, ProgressBar, ProgressBarContext, Provider, Radio, RadioButton, RadioContext, RadioField, RadioFieldContext, RadioGroup, RadioGroupContext, RadioGroupStateContext, RangeCalendar, RangeCalendarButton, RangeCalendarCell, RangeCalendarContext, RangeCalendarGrid, RangeCalendarHeading, RangeCalendarStateContext, Rect, ResizableTableContainer, RootMenuTriggerStateContext, RouterContext, RouterProvider, TableRow as Row, TableRow, SSRProvider, SearchField, SearchFieldClearButton, SearchFieldContext, SearchFieldInput, SearchFieldLabel, Section, Select, SelectContext, SelectListBox, SelectOption, SelectStateContext, SelectTrigger, SelectValue, SelectValueContext, SelectableCollectionContext, SelectionIndicator, SelectionIndicatorContext, Separator, SeparatorContext, SharedElement, SharedElementTransition, Size, Slider, SliderContext, SliderFill, SliderFillContext, SliderOutput, SliderOutputContext, SliderStateContext, SliderThumb, SliderTrack, SliderTrackContext, Step, StepList, StepListContext, StepListStateContext, SubmenuTrigger, ToggleSwitch as Switch, ToggleSwitch, SwitchButton, ToggleSwitchContext as SwitchContext, ToggleSwitchContext, SwitchField, SwitchFieldContext, Tab, TabList, TabsStateContext as TabListStateContext, TabsStateContext, TabPanel, TabPanels, Table, TableBody, TableColumnResizeStateContext, TableContext, TableFooter, TableHeader, TableLayout, TableLoadMoreItem, TableRowContext, TableSelectAllCheckbox, TableSelectionCheckbox, TableStateContext, Tabs, TabsContext, Tag, TagGroup, TagGroupContext, TagList, TagListStateContext as TagListContext, TagListStateContext, TagRemoveButton, Text, TextArea, TextAreaContext, TextContext, TextField, TextFieldContext, TimeField, TimeFieldContext, TimeFieldDescription, TimeFieldErrorMessage, TimeFieldLabel, TimeFieldStateContext, Toast, Toast as UNSTABLE_Toast, Toast as UNSTABLE_ToastContent, ToastCloseButton, ToastContext, ToastContext as UNSTABLE_ToastStateContext, ToastDescription, ToastProvider, ToastRegion, ToastRegion as UNSTABLE_ToastList, ToastRegion as UNSTABLE_ToastRegion, ToastTitle, ToggleButton, ToggleButtonContext, ToggleButtonGroup, ToggleButtonGroupContext, ToggleButtonGroupStateContext, ToggleGroupStateContext, Toolbar, ToolbarContext, Tooltip, TooltipContext, TooltipTrigger, TooltipTriggerStateContext, Tree, TreeContext, TreeExpandButton, TreeHeader, TreeItem, TreeItemContent, TreeItemContext, TreeLoadMoreItem, TreeSection, TreeSelectionCheckbox, TreeStateContext, UNSTABLE_ToastQueue, Virtualizer, VirtualizerContext, VisuallyHidden, WaterfallLayout, addToast, assignRef, composeRenderProps, createAsyncList, createBranchComponent, createDataAttributes, createLeafComponent, createListData, createSlottedContext, createTreeData, dataAttr, defaultContainsFilter, filterDOMProps, flattenCollectionEntries, getColorChannels, globalToastQueue, isCollectionSection, isDirectoryDropItem, isFileDropItem, isRTL, isTextDropItem, mergeRefs, parseColor, removeDataAttributes, useActionBarContext, useActionGroupContext, useAsyncList, useAutocompleteCollection, useAutocompleteInput, useAutocompleteState, useCalendarContext, useContextProps, useDateFieldContext, useDatePickerContext, useDateRangePickerContext, useDialogTrigger, useDisclosureContext, useDisclosureGroupContext, useDndPersistedKeys, useDrag, useDragAndDrop, useDrop, useFilter, useHasSharedElementTransitionScope, useLandmarkController, useListData, useLocale, useOverlayTriggerState, usePopoverTrigger, useRangeCalendarContext, useRenderDropIndicator, useRenderProps, useRouter, useSlot, useSlottedContext, useStepListState, useTableOptions, useTagGroupContext, useTimeFieldContext, useToastContext, useToggleButtonGroupStateContext, useTreeData, useVirtualizerContext };
|
|
70
|
+
export { ActionBar, ActionBarClearButton, ActionBarContainer, ActionBarContext, ActionBarSelectionCount, ActionGroup, ActionGroupContext, ActionGroupStateContext, Alert, AlertContext, AlertDismissButton, Autocomplete, AutocompleteCollectionContext, AutocompleteContext, AutocompleteStateContext, BreadcrumbItem as Breadcrumb, BreadcrumbItem, BreadcrumbItemContext, Breadcrumbs, BreadcrumbsContext, Button, ButtonContext, Calendar, CalendarButton, CalendarCell, CalendarContext, CalendarContext as CalendarStateContext, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, CalendarHeading, CalendarMonthPicker, CalendarYearPicker, TableCell as Cell, TableCell, Checkbox, CheckboxButton, CheckboxContext, CheckboxField, CheckboxFieldContext, CheckboxGroup, CheckboxGroupContext, CheckboxGroupStateContext, Collection, CollectionBuilder, CollectionRendererContext, ColorArea, ColorAreaContext, ColorAreaGradient, ColorAreaStateContext, ColorAreaThumb, ColorEditor, ColorField, ColorFieldContext, ColorFieldInput, ColorFieldStateContext, ColorPicker, ColorPickerContext, ColorPickerStateContext, ColorSlider, ColorSliderContext, ColorSliderLabel, ColorSliderOutput, ColorSliderStateContext, ColorSliderThumb, ColorSliderTrack, ColorSwatch, ColorSwatchContext, ColorSwatchPicker, ColorSwatchPickerContext, ColorSwatchPickerItem, ColorThumb, ColorWheel, ColorWheelContext, ColorWheelStateContext, ColorWheelThumb, ColorWheelTrack, ColorWheelTrackContext, TableColumn as Column, TableColumn, ColumnResizer, ComboBox, ComboBoxButton, ComboBoxContext, ComboBoxDescription, ComboBoxErrorMessage, ComboBoxInput, ComboBoxLabel, ComboBoxListBox, ComboBoxOption, ComboBoxStateContext, ComboBoxTag, ComboBoxTagGroup, ComboBoxValue, ComboBoxValueContext, ContextualHelpTrigger, DEFAULT_SLOT, DIRECTORY_DRAG_TYPE, DateField, DateFieldContext, DateFieldDescription, DateFieldErrorMessage, DateFieldLabel, DateFieldStateContext, DateInput, DatePicker, DatePickerButton, DatePickerContent, DatePickerContext, DatePickerDescription, DatePickerErrorMessage, DatePickerLabel, DatePickerStateContext, DateRangePicker, DateRangePickerButton, DateRangePickerContent, DateRangePickerContext, DateRangePickerDescription, DateRangePickerErrorMessage, DateRangePickerLabel, DateRangePickerStateContext, DateSegment, DefaultCollectionRenderer, DefaultToast, Dialog, DialogContext, Heading as DialogHeading, Heading, DialogTrigger, DialogTriggerContext, Disclosure, DisclosureContext, DisclosureGroup, DisclosureGroupContext, DisclosureGroupStateContext, DisclosurePanel, DisclosureStateContext, DisclosureTrigger, DragAndDropContext, DropIndicator, DropIndicatorContext, DropZone, DropZoneContext, ElementTag, FieldError, FieldErrorContext, FieldInputContext, FileTrigger, Focusable, Form, FormContext, FormValidationContext, GridLayout, GridList, GridListContext, GridListHeader, GridListHeaderContext, GridListHeaderInnerContext, GridListItem, GridListLoadMoreItem, GridListSection, GridListSelectionCheckbox, GridListStateContext, Group, GroupContext, Header, HeaderContext, HeadingContext, HiddenDateInput, I18nProvider, Icon, IconContext, Input, InputContext, Keyboard, KeyboardContext, Label, LabelContext, Landmark, LandmarkContext, Layout, LayoutInfo, Link, LinkContext, ListBox, ListBoxContext, ListBoxOption as ListBoxItem, ListBoxOption, ListBoxLoadMoreItem, ListBoxSection, ListBoxStateContext, ListLayout, ListStateContext, Menu, MenuButton, MenuContext, MenuItem, MenuSection, MenuStateContext, MenuTrigger, MenuTriggerContext, Meter, MeterContext, Modal, ModalContext, ModalOverlay, NumberField, NumberFieldContext, NumberFieldDecrementButton, NumberFieldGroup, NumberFieldIncrementButton, NumberFieldInput, NumberFieldLabel, NumberFieldStateContext, OverlayArrow, OverlayTriggerStateContext, Point, Popover, PopoverContext, PopoverTrigger, PopoverTriggerContext, Pressable, ProgressBar, ProgressBarContext, Provider, Radio, RadioButton, RadioContext, RadioField, RadioFieldContext, RadioGroup, RadioGroupContext, RadioGroupStateContext, RangeCalendar, RangeCalendarButton, RangeCalendarCell, RangeCalendarContext, RangeCalendarGrid, RangeCalendarHeading, RangeCalendarStateContext, Rect, ResizableTableContainer, RootMenuTriggerStateContext, RouterContext, RouterProvider, TableRow as Row, TableRow, SSRProvider, SearchField, SearchFieldClearButton, SearchFieldContext, SearchFieldInput, SearchFieldLabel, Section, Select, SelectContext, SelectListBox, SelectOption, SelectStateContext, SelectTrigger, SelectValue, SelectValueContext, SelectableCollectionContext, SelectionIndicator, SelectionIndicatorContext, Separator, SeparatorContext, SharedElement, SharedElementTransition, Size, Slider, SliderContext, SliderFill, SliderFillContext, SliderOutput, SliderOutputContext, SliderStateContext, SliderThumb, SliderTrack, SliderTrackContext, Step, StepList, StepListContext, StepListStateContext, SubmenuTrigger, ToggleSwitch as Switch, ToggleSwitch, SwitchButton, ToggleSwitchContext as SwitchContext, ToggleSwitchContext, SwitchField, SwitchFieldContext, Tab, TabList, TabsStateContext as TabListStateContext, TabsStateContext, TabPanel, TabPanels, Table, TableBody, TableColumnResizeStateContext, TableContext, TableFooter, TableHeader, TableLayout, TableLoadMoreItem, TableRowContext, TableSelectAllCheckbox, TableSelectionCheckbox, TableStateContext, Tabs, TabsContext, Tag, TagGroup, TagGroupContext, TagList, TagListStateContext as TagListContext, TagListStateContext, TagRemoveButton, Text, TextArea, TextAreaContext, TextContext, TextField, TextFieldContext, TimeField, TimeFieldContext, TimeFieldDescription, TimeFieldErrorMessage, TimeFieldLabel, TimeFieldStateContext, Toast, Toast as UNSTABLE_Toast, Toast as UNSTABLE_ToastContent, ToastCloseButton, ToastContext, ToastContext as UNSTABLE_ToastStateContext, ToastDescription, ToastProvider, ToastRegion, ToastRegion as UNSTABLE_ToastList, ToastRegion as UNSTABLE_ToastRegion, ToastTitle, ToggleButton, ToggleButtonContext, ToggleButtonGroup, ToggleButtonGroupContext, ToggleButtonGroupStateContext, ToggleGroupStateContext, Toolbar, ToolbarContext, Tooltip, TooltipContext, TooltipTrigger, TooltipTriggerStateContext, Tree, TreeContext, TreeExpandButton, TreeHeader, TreeItem, TreeItemContent, TreeItemContext, TreeLoadMoreItem, TreeSection, TreeSelectionCheckbox, TreeStateContext, UNSTABLE_ToastQueue, Virtualizer, VirtualizerContext, VisuallyHidden, WaterfallLayout, addToast, assignRef, composeRenderProps, createAsyncList, createBranchComponent, createDataAttributes, createLeafComponent, createListData, createSlottedContext, createTreeData, dataAttr, defaultContainsFilter, filterDOMProps, flattenCollectionEntries, getColorChannels, globalToastQueue, isCollectionSection, isDirectoryDropItem, isFileDropItem, isRTL, isTextDropItem, mergeRefs, parseColor, removeDataAttributes, useActionBarContext, useActionGroupContext, useAsyncList, useAutocompleteCollection, useAutocompleteInput, useAutocompleteState, useCalendarContext, useContextProps, useDateFieldContext, useDatePickerContext, useDateRangePickerContext, useDialogTrigger, useDisclosureContext, useDisclosureGroupContext, useDndPersistedKeys, useDrag, useDragAndDrop, useDrop, useFilter, useHasSharedElementTransitionScope, useLandmarkController, useListData, useLocale, useOverlayTriggerState, usePopoverTrigger, useRangeCalendarContext, useRenderDropIndicator, useRenderProps, useRouter, useSlot, useSlottedContext, useStepListState, useTableOptions, useTagGroupContext, useTimeFieldContext, useToastContext, useToggleButtonGroupStateContext, useTreeData, useVirtualizerContext };
|
package/dist/index.jsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_SLOT, Provider, assignRef, composeRenderProps, createDataAttributes, createSlottedContext, dataAttr, filterDOMProps, mergeRefs, removeDataAttributes, useContextProps, useRenderProps, useSlot, useSlottedContext } from "./utils.jsx";
|
|
2
|
+
import { ElementTag } from "./ElementTag.jsx";
|
|
2
3
|
import { VisuallyHidden } from "./VisuallyHidden.jsx";
|
|
3
4
|
import { a as useOverlayTriggerState, i as useDialogTrigger, n as OverlayTriggerStateContext, o as usePopoverTrigger, r as PopoverTriggerContext, t as DialogTriggerContext } from "./contexts.jsx";
|
|
4
5
|
import { ProgressBar, ProgressBarContext } from "./ProgressBar.jsx";
|
|
@@ -66,4 +67,4 @@ import { Focusable } from "./Focusable.jsx";
|
|
|
66
67
|
import { Pressable } from "./Pressable.jsx";
|
|
67
68
|
import { I18nProvider, SSRProvider, createDrag as useDrag, createDrop as useDrop, createFilter as useFilter, isDirectoryDropItem, isFileDropItem, isRTL, isTextDropItem, useLocale } from "@proyecto-viviana/solidaria";
|
|
68
69
|
import { DIRECTORY_DRAG_TYPE, FormValidationContext, ToastQueue as UNSTABLE_ToastQueue, createAsyncList, createAsyncList as useAsyncList, createListData, createListData as useListData, createTreeData, createTreeData as useTreeData, getColorChannels, parseColor } from "@proyecto-viviana/solid-stately";
|
|
69
|
-
export { ActionBar, ActionBarClearButton, ActionBarContainer, ActionBarContext, ActionBarSelectionCount, ActionGroup, ActionGroupContext, ActionGroupStateContext, Alert, AlertContext, AlertDismissButton, Autocomplete, AutocompleteCollectionContext, AutocompleteContext, AutocompleteStateContext, BreadcrumbItem as Breadcrumb, BreadcrumbItem, BreadcrumbItemContext, Breadcrumbs, BreadcrumbsContext, Button, ButtonContext, Calendar, CalendarButton, CalendarCell, CalendarContext, CalendarContext as CalendarStateContext, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, CalendarHeading, CalendarMonthPicker, CalendarYearPicker, TableCell as Cell, TableCell, Checkbox, CheckboxButton, CheckboxContext, CheckboxField, CheckboxFieldContext, CheckboxGroup, CheckboxGroupContext, CheckboxGroupStateContext, Collection, CollectionBuilder, CollectionRendererContext, ColorArea, ColorAreaContext, ColorAreaGradient, ColorAreaStateContext, ColorAreaThumb, ColorEditor, ColorField, ColorFieldContext, ColorFieldInput, ColorFieldStateContext, ColorPicker, ColorPickerContext, ColorPickerStateContext, ColorSlider, ColorSliderContext, ColorSliderLabel, ColorSliderOutput, ColorSliderStateContext, ColorSliderThumb, ColorSliderTrack, ColorSwatch, ColorSwatchContext, ColorSwatchPicker, ColorSwatchPickerContext, ColorSwatchPickerItem, ColorThumb, ColorWheel, ColorWheelContext, ColorWheelStateContext, ColorWheelThumb, ColorWheelTrack, ColorWheelTrackContext, TableColumn as Column, TableColumn, ColumnResizer, ComboBox, ComboBoxButton, ComboBoxContext, ComboBoxDescription, ComboBoxErrorMessage, ComboBoxInput, ComboBoxLabel, ComboBoxListBox, ComboBoxOption, ComboBoxStateContext, ComboBoxTag, ComboBoxTagGroup, ComboBoxValue, ComboBoxValueContext, ContextualHelpTrigger, DEFAULT_SLOT, DIRECTORY_DRAG_TYPE, DateField, DateFieldContext, DateFieldDescription, DateFieldErrorMessage, DateFieldLabel, DateFieldStateContext, DateInput, DatePicker, DatePickerButton, DatePickerContent, DatePickerContext, DatePickerDescription, DatePickerErrorMessage, DatePickerLabel, DatePickerStateContext, DateRangePicker, DateRangePickerButton, DateRangePickerContent, DateRangePickerContext, DateRangePickerDescription, DateRangePickerErrorMessage, DateRangePickerLabel, DateRangePickerStateContext, DateSegment, DefaultCollectionRenderer, DefaultToast, Dialog, DialogContext, Heading as DialogHeading, Heading, DialogTrigger, DialogTriggerContext, Disclosure, DisclosureContext, DisclosureGroup, DisclosureGroupContext, DisclosureGroupStateContext, DisclosurePanel, DisclosureStateContext, DisclosureTrigger, DragAndDropContext, DropIndicator, DropIndicatorContext, DropZone, DropZoneContext, FieldError, FieldErrorContext, FieldInputContext, FileTrigger, Focusable, Form, FormContext, FormValidationContext, GridLayout, GridList, GridListContext, GridListHeader, GridListHeaderContext, GridListHeaderInnerContext, GridListItem, GridListLoadMoreItem, GridListSection, GridListSelectionCheckbox, GridListStateContext, Group, GroupContext, Header, HeaderContext, HeadingContext, HiddenDateInput, I18nProvider, Icon, IconContext, Input, InputContext, Keyboard, KeyboardContext, Label, LabelContext, Landmark, LandmarkContext, Layout, LayoutInfo, Link, LinkContext, ListBox, ListBoxContext, ListBoxOption as ListBoxItem, ListBoxOption, ListBoxLoadMoreItem, ListBoxSection, ListBoxStateContext, ListLayout, ListStateContext, Menu, MenuButton, MenuContext, MenuItem, MenuSection, MenuStateContext, MenuTrigger, MenuTriggerContext, Meter, MeterContext, Modal, ModalContext, ModalOverlay, NumberField, NumberFieldContext, NumberFieldDecrementButton, NumberFieldGroup, NumberFieldIncrementButton, NumberFieldInput, NumberFieldLabel, NumberFieldStateContext, OverlayArrow, OverlayTriggerStateContext, Point, Popover, PopoverContext, PopoverTrigger, PopoverTriggerContext, Pressable, ProgressBar, ProgressBarContext, Provider, Radio, RadioButton, RadioContext, RadioField, RadioFieldContext, RadioGroup, RadioGroupContext, RadioGroupStateContext, RangeCalendar, RangeCalendarButton, RangeCalendarCell, RangeCalendarContext, RangeCalendarGrid, RangeCalendarHeading, RangeCalendarStateContext, Rect, ResizableTableContainer, RootMenuTriggerStateContext, RouterContext, RouterProvider, TableRow as Row, TableRow, SSRProvider, SearchField, SearchFieldClearButton, SearchFieldContext, SearchFieldInput, SearchFieldLabel, Section, Select, SelectContext, SelectListBox, SelectOption, SelectStateContext, SelectTrigger, SelectValue, SelectValueContext, SelectableCollectionContext, SelectionIndicator, SelectionIndicatorContext, Separator, SeparatorContext, SharedElement, SharedElementTransition, Size, Slider, SliderContext, SliderFill, SliderFillContext, SliderOutput, SliderOutputContext, SliderStateContext, SliderThumb, SliderTrack, SliderTrackContext, Step, StepList, StepListContext, StepListStateContext, SubmenuTrigger, ToggleSwitch as Switch, ToggleSwitch, SwitchButton, ToggleSwitchContext as SwitchContext, ToggleSwitchContext, SwitchField, SwitchFieldContext, Tab, TabList, TabsStateContext as TabListStateContext, TabsStateContext, TabPanel, TabPanels, Table, TableBody, TableColumnResizeStateContext, TableContext, TableFooter, TableHeader, TableLayout, TableLoadMoreItem, TableRowContext, TableSelectAllCheckbox, TableSelectionCheckbox, TableStateContext, Tabs, TabsContext, Tag, TagGroup, TagGroupContext, TagList, TagListStateContext as TagListContext, TagListStateContext, TagRemoveButton, Text, TextArea, TextAreaContext, TextContext, TextField, TextFieldContext, TimeField, TimeFieldContext, TimeFieldDescription, TimeFieldErrorMessage, TimeFieldLabel, TimeFieldStateContext, Toast, Toast as UNSTABLE_Toast, Toast as UNSTABLE_ToastContent, ToastCloseButton, ToastContext, ToastContext as UNSTABLE_ToastStateContext, ToastDescription, ToastProvider, ToastRegion, ToastRegion as UNSTABLE_ToastList, ToastRegion as UNSTABLE_ToastRegion, ToastTitle, ToggleButton, ToggleButtonContext, ToggleButtonGroup, ToggleButtonGroupContext, ToggleButtonGroupStateContext, ToggleGroupStateContext, Toolbar, ToolbarContext, Tooltip, TooltipContext, TooltipTrigger, TooltipTriggerStateContext, Tree, TreeContext, TreeExpandButton, TreeHeader, TreeItem, TreeItemContent, TreeItemContext, TreeLoadMoreItem, TreeSection, TreeSelectionCheckbox, TreeStateContext, UNSTABLE_ToastQueue, Virtualizer, VirtualizerContext, VisuallyHidden, WaterfallLayout, addToast, assignRef, composeRenderProps, createAsyncList, createBranchComponent, createDataAttributes, createLeafComponent, createListData, createSlottedContext, createTreeData, dataAttr, defaultContainsFilter, filterDOMProps, flattenCollectionEntries, getColorChannels, globalToastQueue, isCollectionSection, isDirectoryDropItem, isFileDropItem, isRTL, isTextDropItem, mergeRefs, parseColor, removeDataAttributes, useActionBarContext, useActionGroupContext, useAsyncList, useAutocompleteCollection, useAutocompleteInput, useAutocompleteState, useCalendarContext, useContextProps, useDateFieldContext, useDatePickerContext, useDateRangePickerContext, useDialogTrigger, useDisclosureContext, useDisclosureGroupContext, useDndPersistedKeys, useDrag, useDragAndDrop, useDrop, useFilter, useHasSharedElementTransitionScope, useLandmarkController, useListData, useLocale, useOverlayTriggerState, usePopoverTrigger, useRangeCalendarContext, useRenderDropIndicator, useRenderProps, useRouter, useSlot, useSlottedContext, useStepListState, useTableOptions, useTagGroupContext, useTimeFieldContext, useToastContext, useToggleButtonGroupStateContext, useTreeData, useVirtualizerContext };
|
|
70
|
+
export { ActionBar, ActionBarClearButton, ActionBarContainer, ActionBarContext, ActionBarSelectionCount, ActionGroup, ActionGroupContext, ActionGroupStateContext, Alert, AlertContext, AlertDismissButton, Autocomplete, AutocompleteCollectionContext, AutocompleteContext, AutocompleteStateContext, BreadcrumbItem as Breadcrumb, BreadcrumbItem, BreadcrumbItemContext, Breadcrumbs, BreadcrumbsContext, Button, ButtonContext, Calendar, CalendarButton, CalendarCell, CalendarContext, CalendarContext as CalendarStateContext, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, CalendarHeading, CalendarMonthPicker, CalendarYearPicker, TableCell as Cell, TableCell, Checkbox, CheckboxButton, CheckboxContext, CheckboxField, CheckboxFieldContext, CheckboxGroup, CheckboxGroupContext, CheckboxGroupStateContext, Collection, CollectionBuilder, CollectionRendererContext, ColorArea, ColorAreaContext, ColorAreaGradient, ColorAreaStateContext, ColorAreaThumb, ColorEditor, ColorField, ColorFieldContext, ColorFieldInput, ColorFieldStateContext, ColorPicker, ColorPickerContext, ColorPickerStateContext, ColorSlider, ColorSliderContext, ColorSliderLabel, ColorSliderOutput, ColorSliderStateContext, ColorSliderThumb, ColorSliderTrack, ColorSwatch, ColorSwatchContext, ColorSwatchPicker, ColorSwatchPickerContext, ColorSwatchPickerItem, ColorThumb, ColorWheel, ColorWheelContext, ColorWheelStateContext, ColorWheelThumb, ColorWheelTrack, ColorWheelTrackContext, TableColumn as Column, TableColumn, ColumnResizer, ComboBox, ComboBoxButton, ComboBoxContext, ComboBoxDescription, ComboBoxErrorMessage, ComboBoxInput, ComboBoxLabel, ComboBoxListBox, ComboBoxOption, ComboBoxStateContext, ComboBoxTag, ComboBoxTagGroup, ComboBoxValue, ComboBoxValueContext, ContextualHelpTrigger, DEFAULT_SLOT, DIRECTORY_DRAG_TYPE, DateField, DateFieldContext, DateFieldDescription, DateFieldErrorMessage, DateFieldLabel, DateFieldStateContext, DateInput, DatePicker, DatePickerButton, DatePickerContent, DatePickerContext, DatePickerDescription, DatePickerErrorMessage, DatePickerLabel, DatePickerStateContext, DateRangePicker, DateRangePickerButton, DateRangePickerContent, DateRangePickerContext, DateRangePickerDescription, DateRangePickerErrorMessage, DateRangePickerLabel, DateRangePickerStateContext, DateSegment, DefaultCollectionRenderer, DefaultToast, Dialog, DialogContext, Heading as DialogHeading, Heading, DialogTrigger, DialogTriggerContext, Disclosure, DisclosureContext, DisclosureGroup, DisclosureGroupContext, DisclosureGroupStateContext, DisclosurePanel, DisclosureStateContext, DisclosureTrigger, DragAndDropContext, DropIndicator, DropIndicatorContext, DropZone, DropZoneContext, ElementTag, FieldError, FieldErrorContext, FieldInputContext, FileTrigger, Focusable, Form, FormContext, FormValidationContext, GridLayout, GridList, GridListContext, GridListHeader, GridListHeaderContext, GridListHeaderInnerContext, GridListItem, GridListLoadMoreItem, GridListSection, GridListSelectionCheckbox, GridListStateContext, Group, GroupContext, Header, HeaderContext, HeadingContext, HiddenDateInput, I18nProvider, Icon, IconContext, Input, InputContext, Keyboard, KeyboardContext, Label, LabelContext, Landmark, LandmarkContext, Layout, LayoutInfo, Link, LinkContext, ListBox, ListBoxContext, ListBoxOption as ListBoxItem, ListBoxOption, ListBoxLoadMoreItem, ListBoxSection, ListBoxStateContext, ListLayout, ListStateContext, Menu, MenuButton, MenuContext, MenuItem, MenuSection, MenuStateContext, MenuTrigger, MenuTriggerContext, Meter, MeterContext, Modal, ModalContext, ModalOverlay, NumberField, NumberFieldContext, NumberFieldDecrementButton, NumberFieldGroup, NumberFieldIncrementButton, NumberFieldInput, NumberFieldLabel, NumberFieldStateContext, OverlayArrow, OverlayTriggerStateContext, Point, Popover, PopoverContext, PopoverTrigger, PopoverTriggerContext, Pressable, ProgressBar, ProgressBarContext, Provider, Radio, RadioButton, RadioContext, RadioField, RadioFieldContext, RadioGroup, RadioGroupContext, RadioGroupStateContext, RangeCalendar, RangeCalendarButton, RangeCalendarCell, RangeCalendarContext, RangeCalendarGrid, RangeCalendarHeading, RangeCalendarStateContext, Rect, ResizableTableContainer, RootMenuTriggerStateContext, RouterContext, RouterProvider, TableRow as Row, TableRow, SSRProvider, SearchField, SearchFieldClearButton, SearchFieldContext, SearchFieldInput, SearchFieldLabel, Section, Select, SelectContext, SelectListBox, SelectOption, SelectStateContext, SelectTrigger, SelectValue, SelectValueContext, SelectableCollectionContext, SelectionIndicator, SelectionIndicatorContext, Separator, SeparatorContext, SharedElement, SharedElementTransition, Size, Slider, SliderContext, SliderFill, SliderFillContext, SliderOutput, SliderOutputContext, SliderStateContext, SliderThumb, SliderTrack, SliderTrackContext, Step, StepList, StepListContext, StepListStateContext, SubmenuTrigger, ToggleSwitch as Switch, ToggleSwitch, SwitchButton, ToggleSwitchContext as SwitchContext, ToggleSwitchContext, SwitchField, SwitchFieldContext, Tab, TabList, TabsStateContext as TabListStateContext, TabsStateContext, TabPanel, TabPanels, Table, TableBody, TableColumnResizeStateContext, TableContext, TableFooter, TableHeader, TableLayout, TableLoadMoreItem, TableRowContext, TableSelectAllCheckbox, TableSelectionCheckbox, TableStateContext, Tabs, TabsContext, Tag, TagGroup, TagGroupContext, TagList, TagListStateContext as TagListContext, TagListStateContext, TagRemoveButton, Text, TextArea, TextAreaContext, TextContext, TextField, TextFieldContext, TimeField, TimeFieldContext, TimeFieldDescription, TimeFieldErrorMessage, TimeFieldLabel, TimeFieldStateContext, Toast, Toast as UNSTABLE_Toast, Toast as UNSTABLE_ToastContent, ToastCloseButton, ToastContext, ToastContext as UNSTABLE_ToastStateContext, ToastDescription, ToastProvider, ToastRegion, ToastRegion as UNSTABLE_ToastList, ToastRegion as UNSTABLE_ToastRegion, ToastTitle, ToggleButton, ToggleButtonContext, ToggleButtonGroup, ToggleButtonGroupContext, ToggleButtonGroupStateContext, ToggleGroupStateContext, Toolbar, ToolbarContext, Tooltip, TooltipContext, TooltipTrigger, TooltipTriggerStateContext, Tree, TreeContext, TreeExpandButton, TreeHeader, TreeItem, TreeItemContent, TreeItemContext, TreeLoadMoreItem, TreeSection, TreeSelectionCheckbox, TreeStateContext, UNSTABLE_ToastQueue, Virtualizer, VirtualizerContext, VisuallyHidden, WaterfallLayout, addToast, assignRef, composeRenderProps, createAsyncList, createBranchComponent, createDataAttributes, createLeafComponent, createListData, createSlottedContext, createTreeData, dataAttr, defaultContainsFilter, filterDOMProps, flattenCollectionEntries, getColorChannels, globalToastQueue, isCollectionSection, isDirectoryDropItem, isFileDropItem, isRTL, isTextDropItem, mergeRefs, parseColor, removeDataAttributes, useActionBarContext, useActionGroupContext, useAsyncList, useAutocompleteCollection, useAutocompleteInput, useAutocompleteState, useCalendarContext, useContextProps, useDateFieldContext, useDatePickerContext, useDateRangePickerContext, useDialogTrigger, useDisclosureContext, useDisclosureGroupContext, useDndPersistedKeys, useDrag, useDragAndDrop, useDrop, useFilter, useHasSharedElementTransitionScope, useLandmarkController, useListData, useLocale, useOverlayTriggerState, usePopoverTrigger, useRangeCalendarContext, useRenderDropIndicator, useRenderProps, useRouter, useSlot, useSlottedContext, useStepListState, useTableOptions, useTagGroupContext, useTimeFieldContext, useToastContext, useToggleButtonGroupStateContext, useTreeData, useVirtualizerContext };
|