vorma 0.85.0-pre.10 → 0.85.0-pre.12
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/kit/lab/design/components/remix/remix.d.ts +2280 -0
- package/.dist/kit/lab/design/components/remix/remix.d.ts.map +1 -0
- package/.dist/kit/lab/design/components/remix/remix.js +6817 -0
- package/.dist/kit/lab/design/components/remix/remix.js.map +1 -0
- package/.dist/kit/lab/design/core/core.d.ts +527 -0
- package/.dist/kit/lab/design/core/core.d.ts.map +1 -0
- package/.dist/kit/lab/design/core/core.js +668 -0
- package/.dist/kit/lab/design/core/core.js.map +1 -0
- package/.dist/kit/lab/design/system/system.d.ts +418 -0
- package/.dist/kit/lab/design/system/system.d.ts.map +1 -0
- package/.dist/kit/lab/design/system/system.js +501 -0
- package/.dist/kit/lab/design/system/system.js.map +1 -0
- package/.dist/kit/matcher/matcher.d.ts +78 -0
- package/.dist/kit/matcher/matcher.d.ts.map +1 -0
- package/.dist/kit/matcher/matcher.js +517 -0
- package/.dist/kit/matcher/matcher.js.map +1 -0
- package/.dist/vorma/core/_index.d.ts +291 -142
- package/.dist/vorma/core/_index.d.ts.map +1 -1
- package/.dist/vorma/core/_index.js +505 -198
- package/.dist/vorma/core/_index.js.map +1 -1
- package/.dist/vorma/tsx/preact/preact.d.ts +24 -5
- package/.dist/vorma/tsx/preact/preact.d.ts.map +1 -1
- package/.dist/vorma/tsx/preact/preact.js +62 -35
- package/.dist/vorma/tsx/preact/preact.js.map +1 -1
- package/.dist/vorma/tsx/react/react.d.ts +24 -5
- package/.dist/vorma/tsx/react/react.d.ts.map +1 -1
- package/.dist/vorma/tsx/react/react.js +83 -34
- package/.dist/vorma/tsx/react/react.js.map +1 -1
- package/.dist/vorma/tsx/remix/remix.d.ts +72 -0
- package/.dist/vorma/tsx/remix/remix.d.ts.map +1 -0
- package/.dist/vorma/tsx/remix/remix.js +407 -0
- package/.dist/vorma/tsx/remix/remix.js.map +1 -0
- package/.dist/vorma/tsx/solid/solid.d.ts +24 -5
- package/.dist/vorma/tsx/solid/solid.d.ts.map +1 -1
- package/.dist/vorma/tsx/solid/solid.js +67 -39
- package/.dist/vorma/tsx/solid/solid.js.map +1 -1
- package/.dist/vorma/vite/vite.d.mts.map +1 -1
- package/.dist/vorma/vite/vite.mjs +74 -7
- package/.dist/vorma/vite/vite.mjs.map +1 -1
- package/kit/lab/design/components/remix/AGENTS.md +241 -0
- package/kit/lab/design/components/remix/COMPONENT_MATRIX.md +133 -0
- package/kit/lab/design/components/remix/INTERACTION_PRIMITIVES_PLAN.md +254 -0
- package/kit/lab/design/components/remix/accordion.notes.md +11 -0
- package/kit/lab/design/components/remix/accordion.ts +516 -0
- package/kit/lab/design/components/remix/alert-dialog.notes.md +11 -0
- package/kit/lab/design/components/remix/alert-dialog.ts +560 -0
- package/kit/lab/design/components/remix/alert.notes.md +12 -0
- package/kit/lab/design/components/remix/alert.ts +223 -0
- package/kit/lab/design/components/remix/aspect-ratio.notes.md +4 -0
- package/kit/lab/design/components/remix/aspect-ratio.ts +119 -0
- package/kit/lab/design/components/remix/badge.notes.md +4 -0
- package/kit/lab/design/components/remix/badge.ts +55 -0
- package/kit/lab/design/components/remix/box.notes.md +4 -0
- package/kit/lab/design/components/remix/box.ts +47 -0
- package/kit/lab/design/components/remix/button.notes.md +4 -0
- package/kit/lab/design/components/remix/button.ts +327 -0
- package/kit/lab/design/components/remix/callout.notes.md +11 -0
- package/kit/lab/design/components/remix/callout.ts +147 -0
- package/kit/lab/design/components/remix/checkable-state.ts +129 -0
- package/kit/lab/design/components/remix/checkbox-group.notes.md +19 -0
- package/kit/lab/design/components/remix/checkbox-group.ts +445 -0
- package/kit/lab/design/components/remix/checkbox.notes.md +15 -0
- package/kit/lab/design/components/remix/checkbox.ts +197 -0
- package/kit/lab/design/components/remix/chip.notes.md +11 -0
- package/kit/lab/design/components/remix/chip.ts +172 -0
- package/kit/lab/design/components/remix/code-block.notes.md +4 -0
- package/kit/lab/design/components/remix/code-block.ts +194 -0
- package/kit/lab/design/components/remix/collapsible.notes.md +11 -0
- package/kit/lab/design/components/remix/collapsible.ts +369 -0
- package/kit/lab/design/components/remix/component-state.ts +51 -0
- package/kit/lab/design/components/remix/component-style.ts +381 -0
- package/kit/lab/design/components/remix/composite-navigation.ts +75 -0
- package/kit/lab/design/components/remix/conditions.ts +25 -0
- package/kit/lab/design/components/remix/controllable-state.ts +60 -0
- package/kit/lab/design/components/remix/description-list.notes.md +11 -0
- package/kit/lab/design/components/remix/description-list.ts +301 -0
- package/kit/lab/design/components/remix/dialog.notes.md +16 -0
- package/kit/lab/design/components/remix/dialog.ts +686 -0
- package/kit/lab/design/components/remix/empty-state.notes.md +4 -0
- package/kit/lab/design/components/remix/empty-state.ts +160 -0
- package/kit/lab/design/components/remix/field.notes.md +4 -0
- package/kit/lab/design/components/remix/field.ts +407 -0
- package/kit/lab/design/components/remix/fieldset.notes.md +10 -0
- package/kit/lab/design/components/remix/fieldset.ts +165 -0
- package/kit/lab/design/components/remix/form-mirror.ts +94 -0
- package/kit/lab/design/components/remix/form.notes.md +9 -0
- package/kit/lab/design/components/remix/form.ts +116 -0
- package/kit/lab/design/components/remix/grid.notes.md +4 -0
- package/kit/lab/design/components/remix/grid.ts +188 -0
- package/kit/lab/design/components/remix/group-label.ts +47 -0
- package/kit/lab/design/components/remix/icon.notes.md +4 -0
- package/kit/lab/design/components/remix/icon.ts +177 -0
- package/kit/lab/design/components/remix/input.notes.md +4 -0
- package/kit/lab/design/components/remix/input.ts +138 -0
- package/kit/lab/design/components/remix/kbd.notes.md +12 -0
- package/kit/lab/design/components/remix/kbd.ts +58 -0
- package/kit/lab/design/components/remix/list.notes.md +4 -0
- package/kit/lab/design/components/remix/list.ts +126 -0
- package/kit/lab/design/components/remix/listbox.notes.md +64 -0
- package/kit/lab/design/components/remix/listbox.ts +1200 -0
- package/kit/lab/design/components/remix/menu.notes.md +70 -0
- package/kit/lab/design/components/remix/menu.ts +1558 -0
- package/kit/lab/design/components/remix/ordered-collection.ts +97 -0
- package/kit/lab/design/components/remix/popover-scroll-lock.ts +91 -0
- package/kit/lab/design/components/remix/popover.notes.md +12 -0
- package/kit/lab/design/components/remix/popover.ts +606 -0
- package/kit/lab/design/components/remix/popup-behavior.ts +106 -0
- package/kit/lab/design/components/remix/progress.notes.md +13 -0
- package/kit/lab/design/components/remix/progress.ts +201 -0
- package/kit/lab/design/components/remix/radio-group.notes.md +19 -0
- package/kit/lab/design/components/remix/radio-group.ts +405 -0
- package/kit/lab/design/components/remix/recipe.ts +68 -0
- package/kit/lab/design/components/remix/remix.ts +679 -0
- package/kit/lab/design/components/remix/responsive.ts +112 -0
- package/kit/lab/design/components/remix/root.ts +152 -0
- package/kit/lab/design/components/remix/select.notes.md +80 -0
- package/kit/lab/design/components/remix/select.ts +1647 -0
- package/kit/lab/design/components/remix/separator.notes.md +14 -0
- package/kit/lab/design/components/remix/separator.ts +116 -0
- package/kit/lab/design/components/remix/slider.notes.md +13 -0
- package/kit/lab/design/components/remix/slider.ts +323 -0
- package/kit/lab/design/components/remix/spinner.notes.md +4 -0
- package/kit/lab/design/components/remix/spinner.ts +119 -0
- package/kit/lab/design/components/remix/stack.notes.md +4 -0
- package/kit/lab/design/components/remix/stack.ts +212 -0
- package/kit/lab/design/components/remix/stat.notes.md +4 -0
- package/kit/lab/design/components/remix/stat.ts +136 -0
- package/kit/lab/design/components/remix/surface.notes.md +4 -0
- package/kit/lab/design/components/remix/surface.ts +65 -0
- package/kit/lab/design/components/remix/switch.notes.md +14 -0
- package/kit/lab/design/components/remix/switch.ts +201 -0
- package/kit/lab/design/components/remix/table.notes.md +4 -0
- package/kit/lab/design/components/remix/table.ts +409 -0
- package/kit/lab/design/components/remix/tabs.notes.md +11 -0
- package/kit/lab/design/components/remix/tabs.ts +418 -0
- package/kit/lab/design/components/remix/test-setup.ts +33 -0
- package/kit/lab/design/components/remix/text.notes.md +4 -0
- package/kit/lab/design/components/remix/text.ts +170 -0
- package/kit/lab/design/components/remix/textarea.notes.md +11 -0
- package/kit/lab/design/components/remix/textarea.ts +141 -0
- package/kit/lab/design/components/remix/toast.notes.md +11 -0
- package/kit/lab/design/components/remix/toast.ts +313 -0
- package/kit/lab/design/components/remix/tooltip.notes.md +11 -0
- package/kit/lab/design/components/remix/tooltip.ts +353 -0
- package/kit/lab/design/components/remix/typeahead.ts +83 -0
- package/kit/lab/design/components/remix/types.ts +19 -0
- package/kit/lab/design/components/remix/visually-hidden.notes.md +14 -0
- package/kit/lab/design/components/remix/visually-hidden.ts +99 -0
- package/kit/lab/design/core/color.ts +46 -0
- package/kit/lab/design/core/core.ts +111 -0
- package/kit/lab/design/core/create_primitive.ts +506 -0
- package/kit/lab/design/core/create_system.ts +344 -0
- package/kit/lab/design/core/css.ts +133 -0
- package/kit/lab/design/core/define_system.ts +526 -0
- package/kit/lab/design/core/math.ts +15 -0
- package/kit/lab/design/core/object.ts +35 -0
- package/kit/lab/design/core/recipe/create_recipe.ts +185 -0
- package/kit/lab/design/core/recipe/recipe.ts +30 -0
- package/kit/lab/design/core/recipe/style.ts +65 -0
- package/kit/lab/design/core/recipe/types.ts +168 -0
- package/kit/lab/design/core/resolve_token.ts +128 -0
- package/kit/lab/design/core/types.ts +654 -0
- package/kit/matcher/matcher.ts +1070 -0
- package/package.json +19 -16
- package/vorma/core/_index.ts +49 -31
- package/vorma/core/api_client.ts +154 -77
- package/vorma/core/ccc_effect_experiment.ts +471 -0
- package/vorma/core/ccc_effect_experiment_notes.md +310 -0
- package/vorma/core/ccc_effect_navigation_experiment.ts +449 -0
- package/vorma/core/ccc_effect_submit_experiment.ts +624 -0
- package/vorma/core/constants.ts +5 -3
- package/vorma/core/create_client_core.ts +699 -268
- package/vorma/core/create_client_core_effect.ts +548 -0
- package/vorma/core/css.ts +24 -13
- package/vorma/core/effect_runtime/abort_signal.ts +36 -0
- package/vorma/core/effect_runtime/boot_revalidation_gate.ts +77 -0
- package/vorma/core/effect_runtime/boot_route_state.ts +38 -0
- package/vorma/core/effect_runtime/browser_fetch_runtime.ts +69 -0
- package/vorma/core/effect_runtime/browser_history.ts +106 -0
- package/vorma/core/effect_runtime/browser_location.ts +112 -0
- package/vorma/core/effect_runtime/browser_view_runtime.ts +242 -0
- package/vorma/core/effect_runtime/build_skew_reporter.ts +60 -0
- package/vorma/core/effect_runtime/client_contract.ts +250 -0
- package/vorma/core/effect_runtime/client_kernel.ts +61 -0
- package/vorma/core/effect_runtime/client_kernel_assembly.ts +273 -0
- package/vorma/core/effect_runtime/client_kernel_resources.ts +115 -0
- package/vorma/core/effect_runtime/client_navigation_services.ts +532 -0
- package/vorma/core/effect_runtime/client_route_services.ts +185 -0
- package/vorma/core/effect_runtime/client_runtime_services.ts +171 -0
- package/vorma/core/effect_runtime/focus_revalidator.ts +76 -0
- package/vorma/core/effect_runtime/index.ts +43 -0
- package/vorma/core/effect_runtime/module_runtime.ts +311 -0
- package/vorma/core/effect_runtime/navigation_actor.ts +698 -0
- package/vorma/core/effect_runtime/prefetch_manager.ts +512 -0
- package/vorma/core/effect_runtime/revalidation_coordinator.ts +522 -0
- package/vorma/core/effect_runtime/route_dom_runtime.ts +96 -0
- package/vorma/core/effect_runtime/route_fetcher.ts +178 -0
- package/vorma/core/effect_runtime/route_preparer.ts +1002 -0
- package/vorma/core/effect_runtime/route_publisher.ts +463 -0
- package/vorma/core/effect_runtime/route_revalidator.ts +193 -0
- package/vorma/core/effect_runtime/runtime_lifecycle.ts +66 -0
- package/vorma/core/effect_runtime/scroll_restoration.ts +267 -0
- package/vorma/core/effect_runtime/submit_dispatcher.ts +50 -0
- package/vorma/core/effect_runtime/submit_manager.ts +682 -0
- package/vorma/core/effect_runtime/work_indicator.ts +269 -0
- package/vorma/core/effect_runtime/work_state_actor.ts +470 -0
- package/vorma/core/make_link_props.ts +3 -3
- package/vorma/core/resolve_outlet_slot.ts +4 -7
- package/vorma/core/types.ts +321 -129
- package/vorma/core/ui_adapter_core.ts +90 -59
- package/vorma/core/url.ts +16 -16
- package/vorma/create/package.json +1 -1
- package/vorma/tsx/preact/preact.tsx +162 -98
- package/vorma/tsx/react/react.tsx +181 -85
- package/vorma/tsx/remix/remix.tsx +972 -0
- package/vorma/tsx/remix/tsconfig.json +7 -0
- package/vorma/tsx/solid/solid.tsx +166 -94
- package/vorma/vite/vite.ts +144 -8
- package/.dist/kit/matcher/find_best_match.d.ts +0 -13
- package/.dist/kit/matcher/find_best_match.d.ts.map +0 -1
- package/.dist/kit/matcher/find_best_match.js +0 -92
- package/.dist/kit/matcher/find_best_match.js.map +0 -1
- package/.dist/kit/matcher/find_nested_matches.d.ts +0 -17
- package/.dist/kit/matcher/find_nested_matches.d.ts.map +0 -1
- package/.dist/kit/matcher/find_nested_matches.js +0 -183
- package/.dist/kit/matcher/find_nested_matches.js.map +0 -1
- package/.dist/kit/matcher/register.d.ts +0 -59
- package/.dist/kit/matcher/register.d.ts.map +0 -1
- package/.dist/kit/matcher/register.js +0 -159
- package/.dist/kit/matcher/register.js.map +0 -1
- package/.dist/kit/matcher/utils.d.ts +0 -6
- package/.dist/kit/matcher/utils.d.ts.map +0 -1
- package/.dist/kit/matcher/utils.js +0 -21
- package/.dist/kit/matcher/utils.js.map +0 -1
- package/kit/matcher/bench.txt +0 -24
- package/kit/matcher/find_best_match.ts +0 -189
- package/kit/matcher/find_nested_matches.ts +0 -366
- package/kit/matcher/register.ts +0 -318
- package/kit/matcher/utils.ts +0 -34
|
@@ -0,0 +1,2280 @@
|
|
|
1
|
+
import { Handle, MixInput, Props, RemixNode } from "remix/ui";
|
|
2
|
+
//#region kit/lab/design/core/color.d.ts
|
|
3
|
+
type OKLCH = {
|
|
4
|
+
chroma: number;
|
|
5
|
+
hue: number;
|
|
6
|
+
lightness: number;
|
|
7
|
+
};
|
|
8
|
+
type Palette<TStep extends string = string> = Record<TStep, string>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region kit/lab/design/core/css.d.ts
|
|
11
|
+
type CSSVariableName = `--${string}`;
|
|
12
|
+
type CSSVariableMap = Record<CSSVariableName, string | number>;
|
|
13
|
+
type TokenPrimitive = string | number;
|
|
14
|
+
type TokenReferences<T> = T extends TokenPrimitive ? string : { readonly [K in keyof T]: TokenReferences<T[K]> };
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region kit/lab/design/core/recipe/style.d.ts
|
|
17
|
+
type RecipeStyle = {
|
|
18
|
+
readonly [property: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region kit/lab/design/core/recipe/types.d.ts
|
|
22
|
+
type RecipeConditionMap<TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle> = Partial<Record<TCondition, TStyle>>;
|
|
23
|
+
type RecipeSlotInput<TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle> = {
|
|
24
|
+
base?: TStyle;
|
|
25
|
+
conditions?: RecipeConditionMap<TCondition, TStyle>;
|
|
26
|
+
};
|
|
27
|
+
type RecipeSlotMapInput<TSlot extends string = string, TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle> = Record<TSlot, RecipeSlotInput<TCondition, TStyle>>;
|
|
28
|
+
type RecipeVariantSlotMapInput<TSlot extends string = string, TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle> = Partial<Record<TSlot, RecipeSlotInput<TCondition, TStyle>>>;
|
|
29
|
+
type RecipeVariantGroupInput<TSlot extends string = string, TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle> = Record<string, RecipeVariantSlotMapInput<TSlot, TCondition, TStyle>>;
|
|
30
|
+
type RecipeVariantsInput<TSlot extends string = string, TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle> = Record<string, RecipeVariantGroupInput<TSlot, TCondition, TStyle>>;
|
|
31
|
+
type RecipeVariantValueMap = Record<string, string>;
|
|
32
|
+
type RecipeVariantGroupsFor<TSlot extends string, TCondition extends string, TStyle extends RecipeStyle, TVariantValues extends RecipeVariantValueMap> = { readonly [K in keyof TVariantValues & string]: Record<TVariantValues[K], RecipeVariantSlotMapInput<TSlot, TCondition, TStyle>> };
|
|
33
|
+
type RecipeWithVariantGroups<TSlot extends string, TCondition extends string, TStyle extends RecipeStyle, TVariantValues extends RecipeVariantValueMap> = RecipeInput<TSlot, TCondition, TStyle, RecipeVariantGroupsFor<TSlot, TCondition, TStyle, TVariantValues>>;
|
|
34
|
+
type RecipeVariantSelection<TVariants extends RecipeVariantsInput = RecipeVariantsInput> = Partial<{ readonly [K in keyof TVariants & string]: keyof TVariants[K] & string }>;
|
|
35
|
+
type RecipeCompoundVariantInput<TSlot extends string = string, TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle, TVariants extends RecipeVariantsInput<TSlot, TCondition, TStyle> = RecipeVariantsInput<TSlot, TCondition, TStyle>> = {
|
|
36
|
+
slots: RecipeVariantSlotMapInput<TSlot, TCondition, TStyle>;
|
|
37
|
+
variants: RecipeVariantSelection<TVariants>;
|
|
38
|
+
};
|
|
39
|
+
type RecipeInput<TSlot extends string = string, TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle, TVariants extends RecipeVariantsInput<TSlot, TCondition, TStyle> = RecipeVariantsInput<TSlot, TCondition, TStyle>> = {
|
|
40
|
+
compoundVariants?: readonly RecipeCompoundVariantInput<TSlot, TCondition, TStyle, TVariants>[];
|
|
41
|
+
defaultVariants?: RecipeVariantSelection<TVariants>;
|
|
42
|
+
slots: RecipeSlotMapInput<TSlot, TCondition, TStyle>;
|
|
43
|
+
variants?: TVariants;
|
|
44
|
+
};
|
|
45
|
+
type RecipeVariantGroups<TRecipe extends RecipeInput> = TRecipe extends RecipeInput<string, string, RecipeStyle, infer TVariants> ? TVariants : never;
|
|
46
|
+
type RecipeVariantGroupName<TRecipe extends RecipeInput> = keyof RecipeVariantGroups<TRecipe> & string;
|
|
47
|
+
type RecipeVariantValue<TRecipe extends RecipeInput, TGroup extends RecipeVariantGroupName<TRecipe>> = keyof RecipeVariantGroups<TRecipe>[TGroup] & string;
|
|
48
|
+
type RecipeVariantProps<TRecipe extends RecipeInput> = Partial<{ readonly [K in RecipeVariantGroupName<TRecipe>]: RecipeVariantValue<TRecipe, K> }>;
|
|
49
|
+
type RecipeVariantPropsFor<TRecipe extends RecipeInput, TGroups extends RecipeVariantGroupName<TRecipe>> = Pick<RecipeVariantProps<TRecipe>, TGroups>;
|
|
50
|
+
type ResolvedRecipeSlot<TCondition extends string = string, TStyle extends RecipeStyle = RecipeStyle> = {
|
|
51
|
+
base: TStyle;
|
|
52
|
+
conditions: RecipeConditionMap<TCondition, TStyle>;
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region kit/lab/design/core/types.d.ts
|
|
56
|
+
declare const primitive_token_keys: {
|
|
57
|
+
readonly aspect_ratio: "aspect-ratio";
|
|
58
|
+
readonly data_visualization: "data-visualization";
|
|
59
|
+
readonly font_family: "font-family";
|
|
60
|
+
readonly font_size: "font-size";
|
|
61
|
+
readonly font_weight: "font-weight";
|
|
62
|
+
readonly letter_spacing: "letter-spacing";
|
|
63
|
+
readonly line_height: "line-height";
|
|
64
|
+
readonly stroke_width: "stroke-width";
|
|
65
|
+
readonly text_style: "text-style";
|
|
66
|
+
};
|
|
67
|
+
declare const token_spec_fields: {
|
|
68
|
+
readonly mix: "mix";
|
|
69
|
+
readonly parts: "parts";
|
|
70
|
+
readonly path: "path";
|
|
71
|
+
};
|
|
72
|
+
declare const token_spec_kinds: {
|
|
73
|
+
readonly mix: "mix";
|
|
74
|
+
readonly ref: "ref";
|
|
75
|
+
readonly template: "template";
|
|
76
|
+
};
|
|
77
|
+
type TokenPath = readonly [string, ...string[]];
|
|
78
|
+
declare const token_spec_kind: unique symbol;
|
|
79
|
+
type TokenReferenceSpec<Path extends TokenPath = TokenPath> = {
|
|
80
|
+
readonly [token_spec_kind]: typeof token_spec_kinds.ref;
|
|
81
|
+
readonly [token_spec_fields.path]: Path;
|
|
82
|
+
};
|
|
83
|
+
type TokenMixSpec = {
|
|
84
|
+
readonly [token_spec_kind]: typeof token_spec_kinds.mix;
|
|
85
|
+
readonly [token_spec_fields.mix]: {
|
|
86
|
+
amount: string;
|
|
87
|
+
color: TokenSpec;
|
|
88
|
+
space: string;
|
|
89
|
+
with: TokenSpec;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
type TokenTemplateSpec = {
|
|
93
|
+
readonly [token_spec_kind]: typeof token_spec_kinds.template;
|
|
94
|
+
readonly [token_spec_fields.parts]: readonly TokenSpec[];
|
|
95
|
+
};
|
|
96
|
+
type TokenSpec = string | number | OKLCH | TokenReferenceSpec | TokenMixSpec | TokenTemplateSpec;
|
|
97
|
+
type PrimitiveTextStyleTokens = Partial<{
|
|
98
|
+
[primitive_token_keys.font_family]: string;
|
|
99
|
+
[primitive_token_keys.font_size]: string;
|
|
100
|
+
[primitive_token_keys.font_weight]: string;
|
|
101
|
+
[primitive_token_keys.letter_spacing]: string;
|
|
102
|
+
[primitive_token_keys.line_height]: string;
|
|
103
|
+
}>;
|
|
104
|
+
type TokenGroupInput = {
|
|
105
|
+
readonly [key: string]: TokenSpec | TokenGroupInput | undefined;
|
|
106
|
+
};
|
|
107
|
+
type SemanticInput = {
|
|
108
|
+
border?: TokenGroupInput;
|
|
109
|
+
color?: TokenGroupInput;
|
|
110
|
+
"data-visualization"?: TokenGroupInput;
|
|
111
|
+
elevation?: TokenGroupInput;
|
|
112
|
+
focus?: TokenGroupInput;
|
|
113
|
+
icon?: TokenGroupInput;
|
|
114
|
+
layout?: TokenGroupInput;
|
|
115
|
+
outline?: TokenGroupInput;
|
|
116
|
+
state?: TokenGroupInput;
|
|
117
|
+
surface?: TokenGroupInput;
|
|
118
|
+
text?: TokenGroupInput;
|
|
119
|
+
tone?: TokenGroupInput;
|
|
120
|
+
typography?: TokenGroupInput;
|
|
121
|
+
readonly [category: string]: TokenGroupInput | undefined;
|
|
122
|
+
};
|
|
123
|
+
type ResolvedTokenTree<T> = T extends TokenSpec ? string | number : { [K in keyof T as undefined extends T[K] ? never : K]: ResolvedTokenTree<Exclude<T[K], undefined>> };
|
|
124
|
+
type PrimitiveTokens = {
|
|
125
|
+
border?: {
|
|
126
|
+
radius?: Record<string, string>;
|
|
127
|
+
shorthand?: Record<string, string | number>;
|
|
128
|
+
style?: Record<string, string | number>;
|
|
129
|
+
width?: Record<string, string>;
|
|
130
|
+
};
|
|
131
|
+
color?: {
|
|
132
|
+
palette?: Record<string, Palette>;
|
|
133
|
+
source: Record<string, string>;
|
|
134
|
+
};
|
|
135
|
+
content?: {
|
|
136
|
+
"aspect-ratio"?: Record<string, string | number>;
|
|
137
|
+
measure?: Record<string, string | number>;
|
|
138
|
+
};
|
|
139
|
+
"data-visualization"?: {
|
|
140
|
+
color?: Record<string, string | number>;
|
|
141
|
+
shape?: Record<string, string | number>;
|
|
142
|
+
stroke?: Record<string, string | number>;
|
|
143
|
+
};
|
|
144
|
+
dimension?: {
|
|
145
|
+
"aspect-ratio"?: Record<string, string | number>;
|
|
146
|
+
measure?: Record<string, string | number>;
|
|
147
|
+
size?: Record<string, Record<string, string>>;
|
|
148
|
+
space?: Record<string, string>;
|
|
149
|
+
};
|
|
150
|
+
effect?: {
|
|
151
|
+
blur?: Record<string, string | number>;
|
|
152
|
+
opacity?: Record<string, string | number>;
|
|
153
|
+
shadow?: Record<string, string | number>;
|
|
154
|
+
};
|
|
155
|
+
focus?: {
|
|
156
|
+
ring?: Record<string, string | number>;
|
|
157
|
+
};
|
|
158
|
+
icon?: {
|
|
159
|
+
asset?: Record<string, string | number>;
|
|
160
|
+
size?: Record<string, string>;
|
|
161
|
+
"stroke-width"?: Record<string, string>;
|
|
162
|
+
};
|
|
163
|
+
layout?: {
|
|
164
|
+
breakpoint?: Record<string, string | number>;
|
|
165
|
+
container?: Record<string, string | number>;
|
|
166
|
+
grid?: Record<string, string | number>;
|
|
167
|
+
layer?: Record<string, string | number>;
|
|
168
|
+
};
|
|
169
|
+
motion?: {
|
|
170
|
+
distance?: Record<string, string | number>;
|
|
171
|
+
duration?: Record<string, string | number>;
|
|
172
|
+
easing?: Record<string, string | number>;
|
|
173
|
+
transition?: Record<string, string | number>;
|
|
174
|
+
};
|
|
175
|
+
outline?: {
|
|
176
|
+
offset?: Record<string, string>;
|
|
177
|
+
shorthand?: Record<string, string | number>;
|
|
178
|
+
style?: Record<string, string | number>;
|
|
179
|
+
width?: Record<string, string>;
|
|
180
|
+
};
|
|
181
|
+
typography?: {
|
|
182
|
+
family?: Record<string, string | number>;
|
|
183
|
+
"letter-spacing"?: Record<string, string | number>;
|
|
184
|
+
"line-height"?: Record<string, string | number>;
|
|
185
|
+
size?: Record<string, string>;
|
|
186
|
+
"text-style"?: Record<string, PrimitiveTextStyleTokens>;
|
|
187
|
+
weight?: Record<string, string | number>;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
type SystemTokens = {
|
|
191
|
+
primitive?: PrimitiveTokens;
|
|
192
|
+
semantic?: ResolvedTokenTree<SemanticInput>;
|
|
193
|
+
};
|
|
194
|
+
type AnyGeneratedSystemMetadata = GeneratedSystemMetadata<never> | GeneratedSystemMetadata<string>;
|
|
195
|
+
type GeneratedSystem<TMode extends string = string, TTokenReferences = TokenReferences<SystemTokens>, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = {
|
|
196
|
+
metadata: TMetadata;
|
|
197
|
+
modes: Record<TMode, GeneratedSystemMode>;
|
|
198
|
+
variablePrefix: string;
|
|
199
|
+
token: TTokenReferences;
|
|
200
|
+
};
|
|
201
|
+
type GeneratedSystemMode = {
|
|
202
|
+
variables: CSSVariableMap;
|
|
203
|
+
};
|
|
204
|
+
type GeneratedSystemMetadata<TBreakpoint extends string = never> = [TBreakpoint] extends [never] ? {
|
|
205
|
+
breakpoint?: undefined;
|
|
206
|
+
} : {
|
|
207
|
+
breakpoint: Record<TBreakpoint, string | number>;
|
|
208
|
+
};
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region kit/lab/design/components/remix/conditions.d.ts
|
|
211
|
+
type CommonRecipeCondition = "active" | "disabled" | "focusVisible" | "hover" | "idle" | "invalid" | "placeholder" | "reducedMotion" | "selected";
|
|
212
|
+
declare const commonConditions: {
|
|
213
|
+
readonly active: "&:active";
|
|
214
|
+
readonly disabled: "&:disabled, &[aria-disabled='true'], &[data-disabled]";
|
|
215
|
+
readonly focusVisible: "&:focus-visible";
|
|
216
|
+
readonly hover: "&:hover";
|
|
217
|
+
readonly idle: "&[data-idle='true']";
|
|
218
|
+
readonly invalid: "&[aria-invalid='true'], &[data-invalid]";
|
|
219
|
+
readonly placeholder: "&::placeholder";
|
|
220
|
+
readonly reducedMotion: "@media (prefers-reduced-motion: reduce)";
|
|
221
|
+
readonly selected: "&[aria-selected='true'], &[data-selected]";
|
|
222
|
+
};
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region kit/lab/design/components/remix/recipe.d.ts
|
|
225
|
+
type RecipeConditionSelectorMap<TCondition extends string = string> = Partial<Readonly<Record<TCondition, string>>>;
|
|
226
|
+
declare function mergeRecipeConditionSelectors<TCondition extends string>(...maps: readonly (RecipeConditionSelectorMap<TCondition> | undefined)[]): RecipeConditionSelectorMap<TCondition>;
|
|
227
|
+
type RecipeStyleInput<TCondition extends string = string> = {
|
|
228
|
+
conditions?: RecipeConditionSelectorMap;
|
|
229
|
+
slot: ResolvedRecipeSlot<TCondition, RecipeStyle>;
|
|
230
|
+
style?: RecipeStyle;
|
|
231
|
+
};
|
|
232
|
+
declare function createRecipeStyle<TCondition extends string>(input: RecipeStyleInput<TCondition>): RecipeStyle;
|
|
233
|
+
declare function createRecipeMix<TElement extends Element = Element, TCondition extends string = string>(input: RecipeStyleInput<TCondition>): MixInput<TElement>;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region kit/lab/design/components/remix/types.d.ts
|
|
236
|
+
type ComponentStyle = RecipeStyle;
|
|
237
|
+
type RemixComponent<TProps extends object = Record<string, unknown>, TContext = Record<string, never>> = (handle: Handle<TProps, TContext>) => (props: TProps) => RemixNode;
|
|
238
|
+
type ComponentStyleSystem<TMode extends string = string, TToken = unknown, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = GeneratedSystem<TMode, TToken, TMetadata>;
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region kit/lab/design/components/remix/responsive.d.ts
|
|
241
|
+
type MetadataBreakpoint<TMetadata> = TMetadata extends {
|
|
242
|
+
breakpoint: Record<infer TBreakpoint, string | number>;
|
|
243
|
+
} ? TBreakpoint & string : never;
|
|
244
|
+
type ResponsiveProps<TProps extends object, TBreakpoint extends string> = {
|
|
245
|
+
at?: Partial<Record<TBreakpoint, Partial<TProps>>>;
|
|
246
|
+
};
|
|
247
|
+
type BreakpointForStyleSystem<TStyleSystem> = TStyleSystem extends ComponentStyleSystem<string, unknown, infer TMetadata> ? MetadataBreakpoint<TMetadata> : never;
|
|
248
|
+
declare function createResponsiveStyle<TProps extends object, TMode extends string, TToken, TMetadata extends {
|
|
249
|
+
breakpoint?: Record<string, string | number>;
|
|
250
|
+
}>(input: {
|
|
251
|
+
at: Partial<Record<string, Partial<TProps>>> | undefined;
|
|
252
|
+
resolve: (props: Partial<TProps>) => RecipeStyle | undefined;
|
|
253
|
+
styleSystem: ComponentStyleSystem<TMode, TToken, TMetadata>;
|
|
254
|
+
}): RecipeStyle | undefined;
|
|
255
|
+
declare function createResponsiveRecipeStyle<TProps extends object, TCondition extends string, TMode extends string, TToken, TMetadata extends {
|
|
256
|
+
breakpoint?: Record<string, string | number>;
|
|
257
|
+
}>(input: {
|
|
258
|
+
at: Partial<Record<string, Partial<TProps>>> | undefined;
|
|
259
|
+
conditions?: RecipeConditionSelectorMap;
|
|
260
|
+
resolve: (props: Partial<TProps>) => ResolvedRecipeSlot<TCondition, RecipeStyle> | undefined;
|
|
261
|
+
styleSystem: ComponentStyleSystem<TMode, TToken, TMetadata>;
|
|
262
|
+
}): RecipeStyle | undefined;
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region kit/lab/design/components/remix/accordion.d.ts
|
|
265
|
+
type AccordionRecipeCondition = CommonRecipeCondition | "closed" | "open";
|
|
266
|
+
type AccordionRecipeInput<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"item" | "panel" | "root" | "trigger", string, ComponentStyle, {
|
|
267
|
+
layout: TLayout;
|
|
268
|
+
size: TSize;
|
|
269
|
+
variant: TVariant;
|
|
270
|
+
}>;
|
|
271
|
+
type AccordionRecipeLayout<TRecipe extends AccordionRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
272
|
+
type AccordionRecipeVariant<TRecipe extends AccordionRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
273
|
+
type AccordionRecipeSize<TRecipe extends AccordionRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
274
|
+
type AccordionRecipeSelection<TRecipe extends AccordionRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout" | "size" | "variant">;
|
|
275
|
+
type AccordionStyleSystem<TMode extends string = string, TRecipe extends AccordionRecipeInput = AccordionRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
276
|
+
recipe: {
|
|
277
|
+
accordion: TRecipe;
|
|
278
|
+
};
|
|
279
|
+
}, TMetadata>;
|
|
280
|
+
type AccordionValue = string | readonly string[] | null;
|
|
281
|
+
type AccordionValueChangeDetails = {
|
|
282
|
+
event?: Event;
|
|
283
|
+
};
|
|
284
|
+
type AccordionValueChangeHandler = (value: AccordionValue, details?: AccordionValueChangeDetails) => void;
|
|
285
|
+
type AccordionRootStyleProps<TLayout extends string = string> = {
|
|
286
|
+
layout?: TLayout;
|
|
287
|
+
};
|
|
288
|
+
type AccordionItemStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
289
|
+
size?: TSize;
|
|
290
|
+
variant?: TVariant;
|
|
291
|
+
};
|
|
292
|
+
type AccordionRootProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & AccordionRootStyleProps<TLayout> & ResponsiveProps<AccordionRootStyleProps<TLayout>, TBreakpoint> & {
|
|
293
|
+
defaultValue?: AccordionValue;
|
|
294
|
+
multiple?: boolean;
|
|
295
|
+
onValueChange?: AccordionValueChangeHandler;
|
|
296
|
+
style?: never;
|
|
297
|
+
value?: AccordionValue;
|
|
298
|
+
};
|
|
299
|
+
type AccordionItemProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & AccordionItemStyleProps<TVariant, TSize> & ResponsiveProps<AccordionItemStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
300
|
+
style?: never;
|
|
301
|
+
value: string;
|
|
302
|
+
};
|
|
303
|
+
type AccordionTriggerProps = Omit<Props<"button">, "style"> & {
|
|
304
|
+
style?: never;
|
|
305
|
+
};
|
|
306
|
+
type AccordionPanelProps = Omit<Props<"div">, "style"> & {
|
|
307
|
+
style?: never;
|
|
308
|
+
};
|
|
309
|
+
type AccordionComponents<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = {
|
|
310
|
+
Item: RemixComponent<AccordionItemProps<TVariant, TSize>, AccordionItemContext>;
|
|
311
|
+
Panel: RemixComponent<AccordionPanelProps>;
|
|
312
|
+
Root: RemixComponent<AccordionRootProps<TLayout>, AccordionRootContext>;
|
|
313
|
+
Trigger: RemixComponent<AccordionTriggerProps>;
|
|
314
|
+
};
|
|
315
|
+
type AccordionRootContext = {
|
|
316
|
+
get_multiple: () => boolean;
|
|
317
|
+
is_open: (value: string) => boolean;
|
|
318
|
+
toggle_value: (value: string, details?: AccordionValueChangeDetails) => void;
|
|
319
|
+
};
|
|
320
|
+
type AccordionItemContext = {
|
|
321
|
+
get_at: () => Partial<Record<string, Partial<AccordionItemStyleProps>>> | undefined;
|
|
322
|
+
get_open: () => boolean;
|
|
323
|
+
get_panel_id: () => string;
|
|
324
|
+
get_style_props: () => Partial<AccordionItemStyleProps>;
|
|
325
|
+
get_trigger_id: () => string;
|
|
326
|
+
get_value: () => string;
|
|
327
|
+
toggle: (details?: AccordionValueChangeDetails) => void;
|
|
328
|
+
};
|
|
329
|
+
declare function createAccordion<TMode extends string, TRecipe extends AccordionRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: AccordionStyleSystem<TMode, TRecipe, TMetadata>): AccordionComponents<AccordionRecipeLayout<TRecipe>, AccordionRecipeVariant<TRecipe>, AccordionRecipeSize<TRecipe>>;
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region kit/lab/design/components/remix/alert-dialog.d.ts
|
|
332
|
+
type AlertDialogRecipeCondition = CommonRecipeCondition | "closed" | "open";
|
|
333
|
+
type AlertDialogRecipeInput<TLayout extends string = string> = RecipeWithVariantGroups<"action" | "cancel" | "description" | "overlay" | "popup" | "title" | "trigger", string, ComponentStyle, {
|
|
334
|
+
layout: TLayout;
|
|
335
|
+
}>;
|
|
336
|
+
type AlertDialogRecipeLayout<TRecipe extends AlertDialogRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
337
|
+
type AlertDialogRecipeSelection<TRecipe extends AlertDialogRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout">;
|
|
338
|
+
type AlertDialogStyleSystem<TMode extends string = string, TRecipe extends AlertDialogRecipeInput = AlertDialogRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
339
|
+
recipe: {
|
|
340
|
+
alertDialog: TRecipe;
|
|
341
|
+
};
|
|
342
|
+
}, TMetadata>;
|
|
343
|
+
type AlertDialogOpenChangeReason = "action" | "cancel" | "escape" | "trigger";
|
|
344
|
+
type AlertDialogOpenChangeDetails = {
|
|
345
|
+
event?: Event;
|
|
346
|
+
reason: AlertDialogOpenChangeReason;
|
|
347
|
+
};
|
|
348
|
+
type AlertDialogOpenChangeHandler = (open: boolean, details?: AlertDialogOpenChangeDetails) => void;
|
|
349
|
+
type AlertDialogRootProps = {
|
|
350
|
+
children?: RemixNode;
|
|
351
|
+
defaultOpen?: boolean;
|
|
352
|
+
onOpenChange?: AlertDialogOpenChangeHandler;
|
|
353
|
+
onOpenChangeComplete?: AlertDialogOpenChangeHandler;
|
|
354
|
+
open?: boolean;
|
|
355
|
+
};
|
|
356
|
+
type AlertDialogPopupStyleProps<TLayout extends string = string> = {
|
|
357
|
+
layout?: TLayout;
|
|
358
|
+
};
|
|
359
|
+
type AlertDialogTriggerProps = Omit<Props<"button">, "style"> & {
|
|
360
|
+
style?: never;
|
|
361
|
+
};
|
|
362
|
+
type AlertDialogPopupProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"dialog">, "style"> & AlertDialogPopupStyleProps<TLayout> & ResponsiveProps<AlertDialogPopupStyleProps<TLayout>, TBreakpoint> & {
|
|
363
|
+
style?: never;
|
|
364
|
+
};
|
|
365
|
+
type AlertDialogTitleProps = Omit<Props<"h2">, "style"> & {
|
|
366
|
+
style?: never;
|
|
367
|
+
};
|
|
368
|
+
type AlertDialogDescriptionProps = Omit<Props<"p">, "style"> & {
|
|
369
|
+
style?: never;
|
|
370
|
+
};
|
|
371
|
+
type AlertDialogActionProps = Omit<Props<"button">, "style"> & {
|
|
372
|
+
style?: never;
|
|
373
|
+
};
|
|
374
|
+
type AlertDialogCancelProps = Omit<Props<"button">, "style"> & {
|
|
375
|
+
style?: never;
|
|
376
|
+
};
|
|
377
|
+
type AlertDialogComponents<TLayout extends string = string> = {
|
|
378
|
+
Action: RemixComponent<AlertDialogActionProps>;
|
|
379
|
+
Cancel: RemixComponent<AlertDialogCancelProps>;
|
|
380
|
+
Description: RemixComponent<AlertDialogDescriptionProps>;
|
|
381
|
+
Popup: RemixComponent<AlertDialogPopupProps<TLayout>>;
|
|
382
|
+
Root: RemixComponent<AlertDialogRootProps, AlertDialogContext>;
|
|
383
|
+
Title: RemixComponent<AlertDialogTitleProps>;
|
|
384
|
+
Trigger: RemixComponent<AlertDialogTriggerProps>;
|
|
385
|
+
};
|
|
386
|
+
type AlertDialogContext = {
|
|
387
|
+
get_description_id: () => string;
|
|
388
|
+
get_open: () => boolean;
|
|
389
|
+
get_title_id: () => string;
|
|
390
|
+
set_open: (open: boolean, details?: AlertDialogOpenChangeDetails) => void;
|
|
391
|
+
};
|
|
392
|
+
declare function createAlertDialog<TMode extends string, TRecipe extends AlertDialogRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: AlertDialogStyleSystem<TMode, TRecipe, TMetadata>): AlertDialogComponents<AlertDialogRecipeLayout<TRecipe>>;
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region kit/lab/design/components/remix/alert.d.ts
|
|
395
|
+
declare const alert_slot: {
|
|
396
|
+
readonly description: "description";
|
|
397
|
+
readonly icon: "icon";
|
|
398
|
+
readonly root: "root";
|
|
399
|
+
readonly title: "title";
|
|
400
|
+
};
|
|
401
|
+
type AlertRecipeSlot = (typeof alert_slot)[keyof typeof alert_slot];
|
|
402
|
+
type AlertRecipeInput<TTone extends string = string, TVariant extends string = string> = RecipeWithVariantGroups<AlertRecipeSlot, string, ComponentStyle, {
|
|
403
|
+
tone: TTone;
|
|
404
|
+
variant: TVariant;
|
|
405
|
+
}>;
|
|
406
|
+
type AlertRecipeTone<TRecipe extends AlertRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
407
|
+
type AlertRecipeVariant<TRecipe extends AlertRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
408
|
+
type AlertRecipeSelection<TRecipe extends AlertRecipeInput> = RecipeVariantPropsFor<TRecipe, "tone" | "variant">;
|
|
409
|
+
type AlertStyleSystem<TMode extends string = string, TRecipe extends AlertRecipeInput = AlertRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
410
|
+
recipe: {
|
|
411
|
+
alert: TRecipe;
|
|
412
|
+
};
|
|
413
|
+
}, TMetadata>;
|
|
414
|
+
type AlertRootStyleProps<TTone extends string = string, TVariant extends string = string> = {
|
|
415
|
+
tone?: TTone;
|
|
416
|
+
variant?: TVariant;
|
|
417
|
+
};
|
|
418
|
+
type AlertRootProps<TTone extends string = string, TVariant extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & AlertRootStyleProps<TTone, TVariant> & ResponsiveProps<AlertRootStyleProps<TTone, TVariant>, TBreakpoint> & {
|
|
419
|
+
style?: never;
|
|
420
|
+
};
|
|
421
|
+
type AlertIconProps = Omit<Props<"span">, "style"> & {
|
|
422
|
+
style?: never;
|
|
423
|
+
};
|
|
424
|
+
type AlertTitleProps = Omit<Props<"h2">, "style"> & {
|
|
425
|
+
style?: never;
|
|
426
|
+
};
|
|
427
|
+
type AlertDescriptionProps = Omit<Props<"p">, "style"> & {
|
|
428
|
+
style?: never;
|
|
429
|
+
};
|
|
430
|
+
type AlertComponents<TTone extends string = string, TVariant extends string = string> = {
|
|
431
|
+
Description: RemixComponent<AlertDescriptionProps>;
|
|
432
|
+
Icon: RemixComponent<AlertIconProps>;
|
|
433
|
+
Root: RemixComponent<AlertRootProps<TTone, TVariant>>;
|
|
434
|
+
Title: RemixComponent<AlertTitleProps>;
|
|
435
|
+
};
|
|
436
|
+
declare function createAlert<TMode extends string, TRecipe extends AlertRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: AlertStyleSystem<TMode, TRecipe, TMetadata>): AlertComponents<AlertRecipeTone<TRecipe>, AlertRecipeVariant<TRecipe>>;
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region kit/lab/design/components/remix/aspect-ratio.d.ts
|
|
439
|
+
type AspectRatioOverflow = "auto" | "clip" | "hidden" | "visible";
|
|
440
|
+
type AspectRatioStyleProps = {
|
|
441
|
+
height?: number | string;
|
|
442
|
+
minHeight?: number | string;
|
|
443
|
+
overflow?: AspectRatioOverflow;
|
|
444
|
+
ratio?: string;
|
|
445
|
+
width?: number | string;
|
|
446
|
+
};
|
|
447
|
+
type AspectRatioProps<TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & AspectRatioStyleProps & ResponsiveProps<AspectRatioStyleProps, TBreakpoint> & {
|
|
448
|
+
style?: never;
|
|
449
|
+
};
|
|
450
|
+
declare function createAspectRatio<TMode extends string, TMetadata extends {
|
|
451
|
+
breakpoint?: Record<string, string | number>;
|
|
452
|
+
}>(style_system: ComponentStyleSystem<TMode, unknown, TMetadata>): RemixComponent<AspectRatioProps<BreakpointForStyleSystem<typeof style_system>>>;
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region kit/lab/design/components/remix/root.d.ts
|
|
455
|
+
type RootRecipeInput<TGroups extends Record<string, string>> = RecipeWithVariantGroups<"root", string, ComponentStyle, TGroups>;
|
|
456
|
+
type RootStyleSystem<TMode extends string = string, TRecipe extends RootRecipeInput<Record<string, string>> = RootRecipeInput<Record<string, string>>, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata, TRecipeName extends string = string> = ComponentStyleSystem<TMode, {
|
|
457
|
+
recipe: Record<TRecipeName, TRecipe>;
|
|
458
|
+
}, TMetadata>;
|
|
459
|
+
type RootHostProps<TElement extends keyof HTMLElementTagNameMap> = Omit<Props<TElement>, "style"> & {
|
|
460
|
+
as?: TElement;
|
|
461
|
+
style?: never;
|
|
462
|
+
};
|
|
463
|
+
type RootComponentProps<TGroups extends string, TRecipe extends RootRecipeInput<Record<TGroups, string>>, TBreakpoint extends string> = RootHostProps<keyof HTMLElementTagNameMap> & Partial<RecipeVariantPropsFor<TRecipe, TGroups>> & ResponsiveProps<RecipeVariantPropsFor<TRecipe, TGroups>, TBreakpoint>;
|
|
464
|
+
type RootComponent<TGroups extends string, TRecipe extends RootRecipeInput<Record<TGroups, string>>, TBreakpoint extends string> = RemixComponent<RootComponentProps<TGroups, TRecipe, TBreakpoint>>;
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region kit/lab/design/components/remix/badge.d.ts
|
|
467
|
+
type BadgeRecipeInput<TTone extends string = string, TSize extends string = string> = RootRecipeInput<{
|
|
468
|
+
size: TSize;
|
|
469
|
+
tone: TTone;
|
|
470
|
+
}>;
|
|
471
|
+
type BadgeRecipeTone<TRecipe extends BadgeRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
472
|
+
type BadgeRecipeSize<TRecipe extends BadgeRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
473
|
+
type BadgeStyleSystem<TMode extends string = string, TRecipe extends BadgeRecipeInput = BadgeRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = RootStyleSystem<TMode, TRecipe, TMetadata, "badge">;
|
|
474
|
+
declare function createBadge<TMode extends string, TRecipe extends BadgeRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: BadgeStyleSystem<TMode, TRecipe, TMetadata>): RootComponent<"size" | "tone", TRecipe, BreakpointForStyleSystem<BadgeStyleSystem<TMode, TRecipe, TMetadata>>>;
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region kit/lab/design/components/remix/box.d.ts
|
|
477
|
+
type BoxRecipeInput<TLayout extends string = string> = RootRecipeInput<{
|
|
478
|
+
layout: TLayout;
|
|
479
|
+
}>;
|
|
480
|
+
type BoxRecipeLayout<TRecipe extends BoxRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
481
|
+
type BoxStyleSystem<TMode extends string = string, TRecipe extends BoxRecipeInput = BoxRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = RootStyleSystem<TMode, TRecipe, TMetadata, "box">;
|
|
482
|
+
declare function createBox<TMode extends string, TRecipe extends BoxRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: RootStyleSystem<TMode, TRecipe, TMetadata, "box">): RootComponent<"layout", TRecipe, BreakpointForStyleSystem<RootStyleSystem<TMode, TRecipe, TMetadata, "box">>>;
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region kit/lab/design/components/remix/button.d.ts
|
|
485
|
+
declare const button_slot: {
|
|
486
|
+
readonly content: "content";
|
|
487
|
+
readonly loading_indicator: "loadingIndicator";
|
|
488
|
+
readonly loading_indicator_frame: "loadingIndicatorFrame";
|
|
489
|
+
readonly root: "root";
|
|
490
|
+
};
|
|
491
|
+
type ButtonRecipeSlot = (typeof button_slot)[keyof typeof button_slot];
|
|
492
|
+
type ButtonRecipeCondition = "active" | "disabled" | "focusVisible" | "hover" | "reducedMotion";
|
|
493
|
+
type ButtonRecipeInput<TVariant extends string = string, TSize extends string = string, TLayout extends string = string> = RecipeWithVariantGroups<ButtonRecipeSlot, string, ComponentStyle, {
|
|
494
|
+
fluid: "true";
|
|
495
|
+
layout: TLayout;
|
|
496
|
+
loading: "true";
|
|
497
|
+
size: TSize;
|
|
498
|
+
variant: TVariant;
|
|
499
|
+
}>;
|
|
500
|
+
type ButtonRecipeVariant<TRecipe extends ButtonRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
501
|
+
type ButtonRecipeSize<TRecipe extends ButtonRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
502
|
+
type ButtonRecipeLayout<TRecipe extends ButtonRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
503
|
+
type ButtonRecipeSelection<TRecipe extends ButtonRecipeInput> = RecipeVariantPropsFor<TRecipe, "fluid" | "layout" | "loading" | "size" | "variant">;
|
|
504
|
+
type ButtonStyleSystem<TMode extends string = string, TRecipe extends ButtonRecipeInput = ButtonRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
505
|
+
recipe: {
|
|
506
|
+
button: TRecipe;
|
|
507
|
+
};
|
|
508
|
+
}, TMetadata>;
|
|
509
|
+
type ButtonStyleProps<TVariant extends string = string, TSize extends string = string, TLayout extends string = string> = {
|
|
510
|
+
fluid?: boolean;
|
|
511
|
+
layout?: TLayout;
|
|
512
|
+
size?: TSize;
|
|
513
|
+
variant?: TVariant;
|
|
514
|
+
};
|
|
515
|
+
type ButtonHostProps = Props<"button">;
|
|
516
|
+
type ButtonProps<TVariant extends string = string, TSize extends string = string, TLayout extends string = string, TBreakpoint extends string = string> = Omit<ButtonHostProps, "style"> & ButtonStyleProps<TVariant, TSize, TLayout> & ResponsiveProps<ButtonStyleProps<TVariant, TSize, TLayout>, TBreakpoint> & {
|
|
517
|
+
loading?: boolean;
|
|
518
|
+
loadingLabel?: string;
|
|
519
|
+
style?: never;
|
|
520
|
+
};
|
|
521
|
+
type ButtonOptions = {
|
|
522
|
+
conditions?: Partial<Readonly<Record<ButtonRecipeSlot, RecipeConditionSelectorMap<string>>>>;
|
|
523
|
+
};
|
|
524
|
+
declare function createButton<TMode extends string, TRecipe extends ButtonRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: ButtonStyleSystem<TMode, TRecipe, TMetadata>, options?: ButtonOptions): RemixComponent<ButtonProps<ButtonRecipeVariant<TRecipe>, ButtonRecipeSize<TRecipe>, ButtonRecipeLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
525
|
+
//#endregion
|
|
526
|
+
//#region kit/lab/design/components/remix/component-style.d.ts
|
|
527
|
+
declare const component_scope_attribute = "data-vorma-scope";
|
|
528
|
+
declare const component_part_attribute = "data-vorma-part";
|
|
529
|
+
type ComponentRecipeStyleMetadata = {
|
|
530
|
+
breakpoint?: Record<string, string | number>;
|
|
531
|
+
};
|
|
532
|
+
type ComponentStyleHostElementName = keyof HTMLElementTagNameMap;
|
|
533
|
+
type ComponentStyleHostElementMap<THost extends string> = Partial<Readonly<Record<THost, ComponentStyleHostElementName>>>;
|
|
534
|
+
type ComponentStyleHostElement<THost extends string, THostElements extends ComponentStyleHostElementMap<THost>, TKey extends THost> = TKey extends keyof THostElements ? THostElements[TKey] extends ComponentStyleHostElementName ? HTMLElementTagNameMap[THostElements[TKey]] : Element : Element;
|
|
535
|
+
declare const componentAnatomyAttrs: {
|
|
536
|
+
readonly part: "data-vorma-part";
|
|
537
|
+
readonly scope: "data-vorma-scope";
|
|
538
|
+
};
|
|
539
|
+
type ComponentAnatomyAttrs = {
|
|
540
|
+
readonly [component_part_attribute]: string;
|
|
541
|
+
readonly [component_scope_attribute]: string;
|
|
542
|
+
};
|
|
543
|
+
type ComponentSlotProps<TElement extends keyof HTMLElementTagNameMap> = Omit<Props<TElement>, "style"> & {
|
|
544
|
+
style?: never;
|
|
545
|
+
};
|
|
546
|
+
type ComponentSlotOwnProps = {
|
|
547
|
+
mix?: unknown;
|
|
548
|
+
};
|
|
549
|
+
type ComponentSlotInputProps<TProps extends object> = TProps & ComponentSlotOwnProps;
|
|
550
|
+
declare function createComponentSlotProps<TProps extends object = {}>(input: {
|
|
551
|
+
attrs: ComponentAnatomyAttrs;
|
|
552
|
+
mix?: unknown;
|
|
553
|
+
props?: ComponentSlotInputProps<TProps>;
|
|
554
|
+
}): Omit<ComponentSlotInputProps<TProps>, "mix"> & ComponentAnatomyAttrs & {
|
|
555
|
+
mix: unknown[];
|
|
556
|
+
};
|
|
557
|
+
type ComponentStyleTargetRecipeInput<TProps extends object, TCondition extends string> = {
|
|
558
|
+
conditions?: RecipeConditionSelectorMap;
|
|
559
|
+
resolveSlot: (props: Partial<TProps>) => ResolvedRecipeSlot<TCondition, RecipeStyle>;
|
|
560
|
+
resolveStyle?: (props: Partial<TProps>) => RecipeStyle | undefined;
|
|
561
|
+
style?: RecipeStyle;
|
|
562
|
+
};
|
|
563
|
+
type ComponentStyleTargetInput<TProps extends object, THost extends string, TCondition extends string> = ComponentStyleTargetRecipeInput<TProps, TCondition> & {
|
|
564
|
+
host: THost;
|
|
565
|
+
selectors?: readonly string[];
|
|
566
|
+
};
|
|
567
|
+
type ComponentStyleTargetsInput<TProps extends object, THost extends string, TTarget extends string, TCondition extends string, TMode extends string, TToken, TMetadata extends ComponentRecipeStyleMetadata, THostElements extends ComponentStyleHostElementMap<THost> = {}> = {
|
|
568
|
+
at?: Partial<Record<string, Partial<TProps>>>;
|
|
569
|
+
hostElements?: THostElements;
|
|
570
|
+
props: Partial<TProps>;
|
|
571
|
+
styleSystem: ComponentStyleSystem<TMode, TToken, TMetadata>;
|
|
572
|
+
targets: Record<TTarget, ComponentStyleTargetInput<TProps, THost, TCondition>>;
|
|
573
|
+
};
|
|
574
|
+
type ComponentStyleTargetOutput<TElement extends Element = Element> = {
|
|
575
|
+
mix: MixInput<TElement>;
|
|
576
|
+
style: RecipeStyle;
|
|
577
|
+
};
|
|
578
|
+
type ComponentStyleTargetsOutput<THost extends string, TTarget extends string, THostElements extends ComponentStyleHostElementMap<THost> = {}> = {
|
|
579
|
+
readonly hosts: { readonly [K in THost]: ComponentStyleTargetOutput<ComponentStyleHostElement<THost, THostElements, K>> };
|
|
580
|
+
readonly targets: { readonly [K in TTarget]: ComponentStyleTargetOutput };
|
|
581
|
+
};
|
|
582
|
+
declare function createComponentAnatomyAttrs(scope: string, part: string): ComponentAnatomyAttrs;
|
|
583
|
+
declare function createComponentStyleTargets<TProps extends object, THost extends string, TTarget extends string, TCondition extends string, TMode extends string, TToken, TMetadata extends ComponentRecipeStyleMetadata, THostElements extends ComponentStyleHostElementMap<THost> = {}>(input: ComponentStyleTargetsInput<TProps, THost, TTarget, TCondition, TMode, TToken, TMetadata, THostElements>): ComponentStyleTargetsOutput<THost, TTarget, THostElements>;
|
|
584
|
+
//#endregion
|
|
585
|
+
//#region kit/lab/design/components/remix/callout.d.ts
|
|
586
|
+
type CalloutRecipeInput<TTone extends string = string> = RecipeWithVariantGroups<"content" | "icon" | "root", never, ComponentStyle, {
|
|
587
|
+
tone: TTone;
|
|
588
|
+
}>;
|
|
589
|
+
type CalloutRecipeTone<TRecipe extends CalloutRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
590
|
+
type CalloutRecipeSelection<TRecipe extends CalloutRecipeInput> = RecipeVariantPropsFor<TRecipe, "tone">;
|
|
591
|
+
type CalloutStyleSystem<TMode extends string = string, TRecipe extends CalloutRecipeInput = CalloutRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
592
|
+
recipe: {
|
|
593
|
+
callout: TRecipe;
|
|
594
|
+
};
|
|
595
|
+
}, TMetadata>;
|
|
596
|
+
type CalloutProps<TTone extends string = string> = Omit<Props<"div">, "style"> & {
|
|
597
|
+
contentProps?: ComponentSlotProps<"div">;
|
|
598
|
+
icon?: RemixNode;
|
|
599
|
+
iconProps?: ComponentSlotProps<"span">;
|
|
600
|
+
style?: never;
|
|
601
|
+
tone?: TTone;
|
|
602
|
+
};
|
|
603
|
+
declare function createCallout<TMode extends string, TRecipe extends CalloutRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: CalloutStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<CalloutProps<CalloutRecipeTone<TRecipe>>>;
|
|
604
|
+
//#endregion
|
|
605
|
+
//#region kit/lab/design/components/remix/checkbox-group.d.ts
|
|
606
|
+
type CheckboxGroupRecipeCondition = CommonRecipeCondition | "checked" | "unchecked";
|
|
607
|
+
type CheckboxGroupRecipeInput<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"item" | "root", string, ComponentStyle, {
|
|
608
|
+
layout: TLayout;
|
|
609
|
+
size: TSize;
|
|
610
|
+
variant: TVariant;
|
|
611
|
+
}>;
|
|
612
|
+
type CheckboxGroupRecipeLayout<TRecipe extends CheckboxGroupRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
613
|
+
type CheckboxGroupRecipeVariant<TRecipe extends CheckboxGroupRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
614
|
+
type CheckboxGroupRecipeSize<TRecipe extends CheckboxGroupRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
615
|
+
type CheckboxGroupRecipeSelection<TRecipe extends CheckboxGroupRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout" | "size" | "variant">;
|
|
616
|
+
type CheckboxGroupStyleSystem<TMode extends string = string, TRecipe extends CheckboxGroupRecipeInput = CheckboxGroupRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
617
|
+
recipe: {
|
|
618
|
+
checkboxGroup: TRecipe;
|
|
619
|
+
};
|
|
620
|
+
}, TMetadata>;
|
|
621
|
+
type CheckboxGroupValueChangeDetails = {
|
|
622
|
+
event?: Event;
|
|
623
|
+
};
|
|
624
|
+
type CheckboxGroupValueChangeHandler<TValue extends string = string> = (value: readonly TValue[], details?: CheckboxGroupValueChangeDetails) => void;
|
|
625
|
+
type CheckboxGroupRootStyleProps<TLayout extends string = string> = {
|
|
626
|
+
layout?: TLayout;
|
|
627
|
+
};
|
|
628
|
+
type CheckboxGroupItemStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
629
|
+
size?: TSize;
|
|
630
|
+
variant?: TVariant;
|
|
631
|
+
};
|
|
632
|
+
type CheckboxGroupRootProps<TLayout extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"div">, "style"> & CheckboxGroupRootStyleProps<TLayout> & ResponsiveProps<CheckboxGroupRootStyleProps<TLayout>, TBreakpoint> & {
|
|
633
|
+
defaultValue?: readonly TValue[];
|
|
634
|
+
disabled?: boolean;
|
|
635
|
+
form?: string;
|
|
636
|
+
name?: string;
|
|
637
|
+
onValueChange?: CheckboxGroupValueChangeHandler<TValue>;
|
|
638
|
+
required?: boolean;
|
|
639
|
+
style?: never;
|
|
640
|
+
value?: readonly TValue[];
|
|
641
|
+
};
|
|
642
|
+
type CheckboxGroupItemProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"input">, "checked" | "defaultChecked" | "name" | "style" | "type" | "value"> & CheckboxGroupItemStyleProps<TVariant, TSize> & ResponsiveProps<CheckboxGroupItemStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
643
|
+
style?: never;
|
|
644
|
+
value: TValue;
|
|
645
|
+
};
|
|
646
|
+
type CheckboxGroupComponents<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = {
|
|
647
|
+
Item: RemixComponent<CheckboxGroupItemProps<TVariant, TSize>>;
|
|
648
|
+
Root: RemixComponent<CheckboxGroupRootProps<TLayout>, CheckboxGroupContext>;
|
|
649
|
+
};
|
|
650
|
+
type CheckboxGroupContext = {
|
|
651
|
+
get_disabled: () => boolean;
|
|
652
|
+
get_form: () => string | undefined;
|
|
653
|
+
get_name: () => string | undefined;
|
|
654
|
+
get_required: () => boolean;
|
|
655
|
+
get_values: () => readonly string[];
|
|
656
|
+
set_item_checked: (value: string, checked: boolean, details?: CheckboxGroupValueChangeDetails) => void;
|
|
657
|
+
};
|
|
658
|
+
declare function createCheckboxGroup<TMode extends string, TRecipe extends CheckboxGroupRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: CheckboxGroupStyleSystem<TMode, TRecipe, TMetadata>): CheckboxGroupComponents<CheckboxGroupRecipeLayout<TRecipe>, CheckboxGroupRecipeVariant<TRecipe>, CheckboxGroupRecipeSize<TRecipe>>;
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region kit/lab/design/components/remix/checkable-state.d.ts
|
|
661
|
+
declare const checkableState: {
|
|
662
|
+
readonly checked: "checked";
|
|
663
|
+
readonly indeterminate: "indeterminate";
|
|
664
|
+
readonly unchecked: "unchecked";
|
|
665
|
+
};
|
|
666
|
+
type CheckableStateName = (typeof checkableState)[keyof typeof checkableState];
|
|
667
|
+
type CheckableChecked = boolean | typeof checkableState.indeterminate;
|
|
668
|
+
//#endregion
|
|
669
|
+
//#region kit/lab/design/components/remix/checkbox.d.ts
|
|
670
|
+
type CheckboxRecipeCondition = CommonRecipeCondition | "checked" | "indeterminate" | "unchecked";
|
|
671
|
+
type CheckboxChecked = CheckableChecked;
|
|
672
|
+
type CheckboxRecipeInput<TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
673
|
+
size: TSize;
|
|
674
|
+
variant: TVariant;
|
|
675
|
+
}>;
|
|
676
|
+
type CheckboxRecipeVariant<TRecipe extends CheckboxRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
677
|
+
type CheckboxRecipeSize<TRecipe extends CheckboxRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
678
|
+
type CheckboxRecipeSelection<TRecipe extends CheckboxRecipeInput> = RecipeVariantPropsFor<TRecipe, "size" | "variant">;
|
|
679
|
+
type CheckboxStyleSystem<TMode extends string = string, TRecipe extends CheckboxRecipeInput = CheckboxRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
680
|
+
recipe: {
|
|
681
|
+
checkbox: TRecipe;
|
|
682
|
+
};
|
|
683
|
+
}, TMetadata>;
|
|
684
|
+
type CheckboxProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"input">, "checked" | "defaultChecked" | "style" | "type"> & Partial<CheckboxRecipeSelection<CheckboxRecipeInput<TVariant, TSize>>> & ResponsiveProps<CheckboxRecipeSelection<CheckboxRecipeInput<TVariant, TSize>>, TBreakpoint> & {
|
|
685
|
+
checked?: CheckboxChecked;
|
|
686
|
+
defaultChecked?: CheckboxChecked;
|
|
687
|
+
style?: never;
|
|
688
|
+
};
|
|
689
|
+
declare function createCheckbox<TMode extends string, TRecipe extends CheckboxRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: CheckboxStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<CheckboxProps<CheckboxRecipeVariant<TRecipe>, CheckboxRecipeSize<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
690
|
+
//#endregion
|
|
691
|
+
//#region kit/lab/design/components/remix/chip.d.ts
|
|
692
|
+
type ChipRecipeInput<TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
693
|
+
selected: "false" | "true";
|
|
694
|
+
size: TSize;
|
|
695
|
+
variant: TVariant;
|
|
696
|
+
}>;
|
|
697
|
+
type ChipRecipeVariant<TRecipe extends ChipRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
698
|
+
type ChipRecipeSize<TRecipe extends ChipRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
699
|
+
type ChipRecipeSelection<TRecipe extends ChipRecipeInput> = RecipeVariantPropsFor<TRecipe, "selected" | "size" | "variant">;
|
|
700
|
+
type ChipStyleSystem<TMode extends string = string, TRecipe extends ChipRecipeInput = ChipRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
701
|
+
recipe: {
|
|
702
|
+
chip: TRecipe;
|
|
703
|
+
};
|
|
704
|
+
}, TMetadata>;
|
|
705
|
+
type ChipStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
706
|
+
selected?: boolean;
|
|
707
|
+
size?: TSize;
|
|
708
|
+
variant?: TVariant;
|
|
709
|
+
};
|
|
710
|
+
type ChipProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"button">, "style"> & ChipStyleProps<TVariant, TSize> & ResponsiveProps<ChipStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
711
|
+
style?: never;
|
|
712
|
+
};
|
|
713
|
+
declare function createChip<TMode extends string, TRecipe extends ChipRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: ChipStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<ChipProps<ChipRecipeVariant<TRecipe>, ChipRecipeSize<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
714
|
+
//#endregion
|
|
715
|
+
//#region kit/lab/design/components/remix/code-block.d.ts
|
|
716
|
+
type CodeBlockRecipeInput = RecipeWithVariantGroups<"caption" | "code" | "header" | "pre" | "root", never, ComponentStyle, Record<string, never>>;
|
|
717
|
+
type CodeBlockStyleSystem<TMode extends string = string, TRecipe extends CodeBlockRecipeInput = CodeBlockRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
718
|
+
recipe: {
|
|
719
|
+
codeBlock: TRecipe;
|
|
720
|
+
};
|
|
721
|
+
}, TMetadata>;
|
|
722
|
+
type CodeBlockProps = Omit<Props<"figure">, "style"> & {
|
|
723
|
+
caption?: RemixNode;
|
|
724
|
+
captionProps?: ComponentSlotProps<"figcaption">;
|
|
725
|
+
codeProps?: ComponentSlotProps<"code">;
|
|
726
|
+
header?: RemixNode;
|
|
727
|
+
headerProps?: ComponentSlotProps<"div">;
|
|
728
|
+
preProps?: ComponentSlotProps<"pre">;
|
|
729
|
+
style?: never;
|
|
730
|
+
};
|
|
731
|
+
declare function createCodeBlock<TMode extends string, TRecipe extends CodeBlockRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: CodeBlockStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<CodeBlockProps>;
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region kit/lab/design/components/remix/collapsible.d.ts
|
|
734
|
+
type CollapsibleRecipeCondition = CommonRecipeCondition | "closed" | "open";
|
|
735
|
+
type CollapsibleRecipeInput<TLayout extends string = string> = RecipeWithVariantGroups<"content" | "root" | "trigger", string, ComponentStyle, {
|
|
736
|
+
layout: TLayout;
|
|
737
|
+
}>;
|
|
738
|
+
type CollapsibleRecipeLayout<TRecipe extends CollapsibleRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
739
|
+
type CollapsibleRecipeSelection<TRecipe extends CollapsibleRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout">;
|
|
740
|
+
type CollapsibleStyleSystem<TMode extends string = string, TRecipe extends CollapsibleRecipeInput = CollapsibleRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
741
|
+
recipe: {
|
|
742
|
+
collapsible: TRecipe;
|
|
743
|
+
};
|
|
744
|
+
}, TMetadata>;
|
|
745
|
+
type CollapsibleOpenChangeDetails = {
|
|
746
|
+
event?: Event;
|
|
747
|
+
reason: "trigger";
|
|
748
|
+
};
|
|
749
|
+
type CollapsibleOpenChangeHandler = (open: boolean, details?: CollapsibleOpenChangeDetails) => void;
|
|
750
|
+
type CollapsibleRootStyleProps<TLayout extends string = string> = {
|
|
751
|
+
layout?: TLayout;
|
|
752
|
+
};
|
|
753
|
+
type CollapsibleRootProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & CollapsibleRootStyleProps<TLayout> & ResponsiveProps<CollapsibleRootStyleProps<TLayout>, TBreakpoint> & {
|
|
754
|
+
defaultOpen?: boolean;
|
|
755
|
+
onOpenChange?: CollapsibleOpenChangeHandler;
|
|
756
|
+
onOpenChangeComplete?: CollapsibleOpenChangeHandler;
|
|
757
|
+
open?: boolean;
|
|
758
|
+
style?: never;
|
|
759
|
+
};
|
|
760
|
+
type CollapsibleTriggerProps = Omit<Props<"button">, "style"> & {
|
|
761
|
+
style?: never;
|
|
762
|
+
};
|
|
763
|
+
type CollapsibleContentProps = Omit<Props<"div">, "style"> & {
|
|
764
|
+
style?: never;
|
|
765
|
+
};
|
|
766
|
+
type CollapsibleComponents<TLayout extends string = string> = {
|
|
767
|
+
Content: RemixComponent<CollapsibleContentProps>;
|
|
768
|
+
Root: RemixComponent<CollapsibleRootProps<TLayout>, CollapsibleContext>;
|
|
769
|
+
Trigger: RemixComponent<CollapsibleTriggerProps>;
|
|
770
|
+
};
|
|
771
|
+
type CollapsibleContext = {
|
|
772
|
+
get_content_id: () => string;
|
|
773
|
+
get_open: () => boolean;
|
|
774
|
+
get_trigger_id: () => string;
|
|
775
|
+
toggle: (details: CollapsibleOpenChangeDetails) => void;
|
|
776
|
+
};
|
|
777
|
+
declare function createCollapsible<TMode extends string, TRecipe extends CollapsibleRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: CollapsibleStyleSystem<TMode, TRecipe, TMetadata>): CollapsibleComponents<CollapsibleRecipeLayout<TRecipe>>;
|
|
778
|
+
//#endregion
|
|
779
|
+
//#region kit/lab/design/components/remix/component-state.d.ts
|
|
780
|
+
declare const componentStateAttribute = "data-state";
|
|
781
|
+
declare const componentDataAttribute: {
|
|
782
|
+
readonly disabled: "data-disabled";
|
|
783
|
+
readonly highlighted: "data-highlighted";
|
|
784
|
+
readonly invalid: "data-invalid";
|
|
785
|
+
readonly open: "data-open";
|
|
786
|
+
readonly placeholder: "data-placeholder";
|
|
787
|
+
readonly readOnly: "data-readonly";
|
|
788
|
+
readonly required: "data-required";
|
|
789
|
+
readonly selected: "data-selected";
|
|
790
|
+
};
|
|
791
|
+
type ARIABoolean = "false" | "true";
|
|
792
|
+
declare function ariaBoolean(value: boolean): ARIABoolean;
|
|
793
|
+
declare function ariaTrue(value: boolean): "true" | undefined;
|
|
794
|
+
declare function dataFlag(value: boolean): "" | undefined;
|
|
795
|
+
declare const openState: {
|
|
796
|
+
readonly closed: "closed";
|
|
797
|
+
readonly open: "open";
|
|
798
|
+
};
|
|
799
|
+
type OpenStateName = (typeof openState)[keyof typeof openState];
|
|
800
|
+
declare const selectionState: {
|
|
801
|
+
readonly selected: "selected";
|
|
802
|
+
readonly unselected: "unselected";
|
|
803
|
+
};
|
|
804
|
+
type SelectionStateName = (typeof selectionState)[keyof typeof selectionState];
|
|
805
|
+
declare function openStateFromBoolean(open: boolean): OpenStateName;
|
|
806
|
+
declare function selectionStateFromBoolean(selected: boolean): SelectionStateName;
|
|
807
|
+
//#endregion
|
|
808
|
+
//#region kit/lab/design/components/remix/description-list.d.ts
|
|
809
|
+
type DescriptionListRecipeInput<TTone extends string = string, TDescriptionTone extends string = string, TLayout extends string = string> = RecipeWithVariantGroups<"description" | "item" | "root" | "term", never, ComponentStyle, {
|
|
810
|
+
descriptionTone: TDescriptionTone;
|
|
811
|
+
layout: TLayout;
|
|
812
|
+
tone: TTone;
|
|
813
|
+
}>;
|
|
814
|
+
type DescriptionListRecipeTone<TRecipe extends DescriptionListRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
815
|
+
type DescriptionListRecipeDescriptionTone<TRecipe extends DescriptionListRecipeInput> = RecipeVariantValue<TRecipe, "descriptionTone">;
|
|
816
|
+
type DescriptionListLayout<TRecipe extends DescriptionListRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
817
|
+
type DescriptionListRecipeSelection<TRecipe extends DescriptionListRecipeInput> = RecipeVariantPropsFor<TRecipe, "descriptionTone" | "layout" | "tone">;
|
|
818
|
+
type DescriptionListStyleSystem<TMode extends string = string, TRecipe extends DescriptionListRecipeInput = DescriptionListRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
819
|
+
recipe: {
|
|
820
|
+
descriptionList: TRecipe;
|
|
821
|
+
};
|
|
822
|
+
}, TMetadata>;
|
|
823
|
+
type DescriptionListProps = Omit<Props<"dl">, "style"> & {
|
|
824
|
+
style?: never;
|
|
825
|
+
};
|
|
826
|
+
type DescriptionListItemStyleProps<TDescriptionTone extends string = string, TTone extends string = string, TLayout extends string = string> = {
|
|
827
|
+
descriptionTone?: TDescriptionTone;
|
|
828
|
+
layout?: TLayout;
|
|
829
|
+
tone?: TTone;
|
|
830
|
+
};
|
|
831
|
+
type DescriptionListItemProps<TDescriptionTone extends string = string, TTone extends string = string, TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & DescriptionListItemStyleProps<TDescriptionTone, TTone, TLayout> & ResponsiveProps<DescriptionListItemStyleProps<TDescriptionTone, TTone, TLayout>, TBreakpoint> & {
|
|
832
|
+
descriptionProps?: ComponentSlotProps<"dd">;
|
|
833
|
+
style?: never;
|
|
834
|
+
term: RemixNode;
|
|
835
|
+
termProps?: ComponentSlotProps<"dt">;
|
|
836
|
+
};
|
|
837
|
+
declare function createDescriptionList<TMode extends string, TRecipe extends DescriptionListRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: DescriptionListStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<DescriptionListProps>;
|
|
838
|
+
declare function createDescriptionListItem<TMode extends string, TRecipe extends DescriptionListRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: DescriptionListStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<DescriptionListItemProps<DescriptionListRecipeDescriptionTone<TRecipe>, DescriptionListRecipeTone<TRecipe>, DescriptionListLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region kit/lab/design/components/remix/dialog.d.ts
|
|
841
|
+
type DialogRequiredRecipeSlot = "close" | "description" | "popup" | "title" | "trigger";
|
|
842
|
+
type DialogRecipeSlot = DialogRequiredRecipeSlot | "overlay";
|
|
843
|
+
type DialogRecipeCondition = "active" | "disabled" | "focusVisible" | "hover" | "modal" | "open" | "reducedMotion";
|
|
844
|
+
type DialogRecipeInput<TPopupLayout extends string = string> = RecipeWithVariantGroups<DialogRequiredRecipeSlot, string, ComponentStyle, {
|
|
845
|
+
popupLayout: TPopupLayout;
|
|
846
|
+
}>;
|
|
847
|
+
type DialogRecipePopupLayout<TRecipe extends DialogRecipeInput> = RecipeVariantValue<TRecipe, "popupLayout">;
|
|
848
|
+
type DialogRecipeSelection<TRecipe extends DialogRecipeInput> = RecipeVariantPropsFor<TRecipe, "popupLayout">;
|
|
849
|
+
type DialogStyleSystem<TMode extends string = string, TRecipe extends DialogRecipeInput = DialogRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
850
|
+
recipe: {
|
|
851
|
+
dialog: TRecipe;
|
|
852
|
+
};
|
|
853
|
+
}, TMetadata>;
|
|
854
|
+
declare const dialog_open_change_reason: {
|
|
855
|
+
readonly close: "close";
|
|
856
|
+
readonly escape: "escape";
|
|
857
|
+
readonly interactOutside: "interactOutside";
|
|
858
|
+
readonly trigger: "trigger";
|
|
859
|
+
};
|
|
860
|
+
type DialogOpenChangeReason = (typeof dialog_open_change_reason)[keyof typeof dialog_open_change_reason];
|
|
861
|
+
type DialogOpenChangeDetails = {
|
|
862
|
+
event?: Event;
|
|
863
|
+
reason: DialogOpenChangeReason;
|
|
864
|
+
};
|
|
865
|
+
type DialogOpenChangeHandler = (open: boolean, details?: DialogOpenChangeDetails) => void;
|
|
866
|
+
type DialogProps = {
|
|
867
|
+
children?: RemixNode;
|
|
868
|
+
closeOnInteractOutside?: boolean;
|
|
869
|
+
defaultOpen?: boolean;
|
|
870
|
+
modal?: boolean;
|
|
871
|
+
onOpenChange?: DialogOpenChangeHandler;
|
|
872
|
+
onOpenChangeComplete?: DialogOpenChangeHandler;
|
|
873
|
+
open?: boolean;
|
|
874
|
+
shouldCloseOnInteractOutside?: (element: Element) => boolean;
|
|
875
|
+
};
|
|
876
|
+
type DialogTriggerProps = Omit<Props<"button">, "style"> & {
|
|
877
|
+
style?: never;
|
|
878
|
+
};
|
|
879
|
+
type DialogPopupStyleProps<TLayout extends string = string> = {
|
|
880
|
+
layout?: TLayout;
|
|
881
|
+
};
|
|
882
|
+
type DialogPopupProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"dialog">, "style"> & DialogPopupStyleProps<TLayout> & ResponsiveProps<DialogPopupStyleProps<TLayout>, TBreakpoint> & {
|
|
883
|
+
style?: never;
|
|
884
|
+
};
|
|
885
|
+
type DialogOverlayProps = Omit<Props<"div">, "style"> & {
|
|
886
|
+
style?: never;
|
|
887
|
+
};
|
|
888
|
+
type DialogTitleProps = Omit<Props<"h2">, "style"> & {
|
|
889
|
+
style?: never;
|
|
890
|
+
};
|
|
891
|
+
type DialogDescriptionProps = Omit<Props<"p">, "style"> & {
|
|
892
|
+
style?: never;
|
|
893
|
+
};
|
|
894
|
+
type DialogCloseProps = Omit<Props<"button">, "style"> & {
|
|
895
|
+
style?: never;
|
|
896
|
+
};
|
|
897
|
+
type DialogComponents<TPopupLayout extends string = string> = {
|
|
898
|
+
Close: RemixComponent<DialogCloseProps>;
|
|
899
|
+
Description: RemixComponent<DialogDescriptionProps>;
|
|
900
|
+
Overlay: RemixComponent<DialogOverlayProps>;
|
|
901
|
+
Popup: RemixComponent<DialogPopupProps<TPopupLayout>>;
|
|
902
|
+
Root: RemixComponent<DialogProps, DialogRuntimeContext>;
|
|
903
|
+
Title: RemixComponent<DialogTitleProps>;
|
|
904
|
+
Trigger: RemixComponent<DialogTriggerProps>;
|
|
905
|
+
};
|
|
906
|
+
type DialogRuntimeContext = {
|
|
907
|
+
closeOnInteractOutside: () => boolean;
|
|
908
|
+
isModal: () => boolean;
|
|
909
|
+
isOpen: () => boolean;
|
|
910
|
+
shouldCloseOnInteractOutside: () => ((element: Element) => boolean) | undefined;
|
|
911
|
+
setOpen: (open: boolean, details?: DialogOpenChangeDetails) => void;
|
|
912
|
+
};
|
|
913
|
+
declare function createDialog<TMode extends string, TRecipe extends DialogRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: DialogStyleSystem<TMode, TRecipe, TMetadata>): DialogComponents<DialogRecipePopupLayout<TRecipe>>;
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region kit/lab/design/components/remix/empty-state.d.ts
|
|
916
|
+
type EmptyStateRecipeInput = RecipeWithVariantGroups<"body" | "indicator" | "root" | "title", never, ComponentStyle, Record<string, never>>;
|
|
917
|
+
type EmptyStateStyleSystem<TMode extends string = string, TRecipe extends EmptyStateRecipeInput = EmptyStateRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
918
|
+
recipe: {
|
|
919
|
+
emptyState: TRecipe;
|
|
920
|
+
};
|
|
921
|
+
}, TMetadata>;
|
|
922
|
+
type EmptyStateProps = Omit<Props<"div">, "style"> & {
|
|
923
|
+
bodyProps?: ComponentSlotProps<"div">;
|
|
924
|
+
indicator?: RemixNode;
|
|
925
|
+
indicatorProps?: ComponentSlotProps<"div">;
|
|
926
|
+
style?: never;
|
|
927
|
+
title: RemixNode;
|
|
928
|
+
titleProps?: ComponentSlotProps<"div">;
|
|
929
|
+
};
|
|
930
|
+
declare function createEmptyState<TMode extends string, TRecipe extends EmptyStateRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: EmptyStateStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<EmptyStateProps>;
|
|
931
|
+
//#endregion
|
|
932
|
+
//#region kit/lab/design/components/remix/field.d.ts
|
|
933
|
+
declare const field_slot: {
|
|
934
|
+
readonly description: "description";
|
|
935
|
+
readonly error: "error";
|
|
936
|
+
readonly label: "label";
|
|
937
|
+
readonly root: "root";
|
|
938
|
+
};
|
|
939
|
+
type FieldRecipeSlot = (typeof field_slot)[keyof typeof field_slot];
|
|
940
|
+
type FieldRecipeInput = RecipeWithVariantGroups<FieldRecipeSlot, string, ComponentStyle, Record<never, string>>;
|
|
941
|
+
type FieldStyleSystem<TMode extends string = string, TRecipe extends FieldRecipeInput = FieldRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
942
|
+
recipe: {
|
|
943
|
+
field: TRecipe;
|
|
944
|
+
};
|
|
945
|
+
}, TMetadata>;
|
|
946
|
+
type FieldProps = Omit<Props<"div">, "style"> & {
|
|
947
|
+
controlID?: string;
|
|
948
|
+
disabled?: boolean;
|
|
949
|
+
invalid?: boolean;
|
|
950
|
+
style?: never;
|
|
951
|
+
};
|
|
952
|
+
type FieldLabelProps = Omit<Props<"label">, "style"> & {
|
|
953
|
+
style?: never;
|
|
954
|
+
};
|
|
955
|
+
type FieldDescriptionProps = Omit<Props<"p">, "style"> & {
|
|
956
|
+
style?: never;
|
|
957
|
+
};
|
|
958
|
+
type FieldErrorProps = Omit<Props<"p">, "style"> & {
|
|
959
|
+
match?: boolean;
|
|
960
|
+
style?: never;
|
|
961
|
+
};
|
|
962
|
+
type FieldContext = {
|
|
963
|
+
controlID: () => string;
|
|
964
|
+
descriptionID: () => string;
|
|
965
|
+
describedBy: () => string;
|
|
966
|
+
disabled: () => boolean;
|
|
967
|
+
errorID: () => string;
|
|
968
|
+
invalid: () => boolean;
|
|
969
|
+
};
|
|
970
|
+
type FieldControlMixin = <TElement extends HTMLElement = HTMLElement>() => MixInput<TElement>;
|
|
971
|
+
type FieldComponents = {
|
|
972
|
+
controlMixin: FieldControlMixin;
|
|
973
|
+
Description: RemixComponent<FieldDescriptionProps>;
|
|
974
|
+
Error: RemixComponent<FieldErrorProps>;
|
|
975
|
+
Label: RemixComponent<FieldLabelProps>;
|
|
976
|
+
Root: RemixComponent<FieldProps, FieldContext>;
|
|
977
|
+
};
|
|
978
|
+
declare function createFieldParts<TMode extends string, TRecipe extends FieldRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FieldStyleSystem<TMode, TRecipe, TMetadata>): FieldComponents;
|
|
979
|
+
declare function createField<TMode extends string, TRecipe extends FieldRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FieldStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<FieldProps, FieldContext>;
|
|
980
|
+
declare function createFieldLabel<TMode extends string, TRecipe extends FieldRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FieldStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<FieldLabelProps>;
|
|
981
|
+
declare function createFieldDescription<TMode extends string, TRecipe extends FieldRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FieldStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<FieldDescriptionProps>;
|
|
982
|
+
declare function createFieldError<TMode extends string, TRecipe extends FieldRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FieldStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<FieldErrorProps>;
|
|
983
|
+
declare function createFieldControlMixin<TMode extends string, TRecipe extends FieldRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FieldStyleSystem<TMode, TRecipe, TMetadata>): FieldControlMixin;
|
|
984
|
+
//#endregion
|
|
985
|
+
//#region kit/lab/design/components/remix/fieldset.d.ts
|
|
986
|
+
type FieldsetRecipeInput<TLayout extends string = string> = RecipeWithVariantGroups<"legend" | "root", string, ComponentStyle, {
|
|
987
|
+
layout: TLayout;
|
|
988
|
+
}>;
|
|
989
|
+
type FieldsetRecipeLayout<TRecipe extends FieldsetRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
990
|
+
type FieldsetRecipeSelection<TRecipe extends FieldsetRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout">;
|
|
991
|
+
type FieldsetStyleSystem<TMode extends string = string, TRecipe extends FieldsetRecipeInput = FieldsetRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
992
|
+
recipe: {
|
|
993
|
+
fieldset: TRecipe;
|
|
994
|
+
};
|
|
995
|
+
}, TMetadata>;
|
|
996
|
+
type FieldsetRootStyleProps<TLayout extends string = string> = {
|
|
997
|
+
layout?: TLayout;
|
|
998
|
+
};
|
|
999
|
+
type FieldsetRootProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"fieldset">, "style"> & FieldsetRootStyleProps<TLayout> & ResponsiveProps<FieldsetRootStyleProps<TLayout>, TBreakpoint> & {
|
|
1000
|
+
style?: never;
|
|
1001
|
+
};
|
|
1002
|
+
type FieldsetLegendProps = Omit<Props<"legend">, "style"> & {
|
|
1003
|
+
style?: never;
|
|
1004
|
+
};
|
|
1005
|
+
type FieldsetComponents<TLayout extends string = string> = {
|
|
1006
|
+
Legend: RemixComponent<FieldsetLegendProps>;
|
|
1007
|
+
Root: RemixComponent<FieldsetRootProps<TLayout>>;
|
|
1008
|
+
};
|
|
1009
|
+
declare function createFieldset<TMode extends string, TRecipe extends FieldsetRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FieldsetStyleSystem<TMode, TRecipe, TMetadata>): FieldsetComponents<FieldsetRecipeLayout<TRecipe>>;
|
|
1010
|
+
//#endregion
|
|
1011
|
+
//#region kit/lab/design/components/remix/form.d.ts
|
|
1012
|
+
type FormRecipeInput<TLayout extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
1013
|
+
layout: TLayout;
|
|
1014
|
+
}>;
|
|
1015
|
+
type FormRecipeLayout<TRecipe extends FormRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1016
|
+
type FormRecipeSelection<TRecipe extends FormRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout">;
|
|
1017
|
+
type FormStyleSystem<TMode extends string = string, TRecipe extends FormRecipeInput = FormRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1018
|
+
recipe: {
|
|
1019
|
+
form: TRecipe;
|
|
1020
|
+
};
|
|
1021
|
+
}, TMetadata>;
|
|
1022
|
+
type FormStyleProps<TLayout extends string = string> = {
|
|
1023
|
+
layout?: TLayout;
|
|
1024
|
+
};
|
|
1025
|
+
type FormProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"form">, "style"> & FormStyleProps<TLayout> & ResponsiveProps<FormStyleProps<TLayout>, TBreakpoint> & {
|
|
1026
|
+
style?: never;
|
|
1027
|
+
};
|
|
1028
|
+
declare function createForm<TMode extends string, TRecipe extends FormRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: FormStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<FormProps<FormRecipeLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
1029
|
+
//#endregion
|
|
1030
|
+
//#region kit/lab/design/components/remix/grid.d.ts
|
|
1031
|
+
type GridAlign = "center" | "end" | "start" | "stretch";
|
|
1032
|
+
type GridJustify = "center" | "end" | "start" | "stretch";
|
|
1033
|
+
type GridRecipeInput<TColumns extends string = string, TGap extends string = string, TLayout extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
1034
|
+
columns: TColumns;
|
|
1035
|
+
gap: TGap;
|
|
1036
|
+
layout: TLayout;
|
|
1037
|
+
}>;
|
|
1038
|
+
type GridRecipeColumns<TRecipe extends GridRecipeInput> = RecipeVariantValue<TRecipe, "columns">;
|
|
1039
|
+
type GridRecipeGap<TRecipe extends GridRecipeInput> = RecipeVariantValue<TRecipe, "gap">;
|
|
1040
|
+
type GridRecipeLayout<TRecipe extends GridRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1041
|
+
type GridRecipeSelection<TRecipe extends GridRecipeInput> = RecipeVariantPropsFor<TRecipe, "columns" | "gap" | "layout">;
|
|
1042
|
+
type GridStyleSystem<TMode extends string = string, TRecipe extends GridRecipeInput = GridRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1043
|
+
recipe: {
|
|
1044
|
+
grid: TRecipe;
|
|
1045
|
+
};
|
|
1046
|
+
}, TMetadata>;
|
|
1047
|
+
type GridStyleProps<TColumns extends string = string, TGap extends string = string, TLayout extends string = string> = Partial<GridRecipeSelection<GridRecipeInput<TColumns, TGap, TLayout>>> & {
|
|
1048
|
+
align?: GridAlign;
|
|
1049
|
+
justify?: GridJustify;
|
|
1050
|
+
};
|
|
1051
|
+
type GridProps<TColumns extends string = string, TGap extends string = string, TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<keyof HTMLElementTagNameMap>, "style"> & GridStyleProps<TColumns, TGap, TLayout> & ResponsiveProps<GridStyleProps<TColumns, TGap, TLayout>, TBreakpoint> & {
|
|
1052
|
+
as?: keyof HTMLElementTagNameMap;
|
|
1053
|
+
style?: never;
|
|
1054
|
+
};
|
|
1055
|
+
declare function createGrid<TMode extends string, TRecipe extends GridRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: GridStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<GridProps<GridRecipeColumns<TRecipe>, GridRecipeGap<TRecipe>, GridRecipeLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#region kit/lab/design/components/remix/icon.d.ts
|
|
1058
|
+
type IconElement = "div" | "span";
|
|
1059
|
+
type IconRotate = string;
|
|
1060
|
+
type IconRecipeInput<TSize extends string = string, TTone extends string = string, TLayout extends string = string> = RecipeWithVariantGroups<"root", never, ComponentStyle, {
|
|
1061
|
+
layout: TLayout;
|
|
1062
|
+
size: TSize;
|
|
1063
|
+
tone: TTone;
|
|
1064
|
+
}>;
|
|
1065
|
+
type IconRecipeSize<TRecipe extends IconRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1066
|
+
type IconRecipeTone<TRecipe extends IconRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
1067
|
+
type IconRecipeLayout<TRecipe extends IconRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1068
|
+
type IconRecipeSelection<TRecipe extends IconRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout" | "size" | "tone">;
|
|
1069
|
+
type IconStyleSystem<TMode extends string = string, TRecipe extends IconRecipeInput = IconRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1070
|
+
recipe: {
|
|
1071
|
+
icon: TRecipe;
|
|
1072
|
+
};
|
|
1073
|
+
}, TMetadata>;
|
|
1074
|
+
type IconStyleProps<TSize extends string = string, TTone extends string = string, TLayout extends string = string> = {
|
|
1075
|
+
layout?: TLayout;
|
|
1076
|
+
rotate?: IconRotate;
|
|
1077
|
+
size?: TSize;
|
|
1078
|
+
tone?: TTone;
|
|
1079
|
+
};
|
|
1080
|
+
type IconProps<TSize extends string = string, TTone extends string = string, TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<IconElement>, "style"> & IconStyleProps<TSize, TTone, TLayout> & ResponsiveProps<IconStyleProps<TSize, TTone, TLayout>, TBreakpoint> & {
|
|
1081
|
+
as?: IconElement;
|
|
1082
|
+
decorative?: boolean;
|
|
1083
|
+
style?: never;
|
|
1084
|
+
};
|
|
1085
|
+
declare function createIcon<TMode extends string, TRecipe extends IconRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: IconStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<IconProps<IconRecipeSize<TRecipe>, IconRecipeTone<TRecipe>, IconRecipeLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
1086
|
+
//#endregion
|
|
1087
|
+
//#region kit/lab/design/components/remix/input.d.ts
|
|
1088
|
+
type InputRecipeInput<TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
1089
|
+
size: TSize;
|
|
1090
|
+
variant: TVariant;
|
|
1091
|
+
}>;
|
|
1092
|
+
type InputRecipeVariant<TRecipe extends InputRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
1093
|
+
type InputRecipeSize<TRecipe extends InputRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1094
|
+
type InputRecipeSelection<TRecipe extends InputRecipeInput> = RecipeVariantPropsFor<TRecipe, "size" | "variant">;
|
|
1095
|
+
type InputStyleSystem<TMode extends string = string, TRecipe extends InputRecipeInput = InputRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1096
|
+
recipe: {
|
|
1097
|
+
input: TRecipe;
|
|
1098
|
+
};
|
|
1099
|
+
}, TMetadata>;
|
|
1100
|
+
type InputProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"input">, "size" | "style"> & Partial<InputRecipeSelection<InputRecipeInput<TVariant, TSize>>> & ResponsiveProps<InputRecipeSelection<InputRecipeInput<TVariant, TSize>>, TBreakpoint> & {
|
|
1101
|
+
style?: never;
|
|
1102
|
+
};
|
|
1103
|
+
declare function createInput<TMode extends string, TRecipe extends InputRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: InputStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<InputProps<InputRecipeVariant<TRecipe>, InputRecipeSize<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region kit/lab/design/components/remix/kbd.d.ts
|
|
1106
|
+
declare const kbdDefaultElement = "kbd";
|
|
1107
|
+
declare const kbdScope = "kbd";
|
|
1108
|
+
type KbdRecipeInput<TSize extends string = string> = RootRecipeInput<{
|
|
1109
|
+
size: TSize;
|
|
1110
|
+
}>;
|
|
1111
|
+
type KbdRecipeSize<TRecipe extends KbdRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1112
|
+
type KbdStyleSystem<TMode extends string = string, TRecipe extends KbdRecipeInput = KbdRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = RootStyleSystem<TMode, TRecipe, TMetadata, typeof kbdScope>;
|
|
1113
|
+
type KbdProps<TRecipe extends KbdRecipeInput = KbdRecipeInput, TBreakpoint extends string = string> = RootComponentProps<"size", TRecipe, TBreakpoint>;
|
|
1114
|
+
declare function createKbd<TMode extends string, TRecipe extends KbdRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: KbdStyleSystem<TMode, TRecipe, TMetadata>): RootComponent<"size", TRecipe, BreakpointForStyleSystem<KbdStyleSystem<TMode, TRecipe, TMetadata>>>;
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region kit/lab/design/components/remix/list.d.ts
|
|
1117
|
+
type ListElement = "ol" | "ul";
|
|
1118
|
+
type ListRecipeInput = RecipeWithVariantGroups<"item" | "root", never, ComponentStyle, Record<string, never>>;
|
|
1119
|
+
type ListStyleSystem<TMode extends string = string, TRecipe extends ListRecipeInput = ListRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1120
|
+
recipe: {
|
|
1121
|
+
list: TRecipe;
|
|
1122
|
+
};
|
|
1123
|
+
}, TMetadata>;
|
|
1124
|
+
type ListProps = Omit<Props<ListElement>, "style"> & {
|
|
1125
|
+
as?: ListElement;
|
|
1126
|
+
style?: never;
|
|
1127
|
+
};
|
|
1128
|
+
type ListItemProps = Omit<Props<"li">, "style"> & {
|
|
1129
|
+
style?: never;
|
|
1130
|
+
};
|
|
1131
|
+
declare function createList<TMode extends string, TRecipe extends ListRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: ListStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<ListProps>;
|
|
1132
|
+
declare function createListItem<TMode extends string, TRecipe extends ListRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: ListStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<ListItemProps>;
|
|
1133
|
+
//#endregion
|
|
1134
|
+
//#region kit/lab/design/components/remix/group-label.d.ts
|
|
1135
|
+
type GroupLabelRelationship = {
|
|
1136
|
+
get_label_id: () => string;
|
|
1137
|
+
get_labelled_by: () => string | undefined;
|
|
1138
|
+
register_label: (node: HTMLElement | null) => void;
|
|
1139
|
+
};
|
|
1140
|
+
//#endregion
|
|
1141
|
+
//#region kit/lab/design/components/remix/ordered-collection.d.ts
|
|
1142
|
+
type OrderedCollectionItem<TValue extends string = string> = {
|
|
1143
|
+
disabled: boolean;
|
|
1144
|
+
id: string;
|
|
1145
|
+
node: HTMLElement;
|
|
1146
|
+
text: string;
|
|
1147
|
+
value: TValue;
|
|
1148
|
+
};
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region kit/lab/design/components/remix/listbox.d.ts
|
|
1151
|
+
declare const listbox_slot: {
|
|
1152
|
+
readonly group: "group";
|
|
1153
|
+
readonly groupLabel: "groupLabel";
|
|
1154
|
+
readonly option: "option";
|
|
1155
|
+
readonly optionIndicator: "optionIndicator";
|
|
1156
|
+
readonly optionText: "optionText";
|
|
1157
|
+
readonly root: "root";
|
|
1158
|
+
};
|
|
1159
|
+
type ListboxRecipeSlot = (typeof listbox_slot)[keyof typeof listbox_slot];
|
|
1160
|
+
type ListboxRecipeCondition = CommonRecipeCondition | "highlighted";
|
|
1161
|
+
type ListboxRecipeInput<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<ListboxRecipeSlot, string, ComponentStyle, {
|
|
1162
|
+
layout: TLayout;
|
|
1163
|
+
size: TSize;
|
|
1164
|
+
variant: TVariant;
|
|
1165
|
+
}>;
|
|
1166
|
+
type ListboxRecipeLayout<TRecipe extends ListboxRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1167
|
+
type ListboxRecipeVariant<TRecipe extends ListboxRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
1168
|
+
type ListboxRecipeSize<TRecipe extends ListboxRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1169
|
+
type ListboxRecipeSelection<TRecipe extends ListboxRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout" | "size" | "variant">;
|
|
1170
|
+
type ListboxStyleSystem<TMode extends string = string, TRecipe extends ListboxRecipeInput = ListboxRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1171
|
+
recipe: {
|
|
1172
|
+
listbox: TRecipe;
|
|
1173
|
+
};
|
|
1174
|
+
}, TMetadata>;
|
|
1175
|
+
declare const listboxValueChangeReason: {
|
|
1176
|
+
readonly keyboard: "keyboard";
|
|
1177
|
+
readonly pointer: "pointer";
|
|
1178
|
+
};
|
|
1179
|
+
declare const listboxHighlightChangeReason: {
|
|
1180
|
+
readonly focus: "focus";
|
|
1181
|
+
readonly keyboard: "keyboard";
|
|
1182
|
+
readonly pointer: "pointer";
|
|
1183
|
+
readonly typeahead: "typeahead";
|
|
1184
|
+
};
|
|
1185
|
+
type ListboxValueChangeReason = (typeof listboxValueChangeReason)[keyof typeof listboxValueChangeReason];
|
|
1186
|
+
type ListboxHighlightChangeReason = (typeof listboxHighlightChangeReason)[keyof typeof listboxHighlightChangeReason];
|
|
1187
|
+
type ListboxValueChangeDetails = {
|
|
1188
|
+
event?: Event;
|
|
1189
|
+
reason: ListboxValueChangeReason;
|
|
1190
|
+
};
|
|
1191
|
+
type ListboxHighlightChangeDetails = {
|
|
1192
|
+
event?: Event;
|
|
1193
|
+
reason: ListboxHighlightChangeReason;
|
|
1194
|
+
};
|
|
1195
|
+
type ListboxValueChangeHandler<TValue extends string = string> = (value: TValue | null, details?: ListboxValueChangeDetails) => void;
|
|
1196
|
+
type ListboxHighlightChangeHandler<TValue extends string = string> = (value: TValue | null, details?: ListboxHighlightChangeDetails) => void;
|
|
1197
|
+
type ListboxValuesChangeHandler<TValue extends string = string> = (values: readonly TValue[], details?: ListboxValueChangeDetails) => void;
|
|
1198
|
+
type ListboxSelectionMode = "multiple" | "single";
|
|
1199
|
+
type ListboxRootStyleProps<TLayout extends string = string> = {
|
|
1200
|
+
layout?: TLayout;
|
|
1201
|
+
};
|
|
1202
|
+
type ListboxOrientation = "horizontal" | "vertical";
|
|
1203
|
+
type ListboxRootSharedProps<TValue extends string = string> = {
|
|
1204
|
+
defaultHighlightedValue?: TValue | null;
|
|
1205
|
+
disabled?: boolean;
|
|
1206
|
+
highlightedValue?: TValue | null;
|
|
1207
|
+
invalid?: boolean;
|
|
1208
|
+
loopFocus?: boolean;
|
|
1209
|
+
onHighlightChange?: ListboxHighlightChangeHandler<TValue>;
|
|
1210
|
+
orientation?: ListboxOrientation;
|
|
1211
|
+
required?: boolean;
|
|
1212
|
+
style?: never;
|
|
1213
|
+
typeahead?: boolean;
|
|
1214
|
+
};
|
|
1215
|
+
type ListboxRootSingleSelectionProps<TValue extends string = string> = {
|
|
1216
|
+
defaultValue?: TValue | null;
|
|
1217
|
+
defaultValues?: never;
|
|
1218
|
+
onValueChange?: ListboxValueChangeHandler<TValue>;
|
|
1219
|
+
onValuesChange?: never;
|
|
1220
|
+
selectionFollowsFocus?: boolean;
|
|
1221
|
+
selectionMode?: "single";
|
|
1222
|
+
value?: TValue | null;
|
|
1223
|
+
values?: never;
|
|
1224
|
+
};
|
|
1225
|
+
type ListboxRootMultipleSelectionProps<TValue extends string = string> = {
|
|
1226
|
+
defaultValue?: never;
|
|
1227
|
+
defaultValues?: readonly TValue[];
|
|
1228
|
+
onValueChange?: never;
|
|
1229
|
+
onValuesChange?: ListboxValuesChangeHandler<TValue>;
|
|
1230
|
+
selectionFollowsFocus?: never;
|
|
1231
|
+
selectionMode: "multiple";
|
|
1232
|
+
value?: never;
|
|
1233
|
+
values?: readonly TValue[];
|
|
1234
|
+
};
|
|
1235
|
+
type ListboxRootSelectionProps<TValue extends string = string> = ListboxRootSingleSelectionProps<TValue> | ListboxRootMultipleSelectionProps<TValue>;
|
|
1236
|
+
type ListboxOptionStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
1237
|
+
size?: TSize;
|
|
1238
|
+
variant?: TVariant;
|
|
1239
|
+
};
|
|
1240
|
+
type ListboxRootProps<TLayout extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"div">, "style"> & ListboxRootStyleProps<TLayout> & ResponsiveProps<ListboxRootStyleProps<TLayout>, TBreakpoint> & ListboxRootSharedProps<TValue> & ListboxRootSelectionProps<TValue>;
|
|
1241
|
+
type ListboxOptionProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"div">, "style"> & ListboxOptionStyleProps<TVariant, TSize> & ResponsiveProps<ListboxOptionStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
1242
|
+
disabled?: boolean;
|
|
1243
|
+
style?: never;
|
|
1244
|
+
textValue?: string;
|
|
1245
|
+
value: TValue;
|
|
1246
|
+
};
|
|
1247
|
+
type ListboxGroupProps = Omit<Props<"div">, "style"> & {
|
|
1248
|
+
style?: never;
|
|
1249
|
+
};
|
|
1250
|
+
type ListboxGroupLabelProps = Omit<Props<"div">, "style"> & {
|
|
1251
|
+
style?: never;
|
|
1252
|
+
};
|
|
1253
|
+
type ListboxOptionTextProps = Omit<Props<"span">, "style"> & {
|
|
1254
|
+
style?: never;
|
|
1255
|
+
};
|
|
1256
|
+
type ListboxOptionIndicatorProps = Omit<Props<"span">, "style"> & {
|
|
1257
|
+
style?: never;
|
|
1258
|
+
};
|
|
1259
|
+
type ListboxComponents<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = {
|
|
1260
|
+
Group: RemixComponent<ListboxGroupProps, ListboxGroupRuntimeContext>;
|
|
1261
|
+
GroupLabel: RemixComponent<ListboxGroupLabelProps>;
|
|
1262
|
+
Option: RemixComponent<ListboxOptionProps<TVariant, TSize>>;
|
|
1263
|
+
OptionIndicator: RemixComponent<ListboxOptionIndicatorProps>;
|
|
1264
|
+
OptionText: RemixComponent<ListboxOptionTextProps>;
|
|
1265
|
+
Root: RemixComponent<ListboxRootProps<TLayout>, ListboxRuntimeContext>;
|
|
1266
|
+
};
|
|
1267
|
+
type ListboxOptions = {
|
|
1268
|
+
conditions?: Partial<Readonly<Record<ListboxRecipeSlot, RecipeConditionSelectorMap<string>>>>;
|
|
1269
|
+
};
|
|
1270
|
+
type ListboxRuntimeContext = {
|
|
1271
|
+
get_disabled: () => boolean;
|
|
1272
|
+
get_highlighted_id: () => string | undefined;
|
|
1273
|
+
get_highlighted_value: () => string | null;
|
|
1274
|
+
get_invalid: () => boolean;
|
|
1275
|
+
get_required: () => boolean;
|
|
1276
|
+
get_value: () => string | null;
|
|
1277
|
+
handle_focus: (event: FocusEvent) => void;
|
|
1278
|
+
handle_keydown: (event: KeyboardEvent) => void;
|
|
1279
|
+
highlight_value: (value: string | null, details: ListboxHighlightChangeDetails) => void;
|
|
1280
|
+
register_option: (option: RegisteredListboxOption) => void;
|
|
1281
|
+
select_value: (value: string | null, details: ListboxValueChangeDetails) => void;
|
|
1282
|
+
value_selected: (value: string) => boolean;
|
|
1283
|
+
unregister_option: (id: string) => void;
|
|
1284
|
+
};
|
|
1285
|
+
type ListboxGroupRuntimeContext = GroupLabelRelationship;
|
|
1286
|
+
type RegisteredListboxOption = OrderedCollectionItem<string>;
|
|
1287
|
+
declare function createListbox<TMode extends string, TRecipe extends ListboxRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: ListboxStyleSystem<TMode, TRecipe, TMetadata>, options?: ListboxOptions): ListboxComponents<ListboxRecipeLayout<TRecipe>, ListboxRecipeVariant<TRecipe>, ListboxRecipeSize<TRecipe>>;
|
|
1288
|
+
//#endregion
|
|
1289
|
+
//#region kit/lab/design/components/remix/popup-behavior.d.ts
|
|
1290
|
+
type PopupRelationship = {
|
|
1291
|
+
containsTarget: (target: EventTarget | null) => boolean;
|
|
1292
|
+
focusTrigger: () => void;
|
|
1293
|
+
getPopup: () => HTMLElement | null;
|
|
1294
|
+
getTrigger: () => HTMLElement | null;
|
|
1295
|
+
registerPopup: (node: HTMLElement | null) => void;
|
|
1296
|
+
registerTrigger: (node: HTMLElement | null) => void;
|
|
1297
|
+
syncPopup: (open: boolean) => void;
|
|
1298
|
+
};
|
|
1299
|
+
//#endregion
|
|
1300
|
+
//#region kit/lab/design/components/remix/menu.d.ts
|
|
1301
|
+
declare const menuAnatomy: {
|
|
1302
|
+
readonly group: "group";
|
|
1303
|
+
readonly groupLabel: "groupLabel";
|
|
1304
|
+
readonly item: "item";
|
|
1305
|
+
readonly itemIndicator: "itemIndicator";
|
|
1306
|
+
readonly popup: "popup";
|
|
1307
|
+
readonly separator: "separator";
|
|
1308
|
+
readonly trigger: "trigger";
|
|
1309
|
+
};
|
|
1310
|
+
type MenuRecipeSlot = (typeof menuAnatomy)[keyof typeof menuAnatomy];
|
|
1311
|
+
type MenuRecipeCondition = CommonRecipeCondition | "checked" | "closed" | "highlighted" | "indeterminate" | "open" | "unchecked";
|
|
1312
|
+
type MenuRecipeInput<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<MenuRecipeSlot, string, ComponentStyle, {
|
|
1313
|
+
layout: TLayout;
|
|
1314
|
+
size: TSize;
|
|
1315
|
+
variant: TVariant;
|
|
1316
|
+
}>;
|
|
1317
|
+
type MenuRecipeLayout<TRecipe extends MenuRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1318
|
+
type MenuRecipeVariant<TRecipe extends MenuRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
1319
|
+
type MenuRecipeSize<TRecipe extends MenuRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1320
|
+
type MenuRecipeSelection<TRecipe extends MenuRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout" | "size" | "variant">;
|
|
1321
|
+
type MenuStyleSystem<TMode extends string = string, TRecipe extends MenuRecipeInput = MenuRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1322
|
+
recipe: {
|
|
1323
|
+
menu: TRecipe;
|
|
1324
|
+
};
|
|
1325
|
+
}, TMetadata>;
|
|
1326
|
+
type MenuOpenChangeDetails = {
|
|
1327
|
+
event?: Event;
|
|
1328
|
+
reason: MenuOpenChangeReason;
|
|
1329
|
+
};
|
|
1330
|
+
type MenuOpenChangeHandler = (open: boolean, details?: MenuOpenChangeDetails) => void;
|
|
1331
|
+
type MenuRootProps = {
|
|
1332
|
+
children?: RemixNode;
|
|
1333
|
+
closeOnSelect?: boolean;
|
|
1334
|
+
defaultOpen?: boolean;
|
|
1335
|
+
loopFocus?: boolean;
|
|
1336
|
+
onOpenChange?: MenuOpenChangeHandler;
|
|
1337
|
+
onOpenChangeComplete?: MenuOpenChangeHandler;
|
|
1338
|
+
open?: boolean;
|
|
1339
|
+
typeahead?: boolean;
|
|
1340
|
+
};
|
|
1341
|
+
type MenuTriggerStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
1342
|
+
size?: TSize;
|
|
1343
|
+
variant?: TVariant;
|
|
1344
|
+
};
|
|
1345
|
+
type MenuPopupStyleProps<TLayout extends string = string> = {
|
|
1346
|
+
layout?: TLayout;
|
|
1347
|
+
};
|
|
1348
|
+
type MenuItemStyleProps<TVariant extends string = string, TSize extends string = string> = MenuTriggerStyleProps<TVariant, TSize>;
|
|
1349
|
+
type MenuTriggerProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"button">, "style"> & MenuTriggerStyleProps<TVariant, TSize> & ResponsiveProps<MenuTriggerStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
1350
|
+
style?: never;
|
|
1351
|
+
};
|
|
1352
|
+
type MenuPopupProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & MenuPopupStyleProps<TLayout> & ResponsiveProps<MenuPopupStyleProps<TLayout>, TBreakpoint> & {
|
|
1353
|
+
style?: never;
|
|
1354
|
+
};
|
|
1355
|
+
type MenuItemProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"button">, "style"> & MenuItemStyleProps<TVariant, TSize> & ResponsiveProps<MenuItemStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
1356
|
+
disabled?: boolean;
|
|
1357
|
+
style?: never;
|
|
1358
|
+
textValue?: string;
|
|
1359
|
+
};
|
|
1360
|
+
type MenuChecked = CheckableChecked;
|
|
1361
|
+
type MenuCheckedChangeHandler = (checked: MenuChecked, details?: MenuItemSelectDetails) => void;
|
|
1362
|
+
type MenuRadioValueChangeHandler<TValue extends string = string> = (value: TValue, details?: MenuItemSelectDetails) => void;
|
|
1363
|
+
type MenuCheckboxItemProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"button">, "style"> & MenuItemStyleProps<TVariant, TSize> & ResponsiveProps<MenuItemStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
1364
|
+
checked?: MenuChecked;
|
|
1365
|
+
defaultChecked?: MenuChecked;
|
|
1366
|
+
disabled?: boolean;
|
|
1367
|
+
onCheckedChange?: MenuCheckedChangeHandler;
|
|
1368
|
+
style?: never;
|
|
1369
|
+
textValue?: string;
|
|
1370
|
+
};
|
|
1371
|
+
type MenuRadioGroupProps<TValue extends string = string> = {
|
|
1372
|
+
children?: RemixNode;
|
|
1373
|
+
defaultValue?: TValue | null;
|
|
1374
|
+
onValueChange?: MenuRadioValueChangeHandler<TValue>;
|
|
1375
|
+
value?: TValue | null;
|
|
1376
|
+
};
|
|
1377
|
+
type MenuRadioItemProps<TValue extends string = string, TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"button">, "style" | "value"> & MenuItemStyleProps<TVariant, TSize> & ResponsiveProps<MenuItemStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
1378
|
+
disabled?: boolean;
|
|
1379
|
+
style?: never;
|
|
1380
|
+
textValue?: string;
|
|
1381
|
+
value: TValue;
|
|
1382
|
+
};
|
|
1383
|
+
type MenuItemIndicatorProps = Omit<Props<"span">, "style"> & {
|
|
1384
|
+
style?: never;
|
|
1385
|
+
};
|
|
1386
|
+
type MenuSeparatorProps = Omit<Props<"div">, "style"> & {
|
|
1387
|
+
style?: never;
|
|
1388
|
+
};
|
|
1389
|
+
type MenuGroupProps = Omit<Props<"div">, "style"> & {
|
|
1390
|
+
style?: never;
|
|
1391
|
+
};
|
|
1392
|
+
type MenuGroupLabelProps = Omit<Props<"div">, "style"> & {
|
|
1393
|
+
style?: never;
|
|
1394
|
+
};
|
|
1395
|
+
type MenuComponents<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = {
|
|
1396
|
+
CheckboxItem: RemixComponent<MenuCheckboxItemProps<TVariant, TSize>, MenuItemRuntimeContext>;
|
|
1397
|
+
Group: RemixComponent<MenuGroupProps, MenuGroupContext>;
|
|
1398
|
+
GroupLabel: RemixComponent<MenuGroupLabelProps>;
|
|
1399
|
+
Item: RemixComponent<MenuItemProps<TVariant, TSize>>;
|
|
1400
|
+
ItemIndicator: RemixComponent<MenuItemIndicatorProps>;
|
|
1401
|
+
Popup: RemixComponent<MenuPopupProps<TLayout>>;
|
|
1402
|
+
RadioGroup: RemixComponent<MenuRadioGroupProps, MenuRadioGroupContext>;
|
|
1403
|
+
RadioItem: RemixComponent<MenuRadioItemProps<string, TVariant, TSize>, MenuItemRuntimeContext>;
|
|
1404
|
+
Root: RemixComponent<MenuRootProps, MenuContext>;
|
|
1405
|
+
Separator: RemixComponent<MenuSeparatorProps>;
|
|
1406
|
+
Trigger: RemixComponent<MenuTriggerProps<TVariant, TSize>>;
|
|
1407
|
+
};
|
|
1408
|
+
type MenuContext = {
|
|
1409
|
+
close: (details: MenuOpenChangeDetails) => void;
|
|
1410
|
+
get_close_on_select: () => boolean;
|
|
1411
|
+
get_current_item_value: () => string | null;
|
|
1412
|
+
get_open: () => boolean;
|
|
1413
|
+
get_popup_relationship: () => PopupRelationship;
|
|
1414
|
+
get_popup_id: () => string;
|
|
1415
|
+
get_trigger_id: () => string;
|
|
1416
|
+
handle_popup_keydown: (event: KeyboardEvent) => void;
|
|
1417
|
+
open: (details: MenuOpenChangeDetails, focus?: MenuOpenFocus) => void;
|
|
1418
|
+
register_item: (item: RegisteredMenuItem) => void;
|
|
1419
|
+
register_trigger: (node: HTMLButtonElement | null) => void;
|
|
1420
|
+
select_item: (value: string, details: MenuItemSelectDetails) => void;
|
|
1421
|
+
set_current_item: (value: string | null, details: MenuItemFocusDetails, focus?: boolean) => void;
|
|
1422
|
+
toggle: (details: MenuOpenChangeDetails, focus?: MenuOpenFocus) => void;
|
|
1423
|
+
unregister_item: (id: string) => void;
|
|
1424
|
+
sync_popup: () => void;
|
|
1425
|
+
};
|
|
1426
|
+
type MenuGroupContext = GroupLabelRelationship;
|
|
1427
|
+
type MenuRadioGroupContext = {
|
|
1428
|
+
get_value: () => string | null;
|
|
1429
|
+
set_value: (value: string, details: MenuItemSelectDetails) => void;
|
|
1430
|
+
};
|
|
1431
|
+
type MenuItemRuntimeContext = {
|
|
1432
|
+
get_state: () => CheckableStateName | undefined;
|
|
1433
|
+
};
|
|
1434
|
+
declare const menuOpenChangeReason: {
|
|
1435
|
+
readonly escape: "escape";
|
|
1436
|
+
readonly interactOutside: "interactOutside";
|
|
1437
|
+
readonly item: "item";
|
|
1438
|
+
readonly tab: "tab";
|
|
1439
|
+
readonly trigger: "trigger";
|
|
1440
|
+
};
|
|
1441
|
+
declare const menuItemFocusReason: {
|
|
1442
|
+
readonly keyboard: "keyboard";
|
|
1443
|
+
readonly open: "open";
|
|
1444
|
+
readonly pointer: "pointer";
|
|
1445
|
+
readonly typeahead: "typeahead";
|
|
1446
|
+
};
|
|
1447
|
+
declare const menuItemSelectReason: {
|
|
1448
|
+
readonly keyboard: "keyboard";
|
|
1449
|
+
readonly pointer: "pointer";
|
|
1450
|
+
};
|
|
1451
|
+
type MenuOpenChangeReason = (typeof menuOpenChangeReason)[keyof typeof menuOpenChangeReason];
|
|
1452
|
+
type MenuItemFocusReason = (typeof menuItemFocusReason)[keyof typeof menuItemFocusReason];
|
|
1453
|
+
type MenuItemSelectReason = (typeof menuItemSelectReason)[keyof typeof menuItemSelectReason];
|
|
1454
|
+
type MenuItemFocusDetails = {
|
|
1455
|
+
event?: Event;
|
|
1456
|
+
reason: MenuItemFocusReason;
|
|
1457
|
+
};
|
|
1458
|
+
type MenuItemSelectDetails = {
|
|
1459
|
+
event?: Event;
|
|
1460
|
+
reason: MenuItemSelectReason;
|
|
1461
|
+
};
|
|
1462
|
+
type RegisteredMenuItem = OrderedCollectionItem<string> & {
|
|
1463
|
+
activate: (details: MenuItemSelectDetails) => void;
|
|
1464
|
+
};
|
|
1465
|
+
type MenuOpenFocus = "first" | "last";
|
|
1466
|
+
declare function createMenu<TMode extends string, TRecipe extends MenuRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: MenuStyleSystem<TMode, TRecipe, TMetadata>): MenuComponents<MenuRecipeLayout<TRecipe>, MenuRecipeVariant<TRecipe>, MenuRecipeSize<TRecipe>>;
|
|
1467
|
+
//#endregion
|
|
1468
|
+
//#region kit/lab/design/components/remix/popover.d.ts
|
|
1469
|
+
declare const popoverAnatomy: {
|
|
1470
|
+
readonly parts: {
|
|
1471
|
+
readonly arrow: "arrow";
|
|
1472
|
+
readonly close: "close";
|
|
1473
|
+
readonly description: "description";
|
|
1474
|
+
readonly popup: "popup";
|
|
1475
|
+
readonly title: "title";
|
|
1476
|
+
readonly trigger: "trigger";
|
|
1477
|
+
};
|
|
1478
|
+
readonly scope: "popover";
|
|
1479
|
+
};
|
|
1480
|
+
type PopoverRecipeSlot = (typeof popoverAnatomy.parts)[keyof typeof popoverAnatomy.parts];
|
|
1481
|
+
type PopoverRecipeCondition = string;
|
|
1482
|
+
type PopoverRecipeInput<TSize extends string = string> = RecipeWithVariantGroups<PopoverRecipeSlot, string, ComponentStyle, {
|
|
1483
|
+
size: TSize;
|
|
1484
|
+
}>;
|
|
1485
|
+
type PopoverRecipeSize<TRecipe extends PopoverRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1486
|
+
type PopoverStyleSystem<TMode extends string = string, TRecipe extends PopoverRecipeInput = PopoverRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1487
|
+
recipe: {
|
|
1488
|
+
popover: TRecipe;
|
|
1489
|
+
};
|
|
1490
|
+
}, TMetadata>;
|
|
1491
|
+
type PopoverOpenChangeReason = "close" | "escape" | "interactOutside" | "trigger";
|
|
1492
|
+
type PopoverOpenChangeDetails = {
|
|
1493
|
+
event?: Event;
|
|
1494
|
+
reason: PopoverOpenChangeReason;
|
|
1495
|
+
};
|
|
1496
|
+
type PopoverOpenChangeHandler = (open: boolean, details?: PopoverOpenChangeDetails) => void;
|
|
1497
|
+
type PopoverRootProps = {
|
|
1498
|
+
children?: RemixNode;
|
|
1499
|
+
closeOnEscape?: boolean;
|
|
1500
|
+
closeOnInteractOutside?: boolean;
|
|
1501
|
+
defaultOpen?: boolean;
|
|
1502
|
+
modal?: boolean;
|
|
1503
|
+
open?: boolean;
|
|
1504
|
+
onOpenChange?: PopoverOpenChangeHandler;
|
|
1505
|
+
onOpenChangeComplete?: PopoverOpenChangeHandler;
|
|
1506
|
+
shouldCloseOnInteractOutside?: (element: Element) => boolean;
|
|
1507
|
+
};
|
|
1508
|
+
type PopoverTriggerProps = Omit<Props<"button">, "style"> & {
|
|
1509
|
+
style?: never;
|
|
1510
|
+
};
|
|
1511
|
+
type PopoverSide = "bottom" | "left" | "right" | "top";
|
|
1512
|
+
type PopoverAlign = "center" | "end" | "start";
|
|
1513
|
+
type PopoverPopupStyleProps<TSize extends string = string> = {
|
|
1514
|
+
size?: TSize;
|
|
1515
|
+
};
|
|
1516
|
+
type PopoverPopupProps<TSize extends string = string> = Omit<Props<"div">, "style"> & PopoverPopupStyleProps<TSize> & {
|
|
1517
|
+
align?: PopoverAlign;
|
|
1518
|
+
alignOffset?: number;
|
|
1519
|
+
arrowPadding?: number;
|
|
1520
|
+
avoidCollisions?: boolean;
|
|
1521
|
+
collisionPadding?: number;
|
|
1522
|
+
side?: PopoverSide;
|
|
1523
|
+
sideOffset?: number;
|
|
1524
|
+
style?: never;
|
|
1525
|
+
};
|
|
1526
|
+
type PopoverArrowProps = Omit<Props<"div">, "style"> & {
|
|
1527
|
+
style?: never;
|
|
1528
|
+
};
|
|
1529
|
+
type PopoverTitleProps = Omit<Props<"h2">, "style"> & {
|
|
1530
|
+
style?: never;
|
|
1531
|
+
};
|
|
1532
|
+
type PopoverDescriptionProps = Omit<Props<"p">, "style"> & {
|
|
1533
|
+
style?: never;
|
|
1534
|
+
};
|
|
1535
|
+
type PopoverCloseProps = Omit<Props<"button">, "style"> & {
|
|
1536
|
+
style?: never;
|
|
1537
|
+
};
|
|
1538
|
+
type PopoverComponents<TSize extends string = string> = {
|
|
1539
|
+
Arrow: RemixComponent<PopoverArrowProps>;
|
|
1540
|
+
Close: RemixComponent<PopoverCloseProps>;
|
|
1541
|
+
Description: RemixComponent<PopoverDescriptionProps>;
|
|
1542
|
+
Popup: RemixComponent<PopoverPopupProps<TSize>>;
|
|
1543
|
+
Root: RemixComponent<PopoverRootProps, PopoverRuntimeContext>;
|
|
1544
|
+
Title: RemixComponent<PopoverTitleProps>;
|
|
1545
|
+
Trigger: RemixComponent<PopoverTriggerProps>;
|
|
1546
|
+
};
|
|
1547
|
+
type PopoverConditionSelectors = Partial<Readonly<Record<PopoverRecipeSlot, RecipeConditionSelectorMap<string>>>>;
|
|
1548
|
+
type PopoverOptions = {
|
|
1549
|
+
conditions?: PopoverConditionSelectors;
|
|
1550
|
+
};
|
|
1551
|
+
type PopoverRuntimeContext = {
|
|
1552
|
+
close: (details: PopoverOpenChangeDetails) => void;
|
|
1553
|
+
get_close_on_escape: () => boolean;
|
|
1554
|
+
get_close_on_interact_outside: () => boolean;
|
|
1555
|
+
get_description_id: () => string;
|
|
1556
|
+
get_open: () => boolean;
|
|
1557
|
+
get_popup_relationship: () => PopupRelationship;
|
|
1558
|
+
get_popup_id: () => string;
|
|
1559
|
+
get_should_close_on_interact_outside: () => ((element: Element) => boolean) | undefined;
|
|
1560
|
+
get_title_id: () => string;
|
|
1561
|
+
get_trigger_id: () => string;
|
|
1562
|
+
open: (details: PopoverOpenChangeDetails) => void;
|
|
1563
|
+
register_trigger: (node: HTMLElement | null) => void;
|
|
1564
|
+
sync_popup: () => void;
|
|
1565
|
+
toggle: (details: PopoverOpenChangeDetails) => void;
|
|
1566
|
+
};
|
|
1567
|
+
declare function createPopover<TMode extends string, TRecipe extends PopoverRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: PopoverStyleSystem<TMode, TRecipe, TMetadata>, options?: PopoverOptions): PopoverComponents<PopoverRecipeSize<TRecipe>>;
|
|
1568
|
+
//#endregion
|
|
1569
|
+
//#region kit/lab/design/components/remix/progress.d.ts
|
|
1570
|
+
type ProgressRecipeInput<TTone extends string = string> = RecipeWithVariantGroups<"root" | "segment", never, ComponentStyle, {
|
|
1571
|
+
tone: TTone;
|
|
1572
|
+
}>;
|
|
1573
|
+
type ProgressRecipeTone<TRecipe extends ProgressRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
1574
|
+
type ProgressRecipeSelection<TRecipe extends ProgressRecipeInput> = RecipeVariantPropsFor<TRecipe, "tone">;
|
|
1575
|
+
type ProgressStyleSystem<TMode extends string = string, TRecipe extends ProgressRecipeInput = ProgressRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1576
|
+
recipe: {
|
|
1577
|
+
progress: TRecipe;
|
|
1578
|
+
};
|
|
1579
|
+
}, TMetadata>;
|
|
1580
|
+
type ProgressSegment<TTone extends string = string> = {
|
|
1581
|
+
key?: string;
|
|
1582
|
+
label?: RemixNode;
|
|
1583
|
+
props?: ComponentSlotProps<"div">;
|
|
1584
|
+
tone?: TTone;
|
|
1585
|
+
value: number;
|
|
1586
|
+
};
|
|
1587
|
+
type ProgressProps<TTone extends string = string> = Omit<Props<"div">, "style"> & {
|
|
1588
|
+
max?: number;
|
|
1589
|
+
segments?: readonly ProgressSegment<TTone>[];
|
|
1590
|
+
style?: never;
|
|
1591
|
+
tone?: TTone;
|
|
1592
|
+
value?: number;
|
|
1593
|
+
};
|
|
1594
|
+
declare function createProgress<TMode extends string, TRecipe extends ProgressRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: ProgressStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<ProgressProps<ProgressRecipeTone<TRecipe>>>;
|
|
1595
|
+
//#endregion
|
|
1596
|
+
//#region kit/lab/design/components/remix/radio-group.d.ts
|
|
1597
|
+
type RadioGroupRecipeCondition = CommonRecipeCondition | "checked" | "unchecked";
|
|
1598
|
+
type RadioGroupRecipeInput<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"item" | "root", string, ComponentStyle, {
|
|
1599
|
+
layout: TLayout;
|
|
1600
|
+
size: TSize;
|
|
1601
|
+
variant: TVariant;
|
|
1602
|
+
}>;
|
|
1603
|
+
type RadioGroupRecipeLayout<TRecipe extends RadioGroupRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1604
|
+
type RadioGroupRecipeVariant<TRecipe extends RadioGroupRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
1605
|
+
type RadioGroupRecipeSize<TRecipe extends RadioGroupRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1606
|
+
type RadioGroupRecipeSelection<TRecipe extends RadioGroupRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout" | "size" | "variant">;
|
|
1607
|
+
type RadioGroupStyleSystem<TMode extends string = string, TRecipe extends RadioGroupRecipeInput = RadioGroupRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1608
|
+
recipe: {
|
|
1609
|
+
radioGroup: TRecipe;
|
|
1610
|
+
};
|
|
1611
|
+
}, TMetadata>;
|
|
1612
|
+
type RadioGroupValueChangeDetails = {
|
|
1613
|
+
event?: Event;
|
|
1614
|
+
};
|
|
1615
|
+
type RadioGroupValueChangeHandler<TValue extends string = string> = (value: TValue, details?: RadioGroupValueChangeDetails) => void;
|
|
1616
|
+
type RadioGroupRootStyleProps<TLayout extends string = string> = {
|
|
1617
|
+
layout?: TLayout;
|
|
1618
|
+
};
|
|
1619
|
+
type RadioGroupItemStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
1620
|
+
size?: TSize;
|
|
1621
|
+
variant?: TVariant;
|
|
1622
|
+
};
|
|
1623
|
+
type RadioGroupRootProps<TLayout extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"div">, "style"> & RadioGroupRootStyleProps<TLayout> & ResponsiveProps<RadioGroupRootStyleProps<TLayout>, TBreakpoint> & {
|
|
1624
|
+
defaultValue?: TValue | null;
|
|
1625
|
+
disabled?: boolean;
|
|
1626
|
+
form?: string;
|
|
1627
|
+
name?: string;
|
|
1628
|
+
onValueChange?: RadioGroupValueChangeHandler<TValue>;
|
|
1629
|
+
required?: boolean;
|
|
1630
|
+
style?: never;
|
|
1631
|
+
value?: TValue | null;
|
|
1632
|
+
};
|
|
1633
|
+
type RadioGroupItemProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"input">, "checked" | "defaultChecked" | "name" | "style" | "type" | "value"> & RadioGroupItemStyleProps<TVariant, TSize> & ResponsiveProps<RadioGroupItemStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
1634
|
+
style?: never;
|
|
1635
|
+
value: TValue;
|
|
1636
|
+
};
|
|
1637
|
+
type RadioGroupComponents<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = {
|
|
1638
|
+
Item: RemixComponent<RadioGroupItemProps<TVariant, TSize>>;
|
|
1639
|
+
Root: RemixComponent<RadioGroupRootProps<TLayout>, RadioGroupContext>;
|
|
1640
|
+
};
|
|
1641
|
+
type RadioGroupContext = {
|
|
1642
|
+
get_disabled: () => boolean;
|
|
1643
|
+
get_form: () => string | undefined;
|
|
1644
|
+
get_name: () => string;
|
|
1645
|
+
get_required: () => boolean;
|
|
1646
|
+
get_value: () => string | null;
|
|
1647
|
+
set_value: (value: string, details?: RadioGroupValueChangeDetails) => void;
|
|
1648
|
+
};
|
|
1649
|
+
declare function createRadioGroup<TMode extends string, TRecipe extends RadioGroupRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: RadioGroupStyleSystem<TMode, TRecipe, TMetadata>): RadioGroupComponents<RadioGroupRecipeLayout<TRecipe>, RadioGroupRecipeVariant<TRecipe>, RadioGroupRecipeSize<TRecipe>>;
|
|
1650
|
+
//#endregion
|
|
1651
|
+
//#region kit/lab/design/components/remix/select.d.ts
|
|
1652
|
+
declare const select_slot: {
|
|
1653
|
+
readonly group: "group";
|
|
1654
|
+
readonly groupLabel: "groupLabel";
|
|
1655
|
+
readonly icon: "icon";
|
|
1656
|
+
readonly list: "list";
|
|
1657
|
+
readonly option: "option";
|
|
1658
|
+
readonly optionIndicator: "optionIndicator";
|
|
1659
|
+
readonly optionText: "optionText";
|
|
1660
|
+
readonly popup: "popup";
|
|
1661
|
+
readonly separator: "separator";
|
|
1662
|
+
readonly trigger: "trigger";
|
|
1663
|
+
readonly value: "value";
|
|
1664
|
+
};
|
|
1665
|
+
type SelectRecipeSlot = (typeof select_slot)[keyof typeof select_slot];
|
|
1666
|
+
type SelectRecipeCondition = "active" | "disabled" | "focusVisible" | "highlighted" | "hover" | "open" | "placeholder" | "reducedMotion" | "selected";
|
|
1667
|
+
type SelectRecipeInput<TVariant extends string = string, TSize extends string = string, TPopupLayout extends string = string> = RecipeWithVariantGroups<SelectRecipeSlot, string, ComponentStyle, {
|
|
1668
|
+
popupLayout: TPopupLayout;
|
|
1669
|
+
size: TSize;
|
|
1670
|
+
variant: TVariant;
|
|
1671
|
+
}>;
|
|
1672
|
+
type SelectRecipeVariant<TRecipe extends SelectRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
1673
|
+
type SelectRecipeSize<TRecipe extends SelectRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1674
|
+
type SelectRecipePopupLayout<TRecipe extends SelectRecipeInput> = RecipeVariantValue<TRecipe, "popupLayout">;
|
|
1675
|
+
type SelectRecipeSelection<TRecipe extends SelectRecipeInput> = RecipeVariantPropsFor<TRecipe, "popupLayout" | "size" | "variant">;
|
|
1676
|
+
type SelectStyleSystem<TMode extends string = string, TRecipe extends SelectRecipeInput = SelectRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1677
|
+
recipe: {
|
|
1678
|
+
select: TRecipe;
|
|
1679
|
+
};
|
|
1680
|
+
}, TMetadata>;
|
|
1681
|
+
declare const selectOpenChangeReason: {
|
|
1682
|
+
readonly escape: "escape";
|
|
1683
|
+
readonly interactOutside: "interactOutside";
|
|
1684
|
+
readonly option: "option";
|
|
1685
|
+
readonly tab: "tab";
|
|
1686
|
+
readonly trigger: "trigger";
|
|
1687
|
+
};
|
|
1688
|
+
declare const selectValueChangeReason: {
|
|
1689
|
+
readonly keyboard: "keyboard";
|
|
1690
|
+
readonly pointer: "pointer";
|
|
1691
|
+
};
|
|
1692
|
+
declare const selectHighlightChangeReason: {
|
|
1693
|
+
readonly keyboard: "keyboard";
|
|
1694
|
+
readonly open: "open";
|
|
1695
|
+
readonly pointer: "pointer";
|
|
1696
|
+
readonly typeahead: "typeahead";
|
|
1697
|
+
};
|
|
1698
|
+
type SelectOpenChangeReason = (typeof selectOpenChangeReason)[keyof typeof selectOpenChangeReason];
|
|
1699
|
+
type SelectValueChangeReason = (typeof selectValueChangeReason)[keyof typeof selectValueChangeReason];
|
|
1700
|
+
type SelectHighlightChangeReason = (typeof selectHighlightChangeReason)[keyof typeof selectHighlightChangeReason];
|
|
1701
|
+
type SelectOpenChangeDetails = {
|
|
1702
|
+
event?: Event;
|
|
1703
|
+
reason: SelectOpenChangeReason;
|
|
1704
|
+
};
|
|
1705
|
+
type SelectValueChangeDetails = {
|
|
1706
|
+
event?: Event;
|
|
1707
|
+
reason: SelectValueChangeReason;
|
|
1708
|
+
};
|
|
1709
|
+
type SelectHighlightChangeDetails = {
|
|
1710
|
+
event?: Event;
|
|
1711
|
+
reason: SelectHighlightChangeReason;
|
|
1712
|
+
};
|
|
1713
|
+
type SelectValueChangeHandler<TValue extends string = string> = (value: TValue | null, details?: SelectValueChangeDetails) => void;
|
|
1714
|
+
type SelectOpenChangeHandler = (open: boolean, details?: SelectOpenChangeDetails) => void;
|
|
1715
|
+
type SelectHighlightChangeHandler<TValue extends string = string> = (value: TValue | null, details?: SelectHighlightChangeDetails) => void;
|
|
1716
|
+
type SelectProps<TValue extends string = string> = {
|
|
1717
|
+
autoComplete?: string;
|
|
1718
|
+
children?: RemixNode;
|
|
1719
|
+
defaultOpen?: boolean;
|
|
1720
|
+
defaultHighlightedValue?: TValue | null;
|
|
1721
|
+
defaultValue?: TValue | null;
|
|
1722
|
+
disabled?: boolean;
|
|
1723
|
+
form?: string;
|
|
1724
|
+
highlightedValue?: TValue | null;
|
|
1725
|
+
invalid?: boolean;
|
|
1726
|
+
loopFocus?: boolean;
|
|
1727
|
+
name?: string;
|
|
1728
|
+
onHighlightChange?: SelectHighlightChangeHandler<TValue>;
|
|
1729
|
+
onOpenChange?: SelectOpenChangeHandler;
|
|
1730
|
+
onOpenChangeComplete?: SelectOpenChangeHandler;
|
|
1731
|
+
onValueChange?: SelectValueChangeHandler<TValue>;
|
|
1732
|
+
open?: boolean;
|
|
1733
|
+
placeholder?: string;
|
|
1734
|
+
readOnly?: boolean;
|
|
1735
|
+
required?: boolean;
|
|
1736
|
+
typeahead?: boolean;
|
|
1737
|
+
value?: TValue | null;
|
|
1738
|
+
};
|
|
1739
|
+
type SelectTriggerStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
1740
|
+
size?: TSize;
|
|
1741
|
+
variant?: TVariant;
|
|
1742
|
+
};
|
|
1743
|
+
type SelectTriggerProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"button">, "style"> & SelectTriggerStyleProps<TVariant, TSize> & ResponsiveProps<SelectTriggerStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
1744
|
+
style?: never;
|
|
1745
|
+
};
|
|
1746
|
+
type SelectPopupStyleProps<TLayout extends string = string> = {
|
|
1747
|
+
layout?: TLayout;
|
|
1748
|
+
};
|
|
1749
|
+
type SelectPopupProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & SelectPopupStyleProps<TLayout> & ResponsiveProps<SelectPopupStyleProps<TLayout>, TBreakpoint> & {
|
|
1750
|
+
style?: never;
|
|
1751
|
+
};
|
|
1752
|
+
type SelectListProps<TLayout extends string = string, TBreakpoint extends string = string> = SelectPopupProps<TLayout, TBreakpoint>;
|
|
1753
|
+
type SelectValueProps = Omit<Props<"span">, "style"> & {
|
|
1754
|
+
placeholder?: RemixNode;
|
|
1755
|
+
style?: never;
|
|
1756
|
+
};
|
|
1757
|
+
type SelectIconProps = Omit<Props<"span">, "style"> & {
|
|
1758
|
+
style?: never;
|
|
1759
|
+
};
|
|
1760
|
+
type SelectGroupProps = Omit<Props<"div">, "style"> & {
|
|
1761
|
+
style?: never;
|
|
1762
|
+
};
|
|
1763
|
+
type SelectGroupLabelProps = Omit<Props<"div">, "style"> & {
|
|
1764
|
+
style?: never;
|
|
1765
|
+
};
|
|
1766
|
+
type SelectSeparatorProps = Omit<Props<"div">, "style"> & {
|
|
1767
|
+
style?: never;
|
|
1768
|
+
};
|
|
1769
|
+
type SelectOptionProps<TValue extends string = string> = Omit<Props<"div">, "style"> & {
|
|
1770
|
+
disabled?: boolean;
|
|
1771
|
+
style?: never;
|
|
1772
|
+
textValue?: string;
|
|
1773
|
+
value: TValue;
|
|
1774
|
+
};
|
|
1775
|
+
type SelectOptionTextProps = Omit<Props<"span">, "style"> & {
|
|
1776
|
+
style?: never;
|
|
1777
|
+
};
|
|
1778
|
+
type SelectOptionIndicatorProps = Omit<Props<"span">, "style"> & {
|
|
1779
|
+
style?: never;
|
|
1780
|
+
};
|
|
1781
|
+
type SelectComponents<TVariant extends string = string, TSize extends string = string, TPopupLayout extends string = string> = {
|
|
1782
|
+
Group: RemixComponent<SelectGroupProps, SelectGroupRuntimeContext>;
|
|
1783
|
+
GroupLabel: RemixComponent<SelectGroupLabelProps>;
|
|
1784
|
+
Icon: RemixComponent<SelectIconProps>;
|
|
1785
|
+
List: RemixComponent<SelectListProps<TPopupLayout>>;
|
|
1786
|
+
Option: RemixComponent<SelectOptionProps>;
|
|
1787
|
+
OptionIndicator: RemixComponent<SelectOptionIndicatorProps>;
|
|
1788
|
+
OptionText: RemixComponent<SelectOptionTextProps>;
|
|
1789
|
+
Popup: RemixComponent<SelectPopupProps<TPopupLayout>>;
|
|
1790
|
+
Root: RemixComponent<SelectProps, SelectRuntimeContext>;
|
|
1791
|
+
Separator: RemixComponent<SelectSeparatorProps>;
|
|
1792
|
+
Trigger: RemixComponent<SelectTriggerProps<TVariant, TSize>>;
|
|
1793
|
+
Value: RemixComponent<SelectValueProps>;
|
|
1794
|
+
};
|
|
1795
|
+
type SelectOptions = {
|
|
1796
|
+
conditions?: Partial<Readonly<Record<SelectRecipeSlot, RecipeConditionSelectorMap<string>>>>;
|
|
1797
|
+
};
|
|
1798
|
+
type SelectRuntimeContext = {
|
|
1799
|
+
close: (details: SelectOpenChangeDetails) => void;
|
|
1800
|
+
get_disabled: () => boolean;
|
|
1801
|
+
get_highlighted_id: () => string | undefined;
|
|
1802
|
+
get_highlighted_value: () => string | null;
|
|
1803
|
+
get_invalid: () => boolean;
|
|
1804
|
+
get_list_id: () => string;
|
|
1805
|
+
get_open: () => boolean;
|
|
1806
|
+
get_placeholder: () => string | undefined;
|
|
1807
|
+
get_popup_relationship: () => PopupRelationship;
|
|
1808
|
+
get_popup_id: () => string;
|
|
1809
|
+
get_read_only: () => boolean;
|
|
1810
|
+
get_required: () => boolean;
|
|
1811
|
+
get_selected_text: () => string | undefined;
|
|
1812
|
+
get_trigger_id: () => string;
|
|
1813
|
+
get_value: () => string | null;
|
|
1814
|
+
handle_keydown: (event: KeyboardEvent) => void;
|
|
1815
|
+
highlight_by_offset: (offset: number, details: SelectHighlightChangeDetails) => void;
|
|
1816
|
+
highlight_first: () => void;
|
|
1817
|
+
highlight_last: () => void;
|
|
1818
|
+
highlight_value: (value: string | null, details: SelectHighlightChangeDetails) => void;
|
|
1819
|
+
open: (details: SelectOpenChangeDetails, highlight?: SelectOpenHighlight) => void;
|
|
1820
|
+
register_option: (option: RegisteredSelectOption) => void;
|
|
1821
|
+
register_trigger: (node: HTMLElement | null) => void;
|
|
1822
|
+
search: (text: string, event: KeyboardEvent) => void;
|
|
1823
|
+
select_value: (value: string | null, details: SelectValueChangeDetails) => void;
|
|
1824
|
+
sync_popup: () => void;
|
|
1825
|
+
toggle: (details: SelectOpenChangeDetails) => void;
|
|
1826
|
+
unregister_option: (id: string) => void;
|
|
1827
|
+
};
|
|
1828
|
+
type RegisteredSelectOption = OrderedCollectionItem<string>;
|
|
1829
|
+
type SelectOpenHighlight = "first" | "last" | "selected";
|
|
1830
|
+
type SelectGroupRuntimeContext = GroupLabelRelationship;
|
|
1831
|
+
declare function createSelect<TMode extends string, TRecipe extends SelectRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: SelectStyleSystem<TMode, TRecipe, TMetadata>, options?: SelectOptions): SelectComponents<SelectRecipeVariant<TRecipe>, SelectRecipeSize<TRecipe>, SelectRecipePopupLayout<TRecipe>>;
|
|
1832
|
+
//#endregion
|
|
1833
|
+
//#region kit/lab/design/components/remix/separator.d.ts
|
|
1834
|
+
declare const separatorDecorativeRole = "presentation";
|
|
1835
|
+
declare const separatorHiddenAttribute = "aria-hidden";
|
|
1836
|
+
declare const separatorOrientation: {
|
|
1837
|
+
readonly horizontal: "horizontal";
|
|
1838
|
+
readonly vertical: "vertical";
|
|
1839
|
+
};
|
|
1840
|
+
declare const separatorOrientationAttribute = "data-orientation";
|
|
1841
|
+
declare const separatorRole = "separator";
|
|
1842
|
+
type SeparatorOrientation = (typeof separatorOrientation)[keyof typeof separatorOrientation];
|
|
1843
|
+
type SeparatorRecipeInput = RecipeWithVariantGroups<"root", string, ComponentStyle, Record<never, string>>;
|
|
1844
|
+
type SeparatorStyleSystem<TMode extends string = string, TRecipe extends SeparatorRecipeInput = SeparatorRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1845
|
+
recipe: {
|
|
1846
|
+
separator: TRecipe;
|
|
1847
|
+
};
|
|
1848
|
+
}, TMetadata>;
|
|
1849
|
+
type SeparatorProps = Omit<Props<"div">, "children" | "role" | "style" | "tabIndex"> & {
|
|
1850
|
+
children?: never;
|
|
1851
|
+
decorative?: boolean;
|
|
1852
|
+
orientation?: SeparatorOrientation;
|
|
1853
|
+
style?: never;
|
|
1854
|
+
};
|
|
1855
|
+
declare function createSeparator<TMode extends string, TRecipe extends SeparatorRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: SeparatorStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<SeparatorProps>;
|
|
1856
|
+
//#endregion
|
|
1857
|
+
//#region kit/lab/design/components/remix/slider.d.ts
|
|
1858
|
+
type SliderRecipeCondition = "disabled" | "focusVisible";
|
|
1859
|
+
declare const slider_slot: {
|
|
1860
|
+
readonly progress: "progress";
|
|
1861
|
+
readonly root: "root";
|
|
1862
|
+
readonly thumb: "thumb";
|
|
1863
|
+
readonly track: "track";
|
|
1864
|
+
};
|
|
1865
|
+
type SliderRecipeSlot = (typeof slider_slot)[keyof typeof slider_slot];
|
|
1866
|
+
type SliderStyleTarget = SliderRecipeSlot | "thumbMoz" | "thumbWebkit" | "trackMoz" | "trackWebkit";
|
|
1867
|
+
type SliderTargetStyles = Partial<Readonly<Record<SliderStyleTarget, ComponentStyle>>>;
|
|
1868
|
+
type SliderRecipeInput<TLayout extends string = string> = RecipeWithVariantGroups<SliderRecipeSlot, string, ComponentStyle, {
|
|
1869
|
+
layout: TLayout;
|
|
1870
|
+
}>;
|
|
1871
|
+
type SliderRecipeLayout<TRecipe extends SliderRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1872
|
+
type SliderRecipeSelection<TRecipe extends SliderRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout">;
|
|
1873
|
+
type SliderStyleSystem<TMode extends string = string, TRecipe extends SliderRecipeInput = SliderRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1874
|
+
recipe: {
|
|
1875
|
+
slider: TRecipe;
|
|
1876
|
+
};
|
|
1877
|
+
}, TMetadata>;
|
|
1878
|
+
type SliderStyleProps<TLayout extends string = string> = {
|
|
1879
|
+
layout?: TLayout;
|
|
1880
|
+
};
|
|
1881
|
+
type SliderProps<TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"input">, "style" | "type"> & SliderStyleProps<TLayout> & ResponsiveProps<SliderStyleProps<TLayout>, TBreakpoint> & {
|
|
1882
|
+
style?: never;
|
|
1883
|
+
};
|
|
1884
|
+
type SliderOptions = {
|
|
1885
|
+
progressVariable?: string;
|
|
1886
|
+
targetStyles?: SliderTargetStyles;
|
|
1887
|
+
};
|
|
1888
|
+
declare const sliderProgressVariable = "--vorma-slider-progress";
|
|
1889
|
+
declare function createSlider<TMode extends string, TRecipe extends SliderRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: SliderStyleSystem<TMode, TRecipe, TMetadata>, options?: SliderOptions): RemixComponent<SliderProps<SliderRecipeLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
1890
|
+
//#endregion
|
|
1891
|
+
//#region kit/lab/design/components/remix/spinner.d.ts
|
|
1892
|
+
type SpinnerRecipeInput<TTone extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
1893
|
+
size: TSize;
|
|
1894
|
+
tone: TTone;
|
|
1895
|
+
}>;
|
|
1896
|
+
type SpinnerRecipeTone<TRecipe extends SpinnerRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
1897
|
+
type SpinnerRecipeSize<TRecipe extends SpinnerRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1898
|
+
type SpinnerRecipeSelection<TRecipe extends SpinnerRecipeInput> = RecipeVariantPropsFor<TRecipe, "size" | "tone">;
|
|
1899
|
+
type SpinnerStyleSystem<TMode extends string = string, TRecipe extends SpinnerRecipeInput = SpinnerRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1900
|
+
recipe: {
|
|
1901
|
+
spinner: TRecipe;
|
|
1902
|
+
};
|
|
1903
|
+
}, TMetadata>;
|
|
1904
|
+
type SpinnerProps<TTone extends string = string, TSize extends string = string> = Omit<Props<"span">, "style"> & Partial<SpinnerRecipeSelection<SpinnerRecipeInput<TTone, TSize>>> & {
|
|
1905
|
+
idle?: boolean;
|
|
1906
|
+
style?: never;
|
|
1907
|
+
};
|
|
1908
|
+
declare function createSpinner<TMode extends string, TRecipe extends SpinnerRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: SpinnerStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<SpinnerProps<SpinnerRecipeTone<TRecipe>, SpinnerRecipeSize<TRecipe>>>;
|
|
1909
|
+
//#endregion
|
|
1910
|
+
//#region kit/lab/design/components/remix/stack.d.ts
|
|
1911
|
+
type StackAlign = "center" | "end" | "start" | "stretch";
|
|
1912
|
+
type StackDirection = "column" | "column-reverse" | "row" | "row-reverse";
|
|
1913
|
+
type StackJustify = "between" | "center" | "end" | "start";
|
|
1914
|
+
type StackRecipeInput<TGap extends string = string, TLayout extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
1915
|
+
gap: TGap;
|
|
1916
|
+
layout: TLayout;
|
|
1917
|
+
}>;
|
|
1918
|
+
type StackRecipeGap<TRecipe extends StackRecipeInput> = RecipeVariantValue<TRecipe, "gap">;
|
|
1919
|
+
type StackRecipeLayout<TRecipe extends StackRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1920
|
+
type StackRecipeSelection<TRecipe extends StackRecipeInput> = RecipeVariantPropsFor<TRecipe, "gap" | "layout">;
|
|
1921
|
+
type StackStyleSystem<TMode extends string = string, TRecipe extends StackRecipeInput = StackRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1922
|
+
recipe: {
|
|
1923
|
+
stack: TRecipe;
|
|
1924
|
+
};
|
|
1925
|
+
}, TMetadata>;
|
|
1926
|
+
type StackStyleProps<TGap extends string = string, TLayout extends string = string> = Partial<StackRecipeSelection<StackRecipeInput<TGap, TLayout>>> & {
|
|
1927
|
+
align?: StackAlign;
|
|
1928
|
+
direction?: StackDirection;
|
|
1929
|
+
justify?: StackJustify;
|
|
1930
|
+
wrap?: boolean;
|
|
1931
|
+
};
|
|
1932
|
+
type StackProps<TGap extends string = string, TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<keyof HTMLElementTagNameMap>, "style"> & StackStyleProps<TGap, TLayout> & ResponsiveProps<StackStyleProps<TGap, TLayout>, TBreakpoint> & {
|
|
1933
|
+
as?: keyof HTMLElementTagNameMap;
|
|
1934
|
+
style?: never;
|
|
1935
|
+
};
|
|
1936
|
+
type StackOptions = {
|
|
1937
|
+
defaultAlign?: StackAlign;
|
|
1938
|
+
defaultDirection?: StackDirection;
|
|
1939
|
+
defaultJustify?: StackJustify;
|
|
1940
|
+
defaultWrap?: boolean;
|
|
1941
|
+
};
|
|
1942
|
+
declare function createStack<TMode extends string, TRecipe extends StackRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: StackStyleSystem<TMode, TRecipe, TMetadata>, options?: StackOptions): RemixComponent<StackProps<StackRecipeGap<TRecipe>, StackRecipeLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
1943
|
+
//#endregion
|
|
1944
|
+
//#region kit/lab/design/components/remix/stat.d.ts
|
|
1945
|
+
type StatRecipeInput<TValueTone extends string = string> = RecipeWithVariantGroups<"root" | "title" | "value", never, ComponentStyle, {
|
|
1946
|
+
valueTone: TValueTone;
|
|
1947
|
+
}>;
|
|
1948
|
+
type StatRecipeValueTone<TRecipe extends StatRecipeInput> = RecipeVariantValue<TRecipe, "valueTone">;
|
|
1949
|
+
type StatRecipeSelection<TRecipe extends StatRecipeInput> = RecipeVariantPropsFor<TRecipe, "valueTone">;
|
|
1950
|
+
type StatStyleSystem<TMode extends string = string, TRecipe extends StatRecipeInput = StatRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1951
|
+
recipe: {
|
|
1952
|
+
stat: TRecipe;
|
|
1953
|
+
};
|
|
1954
|
+
}, TMetadata>;
|
|
1955
|
+
type StatProps<TValueTone extends string = string> = Omit<Props<"div">, "style"> & {
|
|
1956
|
+
style?: never;
|
|
1957
|
+
title: RemixNode;
|
|
1958
|
+
titleProps?: ComponentSlotProps<"div">;
|
|
1959
|
+
value: RemixNode;
|
|
1960
|
+
valueProps?: ComponentSlotProps<"div">;
|
|
1961
|
+
valueTone?: TValueTone;
|
|
1962
|
+
};
|
|
1963
|
+
declare function createStat<TMode extends string, TRecipe extends StatRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: StatStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<StatProps<StatRecipeValueTone<TRecipe>>>;
|
|
1964
|
+
//#endregion
|
|
1965
|
+
//#region kit/lab/design/components/remix/surface.d.ts
|
|
1966
|
+
type SurfaceRecipeInput<TVariant extends string = string, TDensity extends string = string, TLayout extends string = string> = RootRecipeInput<{
|
|
1967
|
+
density: TDensity;
|
|
1968
|
+
layout: TLayout;
|
|
1969
|
+
variant: TVariant;
|
|
1970
|
+
}>;
|
|
1971
|
+
type SurfaceRecipeVariant<TRecipe extends SurfaceRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
1972
|
+
type SurfaceRecipeDensity<TRecipe extends SurfaceRecipeInput> = RecipeVariantValue<TRecipe, "density">;
|
|
1973
|
+
type SurfaceRecipeLayout<TRecipe extends SurfaceRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
1974
|
+
type SurfaceStyleSystem<TMode extends string = string, TRecipe extends SurfaceRecipeInput = SurfaceRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = RootStyleSystem<TMode, TRecipe, TMetadata, "surface">;
|
|
1975
|
+
declare function createSurface<TMode extends string, TRecipe extends SurfaceRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: SurfaceStyleSystem<TMode, TRecipe, TMetadata>): RootComponent<"density" | "layout" | "variant", TRecipe, BreakpointForStyleSystem<SurfaceStyleSystem<TMode, TRecipe, TMetadata>>>;
|
|
1976
|
+
//#endregion
|
|
1977
|
+
//#region kit/lab/design/components/remix/switch.d.ts
|
|
1978
|
+
type SwitchRecipeCondition = CommonRecipeCondition | "checked" | "unchecked";
|
|
1979
|
+
type SwitchRecipeInput<TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
1980
|
+
size: TSize;
|
|
1981
|
+
variant: TVariant;
|
|
1982
|
+
}>;
|
|
1983
|
+
type SwitchRecipeVariant<TRecipe extends SwitchRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
1984
|
+
type SwitchRecipeSize<TRecipe extends SwitchRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
1985
|
+
type SwitchRecipeSelection<TRecipe extends SwitchRecipeInput> = RecipeVariantPropsFor<TRecipe, "size" | "variant">;
|
|
1986
|
+
type SwitchStyleSystem<TMode extends string = string, TRecipe extends SwitchRecipeInput = SwitchRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
1987
|
+
recipe: {
|
|
1988
|
+
switch: TRecipe;
|
|
1989
|
+
};
|
|
1990
|
+
}, TMetadata>;
|
|
1991
|
+
type SwitchProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"input">, "checked" | "defaultChecked" | "role" | "style" | "type"> & Partial<SwitchRecipeSelection<SwitchRecipeInput<TVariant, TSize>>> & ResponsiveProps<SwitchRecipeSelection<SwitchRecipeInput<TVariant, TSize>>, TBreakpoint> & {
|
|
1992
|
+
checked?: boolean;
|
|
1993
|
+
defaultChecked?: boolean;
|
|
1994
|
+
style?: never;
|
|
1995
|
+
};
|
|
1996
|
+
declare function createSwitch<TMode extends string, TRecipe extends SwitchRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: SwitchStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<SwitchProps<SwitchRecipeVariant<TRecipe>, SwitchRecipeSize<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
1997
|
+
//#endregion
|
|
1998
|
+
//#region kit/lab/design/components/remix/table.d.ts
|
|
1999
|
+
type TableCellRole = "body" | "columnHeader" | "rowHeader";
|
|
2000
|
+
type TableHeaderCellScope = "col" | "row";
|
|
2001
|
+
type TableRecipeInput<TDensity extends string = string, TLayout extends string = string, TRowVariant extends string = string, TCellVariant extends string = string> = RecipeWithVariantGroups<"body" | "cell" | "head" | "root" | "row", never, ComponentStyle, {
|
|
2002
|
+
cellRole: TableCellRole;
|
|
2003
|
+
cellVariant: TCellVariant;
|
|
2004
|
+
density: TDensity;
|
|
2005
|
+
layout: TLayout;
|
|
2006
|
+
rowVariant: TRowVariant;
|
|
2007
|
+
}>;
|
|
2008
|
+
type TableRecipeDensity<TRecipe extends TableRecipeInput> = RecipeVariantValue<TRecipe, "density">;
|
|
2009
|
+
type TableRecipeLayout<TRecipe extends TableRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
2010
|
+
type TableRecipeRowVariant<TRecipe extends TableRecipeInput> = RecipeVariantValue<TRecipe, "rowVariant">;
|
|
2011
|
+
type TableRecipeCellVariant<TRecipe extends TableRecipeInput> = RecipeVariantValue<TRecipe, "cellVariant">;
|
|
2012
|
+
type TableRecipeSelection<TRecipe extends TableRecipeInput> = RecipeVariantPropsFor<TRecipe, "cellRole" | "cellVariant" | "density" | "layout" | "rowVariant">;
|
|
2013
|
+
type TableStyleSystem<TMode extends string = string, TRecipe extends TableRecipeInput = TableRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
2014
|
+
recipe: {
|
|
2015
|
+
table: TRecipe;
|
|
2016
|
+
};
|
|
2017
|
+
}, TMetadata>;
|
|
2018
|
+
type TableStyleProps<TDensity extends string = string, TLayout extends string = string> = {
|
|
2019
|
+
density?: TDensity;
|
|
2020
|
+
layout?: TLayout;
|
|
2021
|
+
};
|
|
2022
|
+
type TableProps<TDensity extends string = string, TLayout extends string = string, TBreakpoint extends string = string> = Omit<Props<"table">, "style"> & TableStyleProps<TDensity, TLayout> & ResponsiveProps<TableStyleProps<TDensity, TLayout>, TBreakpoint> & {
|
|
2023
|
+
style?: never;
|
|
2024
|
+
};
|
|
2025
|
+
type TableSectionProps<TElement extends "tbody" | "thead"> = Omit<Props<TElement>, "style"> & {
|
|
2026
|
+
style?: never;
|
|
2027
|
+
};
|
|
2028
|
+
type TableRowProps<TRowVariant extends string = string> = Omit<Props<"tr">, "style"> & {
|
|
2029
|
+
style?: never;
|
|
2030
|
+
variant?: TRowVariant;
|
|
2031
|
+
};
|
|
2032
|
+
type TableCellProps<TCellVariant extends string = string> = Omit<Props<"td">, "style"> & {
|
|
2033
|
+
style?: never;
|
|
2034
|
+
variant?: TCellVariant;
|
|
2035
|
+
};
|
|
2036
|
+
type TableHeaderCellProps<TCellVariant extends string = string> = Omit<Props<"th">, "scope" | "style"> & {
|
|
2037
|
+
scope?: TableHeaderCellScope;
|
|
2038
|
+
style?: never;
|
|
2039
|
+
variant?: TCellVariant;
|
|
2040
|
+
};
|
|
2041
|
+
declare function createTable<TMode extends string, TRecipe extends TableRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TableStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TableProps<TableRecipeDensity<TRecipe>, TableRecipeLayout<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
2042
|
+
declare function createTableHead<TMode extends string, TRecipe extends TableRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TableStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TableSectionProps<"thead">>;
|
|
2043
|
+
declare function createTableBody<TMode extends string, TRecipe extends TableRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TableStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TableSectionProps<"tbody">>;
|
|
2044
|
+
declare function createTableRow<TMode extends string, TRecipe extends TableRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TableStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TableRowProps<TableRecipeRowVariant<TRecipe>>>;
|
|
2045
|
+
declare function createTableCell<TMode extends string, TRecipe extends TableRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TableStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TableCellProps<TableRecipeCellVariant<TRecipe>>>;
|
|
2046
|
+
declare function createTableHeaderCell<TMode extends string, TRecipe extends TableRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TableStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TableHeaderCellProps<TableRecipeCellVariant<TRecipe>>>;
|
|
2047
|
+
//#endregion
|
|
2048
|
+
//#region kit/lab/design/components/remix/tabs.d.ts
|
|
2049
|
+
type TabsRecipeCondition = CommonRecipeCondition | "selected" | "unselected";
|
|
2050
|
+
type TabsRecipeInput<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"list" | "panel" | "root" | "trigger", string, ComponentStyle, {
|
|
2051
|
+
layout: TLayout;
|
|
2052
|
+
size: TSize;
|
|
2053
|
+
variant: TVariant;
|
|
2054
|
+
}>;
|
|
2055
|
+
type TabsRecipeLayout<TRecipe extends TabsRecipeInput> = RecipeVariantValue<TRecipe, "layout">;
|
|
2056
|
+
type TabsRecipeVariant<TRecipe extends TabsRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
2057
|
+
type TabsRecipeSize<TRecipe extends TabsRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
2058
|
+
type TabsRecipeSelection<TRecipe extends TabsRecipeInput> = RecipeVariantPropsFor<TRecipe, "layout" | "size" | "variant">;
|
|
2059
|
+
type TabsStyleSystem<TMode extends string = string, TRecipe extends TabsRecipeInput = TabsRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
2060
|
+
recipe: {
|
|
2061
|
+
tabs: TRecipe;
|
|
2062
|
+
};
|
|
2063
|
+
}, TMetadata>;
|
|
2064
|
+
type TabsValueChangeDetails = {
|
|
2065
|
+
event?: Event;
|
|
2066
|
+
};
|
|
2067
|
+
type TabsValueChangeHandler<TValue extends string = string> = (value: TValue, details?: TabsValueChangeDetails) => void;
|
|
2068
|
+
type TabsRootStyleProps<TLayout extends string = string> = {
|
|
2069
|
+
layout?: TLayout;
|
|
2070
|
+
};
|
|
2071
|
+
type TabsTriggerStyleProps<TVariant extends string = string, TSize extends string = string> = {
|
|
2072
|
+
size?: TSize;
|
|
2073
|
+
variant?: TVariant;
|
|
2074
|
+
};
|
|
2075
|
+
type TabsRootProps<TLayout extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"div">, "style"> & TabsRootStyleProps<TLayout> & ResponsiveProps<TabsRootStyleProps<TLayout>, TBreakpoint> & {
|
|
2076
|
+
defaultValue?: TValue | null;
|
|
2077
|
+
onValueChange?: TabsValueChangeHandler<TValue>;
|
|
2078
|
+
style?: never;
|
|
2079
|
+
value?: TValue | null;
|
|
2080
|
+
};
|
|
2081
|
+
type TabsListProps = Omit<Props<"div">, "style"> & {
|
|
2082
|
+
style?: never;
|
|
2083
|
+
};
|
|
2084
|
+
type TabsTriggerProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string, TValue extends string = string> = Omit<Props<"button">, "style" | "value"> & TabsTriggerStyleProps<TVariant, TSize> & ResponsiveProps<TabsTriggerStyleProps<TVariant, TSize>, TBreakpoint> & {
|
|
2085
|
+
style?: never;
|
|
2086
|
+
value: TValue;
|
|
2087
|
+
};
|
|
2088
|
+
type TabsPanelProps<TValue extends string = string> = Omit<Props<"div">, "style"> & {
|
|
2089
|
+
style?: never;
|
|
2090
|
+
value: TValue;
|
|
2091
|
+
};
|
|
2092
|
+
type TabsComponents<TLayout extends string = string, TVariant extends string = string, TSize extends string = string> = {
|
|
2093
|
+
List: RemixComponent<TabsListProps>;
|
|
2094
|
+
Panel: RemixComponent<TabsPanelProps>;
|
|
2095
|
+
Root: RemixComponent<TabsRootProps<TLayout>, TabsRootContext>;
|
|
2096
|
+
Trigger: RemixComponent<TabsTriggerProps<TVariant, TSize>>;
|
|
2097
|
+
};
|
|
2098
|
+
type TabsRootContext = {
|
|
2099
|
+
get_panel_id: (value: string) => string;
|
|
2100
|
+
get_trigger_id: (value: string) => string;
|
|
2101
|
+
get_value: () => string | null;
|
|
2102
|
+
set_value: (value: string, details?: TabsValueChangeDetails) => void;
|
|
2103
|
+
};
|
|
2104
|
+
declare function createTabs<TMode extends string, TRecipe extends TabsRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TabsStyleSystem<TMode, TRecipe, TMetadata>): TabsComponents<TabsRecipeLayout<TRecipe>, TabsRecipeVariant<TRecipe>, TabsRecipeSize<TRecipe>>;
|
|
2105
|
+
//#endregion
|
|
2106
|
+
//#region kit/lab/design/components/remix/text.d.ts
|
|
2107
|
+
type TextAlign = "center" | "end" | "justify" | "start";
|
|
2108
|
+
type TextRecipeSlot = "root";
|
|
2109
|
+
type TextRecipeInput<TVariant extends string = string, TTone extends string = string> = RecipeWithVariantGroups<TextRecipeSlot, string, ComponentStyle, {
|
|
2110
|
+
tone: TTone;
|
|
2111
|
+
variant: TVariant;
|
|
2112
|
+
}>;
|
|
2113
|
+
type TextRecipeVariant<TRecipe extends TextRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
2114
|
+
type TextRecipeTone<TRecipe extends TextRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
2115
|
+
type TextRecipeSelection<TRecipe extends TextRecipeInput> = RecipeVariantPropsFor<TRecipe, "tone" | "variant">;
|
|
2116
|
+
type TextStyleSystem<TMode extends string = string, TRecipe extends TextRecipeInput = TextRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
2117
|
+
recipe: {
|
|
2118
|
+
text: TRecipe;
|
|
2119
|
+
};
|
|
2120
|
+
}, TMetadata>;
|
|
2121
|
+
type TextStyleProps<TVariant extends string, TTone extends string> = Partial<TextRecipeSelection<TextRecipeInput<TVariant, TTone>>> & {
|
|
2122
|
+
align?: TextAlign;
|
|
2123
|
+
};
|
|
2124
|
+
type TextProps<TVariant extends string = string, TTone extends string = string, TBreakpoint extends string = string> = Omit<Props<keyof HTMLElementTagNameMap>, "style"> & TextStyleProps<TVariant, TTone> & ResponsiveProps<TextStyleProps<TVariant, TTone>, TBreakpoint> & {
|
|
2125
|
+
as?: keyof HTMLElementTagNameMap;
|
|
2126
|
+
style?: never;
|
|
2127
|
+
};
|
|
2128
|
+
declare function createText<TMode extends string, TRecipe extends TextRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TextStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TextProps<TextRecipeVariant<TRecipe>, TextRecipeTone<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
2129
|
+
//#endregion
|
|
2130
|
+
//#region kit/lab/design/components/remix/textarea.d.ts
|
|
2131
|
+
type TextareaRecipeInput<TVariant extends string = string, TSize extends string = string> = RecipeWithVariantGroups<"root", string, ComponentStyle, {
|
|
2132
|
+
size: TSize;
|
|
2133
|
+
variant: TVariant;
|
|
2134
|
+
}>;
|
|
2135
|
+
type TextareaRecipeVariant<TRecipe extends TextareaRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
2136
|
+
type TextareaRecipeSize<TRecipe extends TextareaRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
2137
|
+
type TextareaRecipeSelection<TRecipe extends TextareaRecipeInput> = RecipeVariantPropsFor<TRecipe, "size" | "variant">;
|
|
2138
|
+
type TextareaStyleSystem<TMode extends string = string, TRecipe extends TextareaRecipeInput = TextareaRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
2139
|
+
recipe: {
|
|
2140
|
+
textarea: TRecipe;
|
|
2141
|
+
};
|
|
2142
|
+
}, TMetadata>;
|
|
2143
|
+
type TextareaProps<TVariant extends string = string, TSize extends string = string, TBreakpoint extends string = string> = Omit<Props<"textarea">, "style"> & Partial<TextareaRecipeSelection<TextareaRecipeInput<TVariant, TSize>>> & ResponsiveProps<TextareaRecipeSelection<TextareaRecipeInput<TVariant, TSize>>, TBreakpoint> & {
|
|
2144
|
+
style?: never;
|
|
2145
|
+
};
|
|
2146
|
+
declare function createTextarea<TMode extends string, TRecipe extends TextareaRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TextareaStyleSystem<TMode, TRecipe, TMetadata>): RemixComponent<TextareaProps<TextareaRecipeVariant<TRecipe>, TextareaRecipeSize<TRecipe>, BreakpointForStyleSystem<typeof style_system>>>;
|
|
2147
|
+
//#endregion
|
|
2148
|
+
//#region kit/lab/design/components/remix/toast.d.ts
|
|
2149
|
+
type ToastRecipeCondition = CommonRecipeCondition | "closed" | "open";
|
|
2150
|
+
type ToastRecipeInput<TTone extends string = string, TVariant extends string = string> = RecipeWithVariantGroups<"close" | "description" | "root" | "title" | "viewport", string, ComponentStyle, {
|
|
2151
|
+
tone: TTone;
|
|
2152
|
+
variant: TVariant;
|
|
2153
|
+
}>;
|
|
2154
|
+
type ToastRecipeTone<TRecipe extends ToastRecipeInput> = RecipeVariantValue<TRecipe, "tone">;
|
|
2155
|
+
type ToastRecipeVariant<TRecipe extends ToastRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
2156
|
+
type ToastRecipeSelection<TRecipe extends ToastRecipeInput> = RecipeVariantPropsFor<TRecipe, "tone" | "variant">;
|
|
2157
|
+
type ToastStyleSystem<TMode extends string = string, TRecipe extends ToastRecipeInput = ToastRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
2158
|
+
recipe: {
|
|
2159
|
+
toast: TRecipe;
|
|
2160
|
+
};
|
|
2161
|
+
}, TMetadata>;
|
|
2162
|
+
type ToastOpenChangeDetails = {
|
|
2163
|
+
event?: Event;
|
|
2164
|
+
reason: "close";
|
|
2165
|
+
};
|
|
2166
|
+
type ToastOpenChangeHandler = (open: boolean, details?: ToastOpenChangeDetails) => void;
|
|
2167
|
+
type ToastRootStyleProps<TTone extends string = string, TVariant extends string = string> = {
|
|
2168
|
+
tone?: TTone;
|
|
2169
|
+
variant?: TVariant;
|
|
2170
|
+
};
|
|
2171
|
+
type ToastRootProps<TTone extends string = string, TVariant extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & ToastRootStyleProps<TTone, TVariant> & ResponsiveProps<ToastRootStyleProps<TTone, TVariant>, TBreakpoint> & {
|
|
2172
|
+
defaultOpen?: boolean;
|
|
2173
|
+
onOpenChange?: ToastOpenChangeHandler;
|
|
2174
|
+
open?: boolean;
|
|
2175
|
+
style?: never;
|
|
2176
|
+
};
|
|
2177
|
+
type ToastViewportProps = Omit<Props<"div">, "style"> & {
|
|
2178
|
+
style?: never;
|
|
2179
|
+
};
|
|
2180
|
+
type ToastTitleProps = Omit<Props<"div">, "style"> & {
|
|
2181
|
+
style?: never;
|
|
2182
|
+
};
|
|
2183
|
+
type ToastDescriptionProps = Omit<Props<"div">, "style"> & {
|
|
2184
|
+
style?: never;
|
|
2185
|
+
};
|
|
2186
|
+
type ToastCloseProps = Omit<Props<"button">, "style"> & {
|
|
2187
|
+
style?: never;
|
|
2188
|
+
};
|
|
2189
|
+
type ToastComponents<TTone extends string = string, TVariant extends string = string> = {
|
|
2190
|
+
Close: RemixComponent<ToastCloseProps>;
|
|
2191
|
+
Description: RemixComponent<ToastDescriptionProps>;
|
|
2192
|
+
Root: RemixComponent<ToastRootProps<TTone, TVariant>, ToastContext>;
|
|
2193
|
+
Title: RemixComponent<ToastTitleProps>;
|
|
2194
|
+
Viewport: RemixComponent<ToastViewportProps>;
|
|
2195
|
+
};
|
|
2196
|
+
type ToastContext = {
|
|
2197
|
+
close: (details: ToastOpenChangeDetails) => void;
|
|
2198
|
+
get_open: () => boolean;
|
|
2199
|
+
};
|
|
2200
|
+
declare function createToast<TMode extends string, TRecipe extends ToastRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: ToastStyleSystem<TMode, TRecipe, TMetadata>): ToastComponents<ToastRecipeTone<TRecipe>, ToastRecipeVariant<TRecipe>>;
|
|
2201
|
+
//#endregion
|
|
2202
|
+
//#region kit/lab/design/components/remix/tooltip.d.ts
|
|
2203
|
+
type TooltipRecipeCondition = CommonRecipeCondition | "closed" | "open";
|
|
2204
|
+
type TooltipRecipeInput<TSize extends string = string, TVariant extends string = string> = RecipeWithVariantGroups<"popup" | "trigger", string, ComponentStyle, {
|
|
2205
|
+
size: TSize;
|
|
2206
|
+
variant: TVariant;
|
|
2207
|
+
}>;
|
|
2208
|
+
type TooltipRecipeSize<TRecipe extends TooltipRecipeInput> = RecipeVariantValue<TRecipe, "size">;
|
|
2209
|
+
type TooltipRecipeVariant<TRecipe extends TooltipRecipeInput> = RecipeVariantValue<TRecipe, "variant">;
|
|
2210
|
+
type TooltipRecipeSelection<TRecipe extends TooltipRecipeInput> = RecipeVariantPropsFor<TRecipe, "size" | "variant">;
|
|
2211
|
+
type TooltipStyleSystem<TMode extends string = string, TRecipe extends TooltipRecipeInput = TooltipRecipeInput, TMetadata extends AnyGeneratedSystemMetadata = AnyGeneratedSystemMetadata> = ComponentStyleSystem<TMode, {
|
|
2212
|
+
recipe: {
|
|
2213
|
+
tooltip: TRecipe;
|
|
2214
|
+
};
|
|
2215
|
+
}, TMetadata>;
|
|
2216
|
+
type TooltipOpenChangeDetails = {
|
|
2217
|
+
event?: Event;
|
|
2218
|
+
reason: "blur" | "focus" | "pointerEnter" | "pointerLeave";
|
|
2219
|
+
};
|
|
2220
|
+
type TooltipOpenChangeHandler = (open: boolean, details?: TooltipOpenChangeDetails) => void;
|
|
2221
|
+
type TooltipRootProps = {
|
|
2222
|
+
children?: RemixNode;
|
|
2223
|
+
defaultOpen?: boolean;
|
|
2224
|
+
onOpenChange?: TooltipOpenChangeHandler;
|
|
2225
|
+
open?: boolean;
|
|
2226
|
+
};
|
|
2227
|
+
type TooltipStyleProps<TSize extends string = string, TVariant extends string = string> = {
|
|
2228
|
+
size?: TSize;
|
|
2229
|
+
variant?: TVariant;
|
|
2230
|
+
};
|
|
2231
|
+
type TooltipTriggerProps<TSize extends string = string, TVariant extends string = string, TBreakpoint extends string = string> = Omit<Props<"button">, "style"> & TooltipStyleProps<TSize, TVariant> & ResponsiveProps<TooltipStyleProps<TSize, TVariant>, TBreakpoint> & {
|
|
2232
|
+
style?: never;
|
|
2233
|
+
};
|
|
2234
|
+
type TooltipPopupProps<TSize extends string = string, TVariant extends string = string, TBreakpoint extends string = string> = Omit<Props<"div">, "style"> & TooltipStyleProps<TSize, TVariant> & ResponsiveProps<TooltipStyleProps<TSize, TVariant>, TBreakpoint> & {
|
|
2235
|
+
style?: never;
|
|
2236
|
+
};
|
|
2237
|
+
type TooltipComponents<TSize extends string = string, TVariant extends string = string> = {
|
|
2238
|
+
Popup: RemixComponent<TooltipPopupProps<TSize, TVariant>>;
|
|
2239
|
+
Root: RemixComponent<TooltipRootProps, TooltipContext>;
|
|
2240
|
+
Trigger: RemixComponent<TooltipTriggerProps<TSize, TVariant>>;
|
|
2241
|
+
};
|
|
2242
|
+
type TooltipContext = {
|
|
2243
|
+
close: (details: TooltipOpenChangeDetails) => void;
|
|
2244
|
+
get_open: () => boolean;
|
|
2245
|
+
get_popup_id: () => string;
|
|
2246
|
+
open: (details: TooltipOpenChangeDetails) => void;
|
|
2247
|
+
};
|
|
2248
|
+
declare function createTooltip<TMode extends string, TRecipe extends TooltipRecipeInput, TMetadata extends AnyGeneratedSystemMetadata>(style_system: TooltipStyleSystem<TMode, TRecipe, TMetadata>): TooltipComponents<TooltipRecipeSize<TRecipe>, TooltipRecipeVariant<TRecipe>>;
|
|
2249
|
+
//#endregion
|
|
2250
|
+
//#region kit/lab/design/components/remix/visually-hidden.d.ts
|
|
2251
|
+
declare const visuallyHiddenDefaultElement = "span";
|
|
2252
|
+
declare const visuallyHiddenFocusableSelector = "&:not(:focus):not(:active)";
|
|
2253
|
+
declare const visuallyHiddenPart: {
|
|
2254
|
+
readonly root: "root";
|
|
2255
|
+
};
|
|
2256
|
+
declare const visuallyHiddenScope = "visuallyHidden";
|
|
2257
|
+
declare const visuallyHiddenStyle: {
|
|
2258
|
+
readonly border: 0;
|
|
2259
|
+
readonly clip: "rect(0 0 0 0)";
|
|
2260
|
+
readonly clipPath: "inset(50%)";
|
|
2261
|
+
readonly height: "1px";
|
|
2262
|
+
readonly margin: "-1px";
|
|
2263
|
+
readonly overflow: "hidden";
|
|
2264
|
+
readonly padding: 0;
|
|
2265
|
+
readonly position: "absolute";
|
|
2266
|
+
readonly whiteSpace: "nowrap";
|
|
2267
|
+
readonly width: "1px";
|
|
2268
|
+
};
|
|
2269
|
+
type VisuallyHiddenElement = keyof HTMLElementTagNameMap;
|
|
2270
|
+
type VisuallyHiddenProps<TElement extends VisuallyHiddenElement = "span"> = Omit<Props<TElement>, "style"> & {
|
|
2271
|
+
as?: TElement;
|
|
2272
|
+
isFocusable?: boolean;
|
|
2273
|
+
style?: never;
|
|
2274
|
+
};
|
|
2275
|
+
declare function createVisuallyHidden<TMode extends string, TMetadata extends {
|
|
2276
|
+
breakpoint?: Record<string, string | number>;
|
|
2277
|
+
}>(style_system: ComponentStyleSystem<TMode, unknown, TMetadata>): RemixComponent<VisuallyHiddenProps>;
|
|
2278
|
+
//#endregion
|
|
2279
|
+
export { type ARIABoolean, type AccordionComponents, type AccordionItemProps, type AccordionItemStyleProps, type AccordionPanelProps, type AccordionRecipeCondition, type AccordionRecipeInput, type AccordionRecipeLayout, type AccordionRecipeSelection, type AccordionRecipeSize, type AccordionRecipeVariant, type AccordionRootProps, type AccordionRootStyleProps, type AccordionStyleSystem, type AccordionTriggerProps, type AccordionValue, type AccordionValueChangeDetails, type AccordionValueChangeHandler, type AlertComponents, type AlertDescriptionProps, type AlertDialogActionProps, type AlertDialogCancelProps, type AlertDialogComponents, type AlertDialogDescriptionProps, type AlertDialogOpenChangeDetails, type AlertDialogOpenChangeHandler, type AlertDialogOpenChangeReason, type AlertDialogPopupProps, type AlertDialogPopupStyleProps, type AlertDialogRecipeCondition, type AlertDialogRecipeInput, type AlertDialogRecipeLayout, type AlertDialogRecipeSelection, type AlertDialogRootProps, type AlertDialogStyleSystem, type AlertDialogTitleProps, type AlertDialogTriggerProps, type AlertIconProps, type AlertRecipeInput, type AlertRecipeSelection, type AlertRecipeSlot, type AlertRecipeTone, type AlertRecipeVariant, type AlertRootProps, type AlertRootStyleProps, type AlertStyleSystem, type AlertTitleProps, type AspectRatioOverflow, type AspectRatioProps, type AspectRatioStyleProps, type BadgeRecipeInput, type BadgeRecipeSize, type BadgeRecipeTone, type BadgeStyleSystem, type BoxRecipeInput, type BoxRecipeLayout, type BoxStyleSystem, type BreakpointForStyleSystem, type ButtonOptions, type ButtonProps, type ButtonRecipeCondition, type ButtonRecipeInput, type ButtonRecipeLayout, type ButtonRecipeSelection, type ButtonRecipeSize, type ButtonRecipeSlot, type ButtonRecipeVariant, type ButtonStyleProps, type ButtonStyleSystem, type CalloutProps, type CalloutRecipeInput, type CalloutRecipeSelection, type CalloutRecipeTone, type CalloutStyleSystem, type CheckboxChecked, type CheckboxGroupComponents, type CheckboxGroupItemProps, type CheckboxGroupItemStyleProps, type CheckboxGroupRecipeCondition, type CheckboxGroupRecipeInput, type CheckboxGroupRecipeLayout, type CheckboxGroupRecipeSelection, type CheckboxGroupRecipeSize, type CheckboxGroupRecipeVariant, type CheckboxGroupRootProps, type CheckboxGroupRootStyleProps, type CheckboxGroupStyleSystem, type CheckboxGroupValueChangeDetails, type CheckboxGroupValueChangeHandler, type CheckboxProps, type CheckboxRecipeCondition, type CheckboxRecipeInput, type CheckboxRecipeSelection, type CheckboxRecipeSize, type CheckboxRecipeVariant, type CheckboxStyleSystem, type ChipProps, type ChipRecipeInput, type ChipRecipeSelection, type ChipRecipeSize, type ChipRecipeVariant, type ChipStyleProps, type ChipStyleSystem, type CodeBlockProps, type CodeBlockRecipeInput, type CodeBlockStyleSystem, type CollapsibleComponents, type CollapsibleContentProps, type CollapsibleOpenChangeDetails, type CollapsibleOpenChangeHandler, type CollapsibleRecipeCondition, type CollapsibleRecipeInput, type CollapsibleRecipeLayout, type CollapsibleRecipeSelection, type CollapsibleRootProps, type CollapsibleRootStyleProps, type CollapsibleStyleSystem, type CollapsibleTriggerProps, type CommonRecipeCondition, type ComponentAnatomyAttrs, type ComponentSlotProps, type ComponentStyle, type ComponentStyleHostElementMap, type ComponentStyleSystem, type ComponentStyleTargetInput, type ComponentStyleTargetOutput, type ComponentStyleTargetRecipeInput, type ComponentStyleTargetsInput, type ComponentStyleTargetsOutput, type DescriptionListItemProps, type DescriptionListItemStyleProps, type DescriptionListLayout, type DescriptionListProps, type DescriptionListRecipeDescriptionTone, type DescriptionListRecipeInput, type DescriptionListRecipeSelection, type DescriptionListRecipeTone, type DescriptionListStyleSystem, type DialogCloseProps, type DialogComponents, type DialogDescriptionProps, type DialogOpenChangeDetails, type DialogOpenChangeHandler, type DialogOpenChangeReason, type DialogOverlayProps, type DialogPopupProps, type DialogPopupStyleProps, type DialogProps, type DialogRecipeCondition, type DialogRecipeInput, type DialogRecipePopupLayout, type DialogRecipeSelection, type DialogRecipeSlot, type DialogRequiredRecipeSlot, type DialogStyleSystem, type DialogTitleProps, type DialogTriggerProps, type EmptyStateProps, type EmptyStateRecipeInput, type EmptyStateStyleSystem, type FieldComponents, type FieldControlMixin, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, type FieldRecipeInput, type FieldRecipeSlot, type FieldStyleSystem, type FieldsetComponents, type FieldsetLegendProps, type FieldsetRecipeInput, type FieldsetRecipeLayout, type FieldsetRecipeSelection, type FieldsetRootProps, type FieldsetRootStyleProps, type FieldsetStyleSystem, type FormProps, type FormRecipeInput, type FormRecipeLayout, type FormRecipeSelection, type FormStyleProps, type FormStyleSystem, type GridAlign, type GridJustify, type GridProps, type GridRecipeColumns, type GridRecipeGap, type GridRecipeInput, type GridRecipeLayout, type GridRecipeSelection, type GridStyleProps, type GridStyleSystem, type IconElement, type IconProps, type IconRecipeInput, type IconRecipeLayout, type IconRecipeSelection, type IconRecipeSize, type IconRecipeTone, type IconRotate, type IconStyleProps, type IconStyleSystem, type InputProps, type InputRecipeInput, type InputRecipeSelection, type InputRecipeSize, type InputRecipeVariant, type InputStyleSystem, type KbdProps, type KbdRecipeInput, type KbdRecipeSize, type KbdStyleSystem, type ListElement, type ListItemProps, type ListProps, type ListRecipeInput, type ListStyleSystem, type ListboxComponents, type ListboxGroupLabelProps, type ListboxGroupProps, type ListboxHighlightChangeDetails, type ListboxHighlightChangeHandler, type ListboxHighlightChangeReason, type ListboxOptionIndicatorProps, type ListboxOptionProps, type ListboxOptionStyleProps, type ListboxOptionTextProps, type ListboxOptions, type ListboxOrientation, type ListboxRecipeCondition, type ListboxRecipeInput, type ListboxRecipeLayout, type ListboxRecipeSelection, type ListboxRecipeSize, type ListboxRecipeSlot, type ListboxRecipeVariant, type ListboxRootMultipleSelectionProps, type ListboxRootProps, type ListboxRootSelectionProps, type ListboxRootSharedProps, type ListboxRootSingleSelectionProps, type ListboxRootStyleProps, type ListboxSelectionMode, type ListboxStyleSystem, type ListboxValueChangeDetails, type ListboxValueChangeHandler, type ListboxValueChangeReason, type ListboxValuesChangeHandler, type MenuCheckboxItemProps, type MenuChecked, type MenuCheckedChangeHandler, type MenuComponents, type MenuGroupLabelProps, type MenuGroupProps, type MenuItemFocusDetails, type MenuItemFocusReason, type MenuItemIndicatorProps, type MenuItemProps, type MenuItemSelectDetails, type MenuItemSelectReason, type MenuItemStyleProps, type MenuOpenChangeDetails, type MenuOpenChangeHandler, type MenuOpenChangeReason, type MenuPopupProps, type MenuPopupStyleProps, type MenuRadioGroupProps, type MenuRadioItemProps, type MenuRadioValueChangeHandler, type MenuRecipeCondition, type MenuRecipeInput, type MenuRecipeLayout, type MenuRecipeSelection, type MenuRecipeSize, type MenuRecipeSlot, type MenuRecipeVariant, type MenuRootProps, type MenuSeparatorProps, type MenuStyleSystem, type MenuTriggerProps, type MenuTriggerStyleProps, type OpenStateName, type PopoverAlign, type PopoverArrowProps, type PopoverCloseProps, type PopoverComponents, type PopoverDescriptionProps, type PopoverOpenChangeDetails, type PopoverOpenChangeHandler, type PopoverOpenChangeReason, type PopoverOptions, type PopoverPopupProps, type PopoverPopupStyleProps, type PopoverRecipeCondition, type PopoverRecipeInput, type PopoverRecipeSize, type PopoverRecipeSlot, type PopoverRootProps, type PopoverSide, type PopoverStyleSystem, type PopoverTitleProps, type PopoverTriggerProps, type ProgressProps, type ProgressRecipeInput, type ProgressRecipeSelection, type ProgressRecipeTone, type ProgressSegment, type ProgressStyleSystem, type RadioGroupComponents, type RadioGroupItemProps, type RadioGroupItemStyleProps, type RadioGroupRecipeCondition, type RadioGroupRecipeInput, type RadioGroupRecipeLayout, type RadioGroupRecipeSelection, type RadioGroupRecipeSize, type RadioGroupRecipeVariant, type RadioGroupRootProps, type RadioGroupRootStyleProps, type RadioGroupStyleSystem, type RadioGroupValueChangeDetails, type RadioGroupValueChangeHandler, type RecipeConditionSelectorMap, type RecipeStyleInput, type RemixComponent, type ResponsiveProps, type SelectComponents, type SelectGroupLabelProps, type SelectGroupProps, type SelectHighlightChangeDetails, type SelectHighlightChangeHandler, type SelectHighlightChangeReason, type SelectIconProps, type SelectListProps, type SelectOpenChangeDetails, type SelectOpenChangeHandler, type SelectOpenChangeReason, type SelectOptionIndicatorProps, type SelectOptionProps, type SelectOptionTextProps, type SelectOptions, type SelectPopupProps, type SelectPopupStyleProps, type SelectProps, type SelectRecipeCondition, type SelectRecipeInput, type SelectRecipePopupLayout, type SelectRecipeSelection, type SelectRecipeSize, type SelectRecipeSlot, type SelectRecipeVariant, type SelectSeparatorProps, type SelectStyleSystem, type SelectTriggerProps, type SelectTriggerStyleProps, type SelectValueChangeDetails, type SelectValueChangeHandler, type SelectValueChangeReason, type SelectValueProps, type SelectionStateName, type SeparatorOrientation, type SeparatorProps, type SeparatorRecipeInput, type SeparatorStyleSystem, type SliderOptions, type SliderProps, type SliderRecipeCondition, type SliderRecipeInput, type SliderRecipeLayout, type SliderRecipeSelection, type SliderRecipeSlot, type SliderStyleProps, type SliderStyleSystem, type SliderStyleTarget, type SliderTargetStyles, type SpinnerProps, type SpinnerRecipeInput, type SpinnerRecipeSelection, type SpinnerRecipeSize, type SpinnerRecipeTone, type SpinnerStyleSystem, type StackAlign, type StackDirection, type StackJustify, type StackOptions, type StackProps, type StackRecipeGap, type StackRecipeInput, type StackRecipeLayout, type StackRecipeSelection, type StackStyleProps, type StackStyleSystem, type StatProps, type StatRecipeInput, type StatRecipeSelection, type StatRecipeValueTone, type StatStyleSystem, type SurfaceRecipeDensity, type SurfaceRecipeInput, type SurfaceRecipeLayout, type SurfaceRecipeVariant, type SurfaceStyleSystem, type SwitchProps, type SwitchRecipeCondition, type SwitchRecipeInput, type SwitchRecipeSelection, type SwitchRecipeSize, type SwitchRecipeVariant, type SwitchStyleSystem, type TableCellProps, type TableCellRole, type TableHeaderCellProps, type TableHeaderCellScope, type TableProps, type TableRecipeCellVariant, type TableRecipeDensity, type TableRecipeInput, type TableRecipeLayout, type TableRecipeRowVariant, type TableRecipeSelection, type TableRowProps, type TableSectionProps, type TableStyleProps, type TableStyleSystem, type TabsComponents, type TabsListProps, type TabsPanelProps, type TabsRecipeCondition, type TabsRecipeInput, type TabsRecipeLayout, type TabsRecipeSelection, type TabsRecipeSize, type TabsRecipeVariant, type TabsRootProps, type TabsRootStyleProps, type TabsStyleSystem, type TabsTriggerProps, type TabsTriggerStyleProps, type TabsValueChangeDetails, type TabsValueChangeHandler, type TextAlign, type TextProps, type TextRecipeInput, type TextRecipeSelection, type TextRecipeTone, type TextRecipeVariant, type TextStyleSystem, type TextareaProps, type TextareaRecipeInput, type TextareaRecipeSelection, type TextareaRecipeSize, type TextareaRecipeVariant, type TextareaStyleSystem, type ToastCloseProps, type ToastComponents, type ToastDescriptionProps, type ToastOpenChangeDetails, type ToastOpenChangeHandler, type ToastRecipeCondition, type ToastRecipeInput, type ToastRecipeSelection, type ToastRecipeTone, type ToastRecipeVariant, type ToastRootProps, type ToastRootStyleProps, type ToastStyleSystem, type ToastTitleProps, type ToastViewportProps, type TooltipComponents, type TooltipOpenChangeDetails, type TooltipOpenChangeHandler, type TooltipPopupProps, type TooltipRecipeCondition, type TooltipRecipeInput, type TooltipRecipeSelection, type TooltipRecipeSize, type TooltipRecipeVariant, type TooltipRootProps, type TooltipStyleProps, type TooltipStyleSystem, type TooltipTriggerProps, type VisuallyHiddenElement, type VisuallyHiddenProps, ariaBoolean, ariaTrue, commonConditions, componentAnatomyAttrs, componentDataAttribute, componentStateAttribute, createAccordion, createAlert, createAlertDialog, createAspectRatio, createBadge, createBox, createButton, createCallout, createCheckbox, createCheckboxGroup, createChip, createCodeBlock, createCollapsible, createComponentAnatomyAttrs, createComponentSlotProps, createComponentStyleTargets, createDescriptionList, createDescriptionListItem, createDialog, createEmptyState, createField, createFieldControlMixin, createFieldDescription, createFieldError, createFieldLabel, createFieldParts, createFieldset, createForm, createGrid, createIcon, createInput, createKbd, createList, createListItem, createListbox, createMenu, createPopover, createProgress, createRadioGroup, createRecipeMix, createRecipeStyle, createResponsiveRecipeStyle, createResponsiveStyle, createSelect, createSeparator, createSlider, createSpinner, createStack, createStat, createSurface, createSwitch, createTable, createTableBody, createTableCell, createTableHead, createTableHeaderCell, createTableRow, createTabs, createText, createTextarea, createToast, createTooltip, createVisuallyHidden, dataFlag, kbdDefaultElement, kbdScope, listboxHighlightChangeReason, listboxValueChangeReason, menuAnatomy, menuItemFocusReason, menuItemSelectReason, menuOpenChangeReason, mergeRecipeConditionSelectors, openState, openStateFromBoolean, popoverAnatomy, selectHighlightChangeReason, selectOpenChangeReason, selectValueChangeReason, selectionState, selectionStateFromBoolean, separatorDecorativeRole, separatorHiddenAttribute, separatorOrientation, separatorOrientationAttribute, separatorRole, sliderProgressVariable, visuallyHiddenDefaultElement, visuallyHiddenFocusableSelector, visuallyHiddenPart, visuallyHiddenScope, visuallyHiddenStyle };
|
|
2280
|
+
//# sourceMappingURL=remix.d.ts.map
|