@aviala-design/spiral 2.5.0 → 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 +133 -0
- package/dist/index.cjs +2447 -1526
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +298 -24
- package/dist/index.d.ts +298 -24
- package/dist/index.js +2249 -1312
- package/dist/index.js.map +1 -1
- package/dist/props.json +129 -30
- package/dist/styles.css +35 -3
- 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
|
},
|
|
@@ -2066,7 +2127,6 @@
|
|
|
2066
2127
|
{
|
|
2067
2128
|
"name": "placeholder",
|
|
2068
2129
|
"type": "string",
|
|
2069
|
-
"defaultValue": "Text",
|
|
2070
2130
|
"required": false,
|
|
2071
2131
|
"description": ""
|
|
2072
2132
|
},
|
|
@@ -2220,7 +2280,6 @@
|
|
|
2220
2280
|
{
|
|
2221
2281
|
"name": "placeholder",
|
|
2222
2282
|
"type": "string",
|
|
2223
|
-
"defaultValue": "Text",
|
|
2224
2283
|
"required": false,
|
|
2225
2284
|
"description": ""
|
|
2226
2285
|
},
|
|
@@ -2597,7 +2656,6 @@
|
|
|
2597
2656
|
{
|
|
2598
2657
|
"name": "placeholder",
|
|
2599
2658
|
"type": "string",
|
|
2600
|
-
"defaultValue": "Select color",
|
|
2601
2659
|
"required": false,
|
|
2602
2660
|
"description": ""
|
|
2603
2661
|
}
|
|
@@ -3104,7 +3162,7 @@
|
|
|
3104
3162
|
},
|
|
3105
3163
|
{
|
|
3106
3164
|
"displayName": "NavigationItemMenuContent",
|
|
3107
|
-
"description": "Flyout surface —
|
|
3165
|
+
"description": "Flyout surface — forward of the item in vertical (LTR right / RTL left), below it in horizontal.",
|
|
3108
3166
|
"props": [
|
|
3109
3167
|
{
|
|
3110
3168
|
"name": "asChild",
|
|
@@ -3541,7 +3599,7 @@
|
|
|
3541
3599
|
},
|
|
3542
3600
|
"FormField": {
|
|
3543
3601
|
"displayName": "FormField",
|
|
3544
|
-
"description": "",
|
|
3602
|
+
"description": "FormField — layout wrapper around a form control, or a react-hook-form\nbound field when given `name` + `render` (shadcn-style).",
|
|
3545
3603
|
"props": [
|
|
3546
3604
|
{
|
|
3547
3605
|
"name": "label",
|
|
@@ -3565,7 +3623,7 @@
|
|
|
3565
3623
|
"name": "error",
|
|
3566
3624
|
"type": "ReactNode",
|
|
3567
3625
|
"required": false,
|
|
3568
|
-
"description": ""
|
|
3626
|
+
"description": "Overrides the validation error message shown under the control"
|
|
3569
3627
|
},
|
|
3570
3628
|
{
|
|
3571
3629
|
"name": "info",
|
|
@@ -3587,14 +3645,56 @@
|
|
|
3587
3645
|
},
|
|
3588
3646
|
{
|
|
3589
3647
|
"name": "direction",
|
|
3590
|
-
"type": "\"
|
|
3648
|
+
"type": "\"horizontal\" | \"vertical\"",
|
|
3591
3649
|
"values": [
|
|
3592
|
-
"
|
|
3593
|
-
"
|
|
3650
|
+
"horizontal",
|
|
3651
|
+
"vertical"
|
|
3594
3652
|
],
|
|
3595
3653
|
"defaultValue": "vertical",
|
|
3596
3654
|
"required": false,
|
|
3597
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": ""
|
|
3598
3698
|
}
|
|
3599
3699
|
]
|
|
3600
3700
|
},
|
|
@@ -3829,7 +3929,6 @@
|
|
|
3829
3929
|
{
|
|
3830
3930
|
"name": "closeLabel",
|
|
3831
3931
|
"type": "string",
|
|
3832
|
-
"defaultValue": "Close dialog",
|
|
3833
3932
|
"required": false,
|
|
3834
3933
|
"description": ""
|
|
3835
3934
|
}
|
|
@@ -3862,7 +3961,6 @@
|
|
|
3862
3961
|
{
|
|
3863
3962
|
"name": "closeLabel",
|
|
3864
3963
|
"type": "string",
|
|
3865
|
-
"defaultValue": "Close dialog",
|
|
3866
3964
|
"required": false,
|
|
3867
3965
|
"description": ""
|
|
3868
3966
|
},
|
|
@@ -4012,13 +4110,13 @@
|
|
|
4012
4110
|
},
|
|
4013
4111
|
"ResponsiveTooltip": {
|
|
4014
4112
|
"displayName": "ResponsiveTooltip",
|
|
4015
|
-
"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 tap, dismisses
|
|
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.",
|
|
4016
4114
|
"props": [
|
|
4017
4115
|
{
|
|
4018
4116
|
"name": "content",
|
|
4019
4117
|
"type": "ReactNode",
|
|
4020
4118
|
"required": true,
|
|
4021
|
-
"description": "Tooltip body — the same content is shown on desktop (hover) and touch
|
|
4119
|
+
"description": "Tooltip body — the same content is shown on desktop (hover) and touch\n(long-press)."
|
|
4022
4120
|
},
|
|
4023
4121
|
{
|
|
4024
4122
|
"name": "children",
|
|
@@ -4090,6 +4188,13 @@
|
|
|
4090
4188
|
"required": false,
|
|
4091
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."
|
|
4092
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
|
+
},
|
|
4093
4198
|
{
|
|
4094
4199
|
"name": "open",
|
|
4095
4200
|
"type": "boolean",
|
|
@@ -4099,6 +4204,7 @@
|
|
|
4099
4204
|
{
|
|
4100
4205
|
"name": "defaultOpen",
|
|
4101
4206
|
"type": "boolean",
|
|
4207
|
+
"defaultValue": "false",
|
|
4102
4208
|
"required": false,
|
|
4103
4209
|
"description": "Uncontrolled initial open state."
|
|
4104
4210
|
},
|
|
@@ -4160,7 +4266,6 @@
|
|
|
4160
4266
|
{
|
|
4161
4267
|
"name": "label",
|
|
4162
4268
|
"type": "string",
|
|
4163
|
-
"defaultValue": "Loading",
|
|
4164
4269
|
"required": false,
|
|
4165
4270
|
"description": "Accessible name; omit when decorative (`aria-hidden`)."
|
|
4166
4271
|
}
|
|
@@ -4344,7 +4449,6 @@
|
|
|
4344
4449
|
{
|
|
4345
4450
|
"name": "closeLabel",
|
|
4346
4451
|
"type": "string",
|
|
4347
|
-
"defaultValue": "Remove",
|
|
4348
4452
|
"required": false,
|
|
4349
4453
|
"description": ""
|
|
4350
4454
|
},
|
|
@@ -4509,14 +4613,12 @@
|
|
|
4509
4613
|
{
|
|
4510
4614
|
"name": "description",
|
|
4511
4615
|
"type": "ReactNode",
|
|
4512
|
-
"defaultValue": "Or click here to upload",
|
|
4513
4616
|
"required": false,
|
|
4514
4617
|
"description": "Secondary line — Large style"
|
|
4515
4618
|
},
|
|
4516
4619
|
{
|
|
4517
4620
|
"name": "label",
|
|
4518
4621
|
"type": "ReactNode",
|
|
4519
|
-
"defaultValue": "Upload",
|
|
4520
4622
|
"required": false,
|
|
4521
4623
|
"description": "Default style button label"
|
|
4522
4624
|
},
|
|
@@ -4920,21 +5022,18 @@
|
|
|
4920
5022
|
{
|
|
4921
5023
|
"name": "jumpLabel",
|
|
4922
5024
|
"type": "ReactNode",
|
|
4923
|
-
"defaultValue": "跳转至",
|
|
4924
5025
|
"required": false,
|
|
4925
5026
|
"description": ""
|
|
4926
5027
|
},
|
|
4927
5028
|
{
|
|
4928
5029
|
"name": "sizeLabel",
|
|
4929
5030
|
"type": "ReactNode",
|
|
4930
|
-
"defaultValue": "每页",
|
|
4931
5031
|
"required": false,
|
|
4932
5032
|
"description": ""
|
|
4933
5033
|
},
|
|
4934
5034
|
{
|
|
4935
5035
|
"name": "sizeOptionLabel",
|
|
4936
5036
|
"type": "(size: number) => ReactNode",
|
|
4937
|
-
"defaultValue": "(size) => `${size} 项`",
|
|
4938
5037
|
"required": false,
|
|
4939
5038
|
"description": ""
|
|
4940
5039
|
}
|
package/dist/styles.css
CHANGED
|
@@ -227,6 +227,13 @@
|
|
|
227
227
|
/* noBackgroundCustom — neutral-4 hover, neutral-5 press */
|
|
228
228
|
--button-no-bg-custom-hover: var(--aviala-neutral-neutral-4, #faf8f8);
|
|
229
229
|
--button-no-bg-custom-active: var(--aviala-neutral-neutral-5, #f5f3f3);
|
|
230
|
+
/* outline / outlineCustom — Figma Mode=Outline(-Custom); 1px outside stroke */
|
|
231
|
+
--button-outline-border: var(--border-border-normal-primary, #e2e0e0);
|
|
232
|
+
--button-outline-fg: var(
|
|
233
|
+
--text-text-theme-primary-black,
|
|
234
|
+
var(--aviala-primary-primary-10, #bf2300)
|
|
235
|
+
);
|
|
236
|
+
--button-outline-custom-fg: var(--text-text-normal-text-black, #343333);
|
|
230
237
|
--button-icon-size: var(--icon-size-text-bigger, var(--size-middle, 1rem));
|
|
231
238
|
--button-icon-slot-height: var(--line-height-regular, 1.125rem);
|
|
232
239
|
|
|
@@ -539,8 +546,7 @@
|
|
|
539
546
|
--color-picker-swatch-input: 18px;
|
|
540
547
|
--color-picker-swatch-button: 26px;
|
|
541
548
|
--color-picker-swatch-button-size: 32px;
|
|
542
|
-
--color-picker-slider-height:
|
|
543
|
-
--color-picker-slider-thumb: 10px;
|
|
549
|
+
--color-picker-slider-height: 16px;
|
|
544
550
|
--color-picker-panel-bg: var(--select-menu-bg);
|
|
545
551
|
--color-picker-panel-border: var(--select-menu-border);
|
|
546
552
|
--color-picker-panel-radius: var(--select-menu-radius);
|
|
@@ -685,6 +691,32 @@
|
|
|
685
691
|
--list-item-disabled-opacity: var(--input-disabled-opacity, 0.55);
|
|
686
692
|
--list-separator-my: var(--list-gap);
|
|
687
693
|
|
|
694
|
+
/* Tab — Figma Structure Navigation → Tab / TabItem */
|
|
695
|
+
--tab-gap: var(--gap-inside, 4px);
|
|
696
|
+
--tab-px: var(--padding-default, 8px);
|
|
697
|
+
--tab-list-gap: var(--gap-inside-space, 6px);
|
|
698
|
+
--tab-list-gap-card: 0px;
|
|
699
|
+
--tab-slot-gap: var(--gap-component-space, 8px);
|
|
700
|
+
--tab-item-indicator-space: var(--padding-small, 6px);
|
|
701
|
+
--tab-item-control-gap: var(--gap-inside, 4px);
|
|
702
|
+
--tab-item-control-radius: var(--border-radius-small, 8px);
|
|
703
|
+
--tab-icon-box: 18px;
|
|
704
|
+
--tab-icon-size: var(--icon-size-text-bigger, var(--size-middle, 1rem));
|
|
705
|
+
--tab-fg: var(--text-text-normal-text-black, #343333);
|
|
706
|
+
--tab-bg: var(--box-box-normal-background-whiteonly, #fefcfc);
|
|
707
|
+
--tab-bg-card: var(--control-control-normal-lightbackground-light, #f5f3f3);
|
|
708
|
+
--tab-card-active-bg: var(--box-box-normal-background-whiteonly, #fefcfc);
|
|
709
|
+
--tab-card-ear-size: 8px;
|
|
710
|
+
--tab-indicator-height: 4px;
|
|
711
|
+
--tab-indicator-inset-inline: 12px;
|
|
712
|
+
--tab-indicator-radius: var(--border-radius-extra-small-2, 6px);
|
|
713
|
+
--tab-indicator-color: var(--border-border-theme-primary, #ff856b);
|
|
714
|
+
--tab-transition-duration: var(--navigation-transition-duration, 0.3s);
|
|
715
|
+
--tab-transition-easing: var(
|
|
716
|
+
--navigation-transition-easing,
|
|
717
|
+
cubic-bezier(0.16, 1, 0.3, 1)
|
|
718
|
+
);
|
|
719
|
+
|
|
688
720
|
--navigation-bg: var(--box-box-normal-background-whiteonly, #fefcfc);
|
|
689
721
|
--navigation-gap: var(--gap-content-space, 10px);
|
|
690
722
|
--navigation-py: var(--padding-big, 14px);
|
|
@@ -710,7 +742,7 @@
|
|
|
710
742
|
/* Vertical active rail: grow on hover / shrink on press (inset from item edges). */
|
|
711
743
|
--navigation-rail-inset-hover: 3px;
|
|
712
744
|
--navigation-rail-inset-press: 9px;
|
|
713
|
-
--navigation-rail-
|
|
745
|
+
--navigation-rail-inline-start: 1px;
|
|
714
746
|
--navigation-rail-width: 3px;
|
|
715
747
|
--navigation-indicator-width-horizontal: 50px;
|
|
716
748
|
--navigation-transition-duration: var(--switch-transition-duration, 0.3s);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aviala-design/spiral",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Spiral 2 ? Aviala Design React component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,19 +45,23 @@
|
|
|
45
45
|
"colord": "^2.9.3",
|
|
46
46
|
"tailwind-merge": "^3.3.1",
|
|
47
47
|
"@aviala-design/icons": "2.2.0",
|
|
48
|
-
"@aviala-design/tokens": "2.
|
|
48
|
+
"@aviala-design/tokens": "2.4.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=18",
|
|
52
|
-
"react-dom": ">=18"
|
|
52
|
+
"react-dom": ">=18",
|
|
53
|
+
"react-hook-form": ">=7.50"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
56
|
+
"@hookform/resolvers": "^5.2.1",
|
|
55
57
|
"@types/react": "^19.1.8",
|
|
58
|
+
"react-hook-form": "^7.62.0",
|
|
56
59
|
"@types/react-dom": "^19.1.6",
|
|
57
60
|
"react-docgen-typescript": "^2.2.20",
|
|
58
61
|
"rimraf": "^6.0.1",
|
|
59
62
|
"tsup": "^8.5.0",
|
|
60
|
-
"typescript": "^5.8.3"
|
|
63
|
+
"typescript": "^5.8.3",
|
|
64
|
+
"zod": "^4.0.17"
|
|
61
65
|
},
|
|
62
66
|
"scripts": {
|
|
63
67
|
"build": "tsup && node scripts/copy-css.mjs && node scripts/generate-props.mjs && node scripts/aggregate-changelogs.mjs",
|