@vanelsas/baredom 4.16.0 → 4.18.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +2 -2
  3. package/custom-elements.json +504 -0
  4. package/dist/all.js +4 -0
  5. package/dist/baredom.d.ts +2 -0
  6. package/dist/baremirror-alpha.js +42 -42
  7. package/dist/base.js +578 -497
  8. package/dist/foreign-writes.js +4 -0
  9. package/dist/integrity.json +118 -116
  10. package/dist/requests.js +4 -0
  11. package/dist/x-alert.js +17 -17
  12. package/dist/x-avatar-group.js +10 -10
  13. package/dist/x-avatar.js +1 -13
  14. package/dist/x-badge.js +9 -9
  15. package/dist/x-bento-grid.js +6 -6
  16. package/dist/x-bento-item.js +4 -4
  17. package/dist/x-breadcrumbs.js +17 -17
  18. package/dist/x-button.js +1 -1
  19. package/dist/x-calendar.js +41 -41
  20. package/dist/x-cancel-dialogue.js +16 -16
  21. package/dist/x-card.js +7 -7
  22. package/dist/x-carousel.js +34 -34
  23. package/dist/x-chart.js +47 -47
  24. package/dist/x-checkbox.js +1 -1
  25. package/dist/x-chip.js +1 -1
  26. package/dist/x-code.js +30 -30
  27. package/dist/x-collapse.js +11 -11
  28. package/dist/x-color-picker.js +43 -43
  29. package/dist/x-combobox.js +34 -34
  30. package/dist/x-command-palette.js +30 -30
  31. package/dist/x-comment.d.ts +52 -0
  32. package/dist/x-comment.js +2 -0
  33. package/dist/x-comments.d.ts +52 -0
  34. package/dist/x-comments.js +25 -0
  35. package/dist/x-confetti.js +24 -24
  36. package/dist/x-container.js +6 -6
  37. package/dist/x-context-menu.js +20 -20
  38. package/dist/x-copy.js +1 -1
  39. package/dist/x-currency-field.js +24 -24
  40. package/dist/x-date-picker.js +50 -47
  41. package/dist/x-divider.js +8 -8
  42. package/dist/x-drag-panel.js +33 -33
  43. package/dist/x-drawer.js +12 -12
  44. package/dist/x-drop-zone.js +11 -11
  45. package/dist/x-dropdown.js +12 -12
  46. package/dist/x-fieldset.js +6 -6
  47. package/dist/x-file-download.js +14 -14
  48. package/dist/x-file-upload.js +27 -27
  49. package/dist/x-floating-panel.js +22 -22
  50. package/dist/x-form-field.d.ts +1 -0
  51. package/dist/x-form-field.js +1 -17
  52. package/dist/x-form.js +10 -10
  53. package/dist/x-gaussian-blur.js +13 -13
  54. package/dist/x-grid.js +8 -8
  55. package/dist/x-i18n-provider.js +7 -7
  56. package/dist/x-i18n.js +4 -4
  57. package/dist/x-icon.js +7 -7
  58. package/dist/x-image.js +18 -18
  59. package/dist/x-kbd.js +13 -13
  60. package/dist/x-kinetic-canvas.js +25 -25
  61. package/dist/x-kinetic-font.js +26 -26
  62. package/dist/x-kinetic-typography.js +34 -34
  63. package/dist/x-liquid-dock.js +31 -31
  64. package/dist/x-liquid-fill.js +40 -40
  65. package/dist/x-liquid-glass.js +36 -36
  66. package/dist/x-menu-item.js +9 -9
  67. package/dist/x-menu.js +10 -10
  68. package/dist/x-metaball-cursor.js +26 -26
  69. package/dist/x-modal.js +12 -12
  70. package/dist/x-morph-stack.js +37 -37
  71. package/dist/x-multi-combobox.js +41 -41
  72. package/dist/x-navbar.js +15 -15
  73. package/dist/x-neural-glow.js +26 -26
  74. package/dist/x-notification-center.js +9 -9
  75. package/dist/x-organic-divider.js +17 -17
  76. package/dist/x-organic-progress.js +33 -33
  77. package/dist/x-organic-shape.js +12 -12
  78. package/dist/x-otp-input.js +22 -22
  79. package/dist/x-pagination.js +18 -18
  80. package/dist/x-particle-button.js +52 -52
  81. package/dist/x-popover.js +27 -27
  82. package/dist/x-progress-circle.js +8 -8
  83. package/dist/x-progress.js +8 -8
  84. package/dist/x-proximity-list.js +20 -20
  85. package/dist/x-radio.js +13 -13
  86. package/dist/x-range-slider.js +29 -29
  87. package/dist/x-rating.js +24 -24
  88. package/dist/x-ripple-effect.js +9 -9
  89. package/dist/x-scroll-parallax.js +17 -17
  90. package/dist/x-scroll-stack.js +17 -17
  91. package/dist/x-scroll-story.js +33 -33
  92. package/dist/x-scroll-timeline.js +49 -49
  93. package/dist/x-scroll.js +35 -35
  94. package/dist/x-search-field.js +1 -1
  95. package/dist/x-select.js +1 -1
  96. package/dist/x-sidebar.js +17 -16
  97. package/dist/x-skeleton-group.js +14 -14
  98. package/dist/x-skeleton.js +1 -1
  99. package/dist/x-slider.js +17 -17
  100. package/dist/x-soft-body.js +17 -17
  101. package/dist/x-spacer.js +3 -3
  102. package/dist/x-spinner.js +4 -4
  103. package/dist/x-splash.js +13 -13
  104. package/dist/x-split-pane.js +15 -15
  105. package/dist/x-spotlight-card.js +12 -12
  106. package/dist/x-stat.js +10 -10
  107. package/dist/x-stepper.js +14 -14
  108. package/dist/x-switch.js +12 -12
  109. package/dist/x-tab.js +7 -7
  110. package/dist/x-table-cell.js +20 -20
  111. package/dist/x-table-row.js +8 -8
  112. package/dist/x-table.js +20 -20
  113. package/dist/x-tabs.js +12 -12
  114. package/dist/x-text-area.js +1 -20
  115. package/dist/x-theme.js +28 -28
  116. package/dist/x-timeline-item.js +21 -21
  117. package/dist/x-timeline.js +9 -9
  118. package/dist/x-toast.js +22 -22
  119. package/dist/x-toaster.js +6 -6
  120. package/dist/x-toc.js +34 -34
  121. package/dist/x-tooltip.js +14 -14
  122. package/dist/x-trace-history.js +117 -117
  123. package/dist/x-typography.js +6 -6
  124. package/dist/x-welcome-tour.js +63 -63
  125. package/package.json +11 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  All notable changes to BareDOM will be documented in this file.
