@redvars/peacock 3.2.0 → 3.2.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.
Files changed (59) hide show
  1. package/dist/custom-elements-jsdocs.json +586 -586
  2. package/dist/custom-elements.json +4745 -4726
  3. package/dist/field.js.map +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/peacock-loader.js +3 -3
  6. package/dist/peacock-loader.js.map +1 -1
  7. package/dist/src/date-picker/date-picker.d.ts +50 -0
  8. package/dist/src/date-picker/index.d.ts +1 -0
  9. package/dist/src/field/field.d.ts +30 -0
  10. package/dist/src/field/index.d.ts +1 -0
  11. package/dist/src/index.d.ts +7 -1
  12. package/dist/src/input/index.d.ts +1 -7
  13. package/dist/src/input/input.d.ts +51 -0
  14. package/dist/src/number-field/index.d.ts +1 -0
  15. package/dist/src/number-field/number-field.d.ts +55 -0
  16. package/dist/src/switch/index.d.ts +1 -0
  17. package/dist/src/switch/switch.d.ts +89 -0
  18. package/dist/src/textarea/index.d.ts +1 -0
  19. package/dist/src/textarea/textarea.d.ts +51 -0
  20. package/dist/src/time-picker/index.d.ts +1 -0
  21. package/dist/src/time-picker/time-picker.d.ts +50 -0
  22. package/dist/switch-B3NU_cKN.js +2737 -0
  23. package/dist/switch-B3NU_cKN.js.map +1 -0
  24. package/dist/switch-BCbVyXJW.js +2736 -0
  25. package/dist/switch-BCbVyXJW.js.map +1 -0
  26. package/dist/switch-C7A-AMS6.js +2737 -0
  27. package/dist/switch-C7A-AMS6.js.map +1 -0
  28. package/dist/switch-Cqzu1Bd4.js +2737 -0
  29. package/dist/switch-Cqzu1Bd4.js.map +1 -0
  30. package/dist/switch-K9zwiDEK.js +2736 -0
  31. package/dist/switch-K9zwiDEK.js.map +1 -0
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/dist/typedoc.json +10361 -10361
  34. package/package.json +1 -1
  35. package/readme.md +51 -50
  36. package/src/{input/date-picker → date-picker}/date-picker.scss +1 -1
  37. package/src/{input/date-picker → date-picker}/date-picker.ts +3 -3
  38. package/src/date-picker/index.ts +1 -0
  39. package/src/{input/field → field}/field.scss +1 -1
  40. package/src/{input/field → field}/field.ts +1 -1
  41. package/src/field/index.ts +1 -0
  42. package/src/index.ts +7 -9
  43. package/src/input/index.ts +1 -7
  44. package/src/input/{input/input.scss → input.scss} +1 -1
  45. package/src/input/{input/input.ts → input.ts} +3 -3
  46. package/src/number-field/index.ts +1 -0
  47. package/src/{input/number/number.scss → number-field/number-field.scss} +1 -1
  48. package/src/{input/number → number-field}/number-field.ts +4 -4
  49. package/src/peacock-loader.ts +9 -9
  50. package/src/switch/index.ts +1 -0
  51. package/src/{input/toggle/toggle.scss → switch/switch.scss} +23 -23
  52. package/src/{input/toggle/toggle.ts → switch/switch.ts} +19 -21
  53. package/src/textarea/index.ts +1 -0
  54. package/src/{input/textarea → textarea}/textarea.scss +1 -1
  55. package/src/{input/textarea → textarea}/textarea.ts +3 -3
  56. package/src/time-picker/index.ts +1 -0
  57. package/src/{input/time-picker → time-picker}/time-picker.scss +1 -1
  58. package/src/{input/time-picker → time-picker}/time-picker.ts +3 -3
  59. package/src/input/toggle/index.ts +0 -1
@@ -5277,205 +5277,94 @@
5277
5277
  }
5278
5278
  },
