@momentum-design/components 0.28.3 → 0.28.5

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.
@@ -3238,252 +3238,6 @@
3238
3238
  }
3239
3239
  ]
3240
3240
  },
3241
- {
3242
- "kind": "javascript-module",
3243
- "path": "components/divider/divider.component.js",
3244
- "declarations": [
3245
- {
3246
- "kind": "class",
3247
- "description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
3248
- "name": "Divider",
3249
- "cssProperties": [
3250
- {
3251
- "description": "background color of the divider",
3252
- "name": "--mdc-divider-background-color"
3253
- },
3254
- {
3255
- "description": "width of the divider",
3256
- "name": "--mdc-divider-width"
3257
- },
3258
- {
3259
- "description": "gradient of the horizontal divider",
3260
- "name": "--mdc-divider-horizontal-gradient"
3261
- },
3262
- {
3263
- "description": "gradient of the vertical divider",
3264
- "name": "--mdc-divider-vertical-gradient"
3265
- },
3266
- {
3267
- "description": "font size of label in the text divider",
3268
- "name": "--mdc-divider-text-size"
3269
- },
3270
- {
3271
- "description": "font color of label in the text divider",
3272
- "name": "--mdc-divider-text-color"
3273
- },
3274
- {
3275
- "description": "left and right margin of label in the text divider",
3276
- "name": "--mdc-divider-text-margin"
3277
- },
3278
- {
3279
- "description": "line height of label in the text divider",
3280
- "name": "--mdc-divider-text-line-height"
3281
- },
3282
- {
3283
- "description": "background color of the grabber button in rest state",
3284
- "name": "--mdc-divider-grabber-button-background-color-normal"
3285
- },
3286
- {
3287
- "description": "background color of the grabber button in hover state",
3288
- "name": "--mdc-divider-grabber-button-background-color-hover"
3289
- },
3290
- {
3291
- "description": "background color of the grabber button in pressed state",
3292
- "name": "--mdc-divider-grabber-button-background-color-pressed"
3293
- },
3294
- {
3295
- "description": "border color of the grabber button",
3296
- "name": "--mdc-divider-grabber-button-border-color"
3297
- },
3298
- {
3299
- "description": "border radius of the grabber button",
3300
- "name": "--mdc-divider-grabber-button-border-radius"
3301
- }
3302
- ],
3303
- "members": [
3304
- {
3305
- "kind": "field",
3306
- "name": "orientation",
3307
- "type": {
3308
- "text": "DividerOrientation"
3309
- },
3310
- "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
3311
- "default": "horizontal",
3312
- "attribute": "orientation",
3313
- "reflects": true
3314
- },
3315
- {
3316
- "kind": "field",
3317
- "name": "variant",
3318
- "type": {
3319
- "text": "DividerVariant"
3320
- },
3321
- "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
3322
- "default": "solid",
3323
- "attribute": "variant",
3324
- "reflects": true
3325
- },
3326
- {
3327
- "kind": "field",
3328
- "name": "arrowDirection",
3329
- "type": {
3330
- "text": "Directions"
3331
- },
3332
- "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3333
- "default": "'negative'",
3334
- "attribute": "arrow-direction",
3335
- "reflects": true
3336
- },
3337
- {
3338
- "kind": "field",
3339
- "name": "buttonPosition",
3340
- "type": {
3341
- "text": "Directions"
3342
- },
3343
- "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3344
- "default": "'negative'",
3345
- "attribute": "button-position",
3346
- "reflects": true
3347
- },
3348
- {
3349
- "kind": "method",
3350
- "name": "setVariant",
3351
- "privacy": "private",
3352
- "parameters": [
3353
- {
3354
- "name": "variant",
3355
- "type": {
3356
- "text": "DividerVariant"
3357
- },
3358
- "description": "The variant to set."
3359
- }
3360
- ],
3361
- "description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
3362
- },
3363
- {
3364
- "kind": "method",
3365
- "name": "setOrientation",
3366
- "privacy": "private",
3367
- "parameters": [
3368
- {
3369
- "name": "orientation",
3370
- "type": {
3371
- "text": "DividerOrientation"
3372
- },
3373
- "description": "The orientation to set."
3374
- }
3375
- ],
3376
- "description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
3377
- },
3378
- {
3379
- "kind": "method",
3380
- "name": "ensureValidDirections",
3381
- "privacy": "private",
3382
- "description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
3383
- "parameters": [
3384
- {
3385
- "description": "The buttonPosition to set.",
3386
- "name": "buttonPosition"
3387
- },
3388
- {
3389
- "description": "The arrowDirection to set.",
3390
- "name": "arrowDirection"
3391
- }
3392
- ]
3393
- },
3394
- {
3395
- "kind": "method",
3396
- "name": "setGrabberButton",
3397
- "privacy": "private",
3398
- "return": {
3399
- "type": {
3400
- "text": "void"
3401
- }
3402
- },
3403
- "description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
3404
- },
3405
- {
3406
- "kind": "method",
3407
- "name": "getArrowIcon",
3408
- "privacy": "private",
3409
- "return": {
3410
- "type": {
3411
- "text": ""
3412
- }
3413
- },
3414
- "description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
3415
- },
3416
- {
3417
- "kind": "method",
3418
- "name": "inferDividerType",
3419
- "privacy": "private",
3420
- "description": "Infers the type of divider based on the kind of slot present.",
3421
- "parameters": [
3422
- {
3423
- "description": "default slot of divider",
3424
- "name": "slot"
3425
- }
3426
- ]
3427
- }
3428
- ],
3429
- "attributes": [
3430
- {
3431
- "name": "orientation",
3432
- "type": {
3433
- "text": "DividerOrientation"
3434
- },
3435
- "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
3436
- "default": "horizontal",
3437
- "fieldName": "orientation"
3438
- },
3439
- {
3440
- "name": "variant",
3441
- "type": {
3442
- "text": "DividerVariant"
3443
- },
3444
- "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
3445
- "default": "solid",
3446
- "fieldName": "variant"
3447
- },
3448
- {
3449
- "name": "arrow-direction",
3450
- "type": {
3451
- "text": "Directions"
3452
- },
3453
- "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3454
- "default": "'negative'",
3455
- "fieldName": "arrowDirection"
3456
- },
3457
- {
3458
- "name": "button-position",
3459
- "type": {
3460
- "text": "Directions"
3461
- },
3462
- "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3463
- "default": "'negative'",
3464
- "fieldName": "buttonPosition"
3465
- }
3466
- ],
3467
- "superclass": {
3468
- "name": "Component",
3469
- "module": "/src/models"
3470
- },
3471
- "tagName": "mdc-divider",
3472
- "jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-background-color-normal - background color of the grabber button\n * in rest state\n * @cssproperty --mdc-divider-grabber-button-background-color-hover - background color of the grabber button\n * in hover state\n * @cssproperty --mdc-divider-grabber-button-background-color-pressed - background color of the grabber button\n * in pressed state\n * @cssproperty --mdc-divider-grabber-button-border-color - border color of the grabber button\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
3473
- "customElement": true
3474
- }
3475
- ],
3476
- "exports": [
3477
- {
3478
- "kind": "js",
3479
- "name": "default",
3480
- "declaration": {
3481
- "name": "Divider",
3482
- "module": "components/divider/divider.component.js"
3483
- }
3484
- }
3485
- ]
3486
- },
3487
3241
  {
3488
3242
  "kind": "javascript-module",
3489
3243
  "path": "components/formfieldgroup/formfieldgroup.component.js",
@@ -3808,6 +3562,252 @@
3808
3562
  }
