@redvars/peacock 3.8.4 → 3.8.6
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/accordion-item.js +28 -38
- package/dist/accordion-item.js.map +1 -1
- package/dist/accordion.js +8 -0
- package/dist/accordion.js.map +1 -1
- package/dist/button.js +21 -17
- package/dist/button.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +212 -33
- package/dist/custom-elements.json +852 -143
- package/dist/floating-controller-CZYwnRVu.js +185 -0
- package/dist/floating-controller-CZYwnRVu.js.map +1 -0
- package/dist/{floating-controller-CnUZnOhK.js → floating-ui.dom-oQieRCpS.js} +2 -183
- package/dist/floating-ui.dom-oQieRCpS.js.map +1 -0
- package/dist/html-editor.js +3 -21091
- package/dist/html-editor.js.map +1 -1
- package/dist/index-DcbiqHpf.js +21091 -0
- package/dist/index-DcbiqHpf.js.map +1 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/loader.js +7 -2
- package/dist/loader.js.map +1 -1
- package/dist/markdown-editor.js +4439 -0
- package/dist/markdown-editor.js.map +1 -0
- package/dist/menu.js +2 -1
- package/dist/menu.js.map +1 -1
- package/dist/pagination.js +15 -10
- package/dist/pagination.js.map +1 -1
- package/dist/popover.js +2 -1
- package/dist/popover.js.map +1 -1
- package/dist/{select-D85kpjUt.js → select-CnnPbvpQ.js} +68 -71
- package/dist/select-CnnPbvpQ.js.map +1 -0
- package/dist/src/accordion/accordion-item.d.ts +0 -6
- package/dist/src/accordion/accordion.d.ts +5 -0
- package/dist/src/button/button/button.d.ts +16 -16
- package/dist/src/index.d.ts +1 -0
- package/dist/src/input/input.d.ts +5 -5
- package/dist/src/markdown-editor/index.d.ts +2 -0
- package/dist/src/markdown-editor/markdown-editor.d.ts +116 -0
- package/dist/sub-menu.js +2 -1
- package/dist/sub-menu.js.map +1 -1
- package/dist/table.js +4 -9
- package/dist/table.js.map +1 -1
- package/dist/tooltip.js +2 -1
- package/dist/tooltip.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -1
- package/readme.md +2 -2
- package/src/accordion/accordion-item.scss +34 -12
- package/src/accordion/accordion-item.ts +27 -38
- package/src/accordion/accordion.ts +7 -0
- package/src/button/button/button-sizes.scss +4 -0
- package/src/button/button/button.ts +17 -17
- package/src/index.ts +1 -0
- package/src/input/input.ts +85 -82
- package/src/loader.ts +4 -0
- package/src/markdown-editor/index.ts +3 -0
- package/src/markdown-editor/markdown-editor.scss +378 -0
- package/src/markdown-editor/markdown-editor.ts +994 -0
- package/src/pagination/pagination.scss +15 -10
- package/src/table/table.scss +3 -9
- package/src/table/table.ts +1 -1
- package/dist/floating-controller-CnUZnOhK.js.map +0 -1
- package/dist/select-D85kpjUt.js.map +0 -1
|
@@ -27,6 +27,15 @@
|
|
|
27
27
|
"default": "'default'",
|
|
28
28
|
"description": "Variant for the accordion.\n`'default'` renders panels with a subtle background on expand and dividers between items.\n`'flat'` renders panels without borders or background changes — suitable for use inside cards.",
|
|
29
29
|
"fieldName": "variant"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "leading-toggle",
|
|
33
|
+
"type": {
|
|
34
|
+
"text": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"default": "false",
|
|
37
|
+
"description": "When `true`, the toggle icon is placed at the leading start of the header.\nWhen `false` (default), the icon is placed at the trailing end.",
|
|
38
|
+
"fieldName": "leadingToggle"
|
|
30
39
|
}
|
|
31
40
|
],
|
|
32
41
|
"superclass": {
|
|
@@ -485,7 +494,7 @@
|
|
|
485
494
|
"rawTag": "button",
|
|
486
495
|
"summary": "Buttons help people initiate actions, from sending an email, to sharing a document, to liking a post.",
|
|
487
496
|
"overview": "<p>Buttons are clickable elements that are used to trigger actions. They communicate calls to action to the user and allow users to interact with pages in a variety of ways. Button labels express what action will occur when the user interacts with it.</p>",
|
|
488
|
-
"cssprop": "--neo-button-label-text-color
|
|
497
|
+
"cssprop": "--neo-button-label-text-color - Text color of the neo button label.",
|
|
489
498
|
"fires": "click - Dispatched when the button is clicked.",
|
|
490
499
|
"example": "```html\n<wc-button>Button</wc-button>\n```",
|
|
491
500
|
"tags": "display",
|
|
@@ -495,67 +504,67 @@
|
|
|
495
504
|
"cssProperties": [
|
|
496
505
|
{
|
|
497
506
|
"description": "Defines the border radius of the button container shape.",
|
|
498
|
-
"name": "--button-container-shape
|
|
507
|
+
"name": "--button-container-shape"
|
|
499
508
|
},
|
|
500
509
|
{
|
|
501
510
|
"description": "Defines the start position of the button container shape.",
|
|
502
|
-
"name": "--button-container-shape-start-start
|
|
511
|
+
"name": "--button-container-shape-start-start"
|
|
503
512
|
},
|
|
504
513
|
{
|
|
505
514
|
"description": "Defines the end position of the button container shape.",
|
|
506
|
-
"name": "--button-container-shape-start-end
|
|
515
|
+
"name": "--button-container-shape-start-end"
|
|
507
516
|
},
|
|
508
517
|
{
|
|
509
518
|
"description": "Defines the start position of the button container shape.",
|
|
510
|
-
"name": "--button-container-shape-end-start
|
|
519
|
+
"name": "--button-container-shape-end-start"
|
|
511
520
|
},
|
|
512
521
|
{
|
|
513
522
|
"description": "Defines the end position of the button container shape.",
|
|
514
|
-
"name": "--button-container-shape-end-end
|
|
523
|
+
"name": "--button-container-shape-end-end"
|
|
515
524
|
},
|
|
516
525
|
{
|
|
517
526
|
"description": "Color of the filled button container.",
|
|
518
|
-
"name": "--filled-button-container-color
|
|
527
|
+
"name": "--filled-button-container-color"
|
|
519
528
|
},
|
|
520
529
|
{
|
|
521
530
|
"description": "Text color of the filled button label.",
|
|
522
|
-
"name": "--filled-button-label-text-color
|
|
531
|
+
"name": "--filled-button-label-text-color"
|
|
523
532
|
},
|
|
524
533
|
{
|
|
525
534
|
"description": "Color of the outlined button container.",
|
|
526
|
-
"name": "--outlined-button-container-color
|
|
535
|
+
"name": "--outlined-button-container-color"
|
|
527
536
|
},
|
|
528
537
|
{
|
|
529
538
|
"description": "Text color of the outlined button label.",
|
|
530
|
-
"name": "--outlined-button-label-text-color
|
|
539
|
+
"name": "--outlined-button-label-text-color"
|
|
531
540
|
},
|
|
532
541
|
{
|
|
533
542
|
"description": "Text color of the text button label.",
|
|
534
|
-
"name": "--text-button-label-text-color
|
|
543
|
+
"name": "--text-button-label-text-color"
|
|
535
544
|
},
|
|
536
545
|
{
|
|
537
546
|
"description": "Color of the tonal button container.",
|
|
538
|
-
"name": "--tonal-button-container-color
|
|
547
|
+
"name": "--tonal-button-container-color"
|
|
539
548
|
},
|
|
540
549
|
{
|
|
541
550
|
"description": "Text color of the tonal button label.",
|
|
542
|
-
"name": "--tonal-button-label-text-color
|
|
551
|
+
"name": "--tonal-button-label-text-color"
|
|
543
552
|
},
|
|
544
553
|
{
|
|
545
554
|
"description": "Color of the elevated button container.",
|
|
546
|
-
"name": "--elevated-button-container-color
|
|
555
|
+
"name": "--elevated-button-container-color"
|
|
547
556
|
},
|
|
548
557
|
{
|
|
549
558
|
"description": "Text color of the elevated button label.",
|
|
550
|
-
"name": "--elevated-button-label-text-color
|
|
559
|
+
"name": "--elevated-button-label-text-color"
|
|
551
560
|
},
|
|
552
561
|
{
|
|
553
562
|
"description": "Color of the neo button container.",
|
|
554
|
-
"name": "--neo-button-container-color
|
|
563
|
+
"name": "--neo-button-container-color"
|
|
555
564
|
},
|
|
556
565
|
{
|
|
557
566
|
"description": "Text color of the neo button label.",
|
|
558
|
-
"name": "--neo-button-label-text-color
|
|
567
|
+
"name": "--neo-button-label-text-color"
|
|
559
568
|
}
|
|
560
569
|
],
|
|
561
570
|
"events": [
|
|
@@ -573,7 +582,7 @@
|
|
|
573
582
|
"type": {
|
|
574
583
|
"text": "boolean"
|
|
575
584
|
},
|
|
576
|
-
"default": "
|
|
585
|
+
"default": "false",
|
|
577
586
|
"description": "When `true` (default), the icon is placed after the label (trailing).\nWhen `false`, the icon is placed before the label (leading).",
|
|
578
587
|
"fieldName": "trailingIcon"
|
|
579
588
|
},
|
|
@@ -4486,7 +4495,7 @@
|
|
|
4486
4495
|
"type": {
|
|
4487
4496
|
"text": "string"
|
|
4488
4497
|
},
|
|
4489
|
-
"default": "
|
|
4498
|
+
"default": "\"\"",
|
|
4490
4499
|
"fieldName": "value"
|
|
4491
4500
|
},
|
|
4492
4501
|
{
|
|
@@ -4494,7 +4503,7 @@
|
|
|
4494
4503
|
"type": {
|
|
4495
4504
|
"text": "string"
|
|
4496
4505
|
},
|
|
4497
|
-
"default": "
|
|
4506
|
+
"default": "\"\"",
|
|
4498
4507
|
"fieldName": "name"
|
|
4499
4508
|
},
|
|
4500
4509
|
{
|
|
@@ -4502,7 +4511,7 @@
|
|
|
4502
4511
|
"type": {
|
|
4503
4512
|
"text": "string"
|
|
4504
4513
|
},
|
|
4505
|
-
"default": "
|
|
4514
|
+
"default": "\"\"",
|
|
4506
4515
|
"fieldName": "placeholder"
|
|
4507
4516
|
},
|
|
4508
4517
|
{
|
|
@@ -4510,7 +4519,7 @@
|
|
|
4510
4519
|
"type": {
|
|
4511
4520
|
"text": "string"
|
|
4512
4521
|
},
|
|
4513
|
-
"default": "
|
|
4522
|
+
"default": "\"\"",
|
|
4514
4523
|
"fieldName": "label"
|
|
4515
4524
|
},
|
|
4516
4525
|
{
|
|
@@ -4524,25 +4533,25 @@
|
|
|
4524
4533
|
{
|
|
4525
4534
|
"name": "size",
|
|
4526
4535
|
"type": {
|
|
4527
|
-
"text": "
|
|
4536
|
+
"text": "\"sm\" | \"md\" | \"lg\""
|
|
4528
4537
|
},
|
|
4529
|
-
"default": "
|
|
4538
|
+
"default": "\"md\"",
|
|
4530
4539
|
"fieldName": "size"
|
|
4531
4540
|
},
|
|
4532
4541
|
{
|
|
4533
4542
|
"name": "type",
|
|
4534
4543
|
"type": {
|
|
4535
|
-
"text": "
|
|
4544
|
+
"text": "\"text\" | \"password\" | \"email\" | \"tel\""
|
|
4536
4545
|
},
|
|
4537
|
-
"default": "
|
|
4546
|
+
"default": "\"text\"",
|
|
4538
4547
|
"fieldName": "type"
|
|
4539
4548
|
},
|
|
4540
4549
|
{
|
|
4541
4550
|
"name": "autocomplete",
|
|
4542
4551
|
"type": {
|
|
4543
|
-
"text": "
|
|
4552
|
+
"text": "\"on\" | \"off\""
|
|
4544
4553
|
},
|
|
4545
|
-
"default": "
|
|
4554
|
+
"default": "\"off\"",
|
|
4546
4555
|
"fieldName": "autocomplete"
|
|
4547
4556
|
},
|
|
4548
4557
|
{
|
|
@@ -4556,9 +4565,9 @@
|
|
|
4556
4565
|
{
|
|
4557
4566
|
"name": "variant",
|
|
4558
4567
|
"type": {
|
|
4559
|
-
"text": "
|
|
4568
|
+
"text": "\"filled\" | \"outlined\" | \"default\""
|
|
4560
4569
|
},
|
|
4561
|
-
"default": "
|
|
4570
|
+
"default": "\"default\"",
|
|
4562
4571
|
"fieldName": "variant"
|
|
4563
4572
|
},
|
|
4564
4573
|
{
|
|
@@ -4566,7 +4575,7 @@
|
|
|
4566
4575
|
"type": {
|
|
4567
4576
|
"text": "string"
|
|
4568
4577
|
},
|
|
4569
|
-
"default": "
|
|
4578
|
+
"default": "\"\"",
|
|
4570
4579
|
"description": "Helper text to display below the input.",
|
|
4571
4580
|
"fieldName": "helperText"
|
|
4572
4581
|
},
|
|
@@ -4583,7 +4592,7 @@
|
|
|
4583
4592
|
"type": {
|
|
4584
4593
|
"text": "string"
|
|
4585
4594
|
},
|
|
4586
|
-
"default": "
|
|
4595
|
+
"default": "\"\"",
|
|
4587
4596
|
"fieldName": "errorText"
|
|
4588
4597
|
},
|
|
4589
4598
|
{
|
|
@@ -4599,7 +4608,7 @@
|
|
|
4599
4608
|
"type": {
|
|
4600
4609
|
"text": "string"
|
|
4601
4610
|
},
|
|
4602
|
-
"default": "
|
|
4611
|
+
"default": "\"\"",
|
|
4603
4612
|
"fieldName": "warningText"
|
|
4604
4613
|
},
|
|
4605
4614
|
{
|
|
@@ -5096,6 +5105,176 @@
|
|
|
5096
5105
|
}
|
|
5097
5106
|
}
|
|
5098
5107
|
},
|
|
5108
|
+
{
|
|
5109
|
+
"label": "Markdown Editor",
|
|
5110
|
+
"tag": "wc-markdown-editor",
|
|
5111
|
+
"rawTag": "markdown-editor",
|
|
5112
|
+
"summary": "A Tiptap-powered Notion-like Markdown editor with a bottom toggle\n between rendered and raw markdown views.",
|
|
5113
|
+
"overview": "<p>The Markdown Editor provides a block-based, Notion-like writing surface\nbuilt on Tiptap. Type <code>/</code> to open a slash menu for inserting\nheadings, lists, quotes, code blocks, and dividers. Select text to reveal\na floating bubble toolbar with inline formatting actions.</p>\n\n<p>The canonical <code>value</code> is Markdown. Use the bottom segmented\nswitch to toggle between the rendered editor and the raw markdown source.\nThe component dispatches a <code>change</code> event whenever content\nchanges.</p>",
|
|
5114
|
+
"cssprop": "--markdown-editor-slash-background - Background color of the slash command menu.",
|
|
5115
|
+
"fires": "change - Fired whenever the markdown content changes.",
|
|
5116
|
+
"example": "```html\n<wc-markdown-editor\n label=\"Notes\"\n value=\"# Hello\\n\\nType a slash on a new line to insert blocks.\"\n></wc-markdown-editor>\n```",
|
|
5117
|
+
"tags": "input editor",
|
|
5118
|
+
"customElement": {
|
|
5119
|
+
"kind": "class",
|
|
5120
|
+
"description": "",
|
|
5121
|
+
"cssProperties": [
|
|
5122
|
+
{
|
|
5123
|
+
"description": "Minimum height of the editable area. Defaults to 12rem.",
|
|
5124
|
+
"name": "--markdown-editor-min-height"
|
|
5125
|
+
},
|
|
5126
|
+
{
|
|
5127
|
+
"description": "Background color of the selection bubble menu.",
|
|
5128
|
+
"name": "--markdown-editor-bubble-background"
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
"description": "Background color of the slash command menu.",
|
|
5132
|
+
"name": "--markdown-editor-slash-background"
|
|
5133
|
+
}
|
|
5134
|
+
],
|
|
5135
|
+
"events": [
|
|
5136
|
+
{
|
|
5137
|
+
"type": {
|
|
5138
|
+
"text": "Event"
|
|
5139
|
+
},
|
|
5140
|
+
"description": "Fired whenever the markdown content changes.",
|
|
5141
|
+
"name": "change"
|
|
5142
|
+
}
|
|
5143
|
+
],
|
|
5144
|
+
"attributes": [
|
|
5145
|
+
{
|
|
5146
|
+
"name": "value",
|
|
5147
|
+
"type": {
|
|
5148
|
+
"text": "string"
|
|
5149
|
+
},
|
|
5150
|
+
"default": "''",
|
|
5151
|
+
"description": "Current Markdown value of the editor.",
|
|
5152
|
+
"fieldName": "value"
|
|
5153
|
+
},
|
|
5154
|
+
{
|
|
5155
|
+
"name": "label",
|
|
5156
|
+
"type": {
|
|
5157
|
+
"text": "string"
|
|
5158
|
+
},
|
|
5159
|
+
"default": "''",
|
|
5160
|
+
"description": "Label displayed above the editor.",
|
|
5161
|
+
"fieldName": "label"
|
|
5162
|
+
},
|
|
5163
|
+
{
|
|
5164
|
+
"name": "placeholder",
|
|
5165
|
+
"type": {
|
|
5166
|
+
"text": "string"
|
|
5167
|
+
},
|
|
5168
|
+
"default": "\"Type '/' for commands…\"",
|
|
5169
|
+
"description": "Placeholder text shown when the editor is empty.",
|
|
5170
|
+
"fieldName": "placeholder"
|
|
5171
|
+
},
|
|
5172
|
+
{
|
|
5173
|
+
"name": "variant",
|
|
5174
|
+
"type": {
|
|
5175
|
+
"text": "'filled' | 'outlined' | 'default'"
|
|
5176
|
+
},
|
|
5177
|
+
"default": "'default'",
|
|
5178
|
+
"description": "Visual style of the wrapping field.",
|
|
5179
|
+
"fieldName": "variant"
|
|
5180
|
+
},
|
|
5181
|
+
{
|
|
5182
|
+
"name": "helper-text",
|
|
5183
|
+
"type": {
|
|
5184
|
+
"text": "string"
|
|
5185
|
+
},
|
|
5186
|
+
"default": "''",
|
|
5187
|
+
"description": "Helper text displayed below the editor.",
|
|
5188
|
+
"fieldName": "helperText"
|
|
5189
|
+
},
|
|
5190
|
+
{
|
|
5191
|
+
"name": "error",
|
|
5192
|
+
"type": {
|
|
5193
|
+
"text": "boolean"
|
|
5194
|
+
},
|
|
5195
|
+
"default": "false",
|
|
5196
|
+
"description": "Whether to show an error state.",
|
|
5197
|
+
"fieldName": "error"
|
|
5198
|
+
},
|
|
5199
|
+
{
|
|
5200
|
+
"name": "error-text",
|
|
5201
|
+
"type": {
|
|
5202
|
+
"text": "string"
|
|
5203
|
+
},
|
|
5204
|
+
"default": "''",
|
|
5205
|
+
"description": "Error message text.",
|
|
5206
|
+
"fieldName": "errorText"
|
|
5207
|
+
},
|
|
5208
|
+
{
|
|
5209
|
+
"name": "debounce",
|
|
5210
|
+
"type": {
|
|
5211
|
+
"text": "number"
|
|
5212
|
+
},
|
|
5213
|
+
"default": "250",
|
|
5214
|
+
"description": "Debounce in milliseconds for dispatching `change`.",
|
|
5215
|
+
"fieldName": "debounce"
|
|
5216
|
+
},
|
|
5217
|
+
{
|
|
5218
|
+
"name": "disabled",
|
|
5219
|
+
"type": {
|
|
5220
|
+
"text": "boolean"
|
|
5221
|
+
},
|
|
5222
|
+
"default": "false",
|
|
5223
|
+
"fieldName": "disabled",
|
|
5224
|
+
"inheritedFrom": {
|
|
5225
|
+
"name": "BaseInput",
|
|
5226
|
+
"module": "src/input/BaseInput.ts"
|
|
5227
|
+
}
|
|
5228
|
+
},
|
|
5229
|
+
{
|
|
5230
|
+
"name": "readonly",
|
|
5231
|
+
"type": {
|
|
5232
|
+
"text": "boolean"
|
|
5233
|
+
},
|
|
5234
|
+
"default": "false",
|
|
5235
|
+
"fieldName": "readonly",
|
|
5236
|
+
"inheritedFrom": {
|
|
5237
|
+
"name": "BaseInput",
|
|
5238
|
+
"module": "src/input/BaseInput.ts"
|
|
5239
|
+
}
|
|
5240
|
+
},
|
|
5241
|
+
{
|
|
5242
|
+
"name": "required",
|
|
5243
|
+
"type": {
|
|
5244
|
+
"text": "boolean"
|
|
5245
|
+
},
|
|
5246
|
+
"default": "false",
|
|
5247
|
+
"fieldName": "required",
|
|
5248
|
+
"inheritedFrom": {
|
|
5249
|
+
"name": "BaseInput",
|
|
5250
|
+
"module": "src/input/BaseInput.ts"
|
|
5251
|
+
}
|
|
5252
|
+
},
|
|
5253
|
+
{
|
|
5254
|
+
"name": "skeleton",
|
|
5255
|
+
"type": {
|
|
5256
|
+
"text": "boolean"
|
|
5257
|
+
},
|
|
5258
|
+
"default": "false",
|
|
5259
|
+
"fieldName": "skeleton",
|
|
5260
|
+
"inheritedFrom": {
|
|
5261
|
+
"name": "BaseInput",
|
|
5262
|
+
"module": "src/input/BaseInput.ts"
|
|
5263
|
+
}
|
|
5264
|
+
}
|
|
5265
|
+
],
|
|
5266
|
+
"superclass": {
|
|
5267
|
+
"name": "BaseInput",
|
|
5268
|
+
"module": "/src/input/BaseInput.js"
|
|
5269
|
+
},
|
|
5270
|
+
"tagName": "wc-markdown-editor",
|
|
5271
|
+
"customElement": true,
|
|
5272
|
+
"rawTag": {
|
|
5273
|
+
"name": "markdown-editor",
|
|
5274
|
+
"description": ""
|
|
5275
|
+
}
|
|
5276
|
+
}
|
|
5277
|
+
},
|
|
5099
5278
|
{
|
|
5100
5279
|
"label": "Menu",
|
|
5101
5280
|
"tag": "wc-menu",
|