5279
5279
  {
5280
- "rawTag": "tag",
5281
- "label": "Tag",
5280
+ "rawTag": "switch",
5281
+ "label": "Switch",
5282
5282
  "jsdoc": {
5283
5283
  "@label": [
5284
5284
  {
5285
5285
  "kind": "text",
5286
- "text": "Tag"
5286
+ "text": "Switch"
5287
5287
  }
5288
5288
  ],
5289
5289
  "@tag": [
5290
5290
  {
5291
5291
  "kind": "text",
5292
- "text": "base-tag"
5292
+ "text": "base-switch"
5293
5293
  }
5294
5294
  ],
5295
5295
  "@rawTag": [
5296
5296
  {
5297
5297
  "kind": "text",
5298
- "text": "tag"
5298
+ "text": "switch"
5299
5299
  }
5300
5300
  ],
5301
5301
  "@summary": [
5302
5302
  {
5303
5303
  "kind": "text",
5304
- "text": "Tag component for displaying labels or values with optional dismiss functionality."
5304
+ "text": "Captures boolean input with an on/off switch interaction."
5305
+ }
5306
+ ],
5307
+ "@overview": [
5308
+ {
5309
+ "kind": "text",
5310
+ "text": "<p>Toggles are used to enable or disable a single option. They provide immediate feedback about whether an option is active or inactive.</p>"
5311
+ }
5312
+ ],
5313
+ "@cssprop": [
5314
+ {
5315
+ "kind": "text",
5316
+ "text": "--switch-handle-color: Color of the switch handle."
5317
+ }
5318
+ ],
5319
+ "@fires": [
5320
+ {
5321
+ "kind": "text",
5322
+ "text": "focus - Dispatched when the switch receives focus."
5305
5323
  }
5306
5324
  ],
5307
5325
  "@example": [
5308
5326
  {
5309
5327
  "kind": "code",
5310
- "text": "```html\n<base-tag color=red>Tag</base-tag>\n```"
5328
+ "text": "```html\n<base-switch value=\"true\"></base-switch>\n```"
5311
5329
  }
5312
5330
  ],
5313
5331
  "@tags": [
5314
5332
  {
5315
5333
  "kind": "text",
5316
- "text": "display"
5334
+ "text": "input, form"
5317
5335
  }
5318
5336
  ]
5319
5337
  },
5320
5338
  "customElement": {
5321
5339
  "kind": "class",
5322
5340
  "description": "",
5323
- "name": "Tag",
5324
- "members": [
5325
- {
5326
- "kind": "field",
5327
- "name": "dismissible",
5328
- "type": {
5329
- "text": "boolean"
5330
- },
5331
- "default": "false",
5332
- "description": "If true, the tag will have a close icon.",
5333
- "attribute": "dismissible"
5334
- },
5335
- {
5336
- "kind": "field",
5337
- "name": "variant",
5338
- "type": {
5339
- "text": "'elevated' | 'filled' | 'tonal' | 'outlined'"
5340
- },
5341
- "default": "'tonal'",
5342
- "attribute": "variant"
5343
- },
5344
- {
5345
- "kind": "field",
5346
- "name": "color",
5347
- "type": {
5348
- "text": "| 'default'\n | 'blue'\n | 'green'\n | 'red'\n | 'yellow' | undefined"
5349
- },
5350
- "default": "'default'",
5351
- "description": "Tag color.",
5352
- "attribute": "color",
5353
- "reflects": true
5354
- },
5341
+ "name": "Switch",
5342
+ "cssProperties": [
5355
5343
  {
5356
- "kind": "field",
5357
- "name": "size",
5358
- "type": {
5359
- "text": "'sm' | 'md' | undefined"
5360
- },
5361
- "default": "'md'",
5362
- "attribute": "size"
5344
+ "description": "Color of the switch track when checked.",
5345
+ "name": "--switch-track-color:"
5363
5346
  },
5364
5347
  {
5365
- "kind": "method",
5366
- "name": "_dismissClickHandler",
5367
- "privacy": "private",
5368
- "parameters": [
5369
- {
5370
- "name": "e",
5371
- "type": {
5372
- "text": "MouseEvent"
5373
- }
5374
- }
5375
- ]
5348
+ "description": "Color of the switch track when unchecked.",
5349
+ "name": "--switch-track-off-color:"
5376
5350
  },
5377
5351
  {
5378
- "kind": "method",
5379
- "name": "__renderDismissButton",
5380
- "privacy": "private"
5381
- }
5382
- ],
5383
- "events": [
5384
- {
5385
- "name": "tag--dismiss",
5386
- "type": {
5387
- "text": "CustomEvent"
5388
- }
5389
- }
5390
- ],
5391
- "attributes": [
5392
- {
5393
- "name": "dismissible",
5394
- "type": {
5395
- "text": "boolean"
5396
- },
5397
- "default": "false",
5398
- "description": "If true, the tag will have a close icon.",
5399
- "fieldName": "dismissible"
5352
+ "description": "Width of the switch track.",
5353
+ "name": "--switch-width:"
5400
5354
  },
5401
5355
  {
5402
- "name": "variant",
5403
- "type": {
5404
- "text": "'elevated' | 'filled' | 'tonal' | 'outlined'"
5405
- },
5406
- "default": "'tonal'",
5407
- "fieldName": "variant"
5356
+ "description": "Height of the switch track.",
5357
+ "name": "--switch-height:"
5408
5358
  },
5409
5359
  {
5410
- "name": "color",
5411
- "type": {
5412
- "text": "| 'default'\n | 'blue'\n | 'green'\n | 'red'\n | 'yellow' | undefined"
5413
- },
5414
- "default": "'default'",
5415
- "description": "Tag color.",
5416
- "fieldName": "color"
5360
+ "description": "Size of the switch handle.",
5361
+ "name": "--switch-handle-radius:"
5417
5362
  },
5418
5363
  {
5419
- "name": "size",
5420
- "type": {
5421
- "text": "'sm' | 'md' | undefined"
5422
- },
5423
- "default": "'md'",
5424
- "fieldName": "size"
5425
- }
5426
- ],
5427
- "superclass": {
5428
- "name": "LitElement",
5429
- "package": "lit"
5430
- },
5431
- "tagName": "base-tag",
5432
- "customElement": true,
5433
- "summary": "Tag component for displaying labels or values with optional dismiss functionality.",
5434
- "rawTag": {
5435
- "name": "tag",
5436
- "description": ""
5437
- }
5438
- }
5439
- },
5440
- {
5441
- "rawTag": "textarea",
5442
- "label": "Textarea",
5443
- "jsdoc": {
5444
- "@label": [
5445
- {
5446
- "kind": "text",
5447
- "text": "Textarea"
5448
- }
5449
- ],
5450
- "@tag": [
5451
- {
5452
- "kind": "text",
5453
- "text": "textarea-field"
5454
- }
5455
- ],
5456
- "@rawTag": [
5457
- {
5458
- "kind": "text",
5459
- "text": "textarea"
5460
- }
5461
- ],
5462
- "@summary": [
5463
- {
5464
- "kind": "text",
5465
- "text": "The Textarea component is used to capture user input."
5364
+ "description": "Color of the switch handle.",
5365
+ "name": "--switch-handle-color:"
5466
5366
  }
5467
5367
  ],
5468
- "@example": [
5469
- {
5470
- "kind": "code",
5471
- "text": "```html\n<textarea-field label=\"Name\" required placeholder=\"Enter your name\"></textarea-field>\n```"
5472
- }
5473
- ]
5474
- },
5475
- "customElement": {
5476
- "kind": "class",
5477
- "description": "",
5478
- "name": "Textarea",
5479
5368
  "members": [
5480
5369
  {
5481
5370
  "kind": "field",
@@ -5483,7 +5372,7 @@
5483
5372
  "type": {
5484
5373
  "text": "any | undefined"
5485
5374
  },
5486
- "default": "''",
5375
+ "default": "false",
5487
5376
  "attribute": "value",
5488
5377
  "inheritedFrom": {
5489
5378
  "name": "BaseInput",
@@ -5497,54 +5386,83 @@
5497
5386
  "text": "string"
5498
5387
  },
5499
5388
  "default": "''",
5389
+ "description": "The input field name.",
5500
5390
  "attribute": "name"
5501
5391
  },
5502
5392
  {
5503
5393
  "kind": "field",
5504
- "name": "placeholder",
5394
+ "name": "label",
5505
5395
  "type": {
5506
5396
  "text": "string"
5507
5397
  },
5508
5398
  "default": "''",
5509
- "attribute": "placeholder"
5399
+ "description": "The switch label.",
5400
+ "attribute": "label"
5510
5401
  },
5511
5402
  {
5512
5403
  "kind": "field",
5513
- "name": "label",
5404
+ "name": "rounded",
5514
5405
  "type": {
5515
- "text": "string"
5406
+ "text": "boolean"
5516
5407
  },
5517
- "default": "''",
5518
- "attribute": "label"
5408
+ "default": "true",
5409
+ "description": "If true, the toggle has rounded corners. Defaults to `true`.",
5410
+ "attribute": "rounded"
5519
5411
  },
5520
5412
  {
5521
5413
  "kind": "field",
5522
- "name": "inline",
5414
+ "name": "required",
5523
5415
  "type": {
5524
5416
  "text": "boolean"
5525
5417
  },
5526
5418
  "default": "false",
5527
- "attribute": "inline",
5528
- "reflects": true
5419
+ "attribute": "required",
5420
+ "reflects": true,
5421
+ "description": "If true, required icon is shown. Defaults to `false`.",
5422
+ "inheritedFrom": {
5423
+ "name": "BaseInput",
5424
+ "module": "src/input/BaseInput.ts"
5425
+ }
5529
5426
  },
5530
5427
  {
5531
5428
  "kind": "field",
5532
- "name": "size",
5429
+ "name": "readonly",
5533
5430
  "type": {
5534
- "text": "'sm' | 'md' | 'lg'"
5431
+ "text": "boolean"
5535
5432
  },
5536
- "default": "'md'",
5537
- "attribute": "size",
5538
- "reflects": true
5433
+ "default": "false",
5434
+ "attribute": "readonly",
5435
+ "reflects": true,
5436
+ "description": "If true, the toggle is readonly. Defaults to `false`.",
5437
+ "inheritedFrom": {
5438
+ "name": "BaseInput",
5439
+ "module": "src/input/BaseInput.ts"
5440
+ }
5539
5441
  },
5540
5442
  {
5541
5443
  "kind": "field",
5542
- "name": "autocomplete",
5444
+ "name": "disabled",
5543
5445
  "type": {
5544
- "text": "'on' | 'off'"
5446
+ "text": "boolean"
5545
5447
  },
5546
- "default": "'off'",
5547
- "attribute": "autocomplete"
5448
+ "default": "false",
5449
+ "attribute": "disabled",
5450
+ "reflects": true,
5451
+ "description": "If true, the user cannot interact with the toggle. Defaults to `false`.",
5452
+ "inheritedFrom": {
5453
+ "name": "BaseInput",
5454
+ "module": "src/input/BaseInput.ts"
5455
+ }
5456
+ },
5457
+ {
5458
+ "kind": "field",
5459
+ "name": "withIcon",
5460
+ "type": {
5461
+ "text": "boolean"
5462
+ },
5463
+ "default": "false",
5464
+ "attribute": "with-icon",
5465
+ "reflects": true
5548
5466
  },
5549
5467
  {
5550
5468
  "kind": "field",
@@ -5553,224 +5471,164 @@
5553
5471
  "text": "Record<string, string>"
5554
5472
  },
5555
5473
  "default": "{}",
5474
+ "description": "Configuration object for aria attributes.",
5556
5475
  "attribute": "configAria"
5557
5476
  },
5558
5477
  {
5559
5478
  "kind": "field",
5560
- "name": "variant",
5479
+ "name": "hasFocus",
5561
5480
  "type": {
5562
- "text": "'filled' | 'outlined' | 'default'"
5481
+ "text": "boolean"
5563
5482
  },
5564
- "default": "'default'",
5565
- "attribute": "variant"
5483
+ "privacy": "private",
5484
+ "default": "false"
5566
5485
  },
5567
5486
  {
5568
5487
  "kind": "field",
5569
- "name": "helperText",
5488
+ "name": "isActive",
5570
5489
  "type": {
5571
- "text": "string"
5490
+ "text": "boolean"
5572
5491
  },
5573
- "default": "''",
5574
- "description": "Helper text to display below the input.",
5575
- "attribute": "helper-text"
5492
+ "privacy": "private",
5493
+ "default": "false"
5576
5494
  },
5577
5495
  {
5578
5496
  "kind": "field",
5579
- "name": "error",
5497
+ "name": "slotHasContent",
5580
5498
  "type": {
5581
5499
  "text": "boolean"
5582
5500
  },
5583
- "default": "false",
5584
- "attribute": "error"
5501
+ "privacy": "private",
5502
+ "default": "false"
5585
5503
  },
5586
5504
  {
5587
5505
  "kind": "field",
5588
- "name": "errorText",
5506
+ "name": "trackElement",
5589
5507
  "type": {
5590
- "text": "string"
5508
+ "text": "HTMLElement | undefined"
5591
5509
  },
5592
- "default": "''",
5593
- "attribute": "error-text"
5510
+ "privacy": "private"
5594
5511
  },
5595
5512
  {
5596
5513
  "kind": "field",
5597
- "name": "warning",
5514
+ "name": "nativeElement",
5598
5515
  "type": {
5599
- "text": "boolean"
5516
+ "text": "HTMLInputElement | undefined"
5600
5517
  },
5601
- "default": "false",
5602
- "attribute": "warning"
5518
+ "privacy": "private"
5603
5519
  },
5604
5520
  {
5605
5521
  "kind": "field",
5606
- "name": "warningText",
5522
+ "name": "tabindex",
5607
5523
  "type": {
5608
- "text": "string"
5524
+ "text": "string | undefined"
5609
5525
  },
5610
- "default": "''",
5611
- "attribute": "warning-text"
5526
+ "privacy": "private"
5612
5527
  },
5613
5528
  {
5614
- "kind": "field",
5615
- "name": "rows",
5616
- "type": {
5617
- "text": "string"
5618
- },
5619
- "default": "'3'",
5620
- "attribute": "rows"
5529
+ "kind": "method",
5530
+ "name": "handleInitialAttributes",
5531
+ "privacy": "private"
5621
5532
  },
5622
5533
  {
5623
5534
  "kind": "field",
5624
- "name": "focused",
5625
- "type": {
5626
- "text": "boolean"
5627
- },
5628
- "privacy": "private",
5629
- "default": "false"
5535
+ "name": "windowMouseUp",
5536
+ "privacy": "private"
5630
5537
  },
5631
5538
  {
5632
5539
  "kind": "field",
5633
- "name": "passwordVisible",
5634
- "type": {
5635
- "text": "boolean"
5636
- },
5637
- "privacy": "private",
5638
- "default": "false"
5540
+ "name": "windowKeyUp",
5541
+ "privacy": "private"
5639
5542
  },
5640
5543
  {
5641
5544
  "kind": "field",
5642
- "name": "dirty",
5643
- "type": {
5644
- "text": "boolean"
5645
- },
5646
- "privacy": "private",
5647
- "default": "false",
5648
- "description": "Returns true when the text field has been interacted with. Native\nvalidation errors only display in response to user interactions."
5545
+ "name": "mouseDownHandler",
5546
+ "privacy": "private"
5649
5547
  },
5650
5548
  {
5651
5549
  "kind": "field",
5652
- "name": "inputElement",
5653
- "type": {
5654
- "text": "HTMLInputElement | undefined"
5655
- },
5550
+ "name": "keyDownHandler",
5656
5551
  "privacy": "private"
5657
5552
  },
5658
5553
  {
5659
5554
  "kind": "field",
5660
- "name": "tabindex",
5661
- "type": {
5662
- "text": "string | undefined"
5663
- },
5555
+ "name": "clickHandler",
5664
5556
  "privacy": "private"
5665
5557
  },
5666
5558
  {
5667
- "kind": "method",
5668
- "name": "handleInitialAttributes",
5559
+ "kind": "field",
5560
+ "name": "blurHandler",
5669
5561
  "privacy": "private"
5670
5562
  },
5671
5563
  {
5672
- "kind": "method",
5673
- "name": "__handleInput",
5674
- "privacy": "private",
5675
- "parameters": [
5676
- {
5677
- "name": "event",
5678
- "type": {
5679
- "text": "InputEvent"
5680
- }
5681
- }
5682
- ]
5564
+ "kind": "field",
5565
+ "name": "focusHandler",
5566
+ "privacy": "private"
5683
5567
  },
5684
5568
  {
5685
- "kind": "method",
5686
- "name": "focus"
5569
+ "kind": "field",
5570
+ "name": "handleKeyUp",
5571
+ "privacy": "private"
5687
5572
  },
5688
5573
  {
5689
5574
  "kind": "method",
5690
- "name": "blur"
5575
+ "name": "focus",
5576
+ "description": "Sets focus on the toggle."
5691
5577
  },
5692
5578
  {
5693
5579
  "kind": "method",
5694
- "name": "__handleFocusChange",
5695
- "privacy": "private"
5580
+ "name": "blur",
5581
+ "description": "Removes focus from the toggle."
5696
5582
  },
5697
5583
  {
5698
5584
  "kind": "method",
5699
- "name": "__redispatchEvent",
5700
- "privacy": "private",
5701
- "parameters": [
5702
- {
5703
- "name": "event",
5704
- "type": {
5705
- "text": "Event"
5706
- }
5707
- }
5708
- ]
5585
+ "name": "__renderIcon"
5709
5586
  },
5710
5587
  {
5711
5588
  "kind": "field",
5712
- "name": "disabled",
5589
+ "name": "skeleton",
5713
5590
  "type": {
5714
5591
  "text": "boolean"
5715
5592
  },
5716
5593
  "default": "false",
5717
- "attribute": "disabled",
5594
+ "attribute": "skeleton",
5718
5595
  "reflects": true,
5719
5596
  "inheritedFrom": {
5720
5597
  "name": "BaseInput",
5721
5598
  "module": "src/input/BaseInput.ts"
5722
5599
  }
5723
- },
5600
+ }
5601
+ ],
5602
+ "events": [
5724
5603
  {
5725
- "kind": "field",
5726
- "name": "readonly",
5727
5604
  "type": {
5728
- "text": "boolean"
5605
+ "text": "CustomEvent"
5729
5606
  },
5730
- "default": "false",
5731
- "attribute": "readonly",
5732
- "reflects": true,
5733
- "inheritedFrom": {
5734
- "name": "BaseInput",
5735
- "module": "src/input/BaseInput.ts"
5736
- }
5607
+ "description": "Dispatched when the switch value changes.",
5608
+ "name": "change"
5737
5609
  },
5738
5610
  {
5739
- "kind": "field",
5740
- "name": "required",
5741
5611
  "type": {
5742
- "text": "boolean"
5612
+ "text": "CustomEvent"
5743
5613
  },
5744
- "default": "false",
5745
- "attribute": "required",
5746
- "reflects": true,
5747
- "inheritedFrom": {
5748
- "name": "BaseInput",
5749
- "module": "src/input/BaseInput.ts"
5750
- }
5614
+ "description": "Dispatched when the switch loses focus.",
5615
+ "name": "blur"
5751
5616
  },
5752
5617
  {
5753
- "kind": "field",
5754
- "name": "skeleton",
5755
5618
  "type": {
5756
- "text": "boolean"
5619
+ "text": "CustomEvent"
5757
5620
  },
5758
- "default": "false",
5759
- "attribute": "skeleton",
5760
- "reflects": true,
5761
- "inheritedFrom": {
5762
- "name": "BaseInput",
5763
- "module": "src/input/BaseInput.ts"
5764
- }
5621
+ "description": "Dispatched when the switch receives focus.",
5622
+ "name": "focus"
5765
5623
  }
5766
5624
  ],
5767
5625
  "attributes": [
5768
5626
  {
5769
5627
  "name": "value",
5770
5628
  "type": {
5771
- "text": "string"
5629
+ "text": "boolean"
5772
5630
  },
5773
- "default": "''",
5631
+ "default": "false",
5774
5632
  "fieldName": "value"
5775
5633
  },
5776
5634
  {
@@ -5779,47 +5637,73 @@
5779
5637
  "text": "string"
5780
5638
  },
5781
5639
  "default": "''",
5640
+ "description": "The input field name.",
5782
5641
  "fieldName": "name"
5783
5642
  },
5784
5643
  {
5785
- "name": "placeholder",
5644
+ "name": "label",
5786
5645
  "type": {
5787
5646
  "text": "string"
5788
5647
  },
5789
5648
  "default": "''",
5790
- "fieldName": "placeholder"
5649
+ "description": "The switch label.",
5650
+ "fieldName": "label"
5791
5651
  },
5792
5652
  {
5793
- "name": "label",
5653
+ "name": "rounded",
5794
5654
  "type": {
5795
- "text": "string"
5655
+ "text": "boolean"
5796
5656
  },
5797
- "default": "''",
5798
- "fieldName": "label"
5657
+ "default": "true",
5658
+ "description": "If true, the toggle has rounded corners. Defaults to `true`.",
5659
+ "fieldName": "rounded"
5799
5660
  },
5800
5661
  {
5801
- "name": "inline",
5662
+ "name": "required",
5802
5663
  "type": {
5803
5664
  "text": "boolean"
5804
5665
  },
5805
5666
  "default": "false",
5806
- "fieldName": "inline"
5667
+ "fieldName": "required",
5668
+ "description": "If true, required icon is shown. Defaults to `false`.",
5669
+ "inheritedFrom": {
5670
+ "name": "BaseInput",
5671
+ "module": "src/input/BaseInput.ts"
5672
+ }
5807
5673
  },
5808
5674
  {
5809
- "name": "size",
5675
+ "name": "readonly",
5810
5676
  "type": {
5811
- "text": "'sm' | 'md' | 'lg'"
5677
+ "text": "boolean"
5812
5678
  },
5813
- "default": "'md'",
5814
- "fieldName": "size"
5679
+ "default": "false",
5680
+ "fieldName": "readonly",
5681
+ "description": "If true, the toggle is readonly. Defaults to `false`.",
5682
+ "inheritedFrom": {
5683
+ "name": "BaseInput",
5684
+ "module": "src/input/BaseInput.ts"
5685
+ }
5815
5686
  },
5816
5687
  {
5817
- "name": "autocomplete",
5688
+ "name": "disabled",
5818
5689
  "type": {
5819
- "text": "'on' | 'off'"
5690
+ "text": "boolean"
5820
5691
  },
5821
- "default": "'off'",
5822
- "fieldName": "autocomplete"
5692
+ "default": "false",
5693
+ "fieldName": "disabled",
5694
+ "description": "If true, the user cannot interact with the toggle. Defaults to `false`.",
5695
+ "inheritedFrom": {
5696
+ "name": "BaseInput",
5697
+ "module": "src/input/BaseInput.ts"
5698
+ }
5699
+ },
5700
+ {
5701
+ "name": "with-icon",
5702
+ "type": {
5703
+ "text": "boolean"
5704
+ },
5705
+ "default": "false",
5706
+ "fieldName": "withIcon"
5823
5707
  },
5824
5708
  {
5825
5709
  "name": "configAria",
@@ -5827,166 +5711,235 @@
5827
5711
  "text": "Record<string, string>"
5828
5712
  },
5829
5713
  "default": "{}",
5714
+ "description": "Configuration object for aria attributes.",
5830
5715
  "fieldName": "configAria"
5831
5716
  },