3809
3563
  ]
3810
3564
  },
3565
+ {
3566
+ "kind": "javascript-module",
3567
+ "path": "components/divider/divider.component.js",
3568
+ "declarations": [
3569
+ {
3570
+ "kind": "class",
3571
+ "description": "`mdc-divider` is a component that provides a line to separate and organize content.\nIt can also include a button or text positioned centrally, allowing users to interact with the layout.\n\n**Divider Orientation:**\n- **Horizontal**: A thin, horizontal line.\n- **Vertical**: A thin, vertical line.\n\n**Divider Variants:**\n- **solid**: Solid line.\n- **gradient**: Gradient Line.\n\n**Divider Types:**\n- The type of divider is inferred based on the kind of slot present.\n - **Primary**: A simple horizontal or vertical divider.\n - **Text**: A horizontal divider with a text label in the center.\n - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n\n**Accessibility:**\n- When the slot is replaced by an `mdc-button`:\n - `aria-label` should be passed to the `mdc-button`.\n - `aria-expanded` should be passed to the `mdc-button`.\n\n**Notes:**\n- If the slot is replaced by an invalid tag name or contains multiple elements,\n the divider defaults to the **Primary** type.\n- To override the styles of the divider, use the provided CSS custom properties.",
3572
+ "name": "Divider",
3573
+ "cssProperties": [
3574
+ {
3575
+ "description": "background color of the divider",
3576
+ "name": "--mdc-divider-background-color"
3577
+ },
3578
+ {
3579
+ "description": "width of the divider",
3580
+ "name": "--mdc-divider-width"
3581
+ },
3582
+ {
3583
+ "description": "gradient of the horizontal divider",
3584
+ "name": "--mdc-divider-horizontal-gradient"
3585
+ },
3586
+ {
3587
+ "description": "gradient of the vertical divider",
3588
+ "name": "--mdc-divider-vertical-gradient"
3589
+ },
3590
+ {
3591
+ "description": "font size of label in the text divider",
3592
+ "name": "--mdc-divider-text-size"
3593
+ },
3594
+ {
3595
+ "description": "font color of label in the text divider",
3596
+ "name": "--mdc-divider-text-color"
3597
+ },
3598
+ {
3599
+ "description": "left and right margin of label in the text divider",
3600
+ "name": "--mdc-divider-text-margin"
3601
+ },
3602
+ {
3603
+ "description": "line height of label in the text divider",
3604
+ "name": "--mdc-divider-text-line-height"
3605
+ },
3606
+ {
3607
+ "description": "background color of the grabber button in rest state",
3608
+ "name": "--mdc-divider-grabber-button-background-color-normal"
3609
+ },
3610
+ {
3611
+ "description": "background color of the grabber button in hover state",
3612
+ "name": "--mdc-divider-grabber-button-background-color-hover"
3613
+ },
3614
+ {
3615
+ "description": "background color of the grabber button in pressed state",
3616
+ "name": "--mdc-divider-grabber-button-background-color-pressed"
3617
+ },
3618
+ {
3619
+ "description": "border color of the grabber button",
3620
+ "name": "--mdc-divider-grabber-button-border-color"
3621
+ },
3622
+ {
3623
+ "description": "border radius of the grabber button",
3624
+ "name": "--mdc-divider-grabber-button-border-radius"
3625
+ }
3626
+ ],
3627
+ "members": [
3628
+ {
3629
+ "kind": "field",
3630
+ "name": "orientation",
3631
+ "type": {
3632
+ "text": "DividerOrientation"
3633
+ },
3634
+ "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
3635
+ "default": "horizontal",
3636
+ "attribute": "orientation",
3637
+ "reflects": true
3638
+ },
3639
+ {
3640
+ "kind": "field",
3641
+ "name": "variant",
3642
+ "type": {
3643
+ "text": "DividerVariant"
3644
+ },
3645
+ "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
3646
+ "default": "solid",
3647
+ "attribute": "variant",
3648
+ "reflects": true
3649
+ },
3650
+ {
3651
+ "kind": "field",
3652
+ "name": "arrowDirection",
3653
+ "type": {
3654
+ "text": "Directions"
3655
+ },
3656
+ "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3657
+ "default": "'negative'",
3658
+ "attribute": "arrow-direction",
3659
+ "reflects": true
3660
+ },
3661
+ {
3662
+ "kind": "field",
3663
+ "name": "buttonPosition",
3664
+ "type": {
3665
+ "text": "Directions"
3666
+ },
3667
+ "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3668
+ "default": "'negative'",
3669
+ "attribute": "button-position",
3670
+ "reflects": true
3671
+ },
3672
+ {
3673
+ "kind": "method",
3674
+ "name": "setVariant",
3675
+ "privacy": "private",
3676
+ "parameters": [
3677
+ {
3678
+ "name": "variant",
3679
+ "type": {
3680
+ "text": "DividerVariant"
3681
+ },
3682
+ "description": "The variant to set."
3683
+ }
3684
+ ],
3685
+ "description": "Sets the variant attribute for the divider component.\nIf the provided variant is not included in the DIVIDER_VARIANT,\nit defaults to the value specified in DEFAULTS.VARIANT."
3686
+ },
3687
+ {
3688
+ "kind": "method",
3689
+ "name": "setOrientation",
3690
+ "privacy": "private",
3691
+ "parameters": [
3692
+ {
3693
+ "name": "orientation",
3694
+ "type": {
3695
+ "text": "DividerOrientation"
3696
+ },
3697
+ "description": "The orientation to set."
3698
+ }
3699
+ ],
3700
+ "description": "Sets the orientation attribute for the divider component.\nIf the provided orientation is not included in the DIVIDER_ORIENTATION,\nit defaults to the value specified in DEFAULTS.ORIENTATION."
3701
+ },
3702
+ {
3703
+ "kind": "method",
3704
+ "name": "ensureValidDirections",
3705
+ "privacy": "private",
3706
+ "description": "Sets the buttonPosition and arrowDirection attribute for the divider component.\nIf the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,\nit defaults to the value specified in DIRECTIONS based on the ORIENTATION.",
3707
+ "parameters": [
3708
+ {
3709
+ "description": "The buttonPosition to set.",
3710
+ "name": "buttonPosition"
3711
+ },
3712
+ {
3713
+ "description": "The arrowDirection to set.",
3714
+ "name": "arrowDirection"
3715
+ }
3716
+ ]
3717
+ },
3718
+ {
3719
+ "kind": "method",
3720
+ "name": "setGrabberButton",
3721
+ "privacy": "private",
3722
+ "return": {
3723
+ "type": {
3724
+ "text": "void"
3725
+ }
3726
+ },
3727
+ "description": "Configures the grabber button within the divider.\n\n- Sets the `prefix-icon` attribute for the grabber button based\non the `arrow-direction` and `orientation` properties.\n\nThis method updates the DOM element dynamically if a grabber button is present."
3728
+ },
3729
+ {
3730
+ "kind": "method",
3731
+ "name": "getArrowIcon",
3732
+ "privacy": "private",
3733
+ "return": {
3734
+ "type": {
3735
+ "text": ""
3736
+ }
3737
+ },
3738
+ "description": "Determines the arrow icon based on the consumer-defined `arrowDirection`."
3739
+ },
3740
+ {
3741
+ "kind": "method",
3742
+ "name": "inferDividerType",
3743
+ "privacy": "private",
3744
+ "description": "Infers the type of divider based on the kind of slot present.",
3745
+ "parameters": [
3746
+ {
3747
+ "description": "default slot of divider",
3748
+ "name": "slot"
3749
+ }
3750
+ ]
3751
+ }
3752
+ ],
3753
+ "attributes": [
3754
+ {
3755
+ "name": "orientation",
3756
+ "type": {
3757
+ "text": "DividerOrientation"
3758
+ },
3759
+ "description": "Two orientations of divider\n- **horizontal**: A thin, horizontal line with 0.0625rem width.\n- **vertical**: A thin, vertical line with 0.0625rem width.\n\nNote: We do not support \"Vertical Text Divider\" as of now.",
3760
+ "default": "horizontal",
3761
+ "fieldName": "orientation"
3762
+ },
3763
+ {
3764
+ "name": "variant",
3765
+ "type": {
3766
+ "text": "DividerVariant"
3767
+ },
3768
+ "description": "Two variants of divider\n- **solid**: Solid line.\n- **gradient**: Gradient Line that fades on either sides of the divider.",
3769
+ "default": "solid",
3770
+ "fieldName": "variant"
3771
+ },
3772
+ {
3773
+ "name": "arrow-direction",
3774
+ "type": {
3775
+ "text": "Directions"
3776
+ },
3777
+ "description": "Direction of the arrow icon, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3778
+ "default": "'negative'",
3779
+ "fieldName": "arrowDirection"
3780
+ },
3781
+ {
3782
+ "name": "button-position",
3783
+ "type": {
3784
+ "text": "Directions"
3785
+ },
3786
+ "description": "Position of the button, if applicable.\n- **positive**\n- **negative**\n\nNote: Positive and Negative directions are defined based on Cartesian plane.",
3787
+ "default": "'negative'",
3788
+ "fieldName": "buttonPosition"
3789
+ }
3790
+ ],
3791
+ "superclass": {
3792
+ "name": "Component",
3793
+ "module": "/src/models"
3794
+ },
3795
+ "tagName": "mdc-divider",
3796
+ "jsDoc": "/**\n * `mdc-divider` is a component that provides a line to separate and organize content.\n * It can also include a button or text positioned centrally, allowing users to interact with the layout.\n *\n * **Divider Orientation:**\n * - **Horizontal**: A thin, horizontal line.\n * - **Vertical**: A thin, vertical line.\n *\n * **Divider Variants:**\n * - **solid**: Solid line.\n * - **gradient**: Gradient Line.\n *\n * **Divider Types:**\n * - The type of divider is inferred based on the kind of slot present.\n * - **Primary**: A simple horizontal or vertical divider.\n * - **Text**: A horizontal divider with a text label in the center.\n * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.\n *\n * **Accessibility:**\n * - When the slot is replaced by an `mdc-button`:\n * - `aria-label` should be passed to the `mdc-button`.\n * - `aria-expanded` should be passed to the `mdc-button`.\n *\n * **Notes:**\n * - If the slot is replaced by an invalid tag name or contains multiple elements,\n * the divider defaults to the **Primary** type.\n * - To override the styles of the divider, use the provided CSS custom properties.\n *\n * @tagname mdc-divider\n *\n * @cssproperty --mdc-divider-background-color - background color of the divider\n * @cssproperty --mdc-divider-width - width of the divider\n * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider\n * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider\n * @cssproperty --mdc-divider-text-size - font size of label in the text divider\n * @cssproperty --mdc-divider-text-color - font color of label in the text divider\n * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider\n * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider\n * @cssproperty --mdc-divider-grabber-button-background-color-normal - background color of the grabber button\n * in rest state\n * @cssproperty --mdc-divider-grabber-button-background-color-hover - background color of the grabber button\n * in hover state\n * @cssproperty --mdc-divider-grabber-button-background-color-pressed - background color of the grabber button\n * in pressed state\n * @cssproperty --mdc-divider-grabber-button-border-color - border color of the grabber button\n * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button\n */",
3797
+ "customElement": true
3798
+ }
3799
+ ],
3800
+ "exports": [
3801
+ {
3802
+ "kind": "js",
3803
+ "name": "default",
3804
+ "declaration": {
3805
+ "name": "Divider",
3806
+ "module": "components/divider/divider.component.js"
3807
+ }
3808
+ }
3809
+ ]
3810
+ },
3811
3811
  {
3812
3812
  "kind": "javascript-module",
3813
3813
  "path": "components/formfieldwrapper/formfieldwrapper.component.js",
@@ -5,8 +5,8 @@ export { default as Bullet } from './bullet';
5
5
  export { default as Button } from './button';
6
6
  export { default as Buttonsimple } from './buttonsimple';
7
7
  export { default as Checkbox } from './checkbox';
8
- export { default as Divider } from './divider';
9
8
  export { default as FormfieldGroup } from './formfieldgroup';
9
+ export { default as Divider } from './divider';
10
10
  export { default as FormfieldWrapper } from './formfieldwrapper';
11
11
  export { default as Icon } from './icon';
12
12
  export { default as IconProvider } from './iconprovider';
@@ -5,8 +5,8 @@ export { default as Bullet } from './bullet';
5
5
  export { default as Button } from './button';
6
6
  export { default as Buttonsimple } from './buttonsimple';
7
7
  export { default as Checkbox } from './checkbox';
8
- export { default as Divider } from './divider';
9
8
  export { default as FormfieldGroup } from './formfieldgroup';
9
+ export { default as Divider } from './divider';
10
10
  export { default as FormfieldWrapper } from './formfieldwrapper';
11
11
  export { default as Icon } from './icon';
12
12
  export { default as IconProvider } from './iconprovider';
@@ -37,10 +37,17 @@ const hostFocusRingStyles = (applyFocusRingOnClass = false) => {
37
37
  :host([disabled]) .mdc-focus-ring:focus {
38
38
  box-shadow: none;
39
39
  }
40
+ /* Add focus ring to parent when child is focused. The parent element must have class name mdc-focus-ring */
40
41
  .mdc-focus-ring:focus-within {
41
42
  position: relative;
42
43
  box-shadow: ${boxShadow};
43
44
  }
45
+ /* Remove focus ring from parent when children has its own focus ring.
46
+ The child element must have class name own-focus-ring */
47
+ .mdc-focus-ring:has(.own-focus-ring:focus-visible){
48
+ box-shadow: none;
49
+ }
50
+
44
51
  /* High Contrast Mode */
45
52
  @media (forced-colors: active) {
46
53
  .mdc-focus-ring:focus-within {
@@ -59,13 +66,13 @@ const hostFocusRingStyles = (applyFocusRingOnClass = false) => {
59
66
  :host([disabled]:focus) {
60
67
  box-shadow: none;
61
68
  }
62
- :host(:focus), :host(:focus-within) {
69
+ :host(:focus) {
63
70
  position: relative;
64
71
  box-shadow: ${boxShadow};
65
72
  }
66
73
  /* High Contrast Mode */
67
74
  @media (forced-colors: active) {
68
- :host(:focus), :host(:focus-within) {
75
+ :host(:focus) {
69
76
  outline: 0.125rem solid var(--mds-color-theme-focus-default-0);
70
77
  }
71
78
  }
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "lit": "^3.2.0",
39
39
  "uuid": "^11.0.5"
40
40
  },
41
- "version": "0.28.3"
41
+ "version": "0.28.5"
42
42
  }