4
4
 
5
+ ## [Unreleased]
6
+
7
+ ## [4.18.0] - 2026-11-04
8
+
9
+ BareDOM 4.18 brings three changes to `x-date-picker`: a short date format, an SVG calendar icon,
10
+ and today taken from the local date, also in `x-calendar`. The adapters are not released with it.
11
+
12
+ ### Added
13
+
14
+ - **`x-date-picker` takes `format="short"`,** which shows each date with the short month of the
15
+ locale, for example `27 Jul 2026` for `en-GB`.
16
+
17
+ ### Changed
18
+
19
+ - **The `x-date-picker` trigger button shows an SVG calendar icon** in place of the 📅 emoji.
20
+ The emoji rendered as a colour picture on each platform (on macOS a page that shows "JUL 17")
21
+ and ignored the theme colours. The icon is drawn in `currentColor`, scales with
22
+ `--x-font-size-sm`, and is `aria-hidden`. The button label stays "Open calendar".
23
+
24
+ ### Fixed
25
+
26
+ - **`x-date-picker` and `x-calendar` take today from the local date of the user,** not from the
27
+ UTC date. Before, late in the evening in a time zone behind UTC, today was tomorrow: the
28
+ calendar opened on the wrong day, and on the last day of a month on the next month. Early in
29
+ the morning in a time zone ahead of UTC, today was yesterday. This changes the default month,
30
+ the focused day and the `x-calendar` today marker. Stored ISO dates do not change.
31
+
32
+ ## [4.17.0] - 2026-10-28
33
+
34
+ BareDOM 4.17 adds `x-comments` and `x-comment`, a comment thread with one form. All five adapters
35
+ are released with it: `-react` 3.6.0, `-angular` 3.6.0, `-vue` 0.12.0, `-svelte` 0.12.0 and
36
+ `-solid` 0.12.0. They add `XComments` and `XComment`, and each now needs `@vanelsas/baredom`
37
+ 4.17.0 or later.
38
+
39
+ ### Added
40
+
41
+ - **`x-comments` and `x-comment`, a comment thread.** `x-comments` holds the comments of a page
42
+ and one form for a new comment or a reply. Reply moves the form right under the comment it
43
+ answers. A send dispatches `x-comments-submit` with the name, the text, the comment it answers
44
+ and the value of a hidden field that catches bots. The components store nothing: the page
45
+ renders each comment as an `x-comment`, with its depth, its status (`published`, `pending`,
46
+ `removed` or `expired`) and the name of the comment it answers. The date shows as given, or in
47
+ the language of `locale`. A `meta` slot holds what a page shows after the date. See
48
+ [`docs/x-comments.md`](docs/x-comments.md), [`docs/x-comment.md`](docs/x-comment.md) and the
49
+ [demo](https://avanelsas.github.io/baredom/demo/x-comments.html).
50
+ - **`maxlength` on `x-form-field`,** with a `maxLength` property, as on `x-text-area`.
51
+ - **`XComments` and `XComment` in the five adapters,** and the `maxLength` prop of `XFormField`.
52
+
53
+ ### Changed
54
+
55
+ - **`focus()` on `x-button`, `x-form-field` and `x-text-area` moves focus to their inner
56
+ control.** Each attaches its shadow root with `delegatesFocus`.
57
+ - **The shared `base.js` grows by about 10 KB gzipped.** `x-comment` and `x-comments` compose
58
+ `x-avatar`, `x-form-field` and `x-text-area`, so these three now load with every component.
59
+ Their own modules shrink to an entry of a few hundred bytes.
60
+ - **The adapters need `@vanelsas/baredom` 4.17.0 or later.** Their index exports `XComments` and
61
+ `XComment`.
62
+
5
63
  ## [4.16.0] - 2026-10-27
6
64
 
7
65
  BareDOM 4.16 brings every `x-theme` preset to WCAG AA contrast. The adapters are not released
package/README.md CHANGED
@@ -117,7 +117,7 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
117
117
 
118
118
  ## Components
119
119
 
120
- **107 UI web components across 11 categories** — from foundational UI controls to morphing animations, organic effects, and scroll-driven storytelling.
120
+ **109 UI web components across 11 categories** — from foundational UI controls to morphing animations, organic effects, and scroll-driven storytelling.
121
121
 
122
122
  | Category | Count | Examples |
123
123
  |----------|------:|----------|
@@ -125,7 +125,7 @@ All adapters are auto-generated from the same Custom Elements Manifest, so addin
125
125
  | **Feedback** | 11 | Alert · Toast · Spinner · Progress · Skeleton · Notification Center |
126
126
  | **Navigation** | 9 | Navbar · Sidebar · Breadcrumbs · Tabs · Pagination · Menu · Table of Contents |
127
127
  | **Layout** | 12 | Card · Grid · Bento Grid · Split Pane · Drag Panel · Drop Zone |
128
- | **Data** | 11 | Avatar · Table · Chart · Timeline · Calendar · Stat |
128
+ | **Data** | 13 | Avatar · Table · Chart · Timeline · Calendar · Stat |
129
129
  | **Overlay** | 10 | Modal · Drawer · Popover · Tooltip · Floating Panel · Command Palette |
130
130
  | **Display** | 6 | Icon · Image · Typography · Code · Kbd · Spotlight Card |
131
131
  | **Animation** | 6 | Kinetic Canvas · Kinetic Typography · Morph Stack · Soft Body · Splash |
@@ -4476,6 +4476,498 @@
4476
4476
  "name" : "XCommandPalette"
4477
4477
  }
