@ziyarago/ui 0.1.1 → 0.3.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/CHANGELOG.md +12 -0
- package/README.md +1 -0
- package/dist/llms-full.txt +100 -8
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +412 -20
- package/dist/style.css +73 -4
- package/docs/INTEGRATION.md +153 -0
- package/docs/MIGRATION.md +453 -0
- package/package.json +87 -7
- package/src/compat/index.js +468 -0
- package/src/compat/map.js +282 -0
- package/src/compat/resolver.js +22 -0
- package/src/compat/vite.js +29 -0
- package/src/core/bools.js +4 -0
- package/src/core/components.js +31 -23
- package/src/core/components2.js +20 -16
- package/src/core/components4.js +3 -3
- package/src/core/components6.js +25 -16
- package/src/core/index.js +2 -0
- package/src/i18n/components/CopyButton.js +3 -0
- package/src/i18n/components/index.js +5 -0
- package/src/i18n/index.js +48 -0
- package/src/meta/actions.js +10 -3
- package/src/meta/data.js +8 -3
- package/src/meta/feedback.js +2 -1
- package/src/meta/forms.js +44 -4
- package/src/meta/media.js +7 -2
- package/src/meta/navigation.js +3 -0
- package/src/meta/overlay.js +8 -2
- package/src/nuxt/module.mjs +2 -2
- package/src/nuxt/plugin.mjs +6 -5
- package/src/react/index.js +202 -8
- package/src/resolver.js +33 -0
- package/src/styles/components.css +7 -0
- package/src/styles/components6.css +2 -0
- package/src/styles/effects.css +6 -4
- package/src/styles/extras.css +55 -0
- package/src/styles/index.css +1 -0
- package/src/theme.js +16 -4
- package/src/vue/global.js +2 -0
- package/src/vue/index.js +13 -5
- package/types/compat-resolver.d.ts +12 -0
- package/types/compat-vite.d.ts +11 -0
- package/types/compat.d.ts +176 -0
- package/types/i18n.d.ts +12 -0
- package/types/meta.d.ts +4 -0
- package/types/nuxt.d.ts +1 -1
- package/types/react.d.ts +6282 -186
- package/types/resolver.d.ts +14 -0
- package/types/shared.d.ts +7 -7
- package/types/theme.d.ts +20 -1
- package/types/vue-global.d.ts +193 -0
- package/types/vue.d.ts +6178 -186
package/dist/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ziyarago/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"homepage": "https://ziyara.vip",
|
|
5
5
|
"imports": {
|
|
6
6
|
"vue": "import { UiButton } from '@ziyarago/ui/vue'",
|
|
@@ -3436,6 +3436,25 @@
|
|
|
3436
3436
|
"type": "boolean",
|
|
3437
3437
|
"default": false,
|
|
3438
3438
|
"description": "Stretches the button to the full width of its container."
|
|
3439
|
+
},
|
|
3440
|
+
"type": {
|
|
3441
|
+
"type": "'button' | 'submit' | 'reset'",
|
|
3442
|
+
"values": [
|
|
3443
|
+
"button",
|
|
3444
|
+
"submit",
|
|
3445
|
+
"reset"
|
|
3446
|
+
],
|
|
3447
|
+
"default": "button",
|
|
3448
|
+
"description": "Native button type. Use submit inside a form."
|
|
3449
|
+
},
|
|
3450
|
+
"iconOnly": {
|
|
3451
|
+
"type": "boolean",
|
|
3452
|
+
"default": false,
|
|
3453
|
+
"description": "Square button (width equals height) with no horizontal padding, for a lone icon. Pass an aria-label."
|
|
3454
|
+
},
|
|
3455
|
+
"title": {
|
|
3456
|
+
"type": "string",
|
|
3457
|
+
"description": "Native tooltip text."
|
|
3439
3458
|
}
|
|
3440
3459
|
},
|
|
3441
3460
|
"events": {
|
|
@@ -3445,7 +3464,7 @@
|
|
|
3445
3464
|
"default": "Button label."
|
|
3446
3465
|
},
|
|
3447
3466
|
"notes": [
|
|
3448
|
-
"
|
|
3467
|
+
"Renders type=\"button\" unless type is set, so it never submits a form by itself."
|
|
3449
3468
|
]
|
|
3450
3469
|
},
|
|
3451
3470
|
{
|
|
@@ -3663,10 +3682,10 @@
|
|
|
3663
3682
|
"description": "Segmented switch for choosing exactly one of a few options.",
|
|
3664
3683
|
"props": {
|
|
3665
3684
|
"items": {
|
|
3666
|
-
"type": "{ value: string; label: string }[]",
|
|
3685
|
+
"type": "{ value: string; label: string; icon?: string; disabled?: boolean }[]",
|
|
3667
3686
|
"default": "[]",
|
|
3668
3687
|
"required": true,
|
|
3669
|
-
"description": "Segments to render."
|
|
3688
|
+
"description": "Segments to render. icon is an icon name; disabled: true dims one segment."
|
|
3670
3689
|
},
|
|
3671
3690
|
"modelValue": {
|
|
3672
3691
|
"type": "string",
|
|
@@ -3684,6 +3703,20 @@
|
|
|
3684
3703
|
],
|
|
3685
3704
|
"default": "md",
|
|
3686
3705
|
"description": "Control size. sm and md also have a dedicated compact style."
|
|
3706
|
+
},
|
|
3707
|
+
"block": {
|
|
3708
|
+
"type": "boolean",
|
|
3709
|
+
"default": false,
|
|
3710
|
+
"description": "Stretches the control to the container width with equal-width segments."
|
|
3711
|
+
},
|
|
3712
|
+
"iconOnly": {
|
|
3713
|
+
"type": "boolean",
|
|
3714
|
+
"default": false,
|
|
3715
|
+
"description": "Hides labels of segments that have an icon; the label stays as tooltip and aria-label."
|
|
3716
|
+
},
|
|
3717
|
+
"ariaLabel": {
|
|
3718
|
+
"type": "string",
|
|
3719
|
+
"description": "Accessible name of the group."
|
|
3687
3720
|
}
|
|
3688
3721
|
},
|
|
3689
3722
|
"events": {
|
|
@@ -3822,21 +3855,31 @@
|
|
|
3822
3855
|
"description": "Status badge with a colored tone and optional dot.",
|
|
3823
3856
|
"props": {
|
|
3824
3857
|
"tone": {
|
|
3825
|
-
"type": "'brand' | 'success' | 'warning' | 'danger' | 'info'",
|
|
3858
|
+
"type": "'brand' | 'success' | 'warning' | 'danger' | 'info' | 'inverse'",
|
|
3826
3859
|
"values": [
|
|
3827
3860
|
"brand",
|
|
3828
3861
|
"success",
|
|
3829
3862
|
"warning",
|
|
3830
3863
|
"danger",
|
|
3831
|
-
"info"
|
|
3864
|
+
"info",
|
|
3865
|
+
"inverse"
|
|
3832
3866
|
],
|
|
3833
|
-
"description": "Color. Omit for the neutral style."
|
|
3867
|
+
"description": "Color. inverse is a solid high-contrast badge (dark on light themes, light on dark). Omit for the neutral style."
|
|
3834
3868
|
},
|
|
3835
3869
|
"dot": {
|
|
3836
3870
|
"type": "boolean",
|
|
3837
3871
|
"default": false,
|
|
3838
3872
|
"description": "Shows a status dot before the content."
|
|
3839
3873
|
},
|
|
3874
|
+
"shape": {
|
|
3875
|
+
"type": "'pill' | 'square'",
|
|
3876
|
+
"values": [
|
|
3877
|
+
"pill",
|
|
3878
|
+
"square"
|
|
3879
|
+
],
|
|
3880
|
+
"default": "pill",
|
|
3881
|
+
"description": "square uses small rounded corners instead of a full pill."
|
|
3882
|
+
},
|
|
3840
3883
|
"size": {
|
|
3841
3884
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
3842
3885
|
"values": [
|
|
@@ -4048,6 +4091,71 @@
|
|
|
4048
4091
|
"default": false,
|
|
4049
4092
|
"description": "Makes the input read-only."
|
|
4050
4093
|
},
|
|
4094
|
+
"required": {
|
|
4095
|
+
"type": "boolean",
|
|
4096
|
+
"default": false,
|
|
4097
|
+
"description": "Adds a red asterisk to the label and the native required attribute (browser validation inside a form)."
|
|
4098
|
+
},
|
|
4099
|
+
"name": {
|
|
4100
|
+
"type": "string",
|
|
4101
|
+
"forwarded": true,
|
|
4102
|
+
"description": "Native name attribute of the input."
|
|
4103
|
+
},
|
|
4104
|
+
"autocomplete": {
|
|
4105
|
+
"type": "string",
|
|
4106
|
+
"forwarded": true,
|
|
4107
|
+
"description": "Native autocomplete hint, for example \"email\" or \"new-password\"."
|
|
4108
|
+
},
|
|
4109
|
+
"min": {
|
|
4110
|
+
"type": "number | string",
|
|
4111
|
+
"forwarded": true,
|
|
4112
|
+
"description": "Native min for number, date and time types."
|
|
4113
|
+
},
|
|
4114
|
+
"max": {
|
|
4115
|
+
"type": "number | string",
|
|
4116
|
+
"forwarded": true,
|
|
4117
|
+
"description": "Native max for number, date and time types."
|
|
4118
|
+
},
|
|
4119
|
+
"step": {
|
|
4120
|
+
"type": "number | string",
|
|
4121
|
+
"forwarded": true,
|
|
4122
|
+
"description": "Native step for number, date and time types."
|
|
4123
|
+
},
|
|
4124
|
+
"maxlength": {
|
|
4125
|
+
"type": "number",
|
|
4126
|
+
"forwarded": true,
|
|
4127
|
+
"description": "Maximum number of characters."
|
|
4128
|
+
},
|
|
4129
|
+
"minlength": {
|
|
4130
|
+
"type": "number",
|
|
4131
|
+
"forwarded": true,
|
|
4132
|
+
"description": "Minimum number of characters (native validation)."
|
|
4133
|
+
},
|
|
4134
|
+
"inputmode": {
|
|
4135
|
+
"type": "string",
|
|
4136
|
+
"forwarded": true,
|
|
4137
|
+
"description": "Virtual keyboard hint: numeric, decimal, tel, email, url, search or none."
|
|
4138
|
+
},
|
|
4139
|
+
"pattern": {
|
|
4140
|
+
"type": "string",
|
|
4141
|
+
"forwarded": true,
|
|
4142
|
+
"description": "Native validation pattern."
|
|
4143
|
+
},
|
|
4144
|
+
"spellcheck": {
|
|
4145
|
+
"type": "boolean",
|
|
4146
|
+
"forwarded": true,
|
|
4147
|
+
"description": "Enables or disables spell checking."
|
|
4148
|
+
},
|
|
4149
|
+
"autofocus": {
|
|
4150
|
+
"type": "boolean",
|
|
4151
|
+
"forwarded": true,
|
|
4152
|
+
"description": "Focuses the input on mount."
|
|
4153
|
+
},
|
|
4154
|
+
"autocapitalize": {
|
|
4155
|
+
"type": "string",
|
|
4156
|
+
"forwarded": true,
|
|
4157
|
+
"description": "Native autocapitalize hint."
|
|
4158
|
+
},
|
|
4051
4159
|
"size": {
|
|
4052
4160
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
4053
4161
|
"values": [
|
|
@@ -4062,10 +4170,19 @@
|
|
|
4062
4170
|
}
|
|
4063
4171
|
},
|
|
4064
4172
|
"events": {
|
|
4065
|
-
"change": "Called with the new string on every keystroke."
|
|
4173
|
+
"change": "Called with the new string on every keystroke.",
|
|
4174
|
+
"blur": "Native blur of the input (Vue @blur, React onBlur).",
|
|
4175
|
+
"focus": "Native focus of the input.",
|
|
4176
|
+
"keydown": "Native keydown of the input; modifiers like @keydown.enter work in Vue.",
|
|
4177
|
+
"input": "Native input event (after change), receives the Event."
|
|
4178
|
+
},
|
|
4179
|
+
"slots": {
|
|
4180
|
+
"prefix": "Content before the input (icon or text). Replaces the icon prop. React: prefix prop.",
|
|
4181
|
+
"suffix": "Content after the input (button, unit). Same as the suffix prop. React: suffix prop."
|
|
4066
4182
|
},
|
|
4067
4183
|
"notes": [
|
|
4068
|
-
"Wrapped in a label, so clicking the label focuses the input."
|
|
4184
|
+
"Wrapped in a label, so clicking the label focuses the input.",
|
|
4185
|
+
"Native attributes (name, autocomplete, min, max, step, maxlength, inputmode, pattern ...) and the blur, focus, keydown, keyup and paste listeners are forwarded to the inner input. id, class, style, aria-* and data-* land on the root label."
|
|
4069
4186
|
]
|
|
4070
4187
|
},
|
|
4071
4188
|
{
|
|
@@ -4113,6 +4230,37 @@
|
|
|
4113
4230
|
"type": "number",
|
|
4114
4231
|
"description": "Maximum number of characters."
|
|
4115
4232
|
},
|
|
4233
|
+
"readonly": {
|
|
4234
|
+
"type": "boolean",
|
|
4235
|
+
"default": false,
|
|
4236
|
+
"description": "Makes the textarea read-only."
|
|
4237
|
+
},
|
|
4238
|
+
"required": {
|
|
4239
|
+
"type": "boolean",
|
|
4240
|
+
"default": false,
|
|
4241
|
+
"forwarded": true,
|
|
4242
|
+
"description": "Adds a red asterisk to the label and the native required attribute."
|
|
4243
|
+
},
|
|
4244
|
+
"autoResize": {
|
|
4245
|
+
"type": "boolean",
|
|
4246
|
+
"default": false,
|
|
4247
|
+
"description": "Grows with the content (CSS field-sizing: content, Chromium and Safari)."
|
|
4248
|
+
},
|
|
4249
|
+
"resize": {
|
|
4250
|
+
"type": "boolean",
|
|
4251
|
+
"default": true,
|
|
4252
|
+
"description": "false removes the manual resize handle."
|
|
4253
|
+
},
|
|
4254
|
+
"showCount": {
|
|
4255
|
+
"type": "boolean",
|
|
4256
|
+
"default": false,
|
|
4257
|
+
"description": "Shows the character count under the field, as \"n / maxlength\" when maxlength is set."
|
|
4258
|
+
},
|
|
4259
|
+
"name": {
|
|
4260
|
+
"type": "string",
|
|
4261
|
+
"forwarded": true,
|
|
4262
|
+
"description": "Native name attribute."
|
|
4263
|
+
},
|
|
4116
4264
|
"size": {
|
|
4117
4265
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
4118
4266
|
"values": [
|
|
@@ -4127,7 +4275,10 @@
|
|
|
4127
4275
|
}
|
|
4128
4276
|
},
|
|
4129
4277
|
"events": {
|
|
4130
|
-
"change": "Called with the new string on every keystroke."
|
|
4278
|
+
"change": "Called with the new string on every keystroke.",
|
|
4279
|
+
"input": "Native input event (after change), receives the Event.",
|
|
4280
|
+
"blur": "Native blur.",
|
|
4281
|
+
"focus": "Native focus."
|
|
4131
4282
|
}
|
|
4132
4283
|
},
|
|
4133
4284
|
{
|
|
@@ -4549,6 +4700,25 @@
|
|
|
4549
4700
|
"type": "string",
|
|
4550
4701
|
"description": "Shown when nothing is selected. Defaults to \"—\"."
|
|
4551
4702
|
},
|
|
4703
|
+
"hint": {
|
|
4704
|
+
"type": "string",
|
|
4705
|
+
"forwarded": true,
|
|
4706
|
+
"description": "Helper text under the control. Hidden while error is set."
|
|
4707
|
+
},
|
|
4708
|
+
"error": {
|
|
4709
|
+
"type": "string",
|
|
4710
|
+
"forwarded": true,
|
|
4711
|
+
"description": "Error message under the control. Turns the control red and is announced with role=\"alert\"."
|
|
4712
|
+
},
|
|
4713
|
+
"required": {
|
|
4714
|
+
"type": "boolean",
|
|
4715
|
+
"default": false,
|
|
4716
|
+
"description": "Adds a red asterisk to the label. Does not validate."
|
|
4717
|
+
},
|
|
4718
|
+
"name": {
|
|
4719
|
+
"type": "string",
|
|
4720
|
+
"description": "Renders a hidden input with this name and the selected value, so the control posts with a native form."
|
|
4721
|
+
},
|
|
4552
4722
|
"disabled": {
|
|
4553
4723
|
"type": "boolean",
|
|
4554
4724
|
"default": false,
|
|
@@ -4715,6 +4885,15 @@
|
|
|
4715
4885
|
"default": "—",
|
|
4716
4886
|
"description": "Shown when no option matches the query."
|
|
4717
4887
|
},
|
|
4888
|
+
"clearable": {
|
|
4889
|
+
"type": "boolean",
|
|
4890
|
+
"default": false,
|
|
4891
|
+
"description": "Shows a clear (x) button while a value is selected; it calls change with null."
|
|
4892
|
+
},
|
|
4893
|
+
"filter": {
|
|
4894
|
+
"type": "(option, query) => boolean",
|
|
4895
|
+
"description": "Custom matcher. Default is a case-insensitive substring match on label."
|
|
4896
|
+
},
|
|
4718
4897
|
"disabled": {
|
|
4719
4898
|
"type": "boolean",
|
|
4720
4899
|
"default": false,
|
|
@@ -4862,6 +5041,19 @@
|
|
|
4862
5041
|
"type": "string",
|
|
4863
5042
|
"description": "Text next to the box."
|
|
4864
5043
|
},
|
|
5044
|
+
"hint": {
|
|
5045
|
+
"type": "string",
|
|
5046
|
+
"description": "Second line under the label."
|
|
5047
|
+
},
|
|
5048
|
+
"error": {
|
|
5049
|
+
"type": "string",
|
|
5050
|
+
"description": "Error message under the label (announced with role=\"alert\"); a boolean or empty string shows nothing."
|
|
5051
|
+
},
|
|
5052
|
+
"indeterminate": {
|
|
5053
|
+
"type": "boolean",
|
|
5054
|
+
"default": false,
|
|
5055
|
+
"description": "Shows a dash instead of a check (aria-checked=\"mixed\"). Clicking calls change with true."
|
|
5056
|
+
},
|
|
4865
5057
|
"disabled": {
|
|
4866
5058
|
"type": "boolean",
|
|
4867
5059
|
"default": false,
|
|
@@ -4903,6 +5095,19 @@
|
|
|
4903
5095
|
"type": "string",
|
|
4904
5096
|
"description": "Text next to the toggle."
|
|
4905
5097
|
},
|
|
5098
|
+
"hint": {
|
|
5099
|
+
"type": "string",
|
|
5100
|
+
"description": "Second line under the label."
|
|
5101
|
+
},
|
|
5102
|
+
"error": {
|
|
5103
|
+
"type": "string",
|
|
5104
|
+
"description": "Error message under the label (announced with role=\"alert\")."
|
|
5105
|
+
},
|
|
5106
|
+
"labelLeft": {
|
|
5107
|
+
"type": "boolean",
|
|
5108
|
+
"default": false,
|
|
5109
|
+
"description": "Places the label before the toggle instead of after it."
|
|
5110
|
+
},
|
|
4906
5111
|
"disabled": {
|
|
4907
5112
|
"type": "boolean",
|
|
4908
5113
|
"default": false,
|
|
@@ -4949,6 +5154,25 @@
|
|
|
4949
5154
|
"forwarded": true,
|
|
4950
5155
|
"description": "Label shown above the control."
|
|
4951
5156
|
},
|
|
5157
|
+
"hint": {
|
|
5158
|
+
"type": "string",
|
|
5159
|
+
"forwarded": true,
|
|
5160
|
+
"description": "Helper text under the control. Hidden while error is set."
|
|
5161
|
+
},
|
|
5162
|
+
"error": {
|
|
5163
|
+
"type": "string",
|
|
5164
|
+
"forwarded": true,
|
|
5165
|
+
"description": "Error message under the control. Turns the control red and is announced with role=\"alert\"."
|
|
5166
|
+
},
|
|
5167
|
+
"orientation": {
|
|
5168
|
+
"type": "'vertical' | 'horizontal'",
|
|
5169
|
+
"values": [
|
|
5170
|
+
"vertical",
|
|
5171
|
+
"horizontal"
|
|
5172
|
+
],
|
|
5173
|
+
"default": "vertical",
|
|
5174
|
+
"description": "horizontal lays the options out in a wrapping row under the label."
|
|
5175
|
+
},
|
|
4952
5176
|
"disabled": {
|
|
4953
5177
|
"type": "boolean",
|
|
4954
5178
|
"default": false,
|
|
@@ -5297,6 +5521,18 @@
|
|
|
5297
5521
|
"default": 1,
|
|
5298
5522
|
"description": "First day of the week: 0 = Sunday, 1 = Monday."
|
|
5299
5523
|
},
|
|
5524
|
+
"min": {
|
|
5525
|
+
"type": "Date | string | number",
|
|
5526
|
+
"description": "Earliest selectable day; earlier days are disabled."
|
|
5527
|
+
},
|
|
5528
|
+
"max": {
|
|
5529
|
+
"type": "Date | string | number",
|
|
5530
|
+
"description": "Latest selectable day; later days are disabled."
|
|
5531
|
+
},
|
|
5532
|
+
"disabledDate": {
|
|
5533
|
+
"type": "(date: Date) => boolean",
|
|
5534
|
+
"description": "Return true to disable a specific day."
|
|
5535
|
+
},
|
|
5300
5536
|
"events": {
|
|
5301
5537
|
"type": "Record<string, string>",
|
|
5302
5538
|
"default": "{}",
|
|
@@ -5388,6 +5624,32 @@
|
|
|
5388
5624
|
"default": 1,
|
|
5389
5625
|
"description": "First day of the week: 0 = Sunday, 1 = Monday."
|
|
5390
5626
|
},
|
|
5627
|
+
"clearable": {
|
|
5628
|
+
"type": "boolean",
|
|
5629
|
+
"default": false,
|
|
5630
|
+
"description": "Shows a clear (x) button while a date is set; it calls change with null."
|
|
5631
|
+
},
|
|
5632
|
+
"min": {
|
|
5633
|
+
"type": "Date | string | number",
|
|
5634
|
+
"forwarded": true,
|
|
5635
|
+
"description": "Earliest selectable day, forwarded to the calendar."
|
|
5636
|
+
},
|
|
5637
|
+
"max": {
|
|
5638
|
+
"type": "Date | string | number",
|
|
5639
|
+
"forwarded": true,
|
|
5640
|
+
"description": "Latest selectable day, forwarded to the calendar."
|
|
5641
|
+
},
|
|
5642
|
+
"disabledDate": {
|
|
5643
|
+
"type": "(date: Date) => boolean",
|
|
5644
|
+
"forwarded": true,
|
|
5645
|
+
"description": "Return true to disable a specific day, forwarded to the calendar."
|
|
5646
|
+
},
|
|
5647
|
+
"required": {
|
|
5648
|
+
"type": "boolean",
|
|
5649
|
+
"default": false,
|
|
5650
|
+
"forwarded": true,
|
|
5651
|
+
"description": "Adds a red asterisk to the label. Does not validate."
|
|
5652
|
+
},
|
|
5391
5653
|
"label": {
|
|
5392
5654
|
"type": "string",
|
|
5393
5655
|
"forwarded": true,
|
|
@@ -5854,12 +6116,13 @@
|
|
|
5854
6116
|
"description": "Muted line under the title."
|
|
5855
6117
|
},
|
|
5856
6118
|
"variant": {
|
|
5857
|
-
"type": "'inverse' | 'gradient'",
|
|
6119
|
+
"type": "'inverse' | 'gradient' | 'outline'",
|
|
5858
6120
|
"values": [
|
|
5859
6121
|
"inverse",
|
|
5860
|
-
"gradient"
|
|
6122
|
+
"gradient",
|
|
6123
|
+
"outline"
|
|
5861
6124
|
],
|
|
5862
|
-
"description": "inverse is a dark card regardless of the page theme; gradient is a tinted gradient card colored by tone. Omit for the default glass card."
|
|
6125
|
+
"description": "inverse is a dark card regardless of the page theme; gradient is a tinted gradient card colored by tone; outline is transparent with a border. Omit for the default glass card."
|
|
5863
6126
|
},
|
|
5864
6127
|
"tone": {
|
|
5865
6128
|
"type": "'brand' | 'sky' | 'success' | 'warning' | 'danger' | 'neutral' | 'rose' | 'violet'",
|
|
@@ -5883,6 +6146,18 @@
|
|
|
5883
6146
|
],
|
|
5884
6147
|
"description": "With variant=\"gradient\", fills the card with a saturated color instead of a soft tint."
|
|
5885
6148
|
},
|
|
6149
|
+
"padding": {
|
|
6150
|
+
"type": "'none'",
|
|
6151
|
+
"values": [
|
|
6152
|
+
"none"
|
|
6153
|
+
],
|
|
6154
|
+
"description": "none removes the inner padding (for full-bleed tables or images). Other paddings come from size."
|
|
6155
|
+
},
|
|
6156
|
+
"interactive": {
|
|
6157
|
+
"type": "boolean",
|
|
6158
|
+
"default": false,
|
|
6159
|
+
"description": "Adds a pointer cursor and hover lift. With a click handler the card also becomes keyboard focusable (Enter activates)."
|
|
6160
|
+
},
|
|
5886
6161
|
"size": {
|
|
5887
6162
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
5888
6163
|
"values": [
|
|
@@ -5898,7 +6173,12 @@
|
|
|
5898
6173
|
},
|
|
5899
6174
|
"slots": {
|
|
5900
6175
|
"default": "Card body.",
|
|
5901
|
-
"actions": "Right side of the header, for buttons or menus."
|
|
6176
|
+
"actions": "Right side of the header, for buttons or menus.",
|
|
6177
|
+
"header": "Replaces the whole title/actions header with custom content.",
|
|
6178
|
+
"footer": "Row under the body, for buttons or meta."
|
|
6179
|
+
},
|
|
6180
|
+
"events": {
|
|
6181
|
+
"click": "Native click on the card. Combine with interactive."
|
|
5902
6182
|
},
|
|
5903
6183
|
"notes": [
|
|
5904
6184
|
"Vue slot names are React props (actions) and children (default)."
|
|
@@ -5911,7 +6191,7 @@
|
|
|
5911
6191
|
"description": "Table with sortable columns, custom cell rendering and optional row selection checkboxes.",
|
|
5912
6192
|
"props": {
|
|
5913
6193
|
"columns": {
|
|
5914
|
-
"type": "{ key: string; label: string; sortable?: boolean; num?: boolean; render?: (value, row, h) => VNode | string }[]",
|
|
6194
|
+
"type": "{ key: string; label: string; sortable?: boolean; num?: boolean; align?: \"left\" | \"center\" | \"right\"; width?: string; render?: (value, row, h) => VNode | string }[]",
|
|
5915
6195
|
"required": true,
|
|
5916
6196
|
"default": [],
|
|
5917
6197
|
"description": "Column definitions. key reads row[key]; num right-aligns numbers; render customizes the cell; sortable shows a sort button in the header."
|
|
@@ -5963,7 +6243,11 @@
|
|
|
5963
6243
|
"description": "Row density and font size."
|
|
5964
6244
|
}
|
|
5965
6245
|
},
|
|
6246
|
+
"slots": {
|
|
6247
|
+
"empty": "Replaces the empty text with custom content when rows is empty."
|
|
6248
|
+
},
|
|
5966
6249
|
"events": {
|
|
6250
|
+
"rowClick": "Called with (row, index) when a body row is clicked. Rows get a pointer cursor.",
|
|
5967
6251
|
"select": "Called with the new array of selected row ids. Handling it enables the checkbox column and select-all.",
|
|
5968
6252
|
"sort": "Called with (key, dir) where dir is \"asc\" or \"desc\". Sort the rows yourself and pass sortKey/sortDir back."
|
|
5969
6253
|
},
|
|
@@ -6989,10 +7273,18 @@
|
|
|
6989
7273
|
"type": "boolean",
|
|
6990
7274
|
"default": false,
|
|
6991
7275
|
"description": "Removes the border radius so the alert spans the full width like a Banner."
|
|
7276
|
+
},
|
|
7277
|
+
"hideIcon": {
|
|
7278
|
+
"type": "boolean",
|
|
7279
|
+
"default": false,
|
|
7280
|
+
"description": "Hides the leading tone icon (the icon slot is hidden too)."
|
|
6992
7281
|
}
|
|
6993
7282
|
},
|
|
6994
7283
|
"slots": {
|
|
6995
|
-
"default": "Message text."
|
|
7284
|
+
"default": "Message text.",
|
|
7285
|
+
"title": "Replaces the title prop with custom content.",
|
|
7286
|
+
"icon": "Replaces the tone icon inside the icon tile.",
|
|
7287
|
+
"actions": "Row under the message for buttons or links."
|
|
6996
7288
|
},
|
|
6997
7289
|
"events": {
|
|
6998
7290
|
"close": "Called when the close button is clicked. The button is rendered only when this handler is set."
|
|
@@ -7464,6 +7756,29 @@
|
|
|
7464
7756
|
"type": "string",
|
|
7465
7757
|
"description": "Header text and aria-label of the dialog."
|
|
7466
7758
|
},
|
|
7759
|
+
"subtitle": {
|
|
7760
|
+
"type": "string",
|
|
7761
|
+
"description": "Muted line under the title in the header."
|
|
7762
|
+
},
|
|
7763
|
+
"closable": {
|
|
7764
|
+
"type": "boolean",
|
|
7765
|
+
"default": true,
|
|
7766
|
+
"description": "false hides the close (x) button in the header."
|
|
7767
|
+
},
|
|
7768
|
+
"closeOnBackdrop": {
|
|
7769
|
+
"type": "boolean",
|
|
7770
|
+
"default": true,
|
|
7771
|
+
"description": "false ignores clicks on the scrim."
|
|
7772
|
+
},
|
|
7773
|
+
"closeOnEsc": {
|
|
7774
|
+
"type": "boolean",
|
|
7775
|
+
"default": true,
|
|
7776
|
+
"description": "false ignores the Escape key (focus trap stays active)."
|
|
7777
|
+
},
|
|
7778
|
+
"width": {
|
|
7779
|
+
"type": "string",
|
|
7780
|
+
"description": "CSS max-width of the dialog, for example \"960px\". Overrides the width of size."
|
|
7781
|
+
},
|
|
7467
7782
|
"size": {
|
|
7468
7783
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
7469
7784
|
"values": [
|
|
@@ -7479,7 +7794,9 @@
|
|
|
7479
7794
|
},
|
|
7480
7795
|
"slots": {
|
|
7481
7796
|
"default": "Dialog body.",
|
|
7482
|
-
"footer": "Footer area, usually action buttons. Rendered only when provided."
|
|
7797
|
+
"footer": "Footer area, usually action buttons. Rendered only when provided.",
|
|
7798
|
+
"title": "Replaces the title prop with custom header content.",
|
|
7799
|
+
"subtitle": "Replaces the subtitle prop."
|
|
7483
7800
|
},
|
|
7484
7801
|
"events": {
|
|
7485
7802
|
"close": "Called on the close button, a click on the scrim or the Escape key. Set open to false in the handler."
|
|
@@ -7904,6 +8221,17 @@
|
|
|
7904
8221
|
"required": true,
|
|
7905
8222
|
"description": "Tooltip text."
|
|
7906
8223
|
},
|
|
8224
|
+
"placement": {
|
|
8225
|
+
"type": "'top' | 'bottom' | 'left' | 'right'",
|
|
8226
|
+
"values": [
|
|
8227
|
+
"top",
|
|
8228
|
+
"bottom",
|
|
8229
|
+
"left",
|
|
8230
|
+
"right"
|
|
8231
|
+
],
|
|
8232
|
+
"default": "top",
|
|
8233
|
+
"description": "Side of the wrapped element where the bubble appears."
|
|
8234
|
+
},
|
|
7907
8235
|
"size": {
|
|
7908
8236
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
7909
8237
|
"values": [
|
|
@@ -7921,7 +8249,7 @@
|
|
|
7921
8249
|
"default": "The element the tooltip is attached to."
|
|
7922
8250
|
},
|
|
7923
8251
|
"notes": [
|
|
7924
|
-
"Pure CSS bubble
|
|
8252
|
+
"Pure CSS bubble; it cannot contain markup. For rich content use HoverCard."
|
|
7925
8253
|
]
|
|
7926
8254
|
},
|
|
7927
8255
|
{
|
|
@@ -8469,6 +8797,16 @@
|
|
|
8469
8797
|
],
|
|
8470
8798
|
"default": "md",
|
|
8471
8799
|
"description": "Scale of text and separator size."
|
|
8800
|
+
},
|
|
8801
|
+
"separator": {
|
|
8802
|
+
"type": "'chevron' | 'slash' | 'dot'",
|
|
8803
|
+
"values": [
|
|
8804
|
+
"chevron",
|
|
8805
|
+
"slash",
|
|
8806
|
+
"dot"
|
|
8807
|
+
],
|
|
8808
|
+
"default": "chevron",
|
|
8809
|
+
"description": "Glyph between items."
|
|
8472
8810
|
}
|
|
8473
8811
|
}
|
|
8474
8812
|
},
|
|
@@ -8497,6 +8835,16 @@
|
|
|
8497
8835
|
"default": "Pagination",
|
|
8498
8836
|
"description": "Accessible name of the navigation landmark."
|
|
8499
8837
|
},
|
|
8838
|
+
"hideArrows": {
|
|
8839
|
+
"type": "boolean",
|
|
8840
|
+
"default": false,
|
|
8841
|
+
"description": "Hides the previous and next buttons."
|
|
8842
|
+
},
|
|
8843
|
+
"labels": {
|
|
8844
|
+
"type": "{ prev?: string; next?: string; page?: string }",
|
|
8845
|
+
"default": "{ prev: 'Previous page', next: 'Next page', page: 'Page' }",
|
|
8846
|
+
"description": "Accessible names of the arrow buttons and of each page button (\"Page 3\")."
|
|
8847
|
+
},
|
|
8500
8848
|
"size": {
|
|
8501
8849
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
8502
8850
|
"values": [
|
|
@@ -8560,6 +8908,47 @@
|
|
|
8560
8908
|
"type": "string",
|
|
8561
8909
|
"description": "Image URL. Initials are shown without it."
|
|
8562
8910
|
},
|
|
8911
|
+
"initials": {
|
|
8912
|
+
"type": "string",
|
|
8913
|
+
"description": "Explicit initials (up to 3 characters, uppercased) instead of the ones derived from name."
|
|
8914
|
+
},
|
|
8915
|
+
"tone": {
|
|
8916
|
+
"type": "'brand' | 'sky' | 'success' | 'warning' | 'danger' | 'neutral'",
|
|
8917
|
+
"values": [
|
|
8918
|
+
"brand",
|
|
8919
|
+
"sky",
|
|
8920
|
+
"success",
|
|
8921
|
+
"warning",
|
|
8922
|
+
"danger",
|
|
8923
|
+
"neutral"
|
|
8924
|
+
],
|
|
8925
|
+
"default": "brand",
|
|
8926
|
+
"description": "Background color of the initials avatar."
|
|
8927
|
+
},
|
|
8928
|
+
"shape": {
|
|
8929
|
+
"type": "'circle' | 'rounded'",
|
|
8930
|
+
"values": [
|
|
8931
|
+
"circle",
|
|
8932
|
+
"rounded"
|
|
8933
|
+
],
|
|
8934
|
+
"default": "circle",
|
|
8935
|
+
"description": "rounded gives a squircle with a 30% corner radius."
|
|
8936
|
+
},
|
|
8937
|
+
"ring": {
|
|
8938
|
+
"type": "boolean",
|
|
8939
|
+
"default": false,
|
|
8940
|
+
"description": "Adds a background-colored ring so overlapping avatars stay separated."
|
|
8941
|
+
},
|
|
8942
|
+
"status": {
|
|
8943
|
+
"type": "'online' | 'offline' | 'away' | 'busy'",
|
|
8944
|
+
"values": [
|
|
8945
|
+
"online",
|
|
8946
|
+
"offline",
|
|
8947
|
+
"away",
|
|
8948
|
+
"busy"
|
|
8949
|
+
],
|
|
8950
|
+
"description": "Shows a presence dot in the bottom corner."
|
|
8951
|
+
},
|
|
8563
8952
|
"size": {
|
|
8564
8953
|
"type": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | number",
|
|
8565
8954
|
"values": [
|
|
@@ -8789,10 +9178,13 @@
|
|
|
8789
9178
|
}
|
|
8790
9179
|
},
|
|
8791
9180
|
"events": {
|
|
8792
|
-
"select": "Called with the marker object when a marker is clicked."
|
|
9181
|
+
"select": "Called with the marker object when a marker is clicked.",
|
|
9182
|
+
"move": "Called with { lat, lon, zoom } while the user pans or zooms (drag, touch, wheel, double click or the +/- buttons).",
|
|
9183
|
+
"zoom": "Called with the new zoom level when it changes."
|
|
8793
9184
|
},
|
|
8794
9185
|
"notes": [
|
|
8795
|
-
"The center and zoom props are initial values; user panning and zooming is kept in internal state.",
|
|
9186
|
+
"The center and zoom props are initial values; user panning and zooming is kept in internal state. Listen to move/zoom to track it.",
|
|
9187
|
+
"Drag or touch to pan, wheel or double click to zoom around the pointer. The tile theme follows the page data-theme after mount (light tiles on the server render) unless theme or style is set.",
|
|
8796
9188
|
"Tiles come from a third-party CDN, so it needs network access."
|
|
8797
9189
|
]
|
|
8798
9190
|
},
|