@aviala-design/spiral 2.7.2 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component-changelogs.json +140 -0
- package/dist/index.cjs +2704 -1262
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +150 -4
- package/dist/index.d.ts +150 -4
- package/dist/index.js +2455 -993
- package/dist/index.js.map +1 -1
- package/dist/props.json +162 -0
- package/dist/styles.css +48 -5
- package/package.json +6 -4
package/dist/props.json
CHANGED
|
@@ -4651,6 +4651,168 @@
|
|
|
4651
4651
|
}
|
|
4652
4652
|
]
|
|
4653
4653
|
},
|
|
4654
|
+
"Video": {
|
|
4655
|
+
"displayName": "Video",
|
|
4656
|
+
"description": "",
|
|
4657
|
+
"props": [
|
|
4658
|
+
{
|
|
4659
|
+
"name": "appearance",
|
|
4660
|
+
"type": "\"default\" | \"light\"",
|
|
4661
|
+
"values": [
|
|
4662
|
+
"default",
|
|
4663
|
+
"light"
|
|
4664
|
+
],
|
|
4665
|
+
"defaultValue": "default",
|
|
4666
|
+
"required": false,
|
|
4667
|
+
"description": "Figma `Style` — Default stacks the bar; Light floats a pill bar over the stage."
|
|
4668
|
+
},
|
|
4669
|
+
{
|
|
4670
|
+
"name": "skipSeconds",
|
|
4671
|
+
"type": "number",
|
|
4672
|
+
"defaultValue": "10",
|
|
4673
|
+
"required": false,
|
|
4674
|
+
"description": "Seconds to skip when Previous / Next have no playlist handlers."
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
"name": "playbackRates",
|
|
4678
|
+
"type": "number[]",
|
|
4679
|
+
"defaultValue": "[...DEFAULT_PLAYBACK_RATES]",
|
|
4680
|
+
"required": false,
|
|
4681
|
+
"description": "Available playback rates in the speed popover."
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
"name": "muted",
|
|
4685
|
+
"type": "boolean",
|
|
4686
|
+
"required": false,
|
|
4687
|
+
"description": ""
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
"name": "defaultMuted",
|
|
4691
|
+
"type": "boolean",
|
|
4692
|
+
"required": false,
|
|
4693
|
+
"description": ""
|
|
4694
|
+
},
|
|
4695
|
+
{
|
|
4696
|
+
"name": "onMutedChange",
|
|
4697
|
+
"type": "(muted: boolean) => void",
|
|
4698
|
+
"required": false,
|
|
4699
|
+
"description": ""
|
|
4700
|
+
},
|
|
4701
|
+
{
|
|
4702
|
+
"name": "playbackRate",
|
|
4703
|
+
"type": "number",
|
|
4704
|
+
"required": false,
|
|
4705
|
+
"description": ""
|
|
4706
|
+
},
|
|
4707
|
+
{
|
|
4708
|
+
"name": "defaultPlaybackRate",
|
|
4709
|
+
"type": "number",
|
|
4710
|
+
"required": false,
|
|
4711
|
+
"description": ""
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
"name": "onPlaybackRateChange",
|
|
4715
|
+
"type": "(rate: number) => void",
|
|
4716
|
+
"required": false,
|
|
4717
|
+
"description": ""
|
|
4718
|
+
},
|
|
4719
|
+
{
|
|
4720
|
+
"name": "objectFit",
|
|
4721
|
+
"type": "\"fill\" | \"original\" | \"stretch\"",
|
|
4722
|
+
"values": [
|
|
4723
|
+
"fill",
|
|
4724
|
+
"original",
|
|
4725
|
+
"stretch"
|
|
4726
|
+
],
|
|
4727
|
+
"required": false,
|
|
4728
|
+
"description": "Figma 画面比例 — original→contain, stretch→fill, fill→cover."
|
|
4729
|
+
},
|
|
4730
|
+
{
|
|
4731
|
+
"name": "defaultObjectFit",
|
|
4732
|
+
"type": "\"fill\" | \"original\" | \"stretch\"",
|
|
4733
|
+
"values": [
|
|
4734
|
+
"fill",
|
|
4735
|
+
"original",
|
|
4736
|
+
"stretch"
|
|
4737
|
+
],
|
|
4738
|
+
"required": false,
|
|
4739
|
+
"description": ""
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
"name": "onObjectFitChange",
|
|
4743
|
+
"type": "(fit: VideoObjectFit) => void",
|
|
4744
|
+
"required": false,
|
|
4745
|
+
"description": ""
|
|
4746
|
+
},
|
|
4747
|
+
{
|
|
4748
|
+
"name": "volumeBalance",
|
|
4749
|
+
"type": "boolean",
|
|
4750
|
+
"required": false,
|
|
4751
|
+
"description": "Lightweight loudness balance via Web Audio DynamicsCompressor."
|
|
4752
|
+
},
|
|
4753
|
+
{
|
|
4754
|
+
"name": "defaultVolumeBalance",
|
|
4755
|
+
"type": "boolean",
|
|
4756
|
+
"required": false,
|
|
4757
|
+
"description": ""
|
|
4758
|
+
},
|
|
4759
|
+
{
|
|
4760
|
+
"name": "onVolumeBalanceChange",
|
|
4761
|
+
"type": "(enabled: boolean) => void",
|
|
4762
|
+
"required": false,
|
|
4763
|
+
"description": ""
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
"name": "volume",
|
|
4767
|
+
"type": "number",
|
|
4768
|
+
"required": false,
|
|
4769
|
+
"description": "Linear gain 0–1 (`HTMLMediaElement.volume`)."
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
"name": "defaultVolume",
|
|
4773
|
+
"type": "number",
|
|
4774
|
+
"required": false,
|
|
4775
|
+
"description": ""
|
|
4776
|
+
},
|
|
4777
|
+
{
|
|
4778
|
+
"name": "onVolumeChange",
|
|
4779
|
+
"type": "(volume: number) => void",
|
|
4780
|
+
"required": false,
|
|
4781
|
+
"description": ""
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"name": "onPrevious",
|
|
4785
|
+
"type": "() => void",
|
|
4786
|
+
"required": false,
|
|
4787
|
+
"description": "Override Previous (default: seek back `skipSeconds`)."
|
|
4788
|
+
},
|
|
4789
|
+
{
|
|
4790
|
+
"name": "onNext",
|
|
4791
|
+
"type": "() => void",
|
|
4792
|
+
"required": false,
|
|
4793
|
+
"description": "Override Next (default: seek forward `skipSeconds`)."
|
|
4794
|
+
},
|
|
4795
|
+
{
|
|
4796
|
+
"name": "stageBackground",
|
|
4797
|
+
"type": "string",
|
|
4798
|
+
"required": false,
|
|
4799
|
+
"description": "Letterbox / pillarbox fill behind the media.\nCSS color value — prefer a token, e.g. `var(--box-box-normal-background-blackonly)`.\nDefaults to Black (`--box-box-normal-background-blackonly`)."
|
|
4800
|
+
},
|
|
4801
|
+
{
|
|
4802
|
+
"name": "autoHideControls",
|
|
4803
|
+
"type": "boolean",
|
|
4804
|
+
"defaultValue": "false",
|
|
4805
|
+
"required": false,
|
|
4806
|
+
"description": "Auto-hide the control bar after idle (slide down + fade).\nPointer move / press on the player reveals it again."
|
|
4807
|
+
},
|
|
4808
|
+
{
|
|
4809
|
+
"name": "autoHideDelay",
|
|
4810
|
+
"type": "number",
|
|
4811
|
+
"required": false,
|
|
4812
|
+
"description": "Idle time in ms before hiding when `autoHideControls` is on. Default 2500."
|
|
4813
|
+
}
|
|
4814
|
+
]
|
|
4815
|
+
},
|
|
4654
4816
|
"ScrollPicker": {
|
|
4655
4817
|
"displayName": "ScrollPicker",
|
|
4656
4818
|
"description": "",
|
package/dist/styles.css
CHANGED
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
--control-control-normal-lightbackground-2: #e5e4e3;
|
|
132
132
|
--control-control-normal-background-3: #d6d5d4;
|
|
133
133
|
--control-control-normal-background-whiteonly: #ffffff;
|
|
134
|
+
--box-box-normal-background-whiteonly: #ffffff;
|
|
135
|
+
--box-box-normal-background-blackonly: #000000;
|
|
136
|
+
--box-box-normal-lightbackground-white: #f9f8f8;
|
|
137
|
+
--box-box-normal-lightbackground-black: #262525;
|
|
134
138
|
|
|
135
139
|
/* Neutral text series (body copy, labels, icons) */
|
|
136
140
|
--text-text-normal-text-black: #262525;
|
|
@@ -502,10 +506,14 @@
|
|
|
502
506
|
--switch-thumb-travel-small: calc(
|
|
503
507
|
var(--switch-width) - 2 * var(--switch-padding) - var(--switch-thumb-size-small)
|
|
504
508
|
);
|
|
505
|
-
--switch-transition-duration: 0.
|
|
506
|
-
--switch-
|
|
507
|
-
--switch-
|
|
508
|
-
--switch-thumb-
|
|
509
|
+
--switch-transition-duration: 0.26s;
|
|
510
|
+
--switch-thumb-lead-ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
511
|
+
--switch-thumb-trail-ease: cubic-bezier(0.35, 0, 0.15, 1);
|
|
512
|
+
--switch-transition-easing: var(--switch-thumb-lead-ease, cubic-bezier(0.16, 1, 0.3, 1));
|
|
513
|
+
--switch-press-transition-duration: 0.12s;
|
|
514
|
+
--switch-press-transition-easing: cubic-bezier(0.2, 0, 0.2, 1);
|
|
515
|
+
--switch-track-transition-duration: 0.22s;
|
|
516
|
+
--switch-thumb-press-scale: 1.2;
|
|
509
517
|
--switch-disabled-opacity: 0.55;
|
|
510
518
|
|
|
511
519
|
--link-fg-theme: var(--text-text-theme-primary-black, var(--button-no-bg-fg));
|
|
@@ -797,7 +805,8 @@
|
|
|
797
805
|
--navigation-rail-inline-start: 1px;
|
|
798
806
|
--navigation-rail-width: 3px;
|
|
799
807
|
--navigation-indicator-width-horizontal: 50px;
|
|
800
|
-
|
|
808
|
+
/* Keep Navigation timing independent of Switch micro-interaction tokens. */
|
|
809
|
+
--navigation-transition-duration: 0.3s;
|
|
801
810
|
/* Snappy ease-out: most travel happens early, then settles hard. */
|
|
802
811
|
--navigation-transition-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
803
812
|
--navigation-icon-box: var(--line-height-regular, 1.125rem);
|
|
@@ -1039,6 +1048,40 @@
|
|
|
1039
1048
|
--card-fg: var(--text-text-normal-text-black, #262525);
|
|
1040
1049
|
--card-divider-height: 14px;
|
|
1041
1050
|
--card-trailing-gap: 10px;
|
|
1051
|
+
|
|
1052
|
+
/* Video — Figma Information Display → Video (1958:1400) */
|
|
1053
|
+
--video-width: 800px;
|
|
1054
|
+
--video-height: 450px;
|
|
1055
|
+
--video-radius: var(--border-radius-big, 12px);
|
|
1056
|
+
--video-bg: var(--normal-background-theme, var(--box-box-normal-lightbackground-white, #f9f8f8));
|
|
1057
|
+
--video-border: var(--border-border-normal-1, #f9f8f8);
|
|
1058
|
+
--video-bar-height: 46px;
|
|
1059
|
+
--video-bar-padding: var(--padding-default, 8px);
|
|
1060
|
+
--video-bar-gap: var(--gap-component-space, 8px);
|
|
1061
|
+
--video-bar-group-gap: var(--gap-inside, 4px);
|
|
1062
|
+
--video-bar-progress-gap: 10px;
|
|
1063
|
+
--video-bar-bg: var(--control-control-normal-lightbackground-1, #f0efef);
|
|
1064
|
+
--video-bar-light-inset: var(--padding-big, 14px);
|
|
1065
|
+
--video-bar-light-radius: var(--border-radius-allround, 99px);
|
|
1066
|
+
--video-bar-light-shadow: var(--aviala-shadow-level4-with-line);
|
|
1067
|
+
/* Light floating bar — frosted material over <video> (Figma fill luminosity ≈ glass) */
|
|
1068
|
+
--video-bar-light-blur: 24px;
|
|
1069
|
+
--video-bar-light-bg: color-mix(
|
|
1070
|
+
in srgb,
|
|
1071
|
+
var(--video-bar-bg, var(--control-control-normal-lightbackground-1, #f0efef)) 72%,
|
|
1072
|
+
transparent
|
|
1073
|
+
);
|
|
1074
|
+
--video-settings-width: 200px;
|
|
1075
|
+
--video-settings-gap: var(--gap-component-space, 8px);
|
|
1076
|
+
--video-settings-row-gap: var(--gap-inside-space, 6px);
|
|
1077
|
+
--video-settings-padding: var(--padding-middle, 10px);
|
|
1078
|
+
--video-speed-min-width: 48px;
|
|
1079
|
+
--video-speed-item-width: 160px;
|
|
1080
|
+
--video-volume-slider-size: 96px;
|
|
1081
|
+
/* Letterbox / pillarbox behind media — ALD box-normal-Background-blackOnly */
|
|
1082
|
+
--video-stage-bg: var(--box-box-normal-background-blackonly, #000000);
|
|
1083
|
+
--video-controls-hide-duration: 0.28s;
|
|
1084
|
+
--video-controls-hide-easing: cubic-bezier(0.33, 1, 0.68, 1);
|
|
1042
1085
|
}
|
|
1043
1086
|
|
|
1044
1087
|
@theme inline {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aviala-design/spiral",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Spiral 2 ? Aviala Design React component library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"colord": "^2.9.3",
|
|
46
46
|
"tailwind-merge": "^3.3.1",
|
|
47
|
-
"@aviala-design/icons": "2.
|
|
48
|
-
"@aviala-design/tokens": "2.5.
|
|
47
|
+
"@aviala-design/icons": "2.4.0",
|
|
48
|
+
"@aviala-design/tokens": "2.5.4"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=18",
|
|
@@ -55,12 +55,13 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@hookform/resolvers": "^5.2.1",
|
|
57
57
|
"@types/react": "^19.1.8",
|
|
58
|
-
"react-hook-form": "^7.62.0",
|
|
59
58
|
"@types/react-dom": "^19.1.6",
|
|
60
59
|
"react-docgen-typescript": "^2.2.20",
|
|
60
|
+
"react-hook-form": "^7.62.0",
|
|
61
61
|
"rimraf": "^6.0.1",
|
|
62
62
|
"tsup": "^8.5.0",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
|
+
"vitest": "^4.1.11",
|
|
64
65
|
"zod": "^4.0.17"
|
|
65
66
|
},
|
|
66
67
|
"scripts": {
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"changelog:aggregate": "node scripts/aggregate-changelogs.mjs",
|
|
70
71
|
"changelog:stamp": "node scripts/stamp-unreleased.mjs",
|
|
71
72
|
"dev": "tsup --watch",
|
|
73
|
+
"test": "vitest run",
|
|
72
74
|
"typecheck": "tsc --noEmit",
|
|
73
75
|
"clean": "rimraf dist"
|
|
74
76
|
}
|