4478
4478
  } ]
4479
+ }, {
4480
+ "kind" : "javascript-module",
4481
+ "path" : "dist/x-comment.js",
4482
+ "declarations" : [ {
4483
+ "kind" : "class",
4484
+ "name" : "XComment",
4485
+ "tagName" : "x-comment",
4486
+ "superclass" : {
4487
+ "name" : "HTMLElement"
4488
+ },
4489
+ "members" : [ {
4490
+ "kind" : "field",
4491
+ "name" : "expiredLabel",
4492
+ "type" : {
4493
+ "text" : "string"
4494
+ }
4495
+ }, {
4496
+ "kind" : "field",
4497
+ "name" : "locale",
4498
+ "type" : {
4499
+ "text" : "string"
4500
+ }
4501
+ }, {
4502
+ "kind" : "field",
4503
+ "name" : "name",
4504
+ "type" : {
4505
+ "text" : "string"
4506
+ }
4507
+ }, {
4508
+ "kind" : "field",
4509
+ "name" : "replyLabel",
4510
+ "type" : {
4511
+ "text" : "string"
4512
+ }
4513
+ }, {
4514
+ "kind" : "field",
4515
+ "name" : "commentId",
4516
+ "type" : {
4517
+ "text" : "string"
4518
+ }
4519
+ }, {
4520
+ "kind" : "field",
4521
+ "name" : "author",
4522
+ "type" : {
4523
+ "text" : "boolean"
4524
+ }
4525
+ }, {
4526
+ "kind" : "field",
4527
+ "name" : "replyToName",
4528
+ "type" : {
4529
+ "text" : "string"
4530
+ }
4531
+ }, {
4532
+ "kind" : "field",
4533
+ "name" : "status",
4534
+ "type" : {
4535
+ "text" : "string"
4536
+ }
4537
+ }, {
4538
+ "kind" : "field",
4539
+ "name" : "authorLabel",
4540
+ "type" : {
4541
+ "text" : "string"
4542
+ }
4543
+ }, {
4544
+ "kind" : "field",
4545
+ "name" : "datetime",
4546
+ "type" : {
4547
+ "text" : "string"
4548
+ }
4549
+ }, {
4550
+ "kind" : "field",
4551
+ "name" : "depth",
4552
+ "type" : {
4553
+ "text" : "number"
4554
+ }
4555
+ }, {
4556
+ "kind" : "field",
4557
+ "name" : "replyContextLabel",
4558
+ "type" : {
4559
+ "text" : "string"
4560
+ }
4561
+ }, {
4562
+ "kind" : "field",
4563
+ "name" : "maxDepth",
4564
+ "type" : {
4565
+ "text" : "number"
4566
+ }
4567
+ }, {
4568
+ "kind" : "field",
4569
+ "name" : "pendingLabel",
4570
+ "type" : {
4571
+ "text" : "string"
4572
+ }
4573
+ }, {
4574
+ "kind" : "field",
4575
+ "name" : "removedLabel",
4576
+ "type" : {
4577
+ "text" : "string"
4578
+ }
4579
+ } ],
4580
+ "attributes" : [ {
4581
+ "name" : "comment-id",
4582
+ "fieldName" : "commentId",
4583
+ "type" : {
4584
+ "text" : "string"
4585
+ }
4586
+ }, {
4587
+ "name" : "name",
4588
+ "fieldName" : "name",
4589
+ "type" : {
4590
+ "text" : "string"
4591
+ }
4592
+ }, {
4593
+ "name" : "datetime",
4594
+ "fieldName" : "datetime",
4595
+ "type" : {
4596
+ "text" : "string"
4597
+ }
4598
+ }, {
4599
+ "name" : "locale",
4600
+ "fieldName" : "locale",
4601
+ "type" : {
4602
+ "text" : "string"
4603
+ }
4604
+ }, {
4605
+ "name" : "depth",
4606
+ "fieldName" : "depth",
4607
+ "type" : {
4608
+ "text" : "number"
4609
+ }
4610
+ }, {
4611
+ "name" : "max-depth",
4612
+ "fieldName" : "maxDepth",
4613
+ "type" : {
4614
+ "text" : "number"
4615
+ }
4616
+ }, {
4617
+ "name" : "reply-to-name",
4618
+ "fieldName" : "replyToName",
4619
+ "type" : {
4620
+ "text" : "string"
4621
+ }
4622
+ }, {
4623
+ "name" : "author",
4624
+ "fieldName" : "author",
4625
+ "type" : {
4626
+ "text" : "boolean"
4627
+ }
4628
+ }, {
4629
+ "name" : "status",
4630
+ "fieldName" : "status",
4631
+ "type" : {
4632
+ "text" : "string"
4633
+ }
4634
+ }, {
4635
+ "name" : "reply-label",
4636
+ "fieldName" : "replyLabel",
4637
+ "type" : {
4638
+ "text" : "string"
4639
+ }
4640
+ }, {
4641
+ "name" : "reply-context-label",
4642
+ "fieldName" : "replyContextLabel",
4643
+ "type" : {
4644
+ "text" : "string"
4645
+ }
4646
+ }, {
4647
+ "name" : "author-label",
4648
+ "fieldName" : "authorLabel",
4649
+ "type" : {
4650
+ "text" : "string"
4651
+ }
4652
+ }, {
4653
+ "name" : "pending-label",
4654
+ "fieldName" : "pendingLabel",
4655
+ "type" : {
4656
+ "text" : "string"
4657
+ }
4658
+ }, {
4659
+ "name" : "removed-label",
4660
+ "fieldName" : "removedLabel",
4661
+ "type" : {
4662
+ "text" : "string"
4663
+ }
4664
+ }, {
4665
+ "name" : "expired-label",
4666
+ "fieldName" : "expiredLabel",
4667
+ "type" : {
4668
+ "text" : "string"
4669
+ }
4670
+ } ],
4671
+ "events" : [ {
4672
+ "name" : "x-comment-reply",
4673
+ "type" : {
4674
+ "text" : "CustomEvent<{ commentId: string }>"
4675
+ },
4676
+ "cancelable" : false,
4677
+ "detail" : {
4678
+ "commentId" : "string"
4679
+ }
4680
+ } ],
4681
+ "slots" : [ {
4682
+ "name" : "meta"
4683
+ } ],
4684
+ "cssProperties" : [ {
4685
+ "name" : "--x-comment-author-bg",
4686
+ "default" : "color-mix(in srgb,var(--x-color-primary,#2563eb) 8%,var(--x-comment-bg))"
4687
+ }, {
4688
+ "name" : "--x-comment-bg",
4689
+ "default" : "var(--x-color-surface,#ffffff)"
4690
+ }, {
4691
+ "name" : "--x-comment-border",
4692
+ "default" : "var(--x-color-border,#e5e7eb)"
4693
+ }, {
4694
+ "name" : "--x-comment-indent",
4695
+ "default" : "var(--x-space-xl,2rem)"
4696
+ }, {
4697
+ "name" : "--x-comment-level"
4698
+ }, {
4699
+ "name" : "--x-comment-meta-color",
4700
+ "default" : "var(--x-color-text-muted,#6b7280)"
4701
+ }, {
4702
+ "name" : "--x-comment-pending-opacity",
4703
+ "default" : "var(--x-opacity-placeholder,0.6)"
4704
+ }, {
4705
+ "name" : "--x-comment-radius",
4706
+ "default" : "var(--x-radius-md,8px)"
4707
+ } ],
4708
+ "cssParts" : [ {
4709
+ "name" : "part"
4710
+ } ]
4711
+ } ],
4712
+ "exports" : [ {
4713
+ "kind" : "js",
4714
+ "name" : "init",
4715
+ "declaration" : {
4716
+ "name" : "init"
4717
+ }
4718
+ }, {
4719
+ "kind" : "custom-element-definition",
4720
+ "name" : "x-comment",
4721
+ "declaration" : {
4722
+ "name" : "XComment"
4723
+ }
4724
+ } ]
4725
+ }, {
4726
+ "kind" : "javascript-module",
4727
+ "path" : "dist/x-comments.js",
4728
+ "declarations" : [ {
4729
+ "kind" : "class",
4730
+ "name" : "XComments",
4731
+ "tagName" : "x-comments",
4732
+ "superclass" : {
4733
+ "name" : "HTMLElement"
4734
+ },
4735
+ "members" : [ {
4736
+ "kind" : "field",
4737
+ "name" : "closed",
4738
+ "type" : {
4739
+ "text" : "boolean"
4740
+ }
4741
+ }, {
4742
+ "kind" : "field",
4743
+ "name" : "replyFormLabel",
4744
+ "type" : {
4745
+ "text" : "string"
4746
+ }
4747
+ }, {
4748
+ "kind" : "field",
4749
+ "name" : "headingLabel",
4750
+ "type" : {
4751
+ "text" : "string"
4752
+ }
4753
+ }, {
4754
+ "kind" : "field",
4755
+ "name" : "sendLabel",
4756
+ "type" : {
4757
+ "text" : "string"
4758
+ }
4759
+ }, {
4760
+ "kind" : "field",
4761
+ "name" : "formLabel",
4762
+ "type" : {
4763
+ "text" : "string"
4764
+ }
4765
+ }, {
4766
+ "kind" : "field",
4767
+ "name" : "nameMax",
4768
+ "type" : {
4769
+ "text" : "number"
4770
+ }
4771
+ }, {
4772
+ "kind" : "field",
4773
+ "name" : "replyTo",
4774
+ "type" : {
4775
+ "text" : "string"
4776
+ }
4777
+ }, {
4778
+ "kind" : "field",
4779
+ "name" : "cancelLabel",
4780
+ "type" : {
4781
+ "text" : "string"
4782
+ }
4783
+ }, {
4784
+ "kind" : "field",
4785
+ "name" : "textLabel",
4786
+ "type" : {
4787
+ "text" : "string"
4788
+ }
4789
+ }, {
4790
+ "kind" : "field",
4791
+ "name" : "nameLabel",
4792
+ "type" : {
4793
+ "text" : "string"
4794
+ }
4795
+ }, {
4796
+ "kind" : "field",
4797
+ "name" : "textMax",
4798
+ "type" : {
4799
+ "text" : "number"
4800
+ }
4801
+ }, {
4802
+ "kind" : "field",
4803
+ "name" : "commenterName",
4804
+ "type" : {
4805
+ "text" : "string"
4806
+ }
4807
+ }, {
4808
+ "kind" : "field",
4809
+ "name" : "sentLabel",
4810
+ "type" : {
4811
+ "text" : "string"
4812
+ }
4813
+ }, {
4814
+ "kind" : "method",
4815
+ "name" : "focus",
4816
+ "return" : {
4817
+ "type" : {
4818
+ "text" : "void"
4819
+ }
4820
+ }
4821
+ } ],
4822
+ "attributes" : [ {
4823
+ "name" : "closed",
4824
+ "fieldName" : "closed",
4825
+ "type" : {
4826
+ "text" : "boolean"
4827
+ }
4828
+ }, {
4829
+ "name" : "reply-to",
4830
+ "fieldName" : "replyTo",
4831
+ "type" : {
4832
+ "text" : "string"
4833
+ }
4834
+ }, {
4835
+ "name" : "commenter-name",
4836
+ "fieldName" : "commenterName",
4837
+ "type" : {
4838
+ "text" : "string"
4839
+ }
4840
+ }, {
4841
+ "name" : "name-max",
4842
+ "fieldName" : "nameMax",
4843
+ "type" : {
4844
+ "text" : "number"
4845
+ }
4846
+ }, {
4847
+ "name" : "text-max",
4848
+ "fieldName" : "textMax",
4849
+ "type" : {
4850
+ "text" : "number"
4851
+ }
4852
+ }, {
4853
+ "name" : "heading-label",
4854
+ "fieldName" : "headingLabel",
4855
+ "type" : {
4856
+ "text" : "string"
4857
+ }
4858
+ }, {
4859
+ "name" : "form-label",
4860
+ "fieldName" : "formLabel",
4861
+ "type" : {
4862
+ "text" : "string"
4863
+ }
4864
+ }, {
4865
+ "name" : "reply-form-label",
4866
+ "fieldName" : "replyFormLabel",
4867
+ "type" : {
4868
+ "text" : "string"
4869
+ }
4870
+ }, {
4871
+ "name" : "name-label",
4872
+ "fieldName" : "nameLabel",
4873
+ "type" : {
4874
+ "text" : "string"
4875
+ }
4876
+ }, {
4877
+ "name" : "text-label",
4878
+ "fieldName" : "textLabel",
4879
+ "type" : {
4880
+ "text" : "string"
4881
+ }
4882
+ }, {
4883
+ "name" : "send-label",
4884
+ "fieldName" : "sendLabel",
4885
+ "type" : {
4886
+ "text" : "string"
4887
+ }
4888
+ }, {
4889
+ "name" : "cancel-label",
4890
+ "fieldName" : "cancelLabel",
4891
+ "type" : {
4892
+ "text" : "string"
4893
+ }
4894
+ }, {
4895
+ "name" : "sent-label",
4896
+ "fieldName" : "sentLabel",
4897
+ "type" : {
4898
+ "text" : "string"
4899
+ }
4900
+ } ],
4901
+ "events" : [ {
4902
+ "name" : "x-comments-reply-request",
4903
+ "type" : {
4904
+ "text" : "CustomEvent<{ replyTo: string; previousReplyTo: string }>"
4905
+ },
4906
+ "cancelable" : true,
4907
+ "requests" : {
4908
+ "reply-to" : "replyTo"
4909
+ },
4910
+ "detail" : {
4911
+ "replyTo" : "string",
4912
+ "previousReplyTo" : "string"
4913
+ }
4914
+ }, {
4915
+ "name" : "x-comments-submit",
4916
+ "type" : {
4917
+ "text" : "CustomEvent<{ name: string; text: string; replyTo: string; trap: string }>"
4918
+ },
4919
+ "cancelable" : true,
4920
+ "detail" : {
4921
+ "name" : "string",
4922
+ "text" : "string",
4923
+ "replyTo" : "string",
4924
+ "trap" : "string"
4925
+ }
4926
+ } ],
4927
+ "slots" : [ {
4928
+ "name" : "before"
4929
+ }, {
4930
+ "name" : "after"
4931
+ }, {
4932
+ "name" : "notice"
4933
+ } ],
4934
+ "cssProperties" : [ {
4935
+ "name" : "--x-comments-form-bg",
4936
+ "default" : "var(--x-color-surface,#ffffff)"
4937
+ }, {
4938
+ "name" : "--x-comments-form-border",
4939
+ "default" : "var(--x-color-border,#e5e7eb)"
4940
+ }, {
4941
+ "name" : "--x-comments-form-radius",
4942
+ "default" : "var(--x-radius-md,8px)"
4943
+ }, {
4944
+ "name" : "--x-comments-gap",
4945
+ "default" : "var(--x-space-md,0.75rem)"
4946
+ }, {
4947
+ "name" : "--x-comments-heading-font-size",
4948
+ "default" : "var(--x-font-size-lg,1.125rem)"
4949
+ } ],
4950
+ "cssParts" : [ {
4951
+ "name" : "part"
4952
+ } ],
4953
+ "foreignWrites" : [ {
4954
+ "target" : "x-comment",
4955
+ "attributes" : [ "data-comments-closed", "slot" ]
4956
+ } ]
4957
+ } ],
4958
+ "exports" : [ {
4959
+ "kind" : "js",
4960
+ "name" : "init",
4961
+ "declaration" : {
4962
+ "name" : "init"
4963
+ }
4964
+ }, {
4965
+ "kind" : "custom-element-definition",
4966
+ "name" : "x-comments",
4967
+ "declaration" : {
4968
+ "name" : "XComments"
4969
+ }
4970
+ } ]
4479
4971
  }, {
4480
4972
  "kind" : "javascript-module",
4481
4973
  "path" : "dist/x-confetti.js",
@@ -8030,6 +8522,12 @@
8030
8522
  "type" : {
8031
8523
  "text" : "string"
8032
8524
  }
8525
+ }, {
8526
+ "kind" : "field",
8527
+ "name" : "maxLength",
8528
+ "type" : {
8529
+ "text" : "number"
8530
+ }
8033
8531
  }, {
8034
8532
  "kind" : "field",
8035
8533
  "name" : "error",
@@ -8145,6 +8643,12 @@
8145
8643
  "type" : {
8146
8644
  "text" : "string"
8147
8645
  }
8646
+ }, {
8647
+ "name" : "maxlength",
8648
+ "fieldName" : "maxLength",
8649
+ "type" : {
8650
+ "text" : "number"
8651
+ }
8148
8652
  } ],