5832
5717
  {
5833
- "name": "variant",
5718
+ "name": "skeleton",
5834
5719
  "type": {
5835
- "text": "'filled' | 'outlined' | 'default'"
5720
+ "text": "boolean"
5836
5721
  },
5837
- "default": "'default'",
5838
- "fieldName": "variant"
5839
- },
5722
+ "default": "false",
5723
+ "fieldName": "skeleton",
5724
+ "inheritedFrom": {
5725
+ "name": "BaseInput",
5726
+ "module": "src/input/BaseInput.ts"
5727
+ }
5728
+ }
5729
+ ],
5730
+ "superclass": {
5731
+ "name": "BaseInput",
5732
+ "module": "/src/input/BaseInput.js"
5733
+ },
5734
+ "tagName": "base-switch",
5735
+ "customElement": true,
5736
+ "summary": "Captures boolean input with an on/off switch interaction.",
5737
+ "rawTag": {
5738
+ "name": "switch",
5739
+ "description": ""
5740
+ }
5741
+ }
5742
+ },
5743
+ {
5744
+ "rawTag": "tag",
5745
+ "label": "Tag",
5746
+ "jsdoc": {
5747
+ "@label": [
5840
5748
  {
5841
- "name": "helper-text",
5842
- "type": {
5843
- "text": "string"
5844
- },
5845
- "default": "''",
5846
- "description": "Helper text to display below the input.",
5847
- "fieldName": "helperText"
5848
- },
5749
+ "kind": "text",
5750
+ "text": "Tag"
5751
+ }
5752
+ ],
5753
+ "@tag": [
5849
5754
  {
5850
- "name": "error",
5755
+ "kind": "text",
5756
+ "text": "base-tag"
5757
+ }
5758
+ ],
5759
+ "@rawTag": [
5760
+ {
5761
+ "kind": "text",
5762
+ "text": "tag"
5763
+ }
5764
+ ],
5765
+ "@summary": [
5766
+ {
5767
+ "kind": "text",
5768
+ "text": "Tag component for displaying labels or values with optional dismiss functionality."
5769
+ }
5770
+ ],
5771
+ "@example": [
5772
+ {
5773
+ "kind": "code",
5774
+ "text": "```html\n<base-tag color=red>Tag</base-tag>\n```"
5775
+ }
5776
+ ],
5777
+ "@tags": [
5778
+ {
5779
+ "kind": "text",
5780
+ "text": "display"
5781
+ }
5782
+ ]
5783
+ },
5784
+ "customElement": {
5785
+ "kind": "class",
5786
+ "description": "",
5787
+ "name": "Tag",
5788
+ "members": [
5789
+ {
5790
+ "kind": "field",
5791
+ "name": "dismissible",
5851
5792
  "type": {
5852
5793
  "text": "boolean"
5853
5794
  },
5854
5795
  "default": "false",
5855
- "fieldName": "error"
5796
+ "description": "If true, the tag will have a close icon.",
5797
+ "attribute": "dismissible"
5856
5798
  },
5857
5799
  {
5858
- "name": "error-text",
5800
+ "kind": "field",
5801
+ "name": "variant",
5859
5802
  "type": {
5860
- "text": "string"
5803
+ "text": "'elevated' | 'filled' | 'tonal' | 'outlined'"
5861
5804
  },
5862
- "default": "''",
5863
- "fieldName": "errorText"
5805
+ "default": "'tonal'",
5806
+ "attribute": "variant"
5864
5807
  },
5865
5808
  {
5866
- "name": "warning",
5809
+ "kind": "field",
5810
+ "name": "color",
5867
5811
  "type": {
5868
- "text": "boolean"
5812
+ "text": "| 'default'\n | 'blue'\n | 'green'\n | 'red'\n | 'yellow' | undefined"
5869
5813
  },
5870
- "default": "false",
5871
- "fieldName": "warning"
5814
+ "default": "'default'",
5815
+ "description": "Tag color.",
5816
+ "attribute": "color",
5817
+ "reflects": true
5872
5818
  },
5873
5819
  {
5874
- "name": "warning-text",
5820
+ "kind": "field",
5821
+ "name": "size",
5875
5822
  "type": {
5876
- "text": "string"
5823
+ "text": "'sm' | 'md' | undefined"
5877
5824
  },
5878
- "default": "''",
5879
- "fieldName": "warningText"
5825
+ "default": "'md'",
5826
+ "attribute": "size"
5880
5827
  },
5881
5828
  {
5882
- "name": "rows",
5829
+ "kind": "method",
5830
+ "name": "_dismissClickHandler",
5831
+ "privacy": "private",
5832
+ "parameters": [
5833
+ {
5834
+ "name": "e",
5835
+ "type": {
5836
+ "text": "MouseEvent"
5837
+ }
5838
+ }
5839
+ ]
5840
+ },
5841
+ {
5842
+ "kind": "method",
5843
+ "name": "__renderDismissButton",
5844
+ "privacy": "private"
5845
+ }
5846
+ ],
5847
+ "events": [
5848
+ {
5849
+ "name": "tag--dismiss",
5883
5850
  "type": {
5884
- "text": "string"
5885
- },
5886
- "default": "'3'",
5887
- "fieldName": "rows"
5888
- },
5851
+ "text": "CustomEvent"
5852
+ }
5853
+ }
5854
+ ],
5855
+ "attributes": [
5889
5856
  {
5890
- "name": "disabled",
5857
+ "name": "dismissible",
5891
5858
  "type": {
5892
5859
  "text": "boolean"
5893
5860
  },
5894
5861
  "default": "false",
5895
- "fieldName": "disabled",
5896
- "inheritedFrom": {
5897
- "name": "BaseInput",
5898
- "module": "src/input/BaseInput.ts"
5899
- }
5862
+ "description": "If true, the tag will have a close icon.",
5863
+ "fieldName": "dismissible"
5900
5864
  },
5901
5865
  {
5902
- "name": "readonly",
5866
+ "name": "variant",
5903
5867
  "type": {
5904
- "text": "boolean"
5868
+ "text": "'elevated' | 'filled' | 'tonal' | 'outlined'"
5905
5869
  },
5906
- "default": "false",
5907
- "fieldName": "readonly",
5908
- "inheritedFrom": {
5909
- "name": "BaseInput",
5910
- "module": "src/input/BaseInput.ts"
5911
- }
5870
+ "default": "'tonal'",
5871
+ "fieldName": "variant"
5912
5872
  },
5913
5873
  {
5914
- "name": "required",
5874
+ "name": "color",
5915
5875
  "type": {
5916
- "text": "boolean"
5876
+ "text": "| 'default'\n | 'blue'\n | 'green'\n | 'red'\n | 'yellow' | undefined"
5917
5877
  },
5918
- "default": "false",
5919
- "fieldName": "required",
5920
- "inheritedFrom": {
5921
- "name": "BaseInput",
5922
- "module": "src/input/BaseInput.ts"
5923
- }
5878
+ "default": "'default'",
5879
+ "description": "Tag color.",
5880
+ "fieldName": "color"
5924
5881
  },
5925
5882
  {
5926
- "name": "skeleton",
5883
+ "name": "size",
5927
5884
  "type": {
5928
- "text": "boolean"
5885
+ "text": "'sm' | 'md' | undefined"
5929
5886
  },
5930
- "default": "false",
5931
- "fieldName": "skeleton",
5932
- "inheritedFrom": {
5933
- "name": "BaseInput",
5934
- "module": "src/input/BaseInput.ts"
5935
- }
5887
+ "default": "'md'",
5888
+ "fieldName": "size"
5936
5889
  }
5937
5890
  ],
