@aviala-design/spiral 2.4.1 → 2.6.0
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/component-changelogs.json +212 -5
- package/dist/index.cjs +2556 -1422
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +371 -31
- package/dist/index.d.ts +371 -31
- package/dist/index.js +2299 -1144
- package/dist/index.js.map +1 -1
- package/dist/props.json +317 -30
- package/dist/styles.css +77 -17
- package/package.json +8 -4
package/dist/props.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"name": "mode",
|
|
21
|
-
"type": "\"default\" | \"primary\" | \"second\" | \"defaultCustom\" | \"noBackground\" | \"noBackgroundCustom\" | \"destructive\"",
|
|
21
|
+
"type": "\"default\" | \"primary\" | \"second\" | \"defaultCustom\" | \"noBackground\" | \"noBackgroundCustom\" | \"outline\" | \"outlineCustom\" | \"destructive\"",
|
|
22
22
|
"values": [
|
|
23
23
|
"default",
|
|
24
24
|
"primary",
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
"defaultCustom",
|
|
27
27
|
"noBackground",
|
|
28
28
|
"noBackgroundCustom",
|
|
29
|
+
"outline",
|
|
30
|
+
"outlineCustom",
|
|
29
31
|
"destructive"
|
|
30
32
|
],
|
|
31
33
|
"required": false,
|
|
@@ -55,12 +57,12 @@
|
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
59
|
"name": "variant",
|
|
58
|
-
"type": "\"default\" | \"
|
|
60
|
+
"type": "\"default\" | \"outline\" | \"destructive\" | \"secondary\" | \"ghost\" | \"link\"",
|
|
59
61
|
"values": [
|
|
60
62
|
"default",
|
|
63
|
+
"outline",
|
|
61
64
|
"destructive",
|
|
62
65
|
"secondary",
|
|
63
|
-
"outline",
|
|
64
66
|
"ghost",
|
|
65
67
|
"link"
|
|
66
68
|
],
|
|
@@ -708,6 +710,17 @@
|
|
|
708
710
|
"required": false,
|
|
709
711
|
"description": ""
|
|
710
712
|
},
|
|
713
|
+
{
|
|
714
|
+
"name": "direction",
|
|
715
|
+
"type": "\"horizontal\" | \"vertical\"",
|
|
716
|
+
"values": [
|
|
717
|
+
"horizontal",
|
|
718
|
+
"vertical"
|
|
719
|
+
],
|
|
720
|
+
"defaultValue": "horizontal",
|
|
721
|
+
"required": false,
|
|
722
|
+
"description": "Figma `direction` — horizontal (default) or vertical stack."
|
|
723
|
+
},
|
|
711
724
|
{
|
|
712
725
|
"name": "allRound",
|
|
713
726
|
"type": "boolean",
|
|
@@ -720,7 +733,7 @@
|
|
|
720
733
|
"type": "boolean",
|
|
721
734
|
"defaultValue": "false",
|
|
722
735
|
"required": false,
|
|
723
|
-
"description": "When true, the group fills its container and items split the
|
|
736
|
+
"description": "When true, the group fills its container and items split the main axis equally."
|
|
724
737
|
},
|
|
725
738
|
{
|
|
726
739
|
"name": "disabled",
|
|
@@ -814,6 +827,60 @@
|
|
|
814
827
|
}
|
|
815
828
|
]
|
|
816
829
|
},
|
|
830
|
+
"LocaleProvider": {
|
|
831
|
+
"displayName": "LocaleProvider",
|
|
832
|
+
"description": "",
|
|
833
|
+
"props": [
|
|
834
|
+
{
|
|
835
|
+
"name": "locale",
|
|
836
|
+
"type": "Locale",
|
|
837
|
+
"required": false,
|
|
838
|
+
"description": "Locale pack. Defaults to `zhCN`."
|
|
839
|
+
}
|
|
840
|
+
]
|
|
841
|
+
},
|
|
842
|
+
"ConfigProvider": {
|
|
843
|
+
"displayName": "ConfigProvider",
|
|
844
|
+
"description": "",
|
|
845
|
+
"props": [
|
|
846
|
+
{
|
|
847
|
+
"name": "direction",
|
|
848
|
+
"type": "\"ltr\" | \"rtl\"",
|
|
849
|
+
"values": [
|
|
850
|
+
"ltr",
|
|
851
|
+
"rtl"
|
|
852
|
+
],
|
|
853
|
+
"defaultValue": "ltr",
|
|
854
|
+
"required": false,
|
|
855
|
+
"description": "Writing direction. Defaults to `ltr`."
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "syncDocumentDir",
|
|
859
|
+
"type": "boolean",
|
|
860
|
+
"defaultValue": "true",
|
|
861
|
+
"required": false,
|
|
862
|
+
"description": "When true (default), the outermost ConfigProvider that opts in writes\n`document.documentElement.dir` so portalled overlays inherit direction.\nNested providers only set `dir` on their local wrapper."
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "locale",
|
|
866
|
+
"type": "Locale",
|
|
867
|
+
"required": false,
|
|
868
|
+
"description": "Optional locale pack — nests `LocaleProvider` when provided."
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "className",
|
|
872
|
+
"type": "string",
|
|
873
|
+
"required": false,
|
|
874
|
+
"description": ""
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "style",
|
|
878
|
+
"type": "CSSProperties",
|
|
879
|
+
"required": false,
|
|
880
|
+
"description": ""
|
|
881
|
+
}
|
|
882
|
+
]
|
|
883
|
+
},
|
|
817
884
|
"Alert": {
|
|
818
885
|
"displayName": "Alert",
|
|
819
886
|
"description": "",
|
|
@@ -889,7 +956,6 @@
|
|
|
889
956
|
{
|
|
890
957
|
"name": "closeLabel",
|
|
891
958
|
"type": "string",
|
|
892
|
-
"defaultValue": "Dismiss alert",
|
|
893
959
|
"required": false,
|
|
894
960
|
"description": ""
|
|
895
961
|
},
|
|
@@ -1006,7 +1072,6 @@
|
|
|
1006
1072
|
{
|
|
1007
1073
|
"name": "closeLabel",
|
|
1008
1074
|
"type": "string",
|
|
1009
|
-
"defaultValue": "Dismiss",
|
|
1010
1075
|
"required": false,
|
|
1011
1076
|
"description": ""
|
|
1012
1077
|
},
|
|
@@ -1061,7 +1126,6 @@
|
|
|
1061
1126
|
{
|
|
1062
1127
|
"name": "rangePlaceholder",
|
|
1063
1128
|
"type": "string",
|
|
1064
|
-
"defaultValue": "Start date - End date",
|
|
1065
1129
|
"required": false,
|
|
1066
1130
|
"description": ""
|
|
1067
1131
|
},
|
|
@@ -1324,7 +1388,6 @@
|
|
|
1324
1388
|
{
|
|
1325
1389
|
"name": "rangePlaceholder",
|
|
1326
1390
|
"type": "string",
|
|
1327
|
-
"defaultValue": "Start date - End date",
|
|
1328
1391
|
"required": false,
|
|
1329
1392
|
"description": ""
|
|
1330
1393
|
},
|
|
@@ -1427,7 +1490,6 @@
|
|
|
1427
1490
|
{
|
|
1428
1491
|
"name": "placeholder",
|
|
1429
1492
|
"type": "string",
|
|
1430
|
-
"defaultValue": "HH:mm",
|
|
1431
1493
|
"required": false,
|
|
1432
1494
|
"description": ""
|
|
1433
1495
|
},
|
|
@@ -1586,7 +1648,6 @@
|
|
|
1586
1648
|
{
|
|
1587
1649
|
"name": "placeholder",
|
|
1588
1650
|
"type": "string",
|
|
1589
|
-
"defaultValue": "HH:mm",
|
|
1590
1651
|
"required": false,
|
|
1591
1652
|
"description": ""
|
|
1592
1653
|
},
|
|
@@ -1802,6 +1863,17 @@
|
|
|
1802
1863
|
"defaultValue": "false",
|
|
1803
1864
|
"required": false,
|
|
1804
1865
|
"description": "Figma Checkbox `Round`"
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"name": "size",
|
|
1869
|
+
"type": "\"default\" | \"huge\"",
|
|
1870
|
+
"values": [
|
|
1871
|
+
"default",
|
|
1872
|
+
"huge"
|
|
1873
|
+
],
|
|
1874
|
+
"defaultValue": "default",
|
|
1875
|
+
"required": false,
|
|
1876
|
+
"description": "Figma Checkbox `Size`"
|
|
1805
1877
|
}
|
|
1806
1878
|
],
|
|
1807
1879
|
"parts": [
|
|
@@ -1839,6 +1911,17 @@
|
|
|
1839
1911
|
"required": false,
|
|
1840
1912
|
"description": "Figma Checkbox `Round`"
|
|
1841
1913
|
},
|
|
1914
|
+
{
|
|
1915
|
+
"name": "size",
|
|
1916
|
+
"type": "\"default\" | \"huge\"",
|
|
1917
|
+
"values": [
|
|
1918
|
+
"default",
|
|
1919
|
+
"huge"
|
|
1920
|
+
],
|
|
1921
|
+
"defaultValue": "default",
|
|
1922
|
+
"required": false,
|
|
1923
|
+
"description": "Figma Checkbox `Size`"
|
|
1924
|
+
},
|
|
1842
1925
|
{
|
|
1843
1926
|
"name": "description",
|
|
1844
1927
|
"type": "ReactNode",
|
|
@@ -2044,7 +2127,6 @@
|
|
|
2044
2127
|
{
|
|
2045
2128
|
"name": "placeholder",
|
|
2046
2129
|
"type": "string",
|
|
2047
|
-
"defaultValue": "Text",
|
|
2048
2130
|
"required": false,
|
|
2049
2131
|
"description": ""
|
|
2050
2132
|
},
|
|
@@ -2198,7 +2280,6 @@
|
|
|
2198
2280
|
{
|
|
2199
2281
|
"name": "placeholder",
|
|
2200
2282
|
"type": "string",
|
|
2201
|
-
"defaultValue": "Text",
|
|
2202
2283
|
"required": false,
|
|
2203
2284
|
"description": ""
|
|
2204
2285
|
},
|
|
@@ -2575,7 +2656,6 @@
|
|
|
2575
2656
|
{
|
|
2576
2657
|
"name": "placeholder",
|
|
2577
2658
|
"type": "string",
|
|
2578
|
-
"defaultValue": "Select color",
|
|
2579
2659
|
"required": false,
|
|
2580
2660
|
"description": ""
|
|
2581
2661
|
}
|
|
@@ -3082,7 +3162,7 @@
|
|
|
3082
3162
|
},
|
|
3083
3163
|
{
|
|
3084
3164
|
"displayName": "NavigationItemMenuContent",
|
|
3085
|
-
"description": "Flyout surface —
|
|
3165
|
+
"description": "Flyout surface — forward of the item in vertical (LTR right / RTL left), below it in horizontal.",
|
|
3086
3166
|
"props": [
|
|
3087
3167
|
{
|
|
3088
3168
|
"name": "asChild",
|
|
@@ -3519,7 +3599,7 @@
|
|
|
3519
3599
|
},
|
|
3520
3600
|
"FormField": {
|
|
3521
3601
|
"displayName": "FormField",
|
|
3522
|
-
"description": "",
|
|
3602
|
+
"description": "FormField — layout wrapper around a form control, or a react-hook-form\nbound field when given `name` + `render` (shadcn-style).",
|
|
3523
3603
|
"props": [
|
|
3524
3604
|
{
|
|
3525
3605
|
"name": "label",
|
|
@@ -3543,7 +3623,7 @@
|
|
|
3543
3623
|
"name": "error",
|
|
3544
3624
|
"type": "ReactNode",
|
|
3545
3625
|
"required": false,
|
|
3546
|
-
"description": ""
|
|
3626
|
+
"description": "Overrides the validation error message shown under the control"
|
|
3547
3627
|
},
|
|
3548
3628
|
{
|
|
3549
3629
|
"name": "info",
|
|
@@ -3565,14 +3645,56 @@
|
|
|
3565
3645
|
},
|
|
3566
3646
|
{
|
|
3567
3647
|
"name": "direction",
|
|
3568
|
-
"type": "\"
|
|
3648
|
+
"type": "\"horizontal\" | \"vertical\"",
|
|
3569
3649
|
"values": [
|
|
3570
|
-
"
|
|
3571
|
-
"
|
|
3650
|
+
"horizontal",
|
|
3651
|
+
"vertical"
|
|
3572
3652
|
],
|
|
3573
3653
|
"defaultValue": "vertical",
|
|
3574
3654
|
"required": false,
|
|
3575
3655
|
"description": "Figma `Direction` — vertical stacks label above control; horizontal places label beside"
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
"name": "ref",
|
|
3659
|
+
"type": "Ref<HTMLDivElement>",
|
|
3660
|
+
"required": false,
|
|
3661
|
+
"description": ""
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
"name": "rules",
|
|
3665
|
+
"type": "Omit<RegisterOptions<TFieldValues, TName>, \"disabled\" | \"valueAsNumber\" | \"valueAsDate\" | \"setValueAs\">",
|
|
3666
|
+
"required": false,
|
|
3667
|
+
"description": ""
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"name": "shouldUnregister",
|
|
3671
|
+
"type": "boolean",
|
|
3672
|
+
"required": false,
|
|
3673
|
+
"description": ""
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
"name": "disabled",
|
|
3677
|
+
"type": "boolean",
|
|
3678
|
+
"required": false,
|
|
3679
|
+
"description": ""
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"name": "name",
|
|
3683
|
+
"type": "string",
|
|
3684
|
+
"required": true,
|
|
3685
|
+
"description": ""
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
"name": "control",
|
|
3689
|
+
"type": "Control<TFieldValues>",
|
|
3690
|
+
"required": false,
|
|
3691
|
+
"description": ""
|
|
3692
|
+
},
|
|
3693
|
+
{
|
|
3694
|
+
"name": "render",
|
|
3695
|
+
"type": "(props: FormFieldRenderProps<TFieldValues, TName>) => ReactNode",
|
|
3696
|
+
"required": true,
|
|
3697
|
+
"description": ""
|
|
3576
3698
|
}
|
|
3577
3699
|
]
|
|
3578
3700
|
},
|
|
@@ -3686,7 +3808,17 @@
|
|
|
3686
3808
|
],
|
|
3687
3809
|
"defaultValue": "default",
|
|
3688
3810
|
"required": false,
|
|
3689
|
-
"description": "Visual skin of the surface:\n- `default` — light bordered panel (select-menu aligned), text typography, stroked caret.\n- `tooltip` — shared inverted tooltip skin (dark, caption text, borderless, solid caret).\n- `primary` — brand primary surface with white text, borderless, solid caret."
|
|
3811
|
+
"description": "Visual skin of the surface:\n- `default` — light bordered panel (select-menu aligned), text typography, stroked caret.\n- `tooltip` — shared inverted tooltip skin (dark, caption text by default, borderless, solid caret).\n- `primary` — brand primary surface with white text, borderless, solid caret."
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
"name": "level",
|
|
3815
|
+
"type": "\"caption\" | \"text\"",
|
|
3816
|
+
"values": [
|
|
3817
|
+
"caption",
|
|
3818
|
+
"text"
|
|
3819
|
+
],
|
|
3820
|
+
"required": false,
|
|
3821
|
+
"description": "Typography level for the surface copy.\nDefaults to `caption` for `appearance=\"tooltip\"`, otherwise `text`."
|
|
3690
3822
|
}
|
|
3691
3823
|
]
|
|
3692
3824
|
},
|
|
@@ -3797,7 +3929,6 @@
|
|
|
3797
3929
|
{
|
|
3798
3930
|
"name": "closeLabel",
|
|
3799
3931
|
"type": "string",
|
|
3800
|
-
"defaultValue": "Close dialog",
|
|
3801
3932
|
"required": false,
|
|
3802
3933
|
"description": ""
|
|
3803
3934
|
}
|
|
@@ -3830,7 +3961,6 @@
|
|
|
3830
3961
|
{
|
|
3831
3962
|
"name": "closeLabel",
|
|
3832
3963
|
"type": "string",
|
|
3833
|
-
"defaultValue": "Close dialog",
|
|
3834
3964
|
"required": false,
|
|
3835
3965
|
"description": ""
|
|
3836
3966
|
},
|
|
@@ -3908,6 +4038,32 @@
|
|
|
3908
4038
|
"description": "",
|
|
3909
4039
|
"props": [],
|
|
3910
4040
|
"parts": [
|
|
4041
|
+
{
|
|
4042
|
+
"displayName": "TooltipProvider",
|
|
4043
|
+
"description": "Provides shared hover-delay state for nested Tooltips.\nPass `delayDuration={0}` for instant open on hover.",
|
|
4044
|
+
"props": [
|
|
4045
|
+
{
|
|
4046
|
+
"name": "delayDuration",
|
|
4047
|
+
"type": "number",
|
|
4048
|
+
"defaultValue": "300",
|
|
4049
|
+
"required": false,
|
|
4050
|
+
"description": "Delay before the tooltip opens on hover, in ms.\nDefaults to `TOOLTIP_DELAY_DURATION` (300). Pass `0` for instant open on hover."
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
"name": "skipDelayDuration",
|
|
4054
|
+
"type": "number",
|
|
4055
|
+
"defaultValue": "0",
|
|
4056
|
+
"required": false,
|
|
4057
|
+
"description": "When moving between tooltips, skip the open delay within this window (ms)."
|
|
4058
|
+
},
|
|
4059
|
+
{
|
|
4060
|
+
"name": "disableHoverableContent",
|
|
4061
|
+
"type": "boolean",
|
|
4062
|
+
"required": false,
|
|
4063
|
+
"description": "When true, hovering the tooltip content itself does not keep it open."
|
|
4064
|
+
}
|
|
4065
|
+
]
|
|
4066
|
+
},
|
|
3911
4067
|
{
|
|
3912
4068
|
"displayName": "TooltipTrigger",
|
|
3913
4069
|
"description": "",
|
|
@@ -3936,11 +4092,136 @@
|
|
|
3936
4092
|
"defaultValue": "true",
|
|
3937
4093
|
"required": false,
|
|
3938
4094
|
"description": "Show a caret arrow pointing at the trigger (default true)."
|
|
4095
|
+
},
|
|
4096
|
+
{
|
|
4097
|
+
"name": "level",
|
|
4098
|
+
"type": "\"caption\" | \"text\"",
|
|
4099
|
+
"values": [
|
|
4100
|
+
"caption",
|
|
4101
|
+
"text"
|
|
4102
|
+
],
|
|
4103
|
+
"defaultValue": "caption",
|
|
4104
|
+
"required": false,
|
|
4105
|
+
"description": "Typography level for the surface copy.\nFigma default is `caption`; pass `text` for body-sized tooltip copy."
|
|
3939
4106
|
}
|
|
3940
4107
|
]
|
|
3941
4108
|
}
|
|
3942
4109
|
]
|
|
3943
4110
|
},
|
|
4111
|
+
"ResponsiveTooltip": {
|
|
4112
|
+
"displayName": "ResponsiveTooltip",
|
|
4113
|
+
"description": "Tooltip with a mobile-friendly trigger.\n\nRadix Tooltip is hover/focus only and deliberately ignores touch, so it has\nno trigger on phones. `ResponsiveTooltip` renders the SAME content through the\nright primitive for the device:\n- Desktop (`pointer: fine`): Radix Tooltip — opens on hover and keyboard focus.\n- Touch (`pointer: coarse`): Radix Popover with `appearance=\"tooltip\"` — opens on\n **long-press** (short tap still reaches the trigger’s own `onClick`), dismisses\n on outside tap / Escape, and keeps the tooltip visual skin (dark surface,\n caption text, solid caret) so it looks identical to desktop.\n\nThe consumer API and the look are unchanged between devices; only the trigger\ngesture differs. Animations are handled by the respective effect CSS\n(tooltip-effects / popover-effects), so direction-aware scale-in/out works on\nboth branches.",
|
|
4114
|
+
"props": [
|
|
4115
|
+
{
|
|
4116
|
+
"name": "content",
|
|
4117
|
+
"type": "ReactNode",
|
|
4118
|
+
"required": true,
|
|
4119
|
+
"description": "Tooltip body — the same content is shown on desktop (hover) and touch\n(long-press)."
|
|
4120
|
+
},
|
|
4121
|
+
{
|
|
4122
|
+
"name": "children",
|
|
4123
|
+
"type": "ReactNode",
|
|
4124
|
+
"required": true,
|
|
4125
|
+
"description": "The trigger element. Rendered with `asChild`, so pass a single element."
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
"name": "side",
|
|
4129
|
+
"type": "\"top\" | \"right\" | \"bottom\" | \"left\"",
|
|
4130
|
+
"values": [
|
|
4131
|
+
"top",
|
|
4132
|
+
"right",
|
|
4133
|
+
"bottom",
|
|
4134
|
+
"left"
|
|
4135
|
+
],
|
|
4136
|
+
"defaultValue": "top",
|
|
4137
|
+
"required": false,
|
|
4138
|
+
"description": "Preferred placement of the floating content."
|
|
4139
|
+
},
|
|
4140
|
+
{
|
|
4141
|
+
"name": "align",
|
|
4142
|
+
"type": "\"start\" | \"center\" | \"end\"",
|
|
4143
|
+
"values": [
|
|
4144
|
+
"start",
|
|
4145
|
+
"center",
|
|
4146
|
+
"end"
|
|
4147
|
+
],
|
|
4148
|
+
"defaultValue": "center",
|
|
4149
|
+
"required": false,
|
|
4150
|
+
"description": "Cross-axis alignment relative to the trigger."
|
|
4151
|
+
},
|
|
4152
|
+
{
|
|
4153
|
+
"name": "sideOffset",
|
|
4154
|
+
"type": "number",
|
|
4155
|
+
"defaultValue": "4",
|
|
4156
|
+
"required": false,
|
|
4157
|
+
"description": "Gap between trigger and content, in px."
|
|
4158
|
+
},
|
|
4159
|
+
{
|
|
4160
|
+
"name": "collisionPadding",
|
|
4161
|
+
"type": "number",
|
|
4162
|
+
"defaultValue": "8",
|
|
4163
|
+
"required": false,
|
|
4164
|
+
"description": "Distance from viewport edges before collision flipping, in px."
|
|
4165
|
+
},
|
|
4166
|
+
{
|
|
4167
|
+
"name": "showArrow",
|
|
4168
|
+
"type": "boolean",
|
|
4169
|
+
"defaultValue": "true",
|
|
4170
|
+
"required": false,
|
|
4171
|
+
"description": "Show the caret arrow pointing at the trigger."
|
|
4172
|
+
},
|
|
4173
|
+
{
|
|
4174
|
+
"name": "level",
|
|
4175
|
+
"type": "\"caption\" | \"text\"",
|
|
4176
|
+
"values": [
|
|
4177
|
+
"caption",
|
|
4178
|
+
"text"
|
|
4179
|
+
],
|
|
4180
|
+
"defaultValue": "caption",
|
|
4181
|
+
"required": false,
|
|
4182
|
+
"description": "Typography level for the content surface (default `caption`)."
|
|
4183
|
+
},
|
|
4184
|
+
{
|
|
4185
|
+
"name": "delayDuration",
|
|
4186
|
+
"type": "number",
|
|
4187
|
+
"defaultValue": "300",
|
|
4188
|
+
"required": false,
|
|
4189
|
+
"description": "Hover open delay on desktop, in ms (ignored on touch).\nDefaults to 300 (`TOOLTIP_DELAY_DURATION`). Pass `0` for instant open on hover.\nRequires a TooltipProvider ancestor for shared delay context."
|
|
4190
|
+
},
|
|
4191
|
+
{
|
|
4192
|
+
"name": "longPressMs",
|
|
4193
|
+
"type": "number",
|
|
4194
|
+
"defaultValue": "500",
|
|
4195
|
+
"required": false,
|
|
4196
|
+
"description": "Hold duration on touch before the tip opens, in ms.\nDefaults to 500 (`RESPONSIVE_TOOLTIP_LONG_PRESS_MS`)."
|
|
4197
|
+
},
|
|
4198
|
+
{
|
|
4199
|
+
"name": "open",
|
|
4200
|
+
"type": "boolean",
|
|
4201
|
+
"required": false,
|
|
4202
|
+
"description": "Controlled open state."
|
|
4203
|
+
},
|
|
4204
|
+
{
|
|
4205
|
+
"name": "defaultOpen",
|
|
4206
|
+
"type": "boolean",
|
|
4207
|
+
"defaultValue": "false",
|
|
4208
|
+
"required": false,
|
|
4209
|
+
"description": "Uncontrolled initial open state."
|
|
4210
|
+
},
|
|
4211
|
+
{
|
|
4212
|
+
"name": "onOpenChange",
|
|
4213
|
+
"type": "(open: boolean) => void",
|
|
4214
|
+
"required": false,
|
|
4215
|
+
"description": "Open-state change callback."
|
|
4216
|
+
},
|
|
4217
|
+
{
|
|
4218
|
+
"name": "contentClassName",
|
|
4219
|
+
"type": "string",
|
|
4220
|
+
"required": false,
|
|
4221
|
+
"description": "Extra class on the inner content surface."
|
|
4222
|
+
}
|
|
4223
|
+
]
|
|
4224
|
+
},
|
|
3944
4225
|
"Loading": {
|
|
3945
4226
|
"displayName": "Loading",
|
|
3946
4227
|
"description": "",
|
|
@@ -3985,7 +4266,6 @@
|
|
|
3985
4266
|
{
|
|
3986
4267
|
"name": "label",
|
|
3987
4268
|
"type": "string",
|
|
3988
|
-
"defaultValue": "Loading",
|
|
3989
4269
|
"required": false,
|
|
3990
4270
|
"description": "Accessible name; omit when decorative (`aria-hidden`)."
|
|
3991
4271
|
}
|
|
@@ -4169,7 +4449,6 @@
|
|
|
4169
4449
|
{
|
|
4170
4450
|
"name": "closeLabel",
|
|
4171
4451
|
"type": "string",
|
|
4172
|
-
"defaultValue": "Remove",
|
|
4173
4452
|
"required": false,
|
|
4174
4453
|
"description": ""
|
|
4175
4454
|
},
|
|
@@ -4300,6 +4579,19 @@
|
|
|
4300
4579
|
"defaultValue": "default",
|
|
4301
4580
|
"required": false,
|
|
4302
4581
|
"description": "Figma `Type` — single thumb vs range (two thumbs)"
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
"name": "showValueTooltip",
|
|
4585
|
+
"type": "boolean",
|
|
4586
|
+
"defaultValue": "false",
|
|
4587
|
+
"required": false,
|
|
4588
|
+
"description": "When true, hovering a thumb (and while dragging it) shows a value\ntooltip bound to that thumb."
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
"name": "formatValueTooltip",
|
|
4592
|
+
"type": "(value: number, index: number) => ReactNode",
|
|
4593
|
+
"required": false,
|
|
4594
|
+
"description": "Format the value tooltip label. Defaults to `String(value)`."
|
|
4303
4595
|
}
|
|
4304
4596
|
]
|
|
4305
4597
|
},
|
|
@@ -4321,14 +4613,12 @@
|
|
|
4321
4613
|
{
|
|
4322
4614
|
"name": "description",
|
|
4323
4615
|
"type": "ReactNode",
|
|
4324
|
-
"defaultValue": "Or click here to upload",
|
|
4325
4616
|
"required": false,
|
|
4326
4617
|
"description": "Secondary line — Large style"
|
|
4327
4618
|
},
|
|
4328
4619
|
{
|
|
4329
4620
|
"name": "label",
|
|
4330
4621
|
"type": "ReactNode",
|
|
4331
|
-
"defaultValue": "Upload",
|
|
4332
4622
|
"required": false,
|
|
4333
4623
|
"description": "Default style button label"
|
|
4334
4624
|
},
|
|
@@ -4732,21 +5022,18 @@
|
|
|
4732
5022
|
{
|
|
4733
5023
|
"name": "jumpLabel",
|
|
4734
5024
|
"type": "ReactNode",
|
|
4735
|
-
"defaultValue": "跳转至",
|
|
4736
5025
|
"required": false,
|
|
4737
5026
|
"description": ""
|
|
4738
5027
|
},
|
|
4739
5028
|
{
|
|
4740
5029
|
"name": "sizeLabel",
|
|
4741
5030
|
"type": "ReactNode",
|
|
4742
|
-
"defaultValue": "每页",
|
|
4743
5031
|
"required": false,
|
|
4744
5032
|
"description": ""
|
|
4745
5033
|
},
|
|
4746
5034
|
{
|
|
4747
5035
|
"name": "sizeOptionLabel",
|
|
4748
5036
|
"type": "(size: number) => ReactNode",
|
|
4749
|
-
"defaultValue": "(size) => `${size} 项`",
|
|
4750
5037
|
"required": false,
|
|
4751
5038
|
"description": ""
|
|
4752
5039
|
}
|
|
@@ -4947,7 +5234,7 @@
|
|
|
4947
5234
|
},
|
|
4948
5235
|
{
|
|
4949
5236
|
"name": "checkboxProps",
|
|
4950
|
-
"type": "Omit<Omit<CheckboxProps & RefAttributes<HTMLButtonElement>, \"ref\"> & { round?: boolean; } & RefAttributes
|
|
5237
|
+
"type": "Omit<Omit<CheckboxProps & RefAttributes<HTMLButtonElement>, \"ref\"> & { round?: boolean; size?: CheckboxSize; } & RefAttributes<...>, \"ref\">",
|
|
4951
5238
|
"required": false,
|
|
4952
5239
|
"description": ""
|
|
4953
5240
|
}
|