8149
8653
  "events" : [ {
8150
8654
  "name" : "x-form-field-change-request",
package/dist/all.js CHANGED
@@ -21,6 +21,8 @@ import { init as xCollapse } from './x-collapse.js';
21
21
  import { init as xColorPicker } from './x-color-picker.js';
22
22
  import { init as xCombobox } from './x-combobox.js';
23
23
  import { init as xCommandPalette } from './x-command-palette.js';
24
+ import { init as xComment } from './x-comment.js';
25
+ import { init as xComments } from './x-comments.js';
24
26
  import { init as xConfetti } from './x-confetti.js';
25
27
  import { init as xContainer } from './x-container.js';
26
28
  import { init as xContextMenu } from './x-context-menu.js';
@@ -132,6 +134,8 @@ export function init() {
132
134
  xColorPicker();
133
135
  xCombobox();
134
136
  xCommandPalette();
137
+ xComment();
138
+ xComments();
135
139
  xConfetti();
136
140
  xContainer();
137
141
  xContextMenu();
package/dist/baredom.d.ts CHANGED
@@ -20,6 +20,8 @@ export { XCollapse } from "./x-collapse";
20
20
  export { XColorPicker } from "./x-color-picker";
21
21
  export { XCombobox } from "./x-combobox";
22
22
  export { XCommandPalette } from "./x-command-palette";
23
+ export { XComment } from "./x-comment";
24
+ export { XComments } from "./x-comments";
23
25
  export { XConfetti } from "./x-confetti";
24
26
  export { XContainer } from "./x-container";
25
27
  export { XContextMenu } from "./x-context-menu";