5938
5891
  "superclass": {
5939
- "name": "BaseInput",
5940
- "module": "/src/input/BaseInput.js"
5892
+ "name": "LitElement",
5893
+ "package": "lit"
5941
5894
  },
5942
- "tagName": "textarea-field",
5895
+ "tagName": "base-tag",
5943
5896
  "customElement": true,
5944
- "summary": "The Textarea component is used to capture user input.",
5897
+ "summary": "Tag component for displaying labels or values with optional dismiss functionality.",
5945
5898
  "rawTag": {
5946
- "name": "textarea",
5899
+ "name": "tag",
5947
5900
  "description": ""
5948
5901
  }
5949
5902
  }
5950
5903
  },
5951
5904
  {
5952
- "rawTag": "time-picker",
5953
- "label": "Time Picker",
5905
+ "rawTag": "textarea",
5906
+ "label": "Textarea",
5954
5907
  "jsdoc": {
5955
5908
  "@label": [
5956
5909
  {
5957
5910
  "kind": "text",
5958
- "text": "Time Picker"
5911
+ "text": "Textarea"
5959
5912
  }
5960
5913
  ],
5961
5914
  "@tag": [
5962
5915
  {
5963
5916
  "kind": "text",
5964
- "text": "time-picker"
5917
+ "text": "textarea-field"
5965
5918
  }
5966
5919
  ],
5967
5920
  "@rawTag": [
5968
5921
  {
5969
5922
  "kind": "text",
5970
- "text": "time-picker"
5923
+ "text": "textarea"
5971
5924
  }
5972
5925
  ],
5973
5926
  "@summary": [
5974
5927
  {
5975
5928
  "kind": "text",
5976
- "text": "The Time Picker component is used to capture time user input."
5929
+ "text": "The Textarea component is used to capture user input."
5977
5930
  }
5978
5931
  ],
5979
5932
  "@example": [
5980
5933
  {
5981
5934
  "kind": "code",
5982
- "text": "```html\n<time-picker label=\"Name\" required placeholder=\"Enter your name\"></time-picker>\n```"
5935
+ "text": "```html\n<textarea-field label=\"Name\" required placeholder=\"Enter your name\"></textarea-field>\n```"
5983
5936
  }
5984
5937
  ]
5985
5938
  },
5986
5939
  "customElement": {
5987
5940
  "kind": "class",
5988
5941
  "description": "",
5989
- "name": "TimePicker",
5942
+ "name": "Textarea",
5990
5943
  "members": [
5991
5944
  {
5992
5945
  "kind": "field",
@@ -6121,6 +6074,15 @@
6121
6074
  "default": "''",
6122
6075
  "attribute": "warning-text"
6123
6076
  },
6077
+ {
6078
+ "kind": "field",
6079
+ "name": "rows",
6080
+ "type": {
6081
+ "text": "string"
6082
+ },
6083
+ "default": "'3'",
6084
+ "attribute": "rows"
6085
+ },
6124
6086
  {
6125
6087
  "kind": "field",
6126
6088
  "name": "focused",
@@ -6380,6 +6342,14 @@
6380
6342
  "default": "''",
6381
6343
  "fieldName": "warningText"
6382
6344
  },
6345
+ {
6346
+ "name": "rows",
6347
+ "type": {
6348
+ "text": "string"
6349
+ },
6350
+ "default": "'3'",
6351
+ "fieldName": "rows"
6352
+ },
6383
6353
  {
6384
6354
  "name": "disabled",
6385
6355
  "type": {
@@ -6433,104 +6403,54 @@
6433
6403
  "name": "BaseInput",
6434
6404
  "module": "/src/input/BaseInput.js"
6435
6405
  },
6436
- "tagName": "time-picker",
6406
+ "tagName": "textarea-field",
6437
6407
  "customElement": true,
6438
- "summary": "The Time Picker component is used to capture time user input.",
6408
+ "summary": "The Textarea component is used to capture user input.",
6439
6409
  "rawTag": {
6440
- "name": "time-picker",
6410
+ "name": "textarea",
6441
6411
  "description": ""
6442
6412
  }
6443
6413
  }
6444
6414
  },
6445
6415
  {
6446
- "rawTag": "toggle",
6447
- "label": "Toggle",
6416
+ "rawTag": "time-picker",
6417
+ "label": "Time Picker",
6448
6418
  "jsdoc": {
6449
6419
  "@label": [
6450
6420
  {
6451
6421
  "kind": "text",
6452
- "text": "Toggle"
6422
+ "text": "Time Picker"
6453
6423
  }
6454
6424
  ],
6455
6425
  "@tag": [
6456
6426
  {
6457
6427
  "kind": "text",
6458
- "text": "base-toggle"
6428
+ "text": "time-picker"
6459
6429
  }
6460
6430
  ],
6461
6431
  "@rawTag": [
6462
6432
  {
6463
6433
  "kind": "text",
6464
- "text": "toggle"
6434
+ "text": "time-picker"
6465
6435
  }
6466
6436
  ],
6467
6437
  "@summary": [
6468
6438
  {
6469
6439
  "kind": "text",
6470
- "text": "Captures boolean input with an on/off switch interaction."
6471
- }
6472
- ],
6473
- "@overview": [
6474
- {
6475
- "kind": "text",
6476
- "text": "<p>Toggles are used to enable or disable a single option. They provide immediate feedback about whether an option is active or inactive.</p>"
6477
- }
6478
- ],
6479
- "@cssprop": [
6480
- {
6481
- "kind": "text",
6482
- "text": "--toggle-handle-color: Color of the toggle handle."
6483
- }
6484
- ],
6485
- "@fires": [
6486
- {
6487
- "kind": "text",
6488
- "text": "focus - Dispatched when the toggle receives focus."
6440
+ "text": "The Time Picker component is used to capture time user input."
6489
6441
  }
6490
6442
  ],
6491
6443
  "@example": [
6492
6444
  {
6493
6445
  "kind": "code",
6494
- "text": "```html\n<base-toggle value=\"true\"></base-toggle>\n```"
6495
- }
6496
- ],
6497
- "@tags": [
6498
- {
6499
- "kind": "text",
6500
- "text": "input, form"
6446
+ "text": "```html\n<time-picker label=\"Name\" required placeholder=\"Enter your name\"></time-picker>\n```"
6501
6447
  }
6502
6448
  ]
6503
6449
  },
6504
6450
  "customElement": {
6505
6451
  "kind": "class",
6506
6452
  "description": "",
6507
- "name": "Toggle",
6508
- "cssProperties": [
6509
- {
6510
- "description": "Color of the toggle track when checked.",
6511
- "name": "--toggle-track-color:"
6512
- },
6513
- {
6514
- "description": "Color of the toggle track when unchecked.",
6515
- "name": "--toggle-track-off-color:"
6516
- },
6517
- {
6518
- "description": "Width of the toggle track.",
6519
- "name": "--toggle-width:"
6520
- },
6521
- {
6522
- "description": "Height of the toggle track.",
6523
- "name": "--toggle-height:"
6524
- },
6525
- {
6526
- "description": "Size of the toggle handle.",
6527
- "name": "--toggle-handle-radius:"
6528
- },
6529
- {
6530
- "description": "Color of the toggle handle.",
6531
- "name": "--toggle-handle-color:"
6532
- }
6533
- ],
6453
+ "name": "TimePicker",
6534
6454
  "members": [
6535
6455
  {
6536
6456
  "kind": "field",
@@ -6538,7 +6458,7 @@
6538
6458
  "type": {
6539
6459
  "text": "any | undefined"
6540
6460
  },
6541
- "default": "false",
6461
+ "default": "''",
6542
6462
  "attribute": "value",
6543
6463
  "inheritedFrom": {
6544
6464
  "name": "BaseInput",
@@ -6552,9 +6472,17 @@
6552
6472
  "text": "string"
6553
6473
  },
6554
6474
  "default": "''",
6555
- "description": "The input field name.",
6556
6475
  "attribute": "name"
6557
6476
  },
6477
+ {
6478
+ "kind": "field",
6479
+ "name": "placeholder",
6480
+ "type": {
6481
+ "text": "string"
6482
+ },
6483
+ "default": "''",
6484
+ "attribute": "placeholder"
6485
+ },
6558
6486
  {
6559
6487
  "kind": "field",
6560
6488
  "name": "label",
@@ -6562,87 +6490,104 @@
6562
6490
  "text": "string"
6563
6491
  },
6564
6492
  "default": "''",
6565
- "description": "The toggle label.",
6566
6493
  "attribute": "label"
6567
6494
  },
6568
6495
  {
6569
6496
  "kind": "field",
6570
- "name": "rounded",
6497
+ "name": "inline",
6571
6498
  "type": {
6572
6499
  "text": "boolean"
6573
6500
  },
6574
- "default": "true",
6575
- "description": "If true, the toggle has rounded corners. Defaults to `true`.",
6576
- "attribute": "rounded"
6501
+ "default": "false",
6502
+ "attribute": "inline",
6503
+ "reflects": true
6577
6504
  },
6578
6505
  {
6579
6506
  "kind": "field",
6580
- "name": "required",
6507
+ "name": "size",
6581
6508
  "type": {
6582
- "text": "boolean"
6509
+ "text": "'sm' | 'md' | 'lg'"
6583
6510
  },
6584
- "default": "false",
6585
- "attribute": "required",
6586
- "reflects": true,
6587
- "description": "If true, required icon is shown. Defaults to `false`.",
6588
- "inheritedFrom": {
6589
- "name": "BaseInput",
6590
- "module": "src/input/BaseInput.ts"
6591
- }
6511
+ "default": "'md'",
6512
+ "attribute": "size",
6513
+ "reflects": true
6592
6514
  },
6593
6515
  {
6594
6516
  "kind": "field",
6595
- "name": "readonly",
6517
+ "name": "autocomplete",
6596
6518
  "type": {
6597
- "text": "boolean"
6519
+ "text": "'on' | 'off'"
6598
6520
  },
6599
- "default": "false",
6600
- "attribute": "readonly",
6601
- "reflects": true,
6602
- "description": "If true, the toggle is readonly. Defaults to `false`.",
6603
- "inheritedFrom": {
6604
- "name": "BaseInput",
6605
- "module": "src/input/BaseInput.ts"
6606
- }
6521
+ "default": "'off'",
6522
+ "attribute": "autocomplete"
6607
6523
  },
6608
6524
  {
6609
6525
  "kind": "field",
6610
- "name": "disabled",
6526
+ "name": "configAria",
6527
+ "type": {
6528
+ "text": "Record<string, string>"
6529
+ },
6530
+ "default": "{}",
6531
+ "attribute": "configAria"
6532
+ },
6533
+ {
6534
+ "kind": "field",
6535
+ "name": "variant",
6536
+ "type": {
6537
+ "text": "'filled' | 'outlined' | 'default'"
6538
+ },
6539
+ "default": "'default'",
6540
+ "attribute": "variant"
6541
+ },
6542
+ {
6543
+ "kind": "field",
6544
+ "name": "helperText",
6545
+ "type": {
6546
+ "text": "string"
6547
+ },
6548
+ "default": "''",
6549
+ "description": "Helper text to display below the input.",
6550
+ "attribute": "helper-text"
6551
+ },
6552
+ {
6553
+ "kind": "field",
6554
+ "name": "error",
6611
6555
  "type": {
6612
6556
  "text": "boolean"
6613
6557
  },
6614
6558
  "default": "false",
6615
- "attribute": "disabled",
6616
- "reflects": true,
6617
- "description": "If true, the user cannot interact with the toggle. Defaults to `false`.",
6618
- "inheritedFrom": {
6619
- "name": "BaseInput",
6620
- "module": "src/input/BaseInput.ts"
6621
- }
6559
+ "attribute": "error"
6622
6560
  },
6623
6561
  {
6624
6562
  "kind": "field",
6625
- "name": "withIcon",
6563
+ "name": "errorText",
6564
+ "type": {
6565
+ "text": "string"
6566
+ },
6567
+ "default": "''",
6568
+ "attribute": "error-text"
6569
+ },
6570
+ {
6571
+ "kind": "field",
6572
+ "name": "warning",
6626
6573
  "type": {
6627
6574
  "text": "boolean"
6628
6575
  },
6629
6576
  "default": "false",
6630
- "attribute": "with-icon",
6631
- "reflects": true
6577
+ "attribute": "warning"
6632
6578
  },
6633
6579
  {
6634
6580
  "kind": "field",
6635
- "name": "configAria",
6581
+ "name": "warningText",
6636
6582
  "type": {
6637
- "text": "Record<string, string>"
6583
+ "text": "string"
6638
6584
  },
6639
- "default": "{}",
6640
- "description": "Configuration object for aria attributes.",
6641
- "attribute": "configAria"
6585
+ "default": "''",
6586
+ "attribute": "warning-text"
6642
6587
  },
6643
6588
  {
6644
6589
  "kind": "field",
6645
- "name": "hasFocus",
6590
+ "name": "focused",
6646
6591
  "type": {
6647
6592
  "text": "boolean"
6648
6593
  },
@@ -6651,7 +6596,7 @@
6651
6596
  },
6652
6597
  {
6653
6598
  "kind": "field",
6654
- "name": "isActive",
6599
+ "name": "passwordVisible",
6655
6600
  "type": {
6656
6601
  "text": "boolean"
6657
6602
  },
@@ -6660,24 +6605,17 @@
6660
6605
  },
6661
6606
  {
6662
6607
  "kind": "field",
6663
- "name": "slotHasContent",
6608
+ "name": "dirty",
6664
6609
  "type": {
6665
6610
  "text": "boolean"
6666
6611
  },
6667
6612
  "privacy": "private",
6668
- "default": "false"
6669
- },
6670
- {
6671
- "kind": "field",
6672
- "name": "trackElement",
6673
- "type": {
6674
- "text": "HTMLElement | undefined"
6675
- },
6676
- "privacy": "private"
6613
+ "default": "false",
6614
+ "description": "Returns true when the text field has been interacted with. Native\nvalidation errors only display in response to user interactions."
6677
6615
  },
6678
6616
  {
6679
6617
  "kind": "field",
6680
- "name": "nativeElement",
6618
+ "name": "inputElement",
6681
6619
  "type": {
6682
6620
  "text": "HTMLInputElement | undefined"
6683
6621
  },
@@ -6697,58 +6635,85 @@
6697
6635
  "privacy": "private"
6698
6636
  },
6699
6637
  {
6700
- "kind": "field",
6701
- "name": "windowMouseUp",
6702
- "privacy": "private"
6638
+ "kind": "method",
6639
+ "name": "__handleInput",
6640
+ "privacy": "private",
6641
+ "parameters": [
6642
+ {
6643
+ "name": "event",
6644
+ "type": {
6645
+ "text": "InputEvent"
6646
+ }
6647
+ }
6648
+ ]
6703
6649
  },
6704
6650
  {
6705
- "kind": "field",
6706
- "name": "windowKeyUp",
6707
- "privacy": "private"
6651
+ "kind": "method",
6652
+ "name": "focus"
6708
6653
  },
6709
6654
  {
6710
- "kind": "field",
6711
- "name": "mouseDownHandler",
6712
- "privacy": "private"
6655
+ "kind": "method",
6656
+ "name": "blur"
6713
6657
  },
6714
6658
  {
6715
- "kind": "field",
6716
- "name": "keyDownHandler",
6659
+ "kind": "method",
6660
+ "name": "__handleFocusChange",
6717
6661
  "privacy": "private"
6718
6662
  },
6719
6663
  {
6720
- "kind": "field",
6721
- "name": "clickHandler",
6722
- "privacy": "private"
6664
+ "kind": "method",
6665
+ "name": "__redispatchEvent",
6666
+ "privacy": "private",
6667
+ "parameters": [
6668
+ {
6669
+ "name": "event",
6670
+ "type": {
6671
+ "text": "Event"
6672
+ }
6673
+ }
6674
+ ]
6723
6675
  },
6724
6676
  {
6725
6677
  "kind": "field",
6726
- "name": "blurHandler",
6727
- "privacy": "private"
6678
+ "name": "disabled",
6679
+ "type": {
6680
+ "text": "boolean"
6681
+ },
6682
+ "default": "false",
6683
+ "attribute": "disabled",
6684
+ "reflects": true,
6685
+ "inheritedFrom": {
6686
+ "name": "BaseInput",
6687
+ "module": "src/input/BaseInput.ts"
6688
+ }
6728
6689
  },
6729
6690
  {
6730
6691
  "kind": "field",
6731
- "name": "focusHandler",
6732
- "privacy": "private"
6692
+ "name": "readonly",
6693
+ "type": {
6694
+ "text": "boolean"
6695
+ },
6696
+ "default": "false",
6697
+ "attribute": "readonly",
6698
+ "reflects": true,
6699
+ "inheritedFrom": {
6700
+ "name": "BaseInput",
6701
+ "module": "src/input/BaseInput.ts"
6702
+ }
6733
6703
  },
6734
6704
  {
6735
6705
  "kind": "field",
6736
- "name": "handleKeyUp",
6737
- "privacy": "private"
6738
- },
6739
- {
6740
- "kind": "method",
6741
- "name": "focus",
6742
- "description": "Sets focus on the toggle."
6743
- },
6744
- {
6745
- "kind": "method",
6746
- "name": "blur",
6747
- "description": "Removes focus from the toggle."
6748
- },
6749
- {
6750
- "kind": "method",
6751
- "name": "__renderIcon"
6706
+ "name": "required",
6707
+ "type": {
6708
+ "text": "boolean"
6709
+ },
6710
+ "default": "false",
6711
+ "attribute": "required",
6712
+ "reflects": true,
6713
+ "inheritedFrom": {
6714
+ "name": "BaseInput",
6715
+ "module": "src/input/BaseInput.ts"
6716
+ }
6752
6717
  },
6753
6718
  {
6754
6719
  "kind": "field",
@@ -6765,73 +6730,127 @@
6765
6730
  }
6766
6731
  }
6767
6732
  ],
6768
- "events": [
6733
+ "attributes": [
6769
6734
  {
6735
+ "name": "value",
6770
6736
  "type": {
6771
- "text": "CustomEvent"
6737
+ "text": "string"
6772
6738
  },
6773
- "description": "Dispatched when the toggle value changes.",
6774
- "name": "change"
6739
+ "default": "''",
6740
+ "fieldName": "value"
6775
6741
  },
6776
6742
  {
6743
+ "name": "name",
6777
6744
  "type": {
6778
- "text": "CustomEvent"
6745
+ "text": "string"
6779
6746
  },
6780
- "description": "Dispatched when the toggle loses focus.",
6781
- "name": "blur"
6747
+ "default": "''",
6748
+ "fieldName": "name"
6782
6749
  },
6783
6750
  {
6751
+ "name": "placeholder",
6784
6752
  "type": {
6785
- "text": "CustomEvent"
6753
+ "text": "string"
6786
6754
  },
6787
- "description": "Dispatched when the toggle receives focus.",
6788
- "name": "focus"
6789
- }
6790
- ],
6791
- "attributes": [
6755
+ "default": "''",
6756
+ "fieldName": "placeholder"
6757
+ },
6792
6758
  {
6793
- "name": "value",
6759
+ "name": "label",
6760
+ "type": {
6761
+ "text": "string"
6762
+ },
6763
+ "default": "''",
6764
+ "fieldName": "label"
6765
+ },
6766
+ {
6767
+ "name": "inline",
6794
6768
  "type": {
6795
6769
  "text": "boolean"
6796
6770
  },
6797
6771
  "default": "false",
6798
- "fieldName": "value"
6772
+ "fieldName": "inline"
6799
6773
  },
6800
6774
  {
6801
- "name": "name",
6775
+ "name": "size",
6776
+ "type": {
6777
+ "text": "'sm' | 'md' | 'lg'"
6778
+ },
6779
+ "default": "'md'",
6780
+ "fieldName": "size"
6781
+ },
6782
+ {
6783
+ "name": "autocomplete",
6784
+ "type": {
6785
+ "text": "'on' | 'off'"
6786
+ },
6787
+ "default": "'off'",
6788
+ "fieldName": "autocomplete"
6789
+ },
6790
+ {
6791
+ "name": "configAria",
6792
+ "type": {
6793
+ "text": "Record<string, string>"
6794
+ },
6795
+ "default": "{}",
6796
+ "fieldName": "configAria"
6797
+ },
6798
+ {
6799
+ "name": "variant",
6800
+ "type": {
6801
+ "text": "'filled' | 'outlined' | 'default'"
6802
+ },
6803
+ "default": "'default'",
6804
+ "fieldName": "variant"
6805
+ },
6806
+ {
6807
+ "name": "helper-text",
6802
6808
  "type": {
6803
6809
  "text": "string"
6804
6810
  },
6805
6811
  "default": "''",
6806
- "description": "The input field name.",
6807
- "fieldName": "name"
6812
+ "description": "Helper text to display below the input.",
6813
+ "fieldName": "helperText"
6808
6814
  },
6809
6815
  {
6810
- "name": "label",
6816
+ "name": "error",
6817
+ "type": {
6818
+ "text": "boolean"
6819
+ },
6820
+ "default": "false",
6821
+ "fieldName": "error"
6822
+ },
6823
+ {
6824
+ "name": "error-text",
6811
6825
  "type": {
6812
6826
  "text": "string"
6813
6827
  },
6814
6828
  "default": "''",
6815
- "description": "The toggle label.",
6816
- "fieldName": "label"
6829
+ "fieldName": "errorText"
6817
6830
  },
6818
6831
  {
6819
- "name": "rounded",
6832
+ "name": "warning",
6820
6833
  "type": {
6821
6834
  "text": "boolean"
6822
6835
  },
6823
- "default": "true",
6824
- "description": "If true, the toggle has rounded corners. Defaults to `true`.",
6825
- "fieldName": "rounded"
6836
+ "default": "false",
6837
+ "fieldName": "warning"
6826
6838
  },
6827
6839
  {
6828
- "name": "required",
6840
+ "name": "warning-text",
6841
+ "type": {
6842
+ "text": "string"
6843
+ },
6844
+ "default": "''",
6845
+ "fieldName": "warningText"
6846
+ },
6847
+ {
6848
+ "name": "disabled",
6829
6849
  "type": {
6830
6850
  "text": "boolean"
6831
6851
  },
6832
6852
  "default": "false",
6833
- "fieldName": "required",
6834
- "description": "If true, required icon is shown. Defaults to `false`.",
6853
+ "fieldName": "disabled",
6835
6854
  "inheritedFrom": {
6836
6855
  "name": "BaseInput",
6837
6856
  "module": "src/input/BaseInput.ts"
@@ -6844,42 +6863,23 @@
6844
6863
  },
6845
6864
  "default": "false",
6846
6865
  "fieldName": "readonly",
6847
- "description": "If true, the toggle is readonly. Defaults to `false`.",
6848
6866
  "inheritedFrom": {
6849
6867
  "name": "BaseInput",
6850
6868
  "module": "src/input/BaseInput.ts"
6851
6869
  }
6852
6870
  },
6853
6871
  {
6854
- "name": "disabled",
6872
+ "name": "required",
6855
6873
  "type": {
6856
6874
  "text": "boolean"
6857
6875
  },
6858
6876
  "default": "false",
6859
- "fieldName": "disabled",
6860
- "description": "If true, the user cannot interact with the toggle. Defaults to `false`.",
6877
+ "fieldName": "required",
6861
6878
  "inheritedFrom": {
6862
6879
  "name": "BaseInput",
6863
6880
  "module": "src/input/BaseInput.ts"
6864
6881
  }
6865
6882
  },
6866
- {
6867
- "name": "with-icon",
6868
- "type": {
6869
- "text": "boolean"
6870
- },
6871
- "default": "false",
6872
- "fieldName": "withIcon"
6873
- },
6874
- {
6875
- "name": "configAria",
6876
- "type": {
6877
- "text": "Record<string, string>"
6878
- },
6879
- "default": "{}",
6880
- "description": "Configuration object for aria attributes.",
6881
- "fieldName": "configAria"
6882
- },
6883
6883
  {
6884
6884
  "name": "skeleton",
6885
6885
  "type": {
@@ -6897,11 +6897,11 @@
6897
6897
  "name": "BaseInput",
6898
6898
  "module": "/src/input/BaseInput.js"
6899
6899
  },
6900
- "tagName": "base-toggle",
6900
+ "tagName": "time-picker",
6901
6901
  "customElement": true,
6902
- "summary": "Captures boolean input with an on/off switch interaction.",
6902
+ "summary": "The Time Picker component is used to capture time user input.",
6903
6903
  "rawTag": {
6904
- "name": "toggle",
6904
+ "name": "time-picker",
6905
6905
  "description": ""
6906
6906
  }
6907
6907
  }