@sebgroup/green-core 2.37.1 → 2.37.2

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.
@@ -3439,6 +3439,309 @@
3439
3439
  }
3440
3440
  ]
3441
3441
  },
3442
+ {
3443
+ "kind": "javascript-module",
3444
+ "path": "src/components/blur/blur.component.ts",
3445
+ "declarations": [
3446
+ {
3447
+ "kind": "class",
3448
+ "description": "",
3449
+ "name": "GdsBlur",
3450
+ "slots": [
3451
+ {
3452
+ "description": "Content to be blurred.",
3453
+ "name": ""
3454
+ }
3455
+ ],
3456
+ "members": [
3457
+ {
3458
+ "kind": "method",
3459
+ "name": "define",
3460
+ "static": true,
3461
+ "return": {
3462
+ "type": {
3463
+ "text": "void"
3464
+ }
3465
+ },
3466
+ "description": "Defines the custom element in the custom element registry.\nThis method needs to be called once before the element can be used.",
3467
+ "inheritedFrom": {
3468
+ "name": "GdsElement",
3469
+ "module": "src/gds-element.ts"
3470
+ }
3471
+ },
3472
+ {
3473
+ "kind": "field",
3474
+ "name": "isDefined",
3475
+ "type": {
3476
+ "text": "boolean"
3477
+ },
3478
+ "static": true,
3479
+ "default": "false",
3480
+ "description": "Whether the element is defined in the custom element registry.",
3481
+ "inheritedFrom": {
3482
+ "name": "GdsElement",
3483
+ "module": "src/gds-element.ts"
3484
+ }
3485
+ },
3486
+ {
3487
+ "kind": "field",
3488
+ "name": "styleExpressionBaseSelector",
3489
+ "type": {
3490
+ "text": "string"
3491
+ },
3492
+ "static": true,
3493
+ "default": "':host'",
3494
+ "description": "Style expression properties for this element will use this selector by default.",
3495
+ "inheritedFrom": {
3496
+ "name": "GdsElement",
3497
+ "module": "src/gds-element.ts"
3498
+ }
3499
+ },
3500
+ {
3501
+ "kind": "field",
3502
+ "name": "semanticVersion",
3503
+ "type": {
3504
+ "text": "string"
3505
+ },
3506
+ "readonly": true,
3507
+ "default": "'__GDS_SEM_VER__'",
3508
+ "description": "The semantic version of this element. Can be used for troubleshooting to verify the version being used.",
3509
+ "inheritedFrom": {
3510
+ "name": "GdsElement",
3511
+ "module": "src/gds-element.ts"
3512
+ }
3513
+ },
3514
+ {
3515
+ "kind": "field",
3516
+ "name": "gdsElementName",
3517
+ "type": {
3518
+ "text": "string | undefined"
3519
+ },
3520
+ "description": "The unscoped name of this element. This attribute is set automatically by the element and is inteded to be read-only.",
3521
+ "readonly": true,
3522
+ "attribute": "gds-element",
3523
+ "inheritedFrom": {
3524
+ "name": "GdsElement",
3525
+ "module": "src/gds-element.ts"
3526
+ }
3527
+ },
3528
+ {
3529
+ "kind": "method",
3530
+ "name": "dispatchStandardEvent",
3531
+ "return": {
3532
+ "type": {
3533
+ "text": "boolean"
3534
+ }
3535
+ },
3536
+ "parameters": [
3537
+ {
3538
+ "name": "name",
3539
+ "type": {
3540
+ "text": "string"
3541
+ }
3542
+ },
3543
+ {
3544
+ "name": "options",
3545
+ "optional": true,
3546
+ "type": {
3547
+ "text": "EventInit"
3548
+ }
3549
+ }
3550
+ ],
3551
+ "description": "Dispatches a standard event with the given name and options.\nA pascal cased version of the event name is also dispatched for compatibility.",
3552
+ "inheritedFrom": {
3553
+ "name": "GdsElement",
3554
+ "module": "src/gds-element.ts"
3555
+ }
3556
+ },
3557
+ {
3558
+ "kind": "method",
3559
+ "name": "dispatchCustomEvent",
3560
+ "return": {
3561
+ "type": {
3562
+ "text": "boolean"
3563
+ }
3564
+ },
3565
+ "parameters": [
3566
+ {
3567
+ "name": "name",
3568
+ "type": {
3569
+ "text": "string"
3570
+ }
3571
+ },
3572
+ {
3573
+ "name": "options",
3574
+ "default": "{}",
3575
+ "type": {
3576
+ "text": "CustomEventInit<T>"
3577
+ }
3578
+ }
3579
+ ],
3580
+ "description": "Dispatches a custom event with the given name and options.\nA pascal cased version of the event name is also dispatched for compatibility.",
3581
+ "inheritedFrom": {
3582
+ "name": "GdsElement",
3583
+ "module": "src/gds-element.ts"
3584
+ }
3585
+ }
3586
+ ],
3587
+ "superclass": {
3588
+ "name": "GdsElement",
3589
+ "module": "/src/gds-element"
3590
+ },
3591
+ "tagName": "gds-blur",
3592
+ "customElement": true,
3593
+ "attributes": [
3594
+ {
3595
+ "name": "gds-element",
3596
+ "type": {
3597
+ "text": "string | undefined"
3598
+ },
3599
+ "description": "The unscoped name of this element. This attribute is set automatically by the element and is inteded to be read-only.",
3600
+ "readonly": true,
3601
+ "fieldName": "gdsElementName",
3602
+ "inheritedFrom": {
3603
+ "name": "GdsElement",
3604
+ "module": "src/gds-element.ts"
3605
+ }
3606
+ }
3607
+ ],
3608
+ "events": [
3609
+ {
3610
+ "name": "gds-element-disconnected",
3611
+ "type": {
3612
+ "text": "CustomEvent"
3613
+ },
3614
+ "description": "When the element is disconnected from the DOM",
3615
+ "inheritedFrom": {
3616
+ "name": "GdsElement",
3617
+ "module": "src/gds-element.ts"
3618
+ }
3619
+ },
3620
+ {
3621
+ "name": "name",
3622
+ "type": {
3623
+ "text": "Event"
3624
+ },
3625
+ "inheritedFrom": {
3626
+ "name": "GdsElement",
3627
+ "module": "src/gds-element.ts"
3628
+ }
3629
+ },
3630
+ {
3631
+ "type": {
3632
+ "text": "Event"
3633
+ },
3634
+ "inheritedFrom": {
3635
+ "name": "GdsElement",
3636
+ "module": "src/gds-element.ts"
3637
+ }
3638
+ }
3639
+ ]
3640
+ }
3641
+ ],
3642
+ "exports": [
3643
+ {
3644
+ "kind": "js",
3645
+ "name": "GdsBlur",
3646
+ "declaration": {
3647
+ "name": "GdsBlur",
3648
+ "module": "src/components/blur/blur.component.ts"
3649
+ }
3650
+ }
3651
+ ]
3652
+ },
3653
+ {
3654
+ "kind": "javascript-module",
3655
+ "path": "src/components/blur/blur.stories.ts",
3656
+ "declarations": [
3657
+ {
3658
+ "kind": "variable",
3659
+ "name": "meta",
3660
+ "type": {
3661
+ "text": "Meta"
3662
+ },
3663
+ "default": "{ title: 'Components/Blur', component: 'gds-blur', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-blur'), }, }",
3664
+ "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/blur)\n\nThe Blur component is used to apply a blur effect over content,\noften used to obscure sensitive or background information."
3665
+ },
3666
+ {
3667
+ "kind": "variable",
3668
+ "name": "Default",
3669
+ "type": {
3670
+ "text": "Story"
3671
+ },
3672
+ "default": "{ ...DefaultParams, render: () => html` <gds-blur> <gds-text>Blur</gds-text> </gds-blur> `, }"
3673
+ }
3674
+ ],
3675
+ "exports": [
3676
+ {
3677
+ "kind": "js",
3678
+ "name": "default",
3679
+ "declaration": {
3680
+ "name": "meta",
3681
+ "module": "src/components/blur/blur.stories.ts"
3682
+ }
3683
+ },
3684
+ {
3685
+ "kind": "js",
3686
+ "name": "Default",
3687
+ "declaration": {
3688
+ "name": "Default",
3689
+ "module": "src/components/blur/blur.stories.ts"
3690
+ }
3691
+ }
3692
+ ]
3693
+ },
3694
+ {
3695
+ "kind": "javascript-module",
3696
+ "path": "src/components/blur/blur.styles.ts",
3697
+ "declarations": [
3698
+ {
3699
+ "kind": "variable",
3700
+ "name": "style",
3701
+ "default": "css` :host { --_blur: 5px; } .blur { filter: blur(var(--_blur)); } `"
3702
+ }
3703
+ ],
3704
+ "exports": [
3705
+ {
3706
+ "kind": "js",
3707
+ "name": "default",
3708
+ "declaration": {
3709
+ "name": "style",
3710
+ "module": "src/components/blur/blur.styles.ts"
3711
+ }
3712
+ }
3713
+ ]
3714
+ },
3715
+ {
3716
+ "kind": "javascript-module",
3717
+ "path": "src/components/blur/blur.ts",
3718
+ "declarations": [],
3719
+ "exports": [
3720
+ {
3721
+ "kind": "js",
3722
+ "name": "GdsBlur",
3723
+ "declaration": {
3724
+ "name": "GdsBlur",
3725
+ "module": "src/components/blur/blur.ts"
3726
+ }
3727
+ }
3728
+ ]
3729
+ },
3730
+ {
3731
+ "kind": "javascript-module",
3732
+ "path": "src/components/blur/index.ts",
3733
+ "declarations": [],
3734
+ "exports": [
3735
+ {
3736
+ "kind": "js",
3737
+ "name": "*",
3738
+ "declaration": {
3739
+ "name": "*",
3740
+ "module": "src/components/blur/blur"
3741
+ }
3742
+ }
3743
+ ]
3744
+ },
3442
3745
  {
3443
3746
  "kind": "javascript-module",
3444
3747
  "path": "src/components/badge/badge.component.ts",
@@ -4142,309 +4445,6 @@
4142
4445
  }
4143
4446
  ]
4144
4447
  },
4145
- {
4146
- "kind": "javascript-module",
4147
- "path": "src/components/blur/blur.component.ts",
4148
- "declarations": [
4149
- {
4150
- "kind": "class",
4151
- "description": "",
4152
- "name": "GdsBlur",
4153
- "slots": [
4154
- {
4155
- "description": "Content to be blurred.",
4156
- "name": ""
4157
- }
4158
- ],
4159
- "members": [
4160
- {
4161
- "kind": "method",
4162
- "name": "define",
4163
- "static": true,
4164
- "return": {
4165
- "type": {
4166
- "text": "void"
4167
- }
4168
- },
4169
- "description": "Defines the custom element in the custom element registry.\nThis method needs to be called once before the element can be used.",
4170
- "inheritedFrom": {
4171
- "name": "GdsElement",
4172
- "module": "src/gds-element.ts"
4173
- }
4174
- },
4175
- {
4176
- "kind": "field",
4177
- "name": "isDefined",
4178
- "type": {
4179
- "text": "boolean"
4180
- },
4181
- "static": true,
4182
- "default": "false",
4183
- "description": "Whether the element is defined in the custom element registry.",
4184
- "inheritedFrom": {
4185
- "name": "GdsElement",
4186
- "module": "src/gds-element.ts"
4187
- }
4188
- },
4189
- {
4190
- "kind": "field",
4191
- "name": "styleExpressionBaseSelector",
4192
- "type": {
4193
- "text": "string"
4194
- },
4195
- "static": true,
4196
- "default": "':host'",
4197
- "description": "Style expression properties for this element will use this selector by default.",
4198
- "inheritedFrom": {
4199
- "name": "GdsElement",
4200
- "module": "src/gds-element.ts"
4201
- }
4202
- },
4203
- {
4204
- "kind": "field",
4205
- "name": "semanticVersion",
4206
- "type": {
4207
- "text": "string"
4208
- },
4209
- "readonly": true,
4210
- "default": "'__GDS_SEM_VER__'",
4211
- "description": "The semantic version of this element. Can be used for troubleshooting to verify the version being used.",
4212
- "inheritedFrom": {
4213
- "name": "GdsElement",
4214
- "module": "src/gds-element.ts"
4215
- }
4216
- },
4217
- {
4218
- "kind": "field",
4219
- "name": "gdsElementName",
4220
- "type": {
4221
- "text": "string | undefined"
4222
- },
4223
- "description": "The unscoped name of this element. This attribute is set automatically by the element and is inteded to be read-only.",
4224
- "readonly": true,
4225
- "attribute": "gds-element",
4226
- "inheritedFrom": {
4227
- "name": "GdsElement",
4228
- "module": "src/gds-element.ts"
4229
- }
4230
- },
4231
- {
4232
- "kind": "method",
4233
- "name": "dispatchStandardEvent",
4234
- "return": {
4235
- "type": {
4236
- "text": "boolean"
4237
- }
4238
- },
4239
- "parameters": [
4240
- {
4241
- "name": "name",
4242
- "type": {
4243
- "text": "string"
4244
- }
4245
- },
4246
- {
4247
- "name": "options",
4248
- "optional": true,
4249
- "type": {
4250
- "text": "EventInit"
4251
- }
4252
- }
4253
- ],
4254
- "description": "Dispatches a standard event with the given name and options.\nA pascal cased version of the event name is also dispatched for compatibility.",
4255
- "inheritedFrom": {
4256
- "name": "GdsElement",
4257
- "module": "src/gds-element.ts"
4258
- }
4259
- },
4260
- {
4261
- "kind": "method",
4262
- "name": "dispatchCustomEvent",
4263
- "return": {
4264
- "type": {
4265
- "text": "boolean"
4266
- }
4267
- },
4268
- "parameters": [
4269
- {
4270
- "name": "name",
4271
- "type": {
4272
- "text": "string"
4273
- }
4274
- },
4275
- {
4276
- "name": "options",
4277
- "default": "{}",
4278
- "type": {
4279
- "text": "CustomEventInit<T>"
4280
- }
4281
- }
4282
- ],
4283
- "description": "Dispatches a custom event with the given name and options.\nA pascal cased version of the event name is also dispatched for compatibility.",
4284
- "inheritedFrom": {
4285
- "name": "GdsElement",
4286
- "module": "src/gds-element.ts"
4287
- }
4288
- }
4289
- ],
4290
- "superclass": {
4291
- "name": "GdsElement",
4292
- "module": "/src/gds-element"
4293
- },
4294
- "tagName": "gds-blur",
4295
- "customElement": true,
4296
- "attributes": [
4297
- {
4298
- "name": "gds-element",
4299
- "type": {
4300
- "text": "string | undefined"
4301
- },
4302
- "description": "The unscoped name of this element. This attribute is set automatically by the element and is inteded to be read-only.",
4303
- "readonly": true,
4304
- "fieldName": "gdsElementName",
4305
- "inheritedFrom": {
4306
- "name": "GdsElement",
4307
- "module": "src/gds-element.ts"
4308
- }
4309
- }
4310
- ],
4311
- "events": [
4312
- {
4313
- "name": "gds-element-disconnected",
4314
- "type": {
4315
- "text": "CustomEvent"
4316
- },
4317
- "description": "When the element is disconnected from the DOM",
4318
- "inheritedFrom": {
4319
- "name": "GdsElement",
4320
- "module": "src/gds-element.ts"
4321
- }
4322
- },
4323
- {
4324
- "name": "name",
4325
- "type": {
4326
- "text": "Event"
4327
- },
4328
- "inheritedFrom": {
4329
- "name": "GdsElement",
4330
- "module": "src/gds-element.ts"
4331
- }
4332
- },
4333
- {
4334
- "type": {
4335
- "text": "Event"
4336
- },
4337
- "inheritedFrom": {
4338
- "name": "GdsElement",
4339
- "module": "src/gds-element.ts"
4340
- }
4341
- }
4342
- ]
4343
- }
4344
- ],
4345
- "exports": [
4346
- {
4347
- "kind": "js",
4348
- "name": "GdsBlur",
4349
- "declaration": {
4350
- "name": "GdsBlur",
4351
- "module": "src/components/blur/blur.component.ts"
4352
- }
4353
- }
4354
- ]
4355
- },
4356
- {
4357
- "kind": "javascript-module",
4358
- "path": "src/components/blur/blur.stories.ts",
4359
- "declarations": [
4360
- {
4361
- "kind": "variable",
4362
- "name": "meta",
4363
- "type": {
4364
- "text": "Meta"
4365
- },
4366
- "default": "{ title: 'Components/Blur', component: 'gds-blur', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-blur'), }, }",
4367
- "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/blur)\n\nThe Blur component is used to apply a blur effect over content,\noften used to obscure sensitive or background information."
4368
- },
4369
- {
4370
- "kind": "variable",
4371
- "name": "Default",
4372
- "type": {
4373
- "text": "Story"
4374
- },
4375
- "default": "{ ...DefaultParams, render: () => html` <gds-blur> <gds-text>Blur</gds-text> </gds-blur> `, }"
4376
- }
4377
- ],
4378
- "exports": [
4379
- {
4380
- "kind": "js",
4381
- "name": "default",
4382
- "declaration": {
4383
- "name": "meta",
4384
- "module": "src/components/blur/blur.stories.ts"
4385
- }
4386
- },
4387
- {
4388
- "kind": "js",
4389
- "name": "Default",
4390
- "declaration": {
4391
- "name": "Default",
4392
- "module": "src/components/blur/blur.stories.ts"
4393
- }
4394
- }
4395
- ]
4396
- },
4397
- {
4398
- "kind": "javascript-module",
4399
- "path": "src/components/blur/blur.styles.ts",
4400
- "declarations": [
4401
- {
4402
- "kind": "variable",
4403
- "name": "style",
4404
- "default": "css` :host { --_blur: 5px; } .blur { filter: blur(var(--_blur)); } `"
4405
- }
4406
- ],
4407
- "exports": [
4408
- {
4409
- "kind": "js",
4410
- "name": "default",
4411
- "declaration": {
4412
- "name": "style",
4413
- "module": "src/components/blur/blur.styles.ts"
4414
- }
4415
- }
4416
- ]
4417
- },
4418
- {
4419
- "kind": "javascript-module",
4420
- "path": "src/components/blur/blur.ts",
4421
- "declarations": [],
4422
- "exports": [
4423
- {
4424
- "kind": "js",
4425
- "name": "GdsBlur",
4426
- "declaration": {
4427
- "name": "GdsBlur",
4428
- "module": "src/components/blur/blur.ts"
4429
- }
4430
- }
4431
- ]
4432
- },
4433
- {
4434
- "kind": "javascript-module",
4435
- "path": "src/components/blur/index.ts",
4436
- "declarations": [],
4437
- "exports": [
4438
- {
4439
- "kind": "js",
4440
- "name": "*",
4441
- "declaration": {
4442
- "name": "*",
4443
- "module": "src/components/blur/blur"
4444
- }
4445
- }
4446
- ]
4447
- },
4448
4448
  {
4449
4449
  "kind": "javascript-module",
4450
4450
  "path": "src/components/breadcrumbs/breadcrumbs.component.ts",
@@ -13647,134 +13647,295 @@
13647
13647
  },
13648
13648
  {
13649
13649
  "kind": "javascript-module",
13650
- "path": "src/components/dialog/dialog.component.ts",
13650
+ "path": "src/components/div/div.component.ts",
13651
13651
  "declarations": [
13652
13652
  {
13653
13653
  "kind": "class",
13654
13654
  "description": "",
13655
- "name": "GdsDialog",
13656
- "slots": [
13655
+ "name": "GdsDiv",
13656
+ "members": [
13657
13657
  {
13658
- "description": "The content of the dialog",
13659
- "name": ""
13658
+ "kind": "field",
13659
+ "name": "display",
13660
+ "type": {
13661
+ "text": "string | undefined"
13662
+ },
13663
+ "description": "Controls the display property.\nSupports all valid CSS display values.",
13664
+ "category": "Declarative layout / Style expression properties"
13660
13665
  },
13661
13666
  {
13662
- "description": "The trigger button for the dialog",
13663
- "name": "trigger"
13667
+ "kind": "field",
13668
+ "name": "level",
13669
+ "type": {
13670
+ "text": "GdsColorLevel"
13671
+ },
13672
+ "default": "'2'",
13673
+ "description": "The level of the container is used to resolve the color tokens from the corresponding level.\nCheck the [Color System documentation page](./?path=/docs/style-colors--docs) for more information.\n\nDefault for `gds-div` is level 2.",
13674
+ "attribute": "level"
13664
13675
  },
13665
13676
  {
13666
- "description": "The footer of the dialog",
13667
- "name": "footer"
13677
+ "kind": "field",
13678
+ "name": "color",
13679
+ "type": {
13680
+ "text": "string | undefined"
13681
+ },
13682
+ "description": "Style Expression Property that controls the `color` property.\nOnly accepts color tokens and an optional transparency value, in the format tokenName/transparency.\n\n```html\n<gds-div color=\"neutral-01/0.2\"></gds-div>\n```",
13683
+ "category": "Declarative layout / Style expression properties"
13668
13684
  },
13669
13685
  {
13670
- "description": "Complete override of the dialog content, including header and footer",
13671
- "name": "dialog"
13672
- }
13673
- ],
13674
- "members": [
13686
+ "kind": "field",
13687
+ "name": "background",
13688
+ "type": {
13689
+ "text": "string | undefined"
13690
+ },
13691
+ "description": "Style Expression Property that controls the `background` property.\nOnly accepts color tokens and an optional transparency value, in the format tokenName/transparency.\n\n```html\n<gds-div background=\"neutral-01/0.2\"></gds-div>\n```",
13692
+ "category": "Declarative layout / Style expression properties"
13693
+ },
13675
13694
  {
13676
13695
  "kind": "field",
13677
- "name": "styleExpressionBaseSelector",
13696
+ "name": "border",
13678
13697
  "type": {
13679
- "text": "string"
13698
+ "text": "string | undefined"
13680
13699
  },
13681
- "static": true,
13682
- "default": "'dialog'",
13683
- "description": "Style expression properties for this element will use this selector by default.",
13684
- "inheritedFrom": {
13685
- "name": "GdsElement",
13686
- "module": "src/gds-element.ts"
13687
- }
13700
+ "description": "Style Expression Property that controls the `border` property.\nAccepts a string of the same format as the CSS border property.\n\n```html\n<gds-div border=\"4xs solid subtle-01/0.2\"></gds-div>\n```\n\nWhere the size value accepts space tokens and the color value accepts color tokens and an optional transparency value.",
13701
+ "category": "Declarative layout / Style expression properties"
13688
13702
  },
13689
13703
  {
13690
13704
  "kind": "field",
13691
- "name": "open",
13705
+ "name": "'border-color'",
13692
13706
  "type": {
13693
- "text": "boolean"
13707
+ "text": "string | undefined"
13694
13708
  },
13695
- "default": "false",
13696
- "description": "Whether the dialog is open. The state of the dialog can be controlled either\nby setting this property or by calling the `show()` and `close()` methods.\n\nWhen the state is explicitly changed by setting this prop, the state change cannot\nbe cancelled by events.",
13697
- "attribute": "open",
13698
- "reflects": true
13709
+ "description": "Style Expression Property that controls the `border-color` property.\nOnly accepts color tokens and an optional transparency value, in the format tokenName/transparency.\n\n```html\n<gds-div border-color=\"subtle-01/0.2\"></gds-div>\n```",
13710
+ "category": "Declarative layout / Style expression properties"
13699
13711
  },
13700
13712
  {
13701
13713
  "kind": "field",
13702
- "name": "heading",
13714
+ "name": "'border-width'",
13703
13715
  "type": {
13704
13716
  "text": "string | undefined"
13705
13717
  },
13706
- "description": "The dialog's heading.",
13707
- "attribute": "heading"
13718
+ "description": "Style Expression Property that controls the `border-width` property.\nOnly accepts space tokens.",
13719
+ "category": "Declarative layout / Style expression properties"
13708
13720
  },
13709
13721
  {
13710
13722
  "kind": "field",
13711
- "name": "variant",
13723
+ "name": "'border-style'",
13712
13724
  "type": {
13713
- "text": "'default' | 'slide-out'"
13725
+ "text": "string | undefined"
13714
13726
  },
13715
- "default": "'default'",
13716
- "description": "The dialog's variant.",
13717
- "attribute": "variant"
13727
+ "description": "Style Expression Property that controls the `border-style` property.\nSupports all valid CSS `border-style` values.",
13728
+ "category": "Declarative layout / Style expression properties"
13718
13729
  },
13719
13730
  {
13720
13731
  "kind": "field",
13721
- "name": "placement",
13732
+ "name": "'border-radius'",
13722
13733
  "type": {
13723
- "text": "'initial' | 'top' | 'bottom' | 'left' | 'right'"
13734
+ "text": "string | undefined"
13724
13735
  },
13725
- "default": "'initial'",
13726
- "description": "The dialog's placement.",
13727
- "attribute": "placement"
13736
+ "description": "Style Expression Property that controls the `border-radius` property.\nOnly accepts space tokens.",
13737
+ "category": "Declarative layout / Style expression properties"
13728
13738
  },
13729
13739
  {
13730
13740
  "kind": "field",
13731
- "name": "scrollable",
13741
+ "name": "'box-shadow'",
13732
13742
  "type": {
13733
- "text": "boolean"
13743
+ "text": "string | undefined"
13734
13744
  },
13735
- "default": "false",
13736
- "description": "Whether the inner content of the dialog should have scrollable overflow. Scroll will appear if\nthe content exceeds the dialog's height, which can be controlled using the `height` property.\n\nThis property have no effect if the `dialog` slot is used. In that case, you need to add overflow\nstyles to the content inside the `dialog` slot.",
13737
- "attribute": "scrollable"
13745
+ "description": "Style Expression Property for the `box-shadow` property.\n\nAccepts shadow tokens from the design system.\n\n`xs`, `s`, `m`, `l`, `xl`",
13746
+ "category": "Declarative layout / Style expression properties"
13738
13747
  },
13739
13748
  {
13740
13749
  "kind": "field",
13741
- "name": "closedby",
13750
+ "name": "opacity",
13742
13751
  "type": {
13743
- "text": "'closerequest' | 'none' | 'any'"
13752
+ "text": "string | undefined"
13744
13753
  },
13745
- "default": "'closerequest'",
13746
- "description": "Controls which user actions can close the dialog. Maps to the native `<dialog>` `closedby` attribute.\n\n- `closerequest` (default): The dialog can be dismissed by platform close gestures (Escape key, iOS swipe, etc.).\n The browser's anti-abuse mechanism applies: after one cancelled close request, subsequent cancellations\n require a user activation in between. This ensures the best mobile UX.\n- `none`: The dialog can only be closed by developer-specified mechanisms (buttons, click outside, or programmatic API).\n A manual Escape key listener is added for desktop users, with fully cancellable behavior (no anti-abuse limit).\n Mobile platform close gestures may not work in this mode.\n- `any`: The dialog can also be dismissed by light dismiss (clicking outside). Note that gds-dialog already\n handles click-outside via its own mechanism.",
13747
- "attribute": "closedby",
13748
- "reflects": true
13754
+ "description": "Style Expression Property that controls the `opacity` property.\nSupports all valid CSS `opacity` values.",
13755
+ "category": "Declarative layout / Style expression properties"
13749
13756
  },
13750
13757
  {
13751
- "kind": "method",
13752
- "name": "show",
13753
- "parameters": [
13754
- {
13755
- "name": "reason",
13756
- "optional": true,
13757
- "type": {
13758
- "text": "string"
13759
- }
13760
- }
13761
- ],
13762
- "description": "Opens the dialog.\nThis is a programmatic API that always opens the dialog.\nEvents are dispatched for notification when a reason is provided, but cancellation is not honored."
13758
+ "kind": "field",
13759
+ "name": "overflow",
13760
+ "type": {
13761
+ "text": "string | undefined"
13762
+ },
13763
+ "description": "Style Expression Property that controls the `overflow` property.\nSupports all valid CSS `overflow` values.",
13764
+ "category": "Declarative layout / Style expression properties"
13763
13765
  },
13764
13766
  {
13765
- "kind": "method",
13766
- "name": "close",
13767
- "parameters": [
13768
- {
13769
- "name": "reason",
13770
- "optional": true,
13771
- "type": {
13772
- "text": "string"
13773
- },
13774
- "description": "The reason for closing the dialog."
13775
- }
13776
- ],
13777
- "description": "Closes the dialog.\nThis is a programmatic API that always closes the dialog.\nEvents are dispatched for notification when a reason is provided, but cancellation is not honored."
13767
+ "kind": "field",
13768
+ "name": "'box-sizing'",
13769
+ "type": {
13770
+ "text": "string | undefined"
13771
+ },
13772
+ "description": "Style Expression Property that controls the `box-sizing` property.\nSupports all valid CSS `box-sizing` values.",
13773
+ "category": "Declarative layout / Style expression properties"
13774
+ },
13775
+ {
13776
+ "kind": "field",
13777
+ "name": "'z-index'",
13778
+ "type": {
13779
+ "text": "string | undefined"
13780
+ },
13781
+ "description": "Style Expression Property that controls the `z-index` property.\nSupports all valid CSS `z-index` values.",
13782
+ "category": "Declarative layout / Style expression properties"
13783
+ },
13784
+ {
13785
+ "kind": "field",
13786
+ "name": "'font'",
13787
+ "type": {
13788
+ "text": "string | undefined"
13789
+ },
13790
+ "description": "Style Expression Property that controls the `font` property.\nSupports all font tokens from the design system."
13791
+ },
13792
+ {
13793
+ "kind": "field",
13794
+ "name": "'font-weight'",
13795
+ "type": {
13796
+ "text": "string | undefined"
13797
+ },
13798
+ "description": "Style Expression Property that controls the `font-weight` property.\nSupports all typography weight tokens from the design system.",
13799
+ "category": "Declarative layout / Style expression properties"
13800
+ },
13801
+ {
13802
+ "kind": "field",
13803
+ "name": "'text-align'",
13804
+ "type": {
13805
+ "text": "string | undefined"
13806
+ },
13807
+ "description": "Style Expression Property that controls the `text-align` property.\nSupports all valid CSS `text-align` values.",
13808
+ "category": "Declarative layout / Style expression properties"
13809
+ },
13810
+ {
13811
+ "kind": "field",
13812
+ "name": "'text-wrap'",
13813
+ "type": {
13814
+ "text": "string | undefined"
13815
+ },
13816
+ "description": "Style Expression Property that controls the `text-wrap` property.\nSupports all valid CSS `text-wrap` values.",
13817
+ "category": "Declarative layout / Style expression properties"
13818
+ },
13819
+ {
13820
+ "kind": "field",
13821
+ "name": "'overflow-wrap'",
13822
+ "type": {
13823
+ "text": "string | undefined"
13824
+ },
13825
+ "description": "Style Expression Property that controls the `overflow-wrap` property.\nSupports all valid CSS `overflow-wrap` values."
13826
+ },
13827
+ {
13828
+ "kind": "field",
13829
+ "name": "'white-space'",
13830
+ "type": {
13831
+ "text": "string | undefined"
13832
+ },
13833
+ "description": "Style Expression Property that controls the `white-space` property.\nSupports all valid CSS `white-space` values."
13834
+ },
13835
+ {
13836
+ "kind": "field",
13837
+ "name": "gap",
13838
+ "type": {
13839
+ "text": "string | undefined"
13840
+ },
13841
+ "description": "Style Expression Property that controls the `gap` property.\nOnly accepts space tokens.",
13842
+ "category": "Declarative layout / Style expression properties"
13843
+ },
13844
+ {
13845
+ "kind": "field",
13846
+ "name": "'align-items'",
13847
+ "type": {
13848
+ "text": "string | undefined"
13849
+ },
13850
+ "description": "Style Expression Property that controls the `align-items` property.\nSupports all valid CSS `align-items` values.",
13851
+ "category": "Declarative layout / Style expression properties"
13852
+ },
13853
+ {
13854
+ "kind": "field",
13855
+ "name": "'align-content'",
13856
+ "type": {
13857
+ "text": "string | undefined"
13858
+ },
13859
+ "description": "Style Expression Property that controls the `align-content` property.\nSupports all valid CSS `align-content` values.",
13860
+ "category": "Declarative layout / Style expression properties"
13861
+ },
13862
+ {
13863
+ "kind": "field",
13864
+ "name": "'justify-content'",
13865
+ "type": {
13866
+ "text": "string | undefined"
13867
+ },
13868
+ "description": "Style Expression Property that controls the `justify-content` property.\nSupports all valid CSS `justify-content` values.",
13869
+ "category": "Declarative layout / Style expression properties"
13870
+ },
13871
+ {
13872
+ "kind": "field",
13873
+ "name": "'justify-items'",
13874
+ "type": {
13875
+ "text": "string | undefined"
13876
+ },
13877
+ "description": "Style Expression Property that controls the `justify-items` property.\nSupports all valid CSS `justify-items` values.",
13878
+ "category": "Declarative layout / Style expression properties"
13879
+ },
13880
+ {
13881
+ "kind": "field",
13882
+ "name": "'flex-direction'",
13883
+ "type": {
13884
+ "text": "string | undefined"
13885
+ },
13886
+ "description": "Style Expression Property that controls the `flex-direction` property.\nSupports all valid CSS `flex-direction` values.",
13887
+ "category": "Declarative layout / Style expression properties"
13888
+ },
13889
+ {
13890
+ "kind": "field",
13891
+ "name": "'flex-wrap'",
13892
+ "type": {
13893
+ "text": "string | undefined"
13894
+ },
13895
+ "description": "Style Expression Property that controls the `flex-wrap` property.\nSupports all valid CSS `flex-wrap` values.",
13896
+ "category": "Declarative layout / Style expression properties"
13897
+ },
13898
+ {
13899
+ "kind": "field",
13900
+ "name": "'place-items'",
13901
+ "type": {
13902
+ "text": "string | undefined"
13903
+ },
13904
+ "description": "Style Expression Property that controls the `place-items` property.\nSupports all valid CSS `place-items` values.",
13905
+ "category": "Declarative layout / Style expression properties"
13906
+ },
13907
+ {
13908
+ "kind": "field",
13909
+ "name": "'place-content'",
13910
+ "type": {
13911
+ "text": "string | undefined"
13912
+ },
13913
+ "description": "Style Expression Property that controls the `place-content` property.\nSupports all valid CSS `place-content` values.",
13914
+ "category": "Declarative layout / Style expression properties"
13915
+ },
13916
+ {
13917
+ "kind": "field",
13918
+ "name": "'aspect-ratio'",
13919
+ "type": {
13920
+ "text": "string | undefined"
13921
+ },
13922
+ "description": "Style Expression Property that controls the `aspect-ratio` property.\nSupports all valid CSS `aspect-ratio` values."
13923
+ },
13924
+ {
13925
+ "kind": "field",
13926
+ "name": "cursor",
13927
+ "type": {
13928
+ "text": "string | undefined"
13929
+ },
13930
+ "description": "Style Expression Property that controls the `cursor` property.\nSupports all valid CSS `cursor` values."
13931
+ },
13932
+ {
13933
+ "kind": "field",
13934
+ "name": "'pointer-events'",
13935
+ "type": {
13936
+ "text": "string | undefined"
13937
+ },
13938
+ "description": "Style Expression Property that controls the `pointer-events` property.\nSupports all valid CSS `pointer-events` values."
13778
13939
  },
13779
13940
  {
13780
13941
  "kind": "field",
@@ -13932,6 +14093,45 @@
13932
14093
  "module": "src/utils/mixins/declarative-layout-mixins.ts"
13933
14094
  }
13934
14095
  },
14096
+ {
14097
+ "kind": "field",
14098
+ "name": "margin",
14099
+ "type": {
14100
+ "text": "string | undefined"
14101
+ },
14102
+ "description": "Style Expression Property that controls the `margin` property.\nOnly accepts space tokens.",
14103
+ "category": "Declarative layout / Style expression properties",
14104
+ "inheritedFrom": {
14105
+ "name": "withMarginProps",
14106
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14107
+ }
14108
+ },
14109
+ {
14110
+ "kind": "field",
14111
+ "name": "'margin-inline'",
14112
+ "type": {
14113
+ "text": "string | undefined"
14114
+ },
14115
+ "description": "Style Expression Property that controls the `margin-inline` property.\nOnly accepts space tokens.",
14116
+ "category": "Declarative layout / Style expression properties",
14117
+ "inheritedFrom": {
14118
+ "name": "withMarginProps",
14119
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14120
+ }
14121
+ },
14122
+ {
14123
+ "kind": "field",
14124
+ "name": "'margin-block'",
14125
+ "type": {
14126
+ "text": "string | undefined"
14127
+ },
14128
+ "description": "Style Expression Property that controls the `margin-block` property.\nOnly accepts space tokens.",
14129
+ "category": "Declarative layout / Style expression properties",
14130
+ "inheritedFrom": {
14131
+ "name": "withMarginProps",
14132
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14133
+ }
14134
+ },
13935
14135
  {
13936
14136
  "kind": "field",
13937
14137
  "name": "padding",
@@ -13971,6 +14171,149 @@
13971
14171
  "module": "src/utils/mixins/declarative-layout-mixins.ts"
13972
14172
  }
13973
14173
  },
14174
+ {
14175
+ "kind": "field",
14176
+ "name": "'align-self'",
14177
+ "type": {
14178
+ "text": "string | undefined"
14179
+ },
14180
+ "description": "Style Expression Property that controls the `align-self` property.\nSupports all valid CSS `align-self` values.",
14181
+ "category": "Declarative layout / Style expression properties",
14182
+ "inheritedFrom": {
14183
+ "name": "withLayoutChildProps",
14184
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14185
+ }
14186
+ },
14187
+ {
14188
+ "kind": "field",
14189
+ "name": "'justify-self'",
14190
+ "type": {
14191
+ "text": "string | undefined"
14192
+ },
14193
+ "description": "Style Expression Property that controls the `justify-self` property.\nSupports all valid CSS `justify-self` values.",
14194
+ "category": "Declarative layout / Style expression properties",
14195
+ "inheritedFrom": {
14196
+ "name": "withLayoutChildProps",
14197
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14198
+ }
14199
+ },
14200
+ {
14201
+ "kind": "field",
14202
+ "name": "'place-self'",
14203
+ "type": {
14204
+ "text": "string | undefined"
14205
+ },
14206
+ "description": "Style Expression Property that controls the `place-self` property.\nSupports all valid CSS `place-self` values.",
14207
+ "category": "Declarative layout / Style expression properties",
14208
+ "inheritedFrom": {
14209
+ "name": "withLayoutChildProps",
14210
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14211
+ }
14212
+ },
14213
+ {
14214
+ "kind": "field",
14215
+ "name": "'grid-column'",
14216
+ "type": {
14217
+ "text": "string | undefined"
14218
+ },
14219
+ "description": "Style Expression Property that controls the `grid-column` property.\nSupports all valid CSS grid-column values.\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column",
14220
+ "category": "Declarative layout / Style expression properties",
14221
+ "inheritedFrom": {
14222
+ "name": "withLayoutChildProps",
14223
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14224
+ }
14225
+ },
14226
+ {
14227
+ "kind": "field",
14228
+ "name": "'grid-row'",
14229
+ "type": {
14230
+ "text": "string | undefined"
14231
+ },
14232
+ "description": "Style Expression Property that controls the `grid-row` property.\nSupports all valid CSS `grid-row` values.",
14233
+ "category": "Declarative layout / Style expression properties",
14234
+ "inheritedFrom": {
14235
+ "name": "withLayoutChildProps",
14236
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14237
+ }
14238
+ },
14239
+ {
14240
+ "kind": "field",
14241
+ "name": "'grid-area'",
14242
+ "type": {
14243
+ "text": "string | undefined"
14244
+ },
14245
+ "description": "Style Expression Property that controls the `grid-area` property.\nSupports all valid CSS `grid-area` values.",
14246
+ "category": "Declarative layout / Style expression properties",
14247
+ "inheritedFrom": {
14248
+ "name": "withLayoutChildProps",
14249
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14250
+ }
14251
+ },
14252
+ {
14253
+ "kind": "field",
14254
+ "name": "flex",
14255
+ "type": {
14256
+ "text": "string | undefined"
14257
+ },
14258
+ "description": "Style Expression Property that controls the `flex` property.\nSupports all valid CSS `flex` values.",
14259
+ "category": "Declarative layout / Style expression properties",
14260
+ "inheritedFrom": {
14261
+ "name": "withLayoutChildProps",
14262
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14263
+ }
14264
+ },
14265
+ {
14266
+ "kind": "field",
14267
+ "name": "order",
14268
+ "type": {
14269
+ "text": "string | undefined"
14270
+ },
14271
+ "description": "Style Expression Property that controls the `order` property.\nSupports all valid CSS `order` values.",
14272
+ "category": "Declarative layout / Style expression properties",
14273
+ "inheritedFrom": {
14274
+ "name": "withLayoutChildProps",
14275
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14276
+ }
14277
+ },
14278
+ {
14279
+ "kind": "field",
14280
+ "name": "position",
14281
+ "type": {
14282
+ "text": "string | undefined"
14283
+ },
14284
+ "description": "Style Expression Property that controls the `position` property.\nSupports all valid CSS `position` values.",
14285
+ "category": "Declarative layout / Style expression properties",
14286
+ "inheritedFrom": {
14287
+ "name": "withPositioningProps",
14288
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14289
+ }
14290
+ },
14291
+ {
14292
+ "kind": "field",
14293
+ "name": "transform",
14294
+ "type": {
14295
+ "text": "string | undefined"
14296
+ },
14297
+ "description": "Style Expression Property that controls the `transform` property.\nSupports all valid CSS `transform` values.",
14298
+ "category": "Declarative layout / Style expression properties",
14299
+ "inheritedFrom": {
14300
+ "name": "withPositioningProps",
14301
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14302
+ }
14303
+ },
14304
+ {
14305
+ "kind": "field",
14306
+ "name": "inset",
14307
+ "type": {
14308
+ "text": "string | undefined"
14309
+ },
14310
+ "description": "Style Expression Property that controls the `inset` property.\nSupports all valid CSS `inset` values.",
14311
+ "category": "Declarative layout / Style expression properties",
14312
+ "inheritedFrom": {
14313
+ "name": "withPositioningProps",
14314
+ "module": "src/utils/mixins/declarative-layout-mixins.ts"
14315
+ }
14316
+ },
13974
14317
  {
13975
14318
  "kind": "method",
13976
14319
  "name": "define",
@@ -14000,6 +14343,20 @@
14000
14343
  "module": "src/gds-element.ts"
14001
14344
  }
14002
14345
  },
14346
+ {
14347
+ "kind": "field",
14348
+ "name": "styleExpressionBaseSelector",
14349
+ "type": {
14350
+ "text": "string"
14351
+ },
14352
+ "static": true,
14353
+ "default": "':host'",
14354
+ "description": "Style expression properties for this element will use this selector by default.",
14355
+ "inheritedFrom": {
14356
+ "name": "GdsElement",
14357
+ "module": "src/gds-element.ts"
14358
+ }
14359
+ },
14003
14360
  {
14004
14361
  "kind": "field",
14005
14362
  "name": "semanticVersion",
@@ -14087,103 +14444,15 @@
14087
14444
  }
14088
14445
  }
14089
14446
  ],
14090
- "events": [
14091
- {
14092
- "description": "Fired when the dialog is opened or closed. Can be cancelled to prevent the dialog from closing.",
14093
- "name": "gds-ui-state"
14094
- },
14095
- {
14096
- "description": "Fired when the dialog is closed",
14097
- "name": "gds-close"
14098
- },
14099
- {
14100
- "description": "Fired when the dialog is opened",
14101
- "name": "gds-show"
14102
- },
14103
- {
14104
- "name": "gds-element-disconnected",
14105
- "type": {
14106
- "text": "CustomEvent"
14107
- },
14108
- "description": "When the element is disconnected from the DOM",
14109
- "inheritedFrom": {
14110
- "name": "GdsElement",
14111
- "module": "src/gds-element.ts"
14112
- }
14113
- },
14114
- {
14115
- "name": "name",
14116
- "type": {
14117
- "text": "Event"
14118
- },
14119
- "inheritedFrom": {
14120
- "name": "GdsElement",
14121
- "module": "src/gds-element.ts"
14122
- }
14123
- },
14124
- {
14125
- "type": {
14126
- "text": "Event"
14127
- },
14128
- "inheritedFrom": {
14129
- "name": "GdsElement",
14130
- "module": "src/gds-element.ts"
14131
- }
14132
- }
14133
- ],
14134
14447
  "attributes": [
14135
14448
  {
14136
- "name": "open",
14137
- "type": {
14138
- "text": "boolean"
14139
- },
14140
- "default": "false",
14141
- "description": "Whether the dialog is open. The state of the dialog can be controlled either\nby setting this property or by calling the `show()` and `close()` methods.\n\nWhen the state is explicitly changed by setting this prop, the state change cannot\nbe cancelled by events.",
14142
- "fieldName": "open"
14143
- },
14144
- {
14145
- "name": "heading",
14146
- "type": {
14147
- "text": "string | undefined"
14148
- },
14149
- "description": "The dialog's heading.",
14150
- "fieldName": "heading"
14151
- },
14152
- {
14153
- "name": "variant",
14154
- "type": {
14155
- "text": "'default' | 'slide-out'"
14156
- },
14157
- "default": "'default'",
14158
- "description": "The dialog's variant.",
14159
- "fieldName": "variant"
14160
- },
14161
- {
14162
- "name": "placement",
14163
- "type": {
14164
- "text": "'initial' | 'top' | 'bottom' | 'left' | 'right'"
14165
- },
14166
- "default": "'initial'",
14167
- "description": "The dialog's placement.",
14168
- "fieldName": "placement"
14169
- },
14170
- {
14171
- "name": "scrollable",
14172
- "type": {
14173
- "text": "boolean"
14174
- },
14175
- "default": "false",
14176
- "description": "Whether the inner content of the dialog should have scrollable overflow. Scroll will appear if\nthe content exceeds the dialog's height, which can be controlled using the `height` property.\n\nThis property have no effect if the `dialog` slot is used. In that case, you need to add overflow\nstyles to the content inside the `dialog` slot.",
14177
- "fieldName": "scrollable"
14178
- },
14179
- {
14180
- "name": "closedby",
14449
+ "name": "level",
14181
14450
  "type": {
14182
- "text": "'closerequest' | 'none' | 'any'"
14451
+ "text": "GdsColorLevel"
14183
14452
  },
14184
- "default": "'closerequest'",
14185
- "description": "Controls which user actions can close the dialog. Maps to the native `<dialog>` `closedby` attribute.\n\n- `closerequest` (default): The dialog can be dismissed by platform close gestures (Escape key, iOS swipe, etc.).\n The browser's anti-abuse mechanism applies: after one cancelled close request, subsequent cancellations\n require a user activation in between. This ensures the best mobile UX.\n- `none`: The dialog can only be closed by developer-specified mechanisms (buttons, click outside, or programmatic API).\n A manual Escape key listener is added for desktop users, with fully cancellable behavior (no anti-abuse limit).\n Mobile platform close gestures may not work in this mode.\n- `any`: The dialog can also be dismissed by light dismiss (clicking outside). Note that gds-dialog already\n handles click-outside via its own mechanism.",
14186
- "fieldName": "closedby"
14453
+ "default": "'2'",
14454
+ "description": "The level of the container is used to resolve the color tokens from the corresponding level.\nCheck the [Color System documentation page](./?path=/docs/style-colors--docs) for more information.\n\nDefault for `gds-div` is level 2.",
14455
+ "fieldName": "level"
14187
14456
  },
14188
14457
  {
14189
14458
  "name": "gds-element",
@@ -14208,33 +14477,77 @@
14208
14477
  "name": "withSizeYProps",
14209
14478
  "module": "/src/utils/mixins/declarative-layout-mixins"
14210
14479
  },
14480
+ {
14481
+ "name": "withMarginProps",
14482
+ "module": "/src/utils/mixins/declarative-layout-mixins"
14483
+ },
14211
14484
  {
14212
14485
  "name": "withPaddingProps",
14213
14486
  "module": "/src/utils/mixins/declarative-layout-mixins"
14487
+ },
14488
+ {
14489
+ "name": "withLayoutChildProps",
14490
+ "module": "/src/utils/mixins/declarative-layout-mixins"
14491
+ },
14492
+ {
14493
+ "name": "withPositioningProps",
14494
+ "module": "/src/utils/mixins/declarative-layout-mixins"
14214
14495
  }
14215
14496
  ],
14216
14497
  "superclass": {
14217
14498
  "name": "GdsElement",
14218
14499
  "module": "/src/gds-element"
14219
14500
  },
14220
- "tagName": "gds-dialog",
14221
- "customElement": true
14501
+ "tagName": "gds-div",
14502
+ "customElement": true,
14503
+ "events": [
14504
+ {
14505
+ "name": "gds-element-disconnected",
14506
+ "type": {
14507
+ "text": "CustomEvent"
14508
+ },
14509
+ "description": "When the element is disconnected from the DOM",
14510
+ "inheritedFrom": {
14511
+ "name": "GdsElement",
14512
+ "module": "src/gds-element.ts"
14513
+ }
14514
+ },
14515
+ {
14516
+ "name": "name",
14517
+ "type": {
14518
+ "text": "Event"
14519
+ },
14520
+ "inheritedFrom": {
14521
+ "name": "GdsElement",
14522
+ "module": "src/gds-element.ts"
14523
+ }
14524
+ },
14525
+ {
14526
+ "type": {
14527
+ "text": "Event"
14528
+ },
14529
+ "inheritedFrom": {
14530
+ "name": "GdsElement",
14531
+ "module": "src/gds-element.ts"
14532
+ }
14533
+ }
14534
+ ]
14222
14535
  }
14223
14536
  ],
14224
14537
  "exports": [
14225
14538
  {
14226
14539
  "kind": "js",
14227
- "name": "GdsDialog",
14540
+ "name": "GdsDiv",
14228
14541
  "declaration": {
14229
- "name": "GdsDialog",
14230
- "module": "src/components/dialog/dialog.component.ts"
14542
+ "name": "GdsDiv",
14543
+ "module": "src/components/div/div.component.ts"
14231
14544
  }
14232
14545
  }
14233
14546
  ]
14234
14547
  },
14235
14548
  {
14236
14549
  "kind": "javascript-module",
14237
- "path": "src/components/dialog/dialog.stories.ts",
14550
+ "path": "src/components/div/div.stories.ts",
14238
14551
  "declarations": [
14239
14552
  {
14240
14553
  "kind": "variable",
@@ -14242,8 +14555,8 @@
14242
14555
  "type": {
14243
14556
  "text": "Meta"
14244
14557
  },
14245
- "default": "{ title: 'Components/Dialog', component: 'gds-dialog', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-dialog'), }, parameters: { layout: 'centered', }, }",
14246
- "description": "A dialog appears in front of content to provide critical information or ask for a decision."
14558
+ "default": "{ title: 'Components/Div', component: 'gds-div', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-div'), }, }",
14559
+ "description": "\n`gds-div` is a base element in the declarative layout system.\n\nDiv accepts all available style expression properties, and is also the base class for `gds-flex`, `gds-grid`, `gds-card` and `gds-text`"
14247
14560
  },
14248
14561
  {
14249
14562
  "kind": "variable",
@@ -14251,62 +14564,34 @@
14251
14564
  "type": {
14252
14565
  "text": "Story"
14253
14566
  },
14254
- "default": "{ ...DefaultParams, }",
14255
- "description": "The easiest way to set up a dialog is to put a button in the trigger slot. This will\nautomatically open the dialog when the button is clicked."
14256
- },
14257
- {
14258
- "kind": "variable",
14259
- "name": "SlideOut",
14260
- "type": {
14261
- "text": "Story"
14262
- },
14263
- "default": "{ ...DefaultParams, args: { ...DefaultParams.args, variant: 'slide-out', }, }",
14264
- "description": "You can set the `variant` attribute to `slide-out` to make the dialog slide in from the right."
14265
- },
14266
- {
14267
- "kind": "variable",
14268
- "name": "Scrollable",
14269
- "type": {
14270
- "text": "Story"
14271
- },
14272
- "default": "{ ...DefaultParams, args: { ...DefaultParams.args, height: '400px', scrollable: true, }, }",
14273
- "description": "To enable scroll for overflowing content, you can set the `scrollable` property to `true`.\n\nThis only has an effect of the default content slot."
14274
- },
14275
- {
14276
- "kind": "variable",
14277
- "name": "CustomButtons",
14278
- "type": {
14279
- "text": "Story"
14280
- },
14281
- "default": "{ ...DefaultParams, render: () => html`<gds-button aria-haspopup=\"dialog\" onclick=\"document.getElementById('my-dialog').show()\" >Open dialog</gds-button > <gds-dialog heading=\"Dialog heading\" id=\"my-dialog\"> This is the content of the dialog. <gds-button slot=\"footer\" onclick=\"document.getElementById('my-dialog').close('custom close')\" >Custom close button</gds-button > </gds-dialog>`, }",
14282
- "description": "You can also open and close the dialog programmatically by calling the `show()` and `close()` methods.\nIn this case you should add `aria-haspopup=\"dialog\"` to the trigger element. Slotted triggers will get\nthis attribute automatically.\n\nInside the dialog, you can use the `slot=\"footer\"` to add buttons to the footer of the dialog."
14567
+ "default": "{ ...DefaultParams, args: { background: '01', border: '2xs', 'border-radius': 'm', 'border-color': 'subtle-01', width: '4xl', height: '4xl', }, }"
14283
14568
  },
14284
14569
  {
14285
14570
  "kind": "variable",
14286
- "name": "Events",
14571
+ "name": "Example",
14287
14572
  "type": {
14288
14573
  "text": "Story"
14289
14574
  },
14290
- "default": "{ ...DefaultParams, render: () => html`<gds-dialog @gds-close=${console.log} @gds-show=${console.log} @gds-ui-state=${console.log} heading=\"Dialog heading\" id=\"my-dialog-events\" > <gds-button slot=\"trigger\">Open dialog</gds-button> This is the content of the dialog. <gds-button rank=\"secondary\" slot=\"footer\">Custom btn</gds-button> <gds-button slot=\"footer\" onclick=\"document.getElementById('my-dialog-events').close('custom close')\" >Custom btn 2</gds-button > </gds-dialog>`, }",
14291
- "description": "You can listen to the `gds-show`, `gds-close` and `gds-ui-state` events to know when the dialog is opened or closed.\n\nWhen `close()` or `show()` is called without a parameter, the event will not be emitted. If a parameter is passed, the\nevent will be emitted with the parameter as the event detail. Also when any of the built-in methods are used to open or\nclose the dialog, the event will be emitted with the parameter as the event detail.\n\nAll the emitted events will have a `detail` object with a reason property that can be used to determine the reason for the event.\n\nPossible reasons are:\n- `btn-close`: The dialog was closed by the user clicking the close button.\n- `btn-cancel`: The dialog was closed by the user clicking the default cancel button.\n- `btn-ok`: The dialog was closed by the user clicking the default OK button.\n- `native-close`: The dialog was closed by the user pressing the Escape key.\n- `click-outside`: The dialog was closed by the user clicking outside the dialog.\n- `slotted-trigger`: The dialog was opened by the user clicking the slotted trigger button.\n\nThe reason can also be a custom string supplied when calling the `close()` or `show()` methods.\n\n### Preventing close\nThe `gds-ui-state` event can be cancelled by calling `preventDefault()` on the event to prevent the dialog from closing.\nWhen using built-in triggers (buttons, Escape, click outside, trigger slot), cancelling `gds-ui-state` fully prevents the action.\nWhen calling `close()` or `show()` programmatically, events are dispatched for notification but cancellation does not prevent the state change."
14575
+ "default": "{ ...DefaultParams, render: (args) => html` <!-- This is equivalent to 'gds-flex' --> <gds-div display=\"flex\" gap=\"xl\" justify-content=\"center\" align-items=\"center\" > <!-- Some properties, like 'width' and 'height', accepts either tokens or arbitrary values --> <gds-div width=\"4xl\" height=\"4xl\" background=\"neutral-01\"></gds-div> <!-- All style expressions properties accepts multi-viewport expressions --> <gds-div width=\"4xl; l{ 6xl }\" height=\"4xl; l{ 6xl }\" background=\"neutral-02\" border=\"4xs\" ></gds-div> <!-- Instead of adding 'background' and 'border-radius', take a look at 'gds-card', which provides pre-configured configurations of these properties --> <gds-div width=\"4xl\" height=\"4xl\" background=\"03\" border-radius=\"s\" ></gds-div> </gds-div> `, }",
14576
+ "description": "Here is an example of a simple layout structure using `gds-div`:"
14292
14577
  },
14293
14578
  {
14294
14579
  "kind": "variable",
14295
- "name": "CustomDialog",
14580
+ "name": "CardBorder",
14296
14581
  "type": {
14297
14582
  "text": "Story"
14298
14583
  },
14299
- "default": "{ ...DefaultParams, render: () => html`<gds-dialog @gds-close=${console.log} @gds-show=${console.log} @gds-ui-state=${console.log} heading=\"Dialog heading\" id=\"my-dialog-events\" > <gds-button slot=\"trigger\">Open dialog</gds-button> This is the content of the dialog. <div slot=\"dialog\"> If you put stuff here, you can customize the entire dialog, including header and footer. </div> </gds-dialog>`, }",
14300
- "description": "You can customize the dialog completely by putting content in the `dialog` slot.\nThis will replace the default content of the dialog, including the header and footer.\n\nWhen this slot is used, the footer slot will not be rendered, so you need to add a custom footer manually.\n\n**Important:** Make sure to still use the `heading` property, as it is used to give the dialog an accessible name."
14584
+ "default": "{ ...DefaultParams, name: 'Border Style', render: (args) => html`<gds-grid columns=\"5\" gap=\"4xl\"> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"2xs 0 0 0\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> Top </gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"0 2xs 0 0\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\">Right</gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"0 0 2xs 0\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> Bottom </gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"0 0 0 2xs\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> Left </gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border=\"2xs\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> All </gds-flex> </gds-card> </gds-grid>`, }",
14585
+ "description": "Border styling follows the same patterns as CSS and can be controlled using the shorthand properties `border`, `border-width`, `border-style`, `border-color`\n\n- `border-color` defaults to subtle-01\n- `border-width` defaults to 0 (supports all spacing tokens)\n- `border-style` defaults to solid\n\nTo add a 1px primary border around the element:\n\n```html\n<gds-div border=\"4xs\"></gds-div>\n```\n\nTo only add border bottom:\n\n```html\n<gds-div border-width=\"0 0 4xs 0\"></gds-div>\n```\n\nTo add a 1px secodary color border on the bottom:\n\n```html\n<gds-div border-width=\"0 0 4xs 0\" border-color=\"subtle-01\"></gds-div>\n```"
14301
14586
  },
14302
14587
  {
14303
14588
  "kind": "variable",
14304
- "name": "CancelableClose",
14589
+ "name": "BorderRadius",
14305
14590
  "type": {
14306
14591
  "text": "Story"
14307
14592
  },
14308
- "default": "{ ...DefaultParams, render: () => html`<gds-dialog heading=\"Terms and conditions\" id=\"my-dialog-cancel\" closedby=\"none\" @gds-ui-state=${(e: Event) => { const detail = (e as CustomEvent).detail // Only gate close attempts, not open if (detail.open) { const checkbox = document .getElementById('my-dialog-cancel') ?.querySelector('#agree-checkbox') as HTMLInputElement | null if (!checkbox?.checked) { e.preventDefault() } } }} > <gds-button slot=\"trigger\">Open dialog</gds-button> <gds-rich-text> <p> You must agree to the terms before closing this dialog. Try pressing Escape, clicking outside, or using the close button — the dialog will stay open until the checkbox is checked. </p> </gds-rich-text> <label style=\"display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; cursor: pointer;\" > <input type=\"checkbox\" id=\"agree-checkbox\" /> I agree to the terms and conditions </label> </gds-dialog>`, }",
14309
- "description": "You can prevent the dialog from closing by cancelling the `gds-ui-state` event.\n\nIn this example, the dialog contains a checkbox that must be checked before the dialog can be closed.\nAny built-in close trigger (close button, Escape, click outside) is blocked until the condition is met.\n\nNote the use of `closedby=\"none\"` this disables the browser's native close request handling (including\nthe anti-abuse mechanism that would force-close the dialog on repeated Escape presses). With `closedby=\"none\"`,\nthe component adds its own Escape key listener so desktop users can still close via keyboard, and cancellation\nis always honored. Mobile platform close gestures (e.g. iOS swipe) will not work in this mode."
14593
+ "default": "{ ...DefaultParams, args: { background: 'neutral-02', border: '2xs', 'border-radius': 'm', 'border-color': 'strong', width: '8xl', height: '4xl', }, }",
14594
+ "description": "\nValues are mapped directly from our radius tokens to maintain proportional scaling. <br />\nView all available radius tokens and their values in Green Studio:\nhttps://seb.io/studio/radius\n\n\n##### Single value\n```html\n<gds-div border-radius=\"m\">...</gds-div>\n```\n\n##### Multiple corners / (top-left, top-right, bottom-right, bottom-left)\n```html\n<gds-div border-radius=\"s m l xl\">...</gds-div>\n```"
14310
14595
  }
14311
14596
  ],
14312
14597
  "exports": [
@@ -14315,7 +14600,7 @@
14315
14600
  "name": "default",
14316
14601
  "declaration": {
14317
14602
  "name": "meta",
14318
- "module": "src/components/dialog/dialog.stories.ts"
14603
+ "module": "src/components/div/div.stories.ts"
14319
14604
  }
14320
14605
  },
14321
14606
  {
@@ -14323,67 +14608,43 @@
14323
14608
  "name": "Default",
14324
14609
  "declaration": {
14325
14610
  "name": "Default",
14326
- "module": "src/components/dialog/dialog.stories.ts"
14327
- }
14328
- },
14329
- {
14330
- "kind": "js",
14331
- "name": "SlideOut",
14332
- "declaration": {
14333
- "name": "SlideOut",
14334
- "module": "src/components/dialog/dialog.stories.ts"
14335
- }
14336
- },
14337
- {
14338
- "kind": "js",
14339
- "name": "Scrollable",
14340
- "declaration": {
14341
- "name": "Scrollable",
14342
- "module": "src/components/dialog/dialog.stories.ts"
14343
- }
14344
- },
14345
- {
14346
- "kind": "js",
14347
- "name": "CustomButtons",
14348
- "declaration": {
14349
- "name": "CustomButtons",
14350
- "module": "src/components/dialog/dialog.stories.ts"
14611
+ "module": "src/components/div/div.stories.ts"
14351
14612
  }
14352
14613
  },
14353
14614
  {
14354
14615
  "kind": "js",
14355
- "name": "Events",
14616
+ "name": "Example",
14356
14617
  "declaration": {
14357
- "name": "Events",
14358
- "module": "src/components/dialog/dialog.stories.ts"
14618
+ "name": "Example",
14619
+ "module": "src/components/div/div.stories.ts"
14359
14620
  }
14360
14621
  },
14361
14622
  {
14362
14623
  "kind": "js",
14363
- "name": "CustomDialog",
14624
+ "name": "CardBorder",
14364
14625
  "declaration": {
14365
- "name": "CustomDialog",
14366
- "module": "src/components/dialog/dialog.stories.ts"
14626
+ "name": "CardBorder",
14627
+ "module": "src/components/div/div.stories.ts"
14367
14628
  }
14368
14629
  },
14369
14630
  {
14370
14631
  "kind": "js",
14371
- "name": "CancelableClose",
14632
+ "name": "BorderRadius",
14372
14633
  "declaration": {
14373
- "name": "CancelableClose",
14374
- "module": "src/components/dialog/dialog.stories.ts"
14634
+ "name": "BorderRadius",
14635
+ "module": "src/components/div/div.stories.ts"
14375
14636
  }
14376
14637
  }
14377
14638
  ]
14378
14639
  },
14379
14640
  {
14380
14641
  "kind": "javascript-module",
14381
- "path": "src/components/dialog/dialog.styles.ts",
14642
+ "path": "src/components/div/div.styles.ts",
14382
14643
  "declarations": [
14383
14644
  {
14384
14645
  "kind": "variable",
14385
14646
  "name": "style",
14386
- "default": "css` @layer base, reset, transitional-styles; @layer base { :host { display: contents; --_margin: var(--gds-sys-space-l); } dialog { transition: transform var(--gds-sys-motion-duration-fast) cubic-bezier(var(--gds-sys-motion-easing-ease-out)); background: transparent; padding: 0; border-width: 0; overflow: visible; max-width: calc(100vw - var(--_margin)); max-height: 100vh; display: flex; width: 400px; @starting-style { opacity: 0; transform: translateY(-16px); &::backdrop { opacity: 0; } } &::backdrop { transition: all var(--gds-sys-motion-duration-fast) cubic-bezier(var(--gds-sys-motion-easing-ease-out)); background: rgba(100, 100, 100, 0.4); } } dialog > * { flex-grow: 1; } dialog.default.placement-initial { margin: auto; --_margin: 0px; } dialog.default.placement-top { margin: var(--gds-sys-space-l) auto auto; } dialog.default.placement-bottom { margin: auto auto var(--gds-sys-space-l) auto; } dialog.default.placement-left { margin: auto var(--gds-sys-space-l) auto auto; } dialog.default.placement-right { margin: auto auto auto var(--gds-sys-space-l); } dialog.slide-out { --_in: var(--gds-sys-space-m); --_margin: var(--gds-sys-space-l); height: auto; &.placement-initial, &.placement-right { inset: var(--_in); @media (min-width: 648px) { --_in: var(--gds-sys-space-l); inset: var(--_in) var(--_in) var(--_in) auto; } @starting-style { transform: translateX(var(--gds-sys-space-6xl)); } } &.placement-left { @starting-style { transform: translateX(calc(-1 * var(--gds-sys-space-6xl))); } inset: var(--_in); @media (min-width: 648px) { --_in: var(--gds-sys-space-l); inset: var(--_in) auto var(--_in) var(--_in); } } &.placement-top { @starting-style { transform: translateY(calc(-1 * var(--gds-sys-space-6xl))); } inset: var(--_in) var(--_in) auto var(--_in); } &.placement-bottom { @starting-style { transform: translateY(calc(var(--gds-sys-space-6xl))); } inset: auto var(--_in) var(--_in) var(--_in); } } dialog:focus { outline: none; } .card { flex-direction: column; } slot[name='footer'] > *, slot[name='footer']::slotted(*) { flex: 1; } h2 { margin: 0; padding: 0; font: var(--gds-sys-text-heading-s); margin-block-start: var(--gds-sys-space-4xs); } } `"
14647
+ "default": "css` :host { display: block; box-sizing: border-box; border-style: solid; border-width: 0; border-color: var(--gds-sys-color-border-subtle-01); } `"
14387
14648
  }
14388
14649
  ],
14389
14650
  "exports": [
@@ -14392,29 +14653,29 @@
14392
14653
  "name": "default",
14393
14654
  "declaration": {
14394
14655
  "name": "style",
14395
- "module": "src/components/dialog/dialog.styles.ts"
14656
+ "module": "src/components/div/div.styles.ts"
14396
14657
  }
14397
14658
  }
14398
14659
  ]
14399
14660
  },
14400
14661
  {
14401
14662
  "kind": "javascript-module",
14402
- "path": "src/components/dialog/dialog.ts",
14663
+ "path": "src/components/div/div.ts",
14403
14664
  "declarations": [],
14404
14665
  "exports": [
14405
14666
  {
14406
14667
  "kind": "js",
14407
- "name": "GdsDialog",
14668
+ "name": "GdsDiv",
14408
14669
  "declaration": {
14409
- "name": "GdsDialog",
14410
- "module": "src/components/dialog/dialog.ts"
14670
+ "name": "GdsDiv",
14671
+ "module": "src/components/div/div.ts"
14411
14672
  }
14412
14673
  }
14413
14674
  ]
14414
14675
  },
14415
14676
  {
14416
14677
  "kind": "javascript-module",
14417
- "path": "src/components/dialog/index.ts",
14678
+ "path": "src/components/div/index.ts",
14418
14679
  "declarations": [],
14419
14680
  "exports": [
14420
14681
  {
@@ -14422,364 +14683,141 @@
14422
14683
  "name": "*",
14423
14684
  "declaration": {
14424
14685
  "name": "*",
14425
- "module": "src/components/dialog/dialog"
14426
- }
14427
- }
14428
- ]
14429
- },
14430
- {
14431
- "kind": "javascript-module",
14432
- "path": "src/components/dialog/scroll-lock.ts",
14433
- "declarations": [
14434
- {
14435
- "kind": "function",
14436
- "name": "registerGlobalScrollLockStyles"
14437
- },
14438
- {
14439
- "kind": "function",
14440
- "name": "lockBodyScrolling",
14441
- "parameters": [
14442
- {
14443
- "name": "lockingEl",
14444
- "type": {
14445
- "text": "HTMLElement"
14446
- }
14447
- }
14448
- ],
14449
- "description": "Prevents body scrolling. Keeps track of which elements requested a lock so multiple levels of locking are possible\nwithout premature unlocking."
14450
- },
14451
- {
14452
- "kind": "function",
14453
- "name": "unlockBodyScrolling",
14454
- "parameters": [
14455
- {
14456
- "name": "lockingEl",
14457
- "type": {
14458
- "text": "HTMLElement"
14459
- }
14460
- }
14461
- ],
14462
- "description": "Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method."
14463
- }
14464
- ],
14465
- "exports": [
14466
- {
14467
- "kind": "js",
14468
- "name": "registerGlobalScrollLockStyles",
14469
- "declaration": {
14470
- "name": "registerGlobalScrollLockStyles",
14471
- "module": "src/components/dialog/scroll-lock.ts"
14472
- }
14473
- },
14474
- {
14475
- "kind": "js",
14476
- "name": "lockBodyScrolling",
14477
- "declaration": {
14478
- "name": "lockBodyScrolling",
14479
- "module": "src/components/dialog/scroll-lock.ts"
14480
- }
14481
- },
14482
- {
14483
- "kind": "js",
14484
- "name": "unlockBodyScrolling",
14485
- "declaration": {
14486
- "name": "unlockBodyScrolling",
14487
- "module": "src/components/dialog/scroll-lock.ts"
14686
+ "module": "src/components/div/div"
14488
14687
  }
14489
14688
  }
14490
14689
  ]
14491
14690
  },
14492
14691
  {
14493
14692
  "kind": "javascript-module",
14494
- "path": "src/components/div/div.component.ts",
14693
+ "path": "src/components/dialog/dialog.component.ts",
14495
14694
  "declarations": [
14496
14695
  {
14497
14696
  "kind": "class",
14498
14697
  "description": "",
14499
- "name": "GdsDiv",
14500
- "members": [
14501
- {
14502
- "kind": "field",
14503
- "name": "display",
14504
- "type": {
14505
- "text": "string | undefined"
14506
- },
14507
- "description": "Controls the display property.\nSupports all valid CSS display values.",
14508
- "category": "Declarative layout / Style expression properties"
14509
- },
14510
- {
14511
- "kind": "field",
14512
- "name": "level",
14513
- "type": {
14514
- "text": "GdsColorLevel"
14515
- },
14516
- "default": "'2'",
14517
- "description": "The level of the container is used to resolve the color tokens from the corresponding level.\nCheck the [Color System documentation page](./?path=/docs/style-colors--docs) for more information.\n\nDefault for `gds-div` is level 2.",
14518
- "attribute": "level"
14519
- },
14520
- {
14521
- "kind": "field",
14522
- "name": "color",
14523
- "type": {
14524
- "text": "string | undefined"
14525
- },
14526
- "description": "Style Expression Property that controls the `color` property.\nOnly accepts color tokens and an optional transparency value, in the format tokenName/transparency.\n\n```html\n<gds-div color=\"neutral-01/0.2\"></gds-div>\n```",
14527
- "category": "Declarative layout / Style expression properties"
14528
- },
14529
- {
14530
- "kind": "field",
14531
- "name": "background",
14532
- "type": {
14533
- "text": "string | undefined"
14534
- },
14535
- "description": "Style Expression Property that controls the `background` property.\nOnly accepts color tokens and an optional transparency value, in the format tokenName/transparency.\n\n```html\n<gds-div background=\"neutral-01/0.2\"></gds-div>\n```",
14536
- "category": "Declarative layout / Style expression properties"
14537
- },
14538
- {
14539
- "kind": "field",
14540
- "name": "border",
14541
- "type": {
14542
- "text": "string | undefined"
14543
- },
14544
- "description": "Style Expression Property that controls the `border` property.\nAccepts a string of the same format as the CSS border property.\n\n```html\n<gds-div border=\"4xs solid subtle-01/0.2\"></gds-div>\n```\n\nWhere the size value accepts space tokens and the color value accepts color tokens and an optional transparency value.",
14545
- "category": "Declarative layout / Style expression properties"
14546
- },
14547
- {
14548
- "kind": "field",
14549
- "name": "'border-color'",
14550
- "type": {
14551
- "text": "string | undefined"
14552
- },
14553
- "description": "Style Expression Property that controls the `border-color` property.\nOnly accepts color tokens and an optional transparency value, in the format tokenName/transparency.\n\n```html\n<gds-div border-color=\"subtle-01/0.2\"></gds-div>\n```",
14554
- "category": "Declarative layout / Style expression properties"
14555
- },
14556
- {
14557
- "kind": "field",
14558
- "name": "'border-width'",
14559
- "type": {
14560
- "text": "string | undefined"
14561
- },
14562
- "description": "Style Expression Property that controls the `border-width` property.\nOnly accepts space tokens.",
14563
- "category": "Declarative layout / Style expression properties"
14564
- },
14565
- {
14566
- "kind": "field",
14567
- "name": "'border-style'",
14568
- "type": {
14569
- "text": "string | undefined"
14570
- },
14571
- "description": "Style Expression Property that controls the `border-style` property.\nSupports all valid CSS `border-style` values.",
14572
- "category": "Declarative layout / Style expression properties"
14573
- },
14574
- {
14575
- "kind": "field",
14576
- "name": "'border-radius'",
14577
- "type": {
14578
- "text": "string | undefined"
14579
- },
14580
- "description": "Style Expression Property that controls the `border-radius` property.\nOnly accepts space tokens.",
14581
- "category": "Declarative layout / Style expression properties"
14582
- },
14583
- {
14584
- "kind": "field",
14585
- "name": "'box-shadow'",
14586
- "type": {
14587
- "text": "string | undefined"
14588
- },
14589
- "description": "Style Expression Property for the `box-shadow` property.\n\nAccepts shadow tokens from the design system.\n\n`xs`, `s`, `m`, `l`, `xl`",
14590
- "category": "Declarative layout / Style expression properties"
14591
- },
14592
- {
14593
- "kind": "field",
14594
- "name": "opacity",
14595
- "type": {
14596
- "text": "string | undefined"
14597
- },
14598
- "description": "Style Expression Property that controls the `opacity` property.\nSupports all valid CSS `opacity` values.",
14599
- "category": "Declarative layout / Style expression properties"
14600
- },
14601
- {
14602
- "kind": "field",
14603
- "name": "overflow",
14604
- "type": {
14605
- "text": "string | undefined"
14606
- },
14607
- "description": "Style Expression Property that controls the `overflow` property.\nSupports all valid CSS `overflow` values.",
14608
- "category": "Declarative layout / Style expression properties"
14609
- },
14610
- {
14611
- "kind": "field",
14612
- "name": "'box-sizing'",
14613
- "type": {
14614
- "text": "string | undefined"
14615
- },
14616
- "description": "Style Expression Property that controls the `box-sizing` property.\nSupports all valid CSS `box-sizing` values.",
14617
- "category": "Declarative layout / Style expression properties"
14618
- },
14619
- {
14620
- "kind": "field",
14621
- "name": "'z-index'",
14622
- "type": {
14623
- "text": "string | undefined"
14624
- },
14625
- "description": "Style Expression Property that controls the `z-index` property.\nSupports all valid CSS `z-index` values.",
14626
- "category": "Declarative layout / Style expression properties"
14627
- },
14628
- {
14629
- "kind": "field",
14630
- "name": "'font'",
14631
- "type": {
14632
- "text": "string | undefined"
14633
- },
14634
- "description": "Style Expression Property that controls the `font` property.\nSupports all font tokens from the design system."
14635
- },
14636
- {
14637
- "kind": "field",
14638
- "name": "'font-weight'",
14639
- "type": {
14640
- "text": "string | undefined"
14641
- },
14642
- "description": "Style Expression Property that controls the `font-weight` property.\nSupports all typography weight tokens from the design system.",
14643
- "category": "Declarative layout / Style expression properties"
14644
- },
14645
- {
14646
- "kind": "field",
14647
- "name": "'text-align'",
14648
- "type": {
14649
- "text": "string | undefined"
14650
- },
14651
- "description": "Style Expression Property that controls the `text-align` property.\nSupports all valid CSS `text-align` values.",
14652
- "category": "Declarative layout / Style expression properties"
14653
- },
14654
- {
14655
- "kind": "field",
14656
- "name": "'text-wrap'",
14657
- "type": {
14658
- "text": "string | undefined"
14659
- },
14660
- "description": "Style Expression Property that controls the `text-wrap` property.\nSupports all valid CSS `text-wrap` values.",
14661
- "category": "Declarative layout / Style expression properties"
14662
- },
14663
- {
14664
- "kind": "field",
14665
- "name": "'overflow-wrap'",
14666
- "type": {
14667
- "text": "string | undefined"
14668
- },
14669
- "description": "Style Expression Property that controls the `overflow-wrap` property.\nSupports all valid CSS `overflow-wrap` values."
14670
- },
14698
+ "name": "GdsDialog",
14699
+ "slots": [
14671
14700
  {
14672
- "kind": "field",
14673
- "name": "'white-space'",
14674
- "type": {
14675
- "text": "string | undefined"
14676
- },
14677
- "description": "Style Expression Property that controls the `white-space` property.\nSupports all valid CSS `white-space` values."
14701
+ "description": "The content of the dialog",
14702
+ "name": ""
14678
14703
  },
14679
14704
  {
14680
- "kind": "field",
14681
- "name": "gap",
14682
- "type": {
14683
- "text": "string | undefined"
14684
- },
14685
- "description": "Style Expression Property that controls the `gap` property.\nOnly accepts space tokens.",
14686
- "category": "Declarative layout / Style expression properties"
14705
+ "description": "The trigger button for the dialog",
14706
+ "name": "trigger"
14687
14707
  },
14688
14708
  {
14689
- "kind": "field",
14690
- "name": "'align-items'",
14691
- "type": {
14692
- "text": "string | undefined"
14693
- },
14694
- "description": "Style Expression Property that controls the `align-items` property.\nSupports all valid CSS `align-items` values.",
14695
- "category": "Declarative layout / Style expression properties"
14709
+ "description": "The footer of the dialog",
14710
+ "name": "footer"
14696
14711
  },
14697
14712
  {
14698
- "kind": "field",
14699
- "name": "'align-content'",
14700
- "type": {
14701
- "text": "string | undefined"
14702
- },
14703
- "description": "Style Expression Property that controls the `align-content` property.\nSupports all valid CSS `align-content` values.",
14704
- "category": "Declarative layout / Style expression properties"
14705
- },
14713
+ "description": "Complete override of the dialog content, including header and footer",
14714
+ "name": "dialog"
14715
+ }
14716
+ ],
14717
+ "members": [
14706
14718
  {
14707
14719
  "kind": "field",
14708
- "name": "'justify-content'",
14720
+ "name": "styleExpressionBaseSelector",
14709
14721
  "type": {
14710
- "text": "string | undefined"
14722
+ "text": "string"
14711
14723
  },
14712
- "description": "Style Expression Property that controls the `justify-content` property.\nSupports all valid CSS `justify-content` values.",
14713
- "category": "Declarative layout / Style expression properties"
14724
+ "static": true,
14725
+ "default": "'dialog'",
14726
+ "description": "Style expression properties for this element will use this selector by default.",
14727
+ "inheritedFrom": {
14728
+ "name": "GdsElement",
14729
+ "module": "src/gds-element.ts"
14730
+ }
14714
14731
  },
14715
14732
  {
14716
14733
  "kind": "field",
14717
- "name": "'justify-items'",
14734
+ "name": "open",
14718
14735
  "type": {
14719
- "text": "string | undefined"
14736
+ "text": "boolean"
14720
14737
  },
14721
- "description": "Style Expression Property that controls the `justify-items` property.\nSupports all valid CSS `justify-items` values.",
14722
- "category": "Declarative layout / Style expression properties"
14738
+ "default": "false",
14739
+ "description": "Whether the dialog is open. The state of the dialog can be controlled either\nby setting this property or by calling the `show()` and `close()` methods.\n\nWhen the state is explicitly changed by setting this prop, the state change cannot\nbe cancelled by events.",
14740
+ "attribute": "open",
14741
+ "reflects": true
14723
14742
  },
14724
14743
  {
14725
14744
  "kind": "field",
14726
- "name": "'flex-direction'",
14745
+ "name": "heading",
14727
14746
  "type": {
14728
14747
  "text": "string | undefined"
14729
14748
  },
14730
- "description": "Style Expression Property that controls the `flex-direction` property.\nSupports all valid CSS `flex-direction` values.",
14731
- "category": "Declarative layout / Style expression properties"
14749
+ "description": "The dialog's heading.",
14750
+ "attribute": "heading"
14732
14751
  },
14733
14752
  {
14734
14753
  "kind": "field",
14735
- "name": "'flex-wrap'",
14754
+ "name": "variant",
14736
14755
  "type": {
14737
- "text": "string | undefined"
14756
+ "text": "'default' | 'slide-out'"
14738
14757
  },
14739
- "description": "Style Expression Property that controls the `flex-wrap` property.\nSupports all valid CSS `flex-wrap` values.",
14740
- "category": "Declarative layout / Style expression properties"
14758
+ "default": "'default'",
14759
+ "description": "The dialog's variant.",
14760
+ "attribute": "variant"
14741
14761
  },
14742
14762
  {
14743
14763
  "kind": "field",
14744
- "name": "'place-items'",
14764
+ "name": "placement",
14745
14765
  "type": {
14746
- "text": "string | undefined"
14766
+ "text": "'initial' | 'top' | 'bottom' | 'left' | 'right'"
14747
14767
  },
14748
- "description": "Style Expression Property that controls the `place-items` property.\nSupports all valid CSS `place-items` values.",
14749
- "category": "Declarative layout / Style expression properties"
14768
+ "default": "'initial'",
14769
+ "description": "The dialog's placement.",
14770
+ "attribute": "placement"
14750
14771
  },
14751
14772
  {
14752
14773
  "kind": "field",
14753
- "name": "'place-content'",
14774
+ "name": "scrollable",
14754
14775
  "type": {
14755
- "text": "string | undefined"
14776
+ "text": "boolean"
14756
14777
  },
14757
- "description": "Style Expression Property that controls the `place-content` property.\nSupports all valid CSS `place-content` values.",
14758
- "category": "Declarative layout / Style expression properties"
14778
+ "default": "false",
14779
+ "description": "Whether the inner content of the dialog should have scrollable overflow. Scroll will appear if\nthe content exceeds the dialog's height, which can be controlled using the `height` property.\n\nThis property have no effect if the `dialog` slot is used. In that case, you need to add overflow\nstyles to the content inside the `dialog` slot.",
14780
+ "attribute": "scrollable"
14759
14781
  },
14760
14782
  {
14761
14783
  "kind": "field",
14762
- "name": "'aspect-ratio'",
14784
+ "name": "closedby",
14763
14785
  "type": {
14764
- "text": "string | undefined"
14786
+ "text": "'closerequest' | 'none' | 'any'"
14765
14787
  },
14766
- "description": "Style Expression Property that controls the `aspect-ratio` property.\nSupports all valid CSS `aspect-ratio` values."
14788
+ "default": "'closerequest'",
14789
+ "description": "Controls which user actions can close the dialog. Maps to the native `<dialog>` `closedby` attribute.\n\n- `closerequest` (default): The dialog can be dismissed by platform close gestures (Escape key, iOS swipe, etc.).\n The browser's anti-abuse mechanism applies: after one cancelled close request, subsequent cancellations\n require a user activation in between. This ensures the best mobile UX.\n- `none`: The dialog can only be closed by developer-specified mechanisms (buttons, click outside, or programmatic API).\n A manual Escape key listener is added for desktop users, with fully cancellable behavior (no anti-abuse limit).\n Mobile platform close gestures may not work in this mode.\n- `any`: The dialog can also be dismissed by light dismiss (clicking outside). Note that gds-dialog already\n handles click-outside via its own mechanism.",
14790
+ "attribute": "closedby",
14791
+ "reflects": true
14767
14792
  },
14768
14793
  {
14769
- "kind": "field",
14770
- "name": "cursor",
14771
- "type": {
14772
- "text": "string | undefined"
14773
- },
14774
- "description": "Style Expression Property that controls the `cursor` property.\nSupports all valid CSS `cursor` values."
14794
+ "kind": "method",
14795
+ "name": "show",
14796
+ "parameters": [
14797
+ {
14798
+ "name": "reason",
14799
+ "optional": true,
14800
+ "type": {
14801
+ "text": "string"
14802
+ }
14803
+ }
14804
+ ],
14805
+ "description": "Opens the dialog.\nThis is a programmatic API that always opens the dialog.\nEvents are dispatched for notification when a reason is provided, but cancellation is not honored."
14775
14806
  },
14776
14807
  {
14777
- "kind": "field",
14778
- "name": "'pointer-events'",
14779
- "type": {
14780
- "text": "string | undefined"
14781
- },
14782
- "description": "Style Expression Property that controls the `pointer-events` property.\nSupports all valid CSS `pointer-events` values."
14808
+ "kind": "method",
14809
+ "name": "close",
14810
+ "parameters": [
14811
+ {
14812
+ "name": "reason",
14813
+ "optional": true,
14814
+ "type": {
14815
+ "text": "string"
14816
+ },
14817
+ "description": "The reason for closing the dialog."
14818
+ }
14819
+ ],
14820
+ "description": "Closes the dialog.\nThis is a programmatic API that always closes the dialog.\nEvents are dispatched for notification when a reason is provided, but cancellation is not honored."
14783
14821
  },
14784
14822
  {
14785
14823
  "kind": "field",
@@ -14937,45 +14975,6 @@
14937
14975
  "module": "src/utils/mixins/declarative-layout-mixins.ts"
14938
14976
  }
14939
14977
  },
14940
- {
14941
- "kind": "field",
14942
- "name": "margin",
14943
- "type": {
14944
- "text": "string | undefined"
14945
- },
14946
- "description": "Style Expression Property that controls the `margin` property.\nOnly accepts space tokens.",
14947
- "category": "Declarative layout / Style expression properties",
14948
- "inheritedFrom": {
14949
- "name": "withMarginProps",
14950
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
14951
- }
14952
- },
14953
- {
14954
- "kind": "field",
14955
- "name": "'margin-inline'",
14956
- "type": {
14957
- "text": "string | undefined"
14958
- },
14959
- "description": "Style Expression Property that controls the `margin-inline` property.\nOnly accepts space tokens.",
14960
- "category": "Declarative layout / Style expression properties",
14961
- "inheritedFrom": {
14962
- "name": "withMarginProps",
14963
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
14964
- }
14965
- },
14966
- {
14967
- "kind": "field",
14968
- "name": "'margin-block'",
14969
- "type": {
14970
- "text": "string | undefined"
14971
- },
14972
- "description": "Style Expression Property that controls the `margin-block` property.\nOnly accepts space tokens.",
14973
- "category": "Declarative layout / Style expression properties",
14974
- "inheritedFrom": {
14975
- "name": "withMarginProps",
14976
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
14977
- }
14978
- },
14979
14978
  {
14980
14979
  "kind": "field",
14981
14980
  "name": "padding",
@@ -15015,149 +15014,6 @@
15015
15014
  "module": "src/utils/mixins/declarative-layout-mixins.ts"
15016
15015
  }
15017
15016
  },
15018
- {
15019
- "kind": "field",
15020
- "name": "'align-self'",
15021
- "type": {
15022
- "text": "string | undefined"
15023
- },
15024
- "description": "Style Expression Property that controls the `align-self` property.\nSupports all valid CSS `align-self` values.",
15025
- "category": "Declarative layout / Style expression properties",
15026
- "inheritedFrom": {
15027
- "name": "withLayoutChildProps",
15028
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15029
- }
15030
- },
15031
- {
15032
- "kind": "field",
15033
- "name": "'justify-self'",
15034
- "type": {
15035
- "text": "string | undefined"
15036
- },
15037
- "description": "Style Expression Property that controls the `justify-self` property.\nSupports all valid CSS `justify-self` values.",
15038
- "category": "Declarative layout / Style expression properties",
15039
- "inheritedFrom": {
15040
- "name": "withLayoutChildProps",
15041
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15042
- }
15043
- },
15044
- {
15045
- "kind": "field",
15046
- "name": "'place-self'",
15047
- "type": {
15048
- "text": "string | undefined"
15049
- },
15050
- "description": "Style Expression Property that controls the `place-self` property.\nSupports all valid CSS `place-self` values.",
15051
- "category": "Declarative layout / Style expression properties",
15052
- "inheritedFrom": {
15053
- "name": "withLayoutChildProps",
15054
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15055
- }
15056
- },
15057
- {
15058
- "kind": "field",
15059
- "name": "'grid-column'",
15060
- "type": {
15061
- "text": "string | undefined"
15062
- },
15063
- "description": "Style Expression Property that controls the `grid-column` property.\nSupports all valid CSS grid-column values.\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column",
15064
- "category": "Declarative layout / Style expression properties",
15065
- "inheritedFrom": {
15066
- "name": "withLayoutChildProps",
15067
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15068
- }
15069
- },
15070
- {
15071
- "kind": "field",
15072
- "name": "'grid-row'",
15073
- "type": {
15074
- "text": "string | undefined"
15075
- },
15076
- "description": "Style Expression Property that controls the `grid-row` property.\nSupports all valid CSS `grid-row` values.",
15077
- "category": "Declarative layout / Style expression properties",
15078
- "inheritedFrom": {
15079
- "name": "withLayoutChildProps",
15080
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15081
- }
15082
- },
15083
- {
15084
- "kind": "field",
15085
- "name": "'grid-area'",
15086
- "type": {
15087
- "text": "string | undefined"
15088
- },
15089
- "description": "Style Expression Property that controls the `grid-area` property.\nSupports all valid CSS `grid-area` values.",
15090
- "category": "Declarative layout / Style expression properties",
15091
- "inheritedFrom": {
15092
- "name": "withLayoutChildProps",
15093
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15094
- }
15095
- },
15096
- {
15097
- "kind": "field",
15098
- "name": "flex",
15099
- "type": {
15100
- "text": "string | undefined"
15101
- },
15102
- "description": "Style Expression Property that controls the `flex` property.\nSupports all valid CSS `flex` values.",
15103
- "category": "Declarative layout / Style expression properties",
15104
- "inheritedFrom": {
15105
- "name": "withLayoutChildProps",
15106
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15107
- }
15108
- },
15109
- {
15110
- "kind": "field",
15111
- "name": "order",
15112
- "type": {
15113
- "text": "string | undefined"
15114
- },
15115
- "description": "Style Expression Property that controls the `order` property.\nSupports all valid CSS `order` values.",
15116
- "category": "Declarative layout / Style expression properties",
15117
- "inheritedFrom": {
15118
- "name": "withLayoutChildProps",
15119
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15120
- }
15121
- },
15122
- {
15123
- "kind": "field",
15124
- "name": "position",
15125
- "type": {
15126
- "text": "string | undefined"
15127
- },
15128
- "description": "Style Expression Property that controls the `position` property.\nSupports all valid CSS `position` values.",
15129
- "category": "Declarative layout / Style expression properties",
15130
- "inheritedFrom": {
15131
- "name": "withPositioningProps",
15132
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15133
- }
15134
- },
15135
- {
15136
- "kind": "field",
15137
- "name": "transform",
15138
- "type": {
15139
- "text": "string | undefined"
15140
- },
15141
- "description": "Style Expression Property that controls the `transform` property.\nSupports all valid CSS `transform` values.",
15142
- "category": "Declarative layout / Style expression properties",
15143
- "inheritedFrom": {
15144
- "name": "withPositioningProps",
15145
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15146
- }
15147
- },
15148
- {
15149
- "kind": "field",
15150
- "name": "inset",
15151
- "type": {
15152
- "text": "string | undefined"
15153
- },
15154
- "description": "Style Expression Property that controls the `inset` property.\nSupports all valid CSS `inset` values.",
15155
- "category": "Declarative layout / Style expression properties",
15156
- "inheritedFrom": {
15157
- "name": "withPositioningProps",
15158
- "module": "src/utils/mixins/declarative-layout-mixins.ts"
15159
- }
15160
- },
15161
15017
  {
15162
15018
  "kind": "method",
15163
15019
  "name": "define",
@@ -15187,20 +15043,6 @@
15187
15043
  "module": "src/gds-element.ts"
15188
15044
  }
15189
15045
  },
15190
- {
15191
- "kind": "field",
15192
- "name": "styleExpressionBaseSelector",
15193
- "type": {
15194
- "text": "string"
15195
- },
15196
- "static": true,
15197
- "default": "':host'",
15198
- "description": "Style expression properties for this element will use this selector by default.",
15199
- "inheritedFrom": {
15200
- "name": "GdsElement",
15201
- "module": "src/gds-element.ts"
15202
- }
15203
- },
15204
15046
  {
15205
15047
  "kind": "field",
15206
15048
  "name": "semanticVersion",
@@ -15288,15 +15130,103 @@
15288
15130
  }
15289
15131
  }
15290
15132
  ],
15133
+ "events": [
15134
+ {
15135
+ "description": "Fired when the dialog is opened or closed. Can be cancelled to prevent the dialog from closing.",
15136
+ "name": "gds-ui-state"
15137
+ },
15138
+ {
15139
+ "description": "Fired when the dialog is closed",
15140
+ "name": "gds-close"
15141
+ },
15142
+ {
15143
+ "description": "Fired when the dialog is opened",
15144
+ "name": "gds-show"
15145
+ },
15146
+ {
15147
+ "name": "gds-element-disconnected",
15148
+ "type": {
15149
+ "text": "CustomEvent"
15150
+ },
15151
+ "description": "When the element is disconnected from the DOM",
15152
+ "inheritedFrom": {
15153
+ "name": "GdsElement",
15154
+ "module": "src/gds-element.ts"
15155
+ }
15156
+ },
15157
+ {
15158
+ "name": "name",
15159
+ "type": {
15160
+ "text": "Event"
15161
+ },
15162
+ "inheritedFrom": {
15163
+ "name": "GdsElement",
15164
+ "module": "src/gds-element.ts"
15165
+ }
15166
+ },
15167
+ {
15168
+ "type": {
15169
+ "text": "Event"
15170
+ },
15171
+ "inheritedFrom": {
15172
+ "name": "GdsElement",
15173
+ "module": "src/gds-element.ts"
15174
+ }
15175
+ }
15176
+ ],
15291
15177
  "attributes": [
15292
15178
  {
15293
- "name": "level",
15179
+ "name": "open",
15294
15180
  "type": {
15295
- "text": "GdsColorLevel"
15181
+ "text": "boolean"
15296
15182
  },
15297
- "default": "'2'",
15298
- "description": "The level of the container is used to resolve the color tokens from the corresponding level.\nCheck the [Color System documentation page](./?path=/docs/style-colors--docs) for more information.\n\nDefault for `gds-div` is level 2.",
15299
- "fieldName": "level"
15183
+ "default": "false",
15184
+ "description": "Whether the dialog is open. The state of the dialog can be controlled either\nby setting this property or by calling the `show()` and `close()` methods.\n\nWhen the state is explicitly changed by setting this prop, the state change cannot\nbe cancelled by events.",
15185
+ "fieldName": "open"
15186
+ },
15187
+ {
15188
+ "name": "heading",
15189
+ "type": {
15190
+ "text": "string | undefined"
15191
+ },
15192
+ "description": "The dialog's heading.",
15193
+ "fieldName": "heading"
15194
+ },
15195
+ {
15196
+ "name": "variant",
15197
+ "type": {
15198
+ "text": "'default' | 'slide-out'"
15199
+ },
15200
+ "default": "'default'",
15201
+ "description": "The dialog's variant.",
15202
+ "fieldName": "variant"
15203
+ },
15204
+ {
15205
+ "name": "placement",
15206
+ "type": {
15207
+ "text": "'initial' | 'top' | 'bottom' | 'left' | 'right'"
15208
+ },
15209
+ "default": "'initial'",
15210
+ "description": "The dialog's placement.",
15211
+ "fieldName": "placement"
15212
+ },
15213
+ {
15214
+ "name": "scrollable",
15215
+ "type": {
15216
+ "text": "boolean"
15217
+ },
15218
+ "default": "false",
15219
+ "description": "Whether the inner content of the dialog should have scrollable overflow. Scroll will appear if\nthe content exceeds the dialog's height, which can be controlled using the `height` property.\n\nThis property have no effect if the `dialog` slot is used. In that case, you need to add overflow\nstyles to the content inside the `dialog` slot.",
15220
+ "fieldName": "scrollable"
15221
+ },
15222
+ {
15223
+ "name": "closedby",
15224
+ "type": {
15225
+ "text": "'closerequest' | 'none' | 'any'"
15226
+ },
15227
+ "default": "'closerequest'",
15228
+ "description": "Controls which user actions can close the dialog. Maps to the native `<dialog>` `closedby` attribute.\n\n- `closerequest` (default): The dialog can be dismissed by platform close gestures (Escape key, iOS swipe, etc.).\n The browser's anti-abuse mechanism applies: after one cancelled close request, subsequent cancellations\n require a user activation in between. This ensures the best mobile UX.\n- `none`: The dialog can only be closed by developer-specified mechanisms (buttons, click outside, or programmatic API).\n A manual Escape key listener is added for desktop users, with fully cancellable behavior (no anti-abuse limit).\n Mobile platform close gestures may not work in this mode.\n- `any`: The dialog can also be dismissed by light dismiss (clicking outside). Note that gds-dialog already\n handles click-outside via its own mechanism.",
15229
+ "fieldName": "closedby"
15300
15230
  },
15301
15231
  {
15302
15232
  "name": "gds-element",
@@ -15321,77 +15251,33 @@
15321
15251
  "name": "withSizeYProps",
15322
15252
  "module": "/src/utils/mixins/declarative-layout-mixins"
15323
15253
  },
15324
- {
15325
- "name": "withMarginProps",
15326
- "module": "/src/utils/mixins/declarative-layout-mixins"
15327
- },
15328
15254
  {
15329
15255
  "name": "withPaddingProps",
15330
15256
  "module": "/src/utils/mixins/declarative-layout-mixins"
15331
- },
15332
- {
15333
- "name": "withLayoutChildProps",
15334
- "module": "/src/utils/mixins/declarative-layout-mixins"
15335
- },
15336
- {
15337
- "name": "withPositioningProps",
15338
- "module": "/src/utils/mixins/declarative-layout-mixins"
15339
15257
  }
15340
15258
  ],
15341
15259
  "superclass": {
15342
15260
  "name": "GdsElement",
15343
15261
  "module": "/src/gds-element"
15344
15262
  },
15345
- "tagName": "gds-div",
15346
- "customElement": true,
15347
- "events": [
15348
- {
15349
- "name": "gds-element-disconnected",
15350
- "type": {
15351
- "text": "CustomEvent"
15352
- },
15353
- "description": "When the element is disconnected from the DOM",
15354
- "inheritedFrom": {
15355
- "name": "GdsElement",
15356
- "module": "src/gds-element.ts"
15357
- }
15358
- },
15359
- {
15360
- "name": "name",
15361
- "type": {
15362
- "text": "Event"
15363
- },
15364
- "inheritedFrom": {
15365
- "name": "GdsElement",
15366
- "module": "src/gds-element.ts"
15367
- }
15368
- },
15369
- {
15370
- "type": {
15371
- "text": "Event"
15372
- },
15373
- "inheritedFrom": {
15374
- "name": "GdsElement",
15375
- "module": "src/gds-element.ts"
15376
- }
15377
- }
15378
- ]
15263
+ "tagName": "gds-dialog",
15264
+ "customElement": true
15379
15265
  }
15380
15266
  ],
15381
15267
  "exports": [
15382
15268
  {
15383
15269
  "kind": "js",
15384
- "name": "GdsDiv",
15270
+ "name": "GdsDialog",
15385
15271
  "declaration": {
15386
- "name": "GdsDiv",
15387
- "module": "src/components/div/div.component.ts"
15272
+ "name": "GdsDialog",
15273
+ "module": "src/components/dialog/dialog.component.ts"
15388
15274
  }
15389
15275
  }
15390
15276
  ]
15391
15277
  },
15392
15278
  {
15393
15279
  "kind": "javascript-module",
15394
- "path": "src/components/div/div.stories.ts",
15280
+ "path": "src/components/dialog/dialog.stories.ts",
15395
15281
  "declarations": [
15396
15282
  {
15397
15283
  "kind": "variable",
@@ -15399,8 +15285,8 @@
15399
15285
  "type": {
15400
15286
  "text": "Meta"
15401
15287
  },
15402
- "default": "{ title: 'Components/Div', component: 'gds-div', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-div'), }, }",
15403
- "description": "\n`gds-div` is a base element in the declarative layout system.\n\nDiv accepts all available style expression properties, and is also the base class for `gds-flex`, `gds-grid`, `gds-card` and `gds-text`"
15288
+ "default": "{ title: 'Components/Dialog', component: 'gds-dialog', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-dialog'), }, parameters: { layout: 'centered', }, }",
15289
+ "description": "A dialog appears in front of content to provide critical information or ask for a decision."
15404
15290
  },
15405
15291
  {
15406
15292
  "kind": "variable",
@@ -15408,34 +15294,62 @@
15408
15294
  "type": {
15409
15295
  "text": "Story"
15410
15296
  },
15411
- "default": "{ ...DefaultParams, args: { background: '01', border: '2xs', 'border-radius': 'm', 'border-color': 'subtle-01', width: '4xl', height: '4xl', }, }"
15297
+ "default": "{ ...DefaultParams, }",
15298
+ "description": "The easiest way to set up a dialog is to put a button in the trigger slot. This will\nautomatically open the dialog when the button is clicked."
15412
15299
  },
15413
15300
  {
15414
15301
  "kind": "variable",
15415
- "name": "Example",
15302
+ "name": "SlideOut",
15416
15303
  "type": {
15417
15304
  "text": "Story"
15418
15305
  },
15419
- "default": "{ ...DefaultParams, render: (args) => html` <!-- This is equivalent to 'gds-flex' --> <gds-div display=\"flex\" gap=\"xl\" justify-content=\"center\" align-items=\"center\" > <!-- Some properties, like 'width' and 'height', accepts either tokens or arbitrary values --> <gds-div width=\"4xl\" height=\"4xl\" background=\"neutral-01\"></gds-div> <!-- All style expressions properties accepts multi-viewport expressions --> <gds-div width=\"4xl; l{ 6xl }\" height=\"4xl; l{ 6xl }\" background=\"neutral-02\" border=\"4xs\" ></gds-div> <!-- Instead of adding 'background' and 'border-radius', take a look at 'gds-card', which provides pre-configured configurations of these properties --> <gds-div width=\"4xl\" height=\"4xl\" background=\"03\" border-radius=\"s\" ></gds-div> </gds-div> `, }",
15420
- "description": "Here is an example of a simple layout structure using `gds-div`:"
15306
+ "default": "{ ...DefaultParams, args: { ...DefaultParams.args, variant: 'slide-out', }, }",
15307
+ "description": "You can set the `variant` attribute to `slide-out` to make the dialog slide in from the right."
15421
15308
  },
15422
15309
  {
15423
15310
  "kind": "variable",
15424
- "name": "CardBorder",
15311
+ "name": "Scrollable",
15425
15312
  "type": {
15426
15313
  "text": "Story"
15427
15314
  },
15428
- "default": "{ ...DefaultParams, name: 'Border Style', render: (args) => html`<gds-grid columns=\"5\" gap=\"4xl\"> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"2xs 0 0 0\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> Top </gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"0 2xs 0 0\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\">Right</gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"0 0 2xs 0\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> Bottom </gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border-width=\"0 0 0 2xs\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> Left </gds-flex> </gds-card> <gds-card variant=\"primary\" border-radius=\"0\" border=\"2xs\" border-color=\"strong\" > <gds-flex align-items=\"center\" justify-content=\"center\"> All </gds-flex> </gds-card> </gds-grid>`, }",
15429
- "description": "Border styling follows the same patterns as CSS and can be controlled using the shorthand properties `border`, `border-width`, `border-style`, `border-color`\n\n- `border-color` defaults to subtle-01\n- `border-width` defaults to 0 (supports all spacing tokens)\n- `border-style` defaults to solid\n\nTo add a 1px primary border around the element:\n\n```html\n<gds-div border=\"4xs\"></gds-div>\n```\n\nTo only add border bottom:\n\n```html\n<gds-div border-width=\"0 0 4xs 0\"></gds-div>\n```\n\nTo add a 1px secodary color border on the bottom:\n\n```html\n<gds-div border-width=\"0 0 4xs 0\" border-color=\"subtle-01\"></gds-div>\n```"
15315
+ "default": "{ ...DefaultParams, args: { ...DefaultParams.args, height: '400px', scrollable: true, }, }",
15316
+ "description": "To enable scroll for overflowing content, you can set the `scrollable` property to `true`.\n\nThis only has an effect of the default content slot."
15430
15317
  },
15431
15318
  {
15432
15319
  "kind": "variable",
15433
- "name": "BorderRadius",
15320
+ "name": "CustomButtons",
15434
15321
  "type": {
15435
15322
  "text": "Story"
15436
15323
  },
15437
- "default": "{ ...DefaultParams, args: { background: 'neutral-02', border: '2xs', 'border-radius': 'm', 'border-color': 'strong', width: '8xl', height: '4xl', }, }",
15438
- "description": "\nValues are mapped directly from our radius tokens to maintain proportional scaling. <br />\nView all available radius tokens and their values in Green Studio:\nhttps://seb.io/studio/radius\n\n\n##### Single value\n```html\n<gds-div border-radius=\"m\">...</gds-div>\n```\n\n##### Multiple corners / (top-left, top-right, bottom-right, bottom-left)\n```html\n<gds-div border-radius=\"s m l xl\">...</gds-div>\n```"
15324
+ "default": "{ ...DefaultParams, render: () => html`<gds-button aria-haspopup=\"dialog\" onclick=\"document.getElementById('my-dialog').show()\" >Open dialog</gds-button > <gds-dialog heading=\"Dialog heading\" id=\"my-dialog\"> This is the content of the dialog. <gds-button slot=\"footer\" onclick=\"document.getElementById('my-dialog').close('custom close')\" >Custom close button</gds-button > </gds-dialog>`, }",
15325
+ "description": "You can also open and close the dialog programmatically by calling the `show()` and `close()` methods.\nIn this case you should add `aria-haspopup=\"dialog\"` to the trigger element. Slotted triggers will get\nthis attribute automatically.\n\nInside the dialog, you can use the `slot=\"footer\"` to add buttons to the footer of the dialog."
15326
+ },
15327
+ {
15328
+ "kind": "variable",
15329
+ "name": "Events",
15330
+ "type": {
15331
+ "text": "Story"
15332
+ },
15333
+ "default": "{ ...DefaultParams, render: () => html`<gds-dialog @gds-close=${console.log} @gds-show=${console.log} @gds-ui-state=${console.log} heading=\"Dialog heading\" id=\"my-dialog-events\" > <gds-button slot=\"trigger\">Open dialog</gds-button> This is the content of the dialog. <gds-button rank=\"secondary\" slot=\"footer\">Custom btn</gds-button> <gds-button slot=\"footer\" onclick=\"document.getElementById('my-dialog-events').close('custom close')\" >Custom btn 2</gds-button > </gds-dialog>`, }",
15334
+ "description": "You can listen to the `gds-show`, `gds-close` and `gds-ui-state` events to know when the dialog is opened or closed.\n\nWhen `close()` or `show()` is called without a parameter, the event will not be emitted. If a parameter is passed, the\nevent will be emitted with the parameter as the event detail. Also when any of the built-in methods are used to open or\nclose the dialog, the event will be emitted with the parameter as the event detail.\n\nAll the emitted events will have a `detail` object with a reason property that can be used to determine the reason for the event.\n\nPossible reasons are:\n- `btn-close`: The dialog was closed by the user clicking the close button.\n- `btn-cancel`: The dialog was closed by the user clicking the default cancel button.\n- `btn-ok`: The dialog was closed by the user clicking the default OK button.\n- `native-close`: The dialog was closed by the user pressing the Escape key.\n- `click-outside`: The dialog was closed by the user clicking outside the dialog.\n- `slotted-trigger`: The dialog was opened by the user clicking the slotted trigger button.\n\nThe reason can also be a custom string supplied when calling the `close()` or `show()` methods.\n\n### Preventing close\nThe `gds-ui-state` event can be cancelled by calling `preventDefault()` on the event to prevent the dialog from closing.\nWhen using built-in triggers (buttons, Escape, click outside, trigger slot), cancelling `gds-ui-state` fully prevents the action.\nWhen calling `close()` or `show()` programmatically, events are dispatched for notification but cancellation does not prevent the state change."
15335
+ },
15336
+ {
15337
+ "kind": "variable",
15338
+ "name": "CustomDialog",
15339
+ "type": {
15340
+ "text": "Story"
15341
+ },
15342
+ "default": "{ ...DefaultParams, render: () => html`<gds-dialog @gds-close=${console.log} @gds-show=${console.log} @gds-ui-state=${console.log} heading=\"Dialog heading\" id=\"my-dialog-events\" > <gds-button slot=\"trigger\">Open dialog</gds-button> This is the content of the dialog. <div slot=\"dialog\"> If you put stuff here, you can customize the entire dialog, including header and footer. </div> </gds-dialog>`, }",
15343
+ "description": "You can customize the dialog completely by putting content in the `dialog` slot.\nThis will replace the default content of the dialog, including the header and footer.\n\nWhen this slot is used, the footer slot will not be rendered, so you need to add a custom footer manually.\n\n**Important:** Make sure to still use the `heading` property, as it is used to give the dialog an accessible name."
15344
+ },
15345
+ {
15346
+ "kind": "variable",
15347
+ "name": "CancelableClose",
15348
+ "type": {
15349
+ "text": "Story"
15350
+ },
15351
+ "default": "{ ...DefaultParams, render: () => html`<gds-dialog heading=\"Terms and conditions\" id=\"my-dialog-cancel\" closedby=\"none\" @gds-ui-state=${(e: Event) => { const detail = (e as CustomEvent).detail // Only gate close attempts, not open if (detail.open) { const checkbox = document .getElementById('my-dialog-cancel') ?.querySelector('#agree-checkbox') as HTMLInputElement | null if (!checkbox?.checked) { e.preventDefault() } } }} > <gds-button slot=\"trigger\">Open dialog</gds-button> <gds-rich-text> <p> You must agree to the terms before closing this dialog. Try pressing Escape, clicking outside, or using the close button — the dialog will stay open until the checkbox is checked. </p> </gds-rich-text> <label style=\"display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; cursor: pointer;\" > <input type=\"checkbox\" id=\"agree-checkbox\" /> I agree to the terms and conditions </label> </gds-dialog>`, }",
15352
+ "description": "You can prevent the dialog from closing by cancelling the `gds-ui-state` event.\n\nIn this example, the dialog contains a checkbox that must be checked before the dialog can be closed.\nAny built-in close trigger (close button, Escape, click outside) is blocked until the condition is met.\n\nNote the use of `closedby=\"none\"` — this disables the browser's native close request handling (including\nthe anti-abuse mechanism that would force-close the dialog on repeated Escape presses). With `closedby=\"none\"`,\nthe component adds its own Escape key listener so desktop users can still close via keyboard, and cancellation\nis always honored. Mobile platform close gestures (e.g. iOS swipe) will not work in this mode."
15439
15353
  }
15440
15354
  ],
15441
15355
  "exports": [
@@ -15444,7 +15358,7 @@
15444
15358
  "name": "default",
15445
15359
  "declaration": {
15446
15360
  "name": "meta",
15447
- "module": "src/components/div/div.stories.ts"
15361
+ "module": "src/components/dialog/dialog.stories.ts"
15448
15362
  }
15449
15363
  },
15450
15364
  {
@@ -15452,43 +15366,67 @@
15452
15366
  "name": "Default",
15453
15367
  "declaration": {
15454
15368
  "name": "Default",
15455
- "module": "src/components/div/div.stories.ts"
15369
+ "module": "src/components/dialog/dialog.stories.ts"
15456
15370
  }
15457
15371
  },
15458
15372
  {
15459
15373
  "kind": "js",
15460
- "name": "Example",
15374
+ "name": "SlideOut",
15461
15375
  "declaration": {
15462
- "name": "Example",
15463
- "module": "src/components/div/div.stories.ts"
15376
+ "name": "SlideOut",
15377
+ "module": "src/components/dialog/dialog.stories.ts"
15464
15378
  }
15465
15379
  },
15466
15380
  {
15467
15381
  "kind": "js",
15468
- "name": "CardBorder",
15382
+ "name": "Scrollable",
15469
15383
  "declaration": {
15470
- "name": "CardBorder",
15471
- "module": "src/components/div/div.stories.ts"
15384
+ "name": "Scrollable",
15385
+ "module": "src/components/dialog/dialog.stories.ts"
15472
15386
  }
15473
15387
  },
15474
15388
  {
15475
15389
  "kind": "js",
15476
- "name": "BorderRadius",
15390
+ "name": "CustomButtons",
15477
15391
  "declaration": {
15478
- "name": "BorderRadius",
15479
- "module": "src/components/div/div.stories.ts"
15392
+ "name": "CustomButtons",
15393
+ "module": "src/components/dialog/dialog.stories.ts"
15394
+ }
15395
+ },
15396
+ {
15397
+ "kind": "js",
15398
+ "name": "Events",
15399
+ "declaration": {
15400
+ "name": "Events",
15401
+ "module": "src/components/dialog/dialog.stories.ts"
15402
+ }
15403
+ },
15404
+ {
15405
+ "kind": "js",
15406
+ "name": "CustomDialog",
15407
+ "declaration": {
15408
+ "name": "CustomDialog",
15409
+ "module": "src/components/dialog/dialog.stories.ts"
15410
+ }
15411
+ },
15412
+ {
15413
+ "kind": "js",
15414
+ "name": "CancelableClose",
15415
+ "declaration": {
15416
+ "name": "CancelableClose",
15417
+ "module": "src/components/dialog/dialog.stories.ts"
15480
15418
  }
15481
15419
  }
15482
15420
  ]
15483
15421
  },
15484
15422
  {
15485
15423
  "kind": "javascript-module",
15486
- "path": "src/components/div/div.styles.ts",
15424
+ "path": "src/components/dialog/dialog.styles.ts",
15487
15425
  "declarations": [
15488
15426
  {
15489
15427
  "kind": "variable",
15490
15428
  "name": "style",
15491
- "default": "css` :host { display: block; box-sizing: border-box; border-style: solid; border-width: 0; border-color: var(--gds-sys-color-border-subtle-01); } `"
15429
+ "default": "css` @layer base, reset, transitional-styles; @layer base { :host { display: contents; --_margin: var(--gds-sys-space-l); } dialog { transition: transform var(--gds-sys-motion-duration-fast) cubic-bezier(var(--gds-sys-motion-easing-ease-out)); background: transparent; padding: 0; border-width: 0; overflow: visible; max-width: calc(100vw - var(--_margin)); max-height: 100vh; display: flex; width: 400px; @starting-style { opacity: 0; transform: translateY(-16px); &::backdrop { opacity: 0; } } &::backdrop { transition: all var(--gds-sys-motion-duration-fast) cubic-bezier(var(--gds-sys-motion-easing-ease-out)); background: rgba(100, 100, 100, 0.4); } } dialog > * { flex-grow: 1; } dialog.default.placement-initial { margin: auto; --_margin: 0px; } dialog.default.placement-top { margin: var(--gds-sys-space-l) auto auto; } dialog.default.placement-bottom { margin: auto auto var(--gds-sys-space-l) auto; } dialog.default.placement-left { margin: auto var(--gds-sys-space-l) auto auto; } dialog.default.placement-right { margin: auto auto auto var(--gds-sys-space-l); } dialog.slide-out { --_in: var(--gds-sys-space-m); --_margin: var(--gds-sys-space-l); height: auto; &.placement-initial, &.placement-right { inset: var(--_in); @media (min-width: 648px) { --_in: var(--gds-sys-space-l); inset: var(--_in) var(--_in) var(--_in) auto; } @starting-style { transform: translateX(var(--gds-sys-space-6xl)); } } &.placement-left { @starting-style { transform: translateX(calc(-1 * var(--gds-sys-space-6xl))); } inset: var(--_in); @media (min-width: 648px) { --_in: var(--gds-sys-space-l); inset: var(--_in) auto var(--_in) var(--_in); } } &.placement-top { @starting-style { transform: translateY(calc(-1 * var(--gds-sys-space-6xl))); } inset: var(--_in) var(--_in) auto var(--_in); } &.placement-bottom { @starting-style { transform: translateY(calc(var(--gds-sys-space-6xl))); } inset: auto var(--_in) var(--_in) var(--_in); } } dialog:focus { outline: none; } .card { flex-direction: column; } slot[name='footer'] > *, slot[name='footer']::slotted(*) { flex: 1; } h2 { margin: 0; padding: 0; font: var(--gds-sys-text-heading-s); margin-block-start: var(--gds-sys-space-4xs); } } `"
15492
15430
  }
15493
15431
  ],
15494
15432
  "exports": [
@@ -15497,29 +15435,29 @@
15497
15435
  "name": "default",
15498
15436
  "declaration": {
15499
15437
  "name": "style",
15500
- "module": "src/components/div/div.styles.ts"
15438
+ "module": "src/components/dialog/dialog.styles.ts"
15501
15439
  }
15502
15440
  }
15503
15441
  ]
15504
15442
  },
15505
15443
  {
15506
15444
  "kind": "javascript-module",
15507
- "path": "src/components/div/div.ts",
15445
+ "path": "src/components/dialog/dialog.ts",
15508
15446
  "declarations": [],
15509
15447
  "exports": [
15510
15448
  {
15511
15449
  "kind": "js",
15512
- "name": "GdsDiv",
15450
+ "name": "GdsDialog",
15513
15451
  "declaration": {
15514
- "name": "GdsDiv",
15515
- "module": "src/components/div/div.ts"
15452
+ "name": "GdsDialog",
15453
+ "module": "src/components/dialog/dialog.ts"
15516
15454
  }
15517
15455
  }
15518
15456
  ]
15519
15457
  },
15520
15458
  {
15521
15459
  "kind": "javascript-module",
15522
- "path": "src/components/div/index.ts",
15460
+ "path": "src/components/dialog/index.ts",
15523
15461
  "declarations": [],
15524
15462
  "exports": [
15525
15463
  {
@@ -15527,7 +15465,69 @@
15527
15465
  "name": "*",
15528
15466
  "declaration": {
15529
15467
  "name": "*",
15530
- "module": "src/components/div/div"
15468
+ "module": "src/components/dialog/dialog"
15469
+ }
15470
+ }
15471
+ ]
15472
+ },
15473
+ {
15474
+ "kind": "javascript-module",
15475
+ "path": "src/components/dialog/scroll-lock.ts",
15476
+ "declarations": [
15477
+ {
15478
+ "kind": "function",
15479
+ "name": "registerGlobalScrollLockStyles"
15480
+ },
15481
+ {
15482
+ "kind": "function",
15483
+ "name": "lockBodyScrolling",
15484
+ "parameters": [
15485
+ {
15486
+ "name": "lockingEl",
15487
+ "type": {
15488
+ "text": "HTMLElement"
15489
+ }
15490
+ }
15491
+ ],
15492
+ "description": "Prevents body scrolling. Keeps track of which elements requested a lock so multiple levels of locking are possible\nwithout premature unlocking."
15493
+ },
15494
+ {
15495
+ "kind": "function",
15496
+ "name": "unlockBodyScrolling",
15497
+ "parameters": [
15498
+ {
15499
+ "name": "lockingEl",
15500
+ "type": {
15501
+ "text": "HTMLElement"
15502
+ }
15503
+ }
15504
+ ],
15505
+ "description": "Unlocks body scrolling. Scrolling will only be unlocked once all elements that requested a lock call this method."
15506
+ }
15507
+ ],
15508
+ "exports": [
15509
+ {
15510
+ "kind": "js",
15511
+ "name": "registerGlobalScrollLockStyles",
15512
+ "declaration": {
15513
+ "name": "registerGlobalScrollLockStyles",
15514
+ "module": "src/components/dialog/scroll-lock.ts"
15515
+ }
15516
+ },
15517
+ {
15518
+ "kind": "js",
15519
+ "name": "lockBodyScrolling",
15520
+ "declaration": {
15521
+ "name": "lockBodyScrolling",
15522
+ "module": "src/components/dialog/scroll-lock.ts"
15523
+ }
15524
+ },
15525
+ {
15526
+ "kind": "js",
15527
+ "name": "unlockBodyScrolling",
15528
+ "declaration": {
15529
+ "name": "unlockBodyScrolling",
15530
+ "module": "src/components/dialog/scroll-lock.ts"
15531
15531
  }
15532
15532
  }
15533
15533
  ]
@@ -232341,7 +232341,7 @@
232341
232341
  },
232342
232342
  {
232343
232343
  "kind": "javascript-module",
232344
- "path": "src/components/sensitive/account/index.ts",
232344
+ "path": "src/components/sensitive/date/index.ts",
232345
232345
  "declarations": [],
232346
232346
  "exports": [
232347
232347
  {
@@ -232349,19 +232349,19 @@
232349
232349
  "name": "*",
232350
232350
  "declaration": {
232351
232351
  "name": "*",
232352
- "module": "src/components/sensitive/account/sensitive-account"
232352
+ "module": "src/components/sensitive/date/sensitive-date"
232353
232353
  }
232354
232354
  }
232355
232355
  ]
232356
232356
  },
232357
232357
  {
232358
232358
  "kind": "javascript-module",
232359
- "path": "src/components/sensitive/account/sensitive-account.component.ts",
232359
+ "path": "src/components/sensitive/date/sensitive-date.component.ts",
232360
232360
  "declarations": [
232361
232361
  {
232362
232362
  "kind": "class",
232363
232363
  "description": "",
232364
- "name": "GdsSensitiveAccount",
232364
+ "name": "GdsSensitiveDate",
232365
232365
  "members": [
232366
232366
  {
232367
232367
  "kind": "field",
@@ -232370,20 +232370,46 @@
232370
232370
  "text": "boolean"
232371
232371
  },
232372
232372
  "default": "false",
232373
- "description": "When true, hides the sensitive account.",
232373
+ "description": "When true, hides the sensitive date.",
232374
232374
  "attribute": "hide"
232375
232375
  },
232376
232376
  {
232377
232377
  "kind": "field",
232378
- "name": "account",
232378
+ "name": "value",
232379
232379
  "type": {
232380
- "text": "number | string | undefined"
232380
+ "text": "Date | string | undefined"
232381
232381
  },
232382
- "description": "The account number or identifier to display.\nFor format 'seb-account', it needs to be 11 characters.",
232383
- "attribute": "account",
232382
+ "description": "The date value to be formatted, either Date or ISO string.",
232384
232383
  "inheritedFrom": {
232385
- "name": "GdsFormattedAccount",
232386
- "module": "src/components/formatted-text/account/formatted-account.component.ts"
232384
+ "name": "GdsFormattedDate",
232385
+ "module": "src/components/formatted-text/date/formatted-date.component.ts"
232386
+ }
232387
+ },
232388
+ {
232389
+ "kind": "field",
232390
+ "name": "format",
232391
+ "type": {
232392
+ "text": "DateTimeFormat"
232393
+ },
232394
+ "default": "'dateOnlyNumbers'",
232395
+ "description": "Specifies the date format.",
232396
+ "attribute": "format",
232397
+ "inheritedFrom": {
232398
+ "name": "GdsFormattedDate",
232399
+ "module": "src/components/formatted-text/date/formatted-date.component.ts"
232400
+ }
232401
+ },
232402
+ {
232403
+ "kind": "field",
232404
+ "name": "locale",
232405
+ "type": {
232406
+ "text": "string | undefined"
232407
+ },
232408
+ "description": "The locale used for date formatting.",
232409
+ "attribute": "locale",
232410
+ "inheritedFrom": {
232411
+ "name": "GdsFormattedDate",
232412
+ "module": "src/components/formatted-text/date/formatted-date.component.ts"
232387
232413
  }
232388
232414
  },
232389
232415
  {
@@ -233373,32 +233399,32 @@
233373
233399
  "text": "boolean"
233374
233400
  },
233375
233401
  "default": "false",
233376
- "description": "When true, hides the sensitive account.",
233402
+ "description": "When true, hides the sensitive date.",
233377
233403
  "fieldName": "hide"
233378
233404
  },
233379
233405
  {
233380
- "name": "account",
233406
+ "name": "format",
233381
233407
  "type": {
233382
- "text": "number | string | undefined"
233408
+ "text": "DateTimeFormat"
233383
233409
  },
233384
- "description": "The account number or identifier to display.\nFor format 'seb-account', it needs to be 11 characters.",
233385
- "fieldName": "account",
233410
+ "default": "'dateOnlyNumbers'",
233411
+ "description": "Specifies the date format.",
233412
+ "fieldName": "format",
233386
233413
  "inheritedFrom": {
233387
- "name": "GdsFormattedAccount",
233388
- "module": "src/components/formatted-text/account/formatted-account.component.ts"
233414
+ "name": "GdsFormattedDate",
233415
+ "module": "src/components/formatted-text/date/formatted-date.component.ts"
233389
233416
  }
233390
233417
  },
233391
233418
  {
233392
- "name": "format",
233419
+ "name": "locale",
233393
233420
  "type": {
233394
- "text": "AccountFormats"
233421
+ "text": "string | undefined"
233395
233422
  },
233396
- "default": "'seb-account'",
233397
- "description": "Specifies the account format.",
233398
- "fieldName": "format",
233423
+ "description": "The locale used for date formatting.",
233424
+ "fieldName": "locale",
233399
233425
  "inheritedFrom": {
233400
- "name": "GdsFormattedAccount",
233401
- "module": "src/components/formatted-text/account/formatted-account.component.ts"
233426
+ "name": "GdsFormattedDate",
233427
+ "module": "src/components/formatted-text/date/formatted-date.component.ts"
233402
233428
  }
233403
233429
  },
233404
233430
  {
@@ -233442,10 +233468,10 @@
233442
233468
  }
233443
233469
  ],
233444
233470
  "superclass": {
233445
- "name": "GdsFormattedAccount",
233446
- "module": "/src/components/formatted-text/account/formatted-account.component"
233471
+ "name": "GdsFormattedDate",
233472
+ "module": "/src/components/formatted-text/date/formatted-date.component"
233447
233473
  },
233448
- "tagName": "gds-sensitive-account",
233474
+ "tagName": "gds-sensitive-date",
233449
233475
  "customElement": true,
233450
233476
  "events": [
233451
233477
  {
@@ -233484,17 +233510,17 @@
233484
233510
  "exports": [
233485
233511
  {
233486
233512
  "kind": "js",
233487
- "name": "GdsSensitiveAccount",
233513
+ "name": "GdsSensitiveDate",
233488
233514
  "declaration": {
233489
- "name": "GdsSensitiveAccount",
233490
- "module": "src/components/sensitive/account/sensitive-account.component.ts"
233515
+ "name": "GdsSensitiveDate",
233516
+ "module": "src/components/sensitive/date/sensitive-date.component.ts"
233491
233517
  }
233492
233518
  }
233493
233519
  ]
233494
233520
  },
233495
233521
  {
233496
233522
  "kind": "javascript-module",
233497
- "path": "src/components/sensitive/account/sensitive-account.stories.ts",
233523
+ "path": "src/components/sensitive/date/sensitive-date.stories.ts",
233498
233524
  "declarations": [
233499
233525
  {
233500
233526
  "kind": "variable",
@@ -233502,8 +233528,8 @@
233502
233528
  "type": {
233503
233529
  "text": "Meta"
233504
233530
  },
233505
- "default": "{ title: 'Components/Sensitive/Account', component: 'gds-sensitive-account', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-account'), format: { control: { type: 'select' }, options: Object.keys(accountsFormats), }, }, }",
233506
- "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/account)\n\nGdsSensitiveAccount displays a formatted account and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
233531
+ "default": "{ title: 'Components/Sensitive/Date', component: 'gds-sensitive-date', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-date'), format: { control: { type: 'select' }, options: Object.keys(dateTimeFormats), }, }, }",
233532
+ "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/date)\n\nGdsSensitiveDate displays a formatted date and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
233507
233533
  },
233508
233534
  {
233509
233535
  "kind": "variable",
@@ -233511,7 +233537,7 @@
233511
233537
  "type": {
233512
233538
  "text": "Story"
233513
233539
  },
233514
- "default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-account .hide=${args.hide} .account=${args.account} ></gds-sensitive-account>`, }"
233540
+ "default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-date .hide=${args.hide} .value=${args.value} .locale=${args.locale} .format=${args.format} ></gds-sensitive-date>`, }"
233515
233541
  }
233516
233542
  ],
233517
233543
  "exports": [
@@ -233520,7 +233546,7 @@
233520
233546
  "name": "default",
233521
233547
  "declaration": {
233522
233548
  "name": "meta",
233523
- "module": "src/components/sensitive/account/sensitive-account.stories.ts"
233549
+ "module": "src/components/sensitive/date/sensitive-date.stories.ts"
233524
233550
  }
233525
233551
  },
233526
233552
  {
@@ -233528,29 +233554,29 @@
233528
233554
  "name": "Default",
233529
233555
  "declaration": {
233530
233556
  "name": "Default",
233531
- "module": "src/components/sensitive/account/sensitive-account.stories.ts"
233557
+ "module": "src/components/sensitive/date/sensitive-date.stories.ts"
233532
233558
  }
233533
233559
  }
233534
233560
  ]
233535
233561
  },
233536
233562
  {
233537
233563
  "kind": "javascript-module",
233538
- "path": "src/components/sensitive/account/sensitive-account.ts",
233564
+ "path": "src/components/sensitive/date/sensitive-date.ts",
233539
233565
  "declarations": [],
233540
233566
  "exports": [
233541
233567
  {
233542
233568
  "kind": "js",
233543
- "name": "GdsSensitiveAccount",
233569
+ "name": "GdsSensitiveDate",
233544
233570
  "declaration": {
233545
- "name": "GdsSensitiveAccount",
233546
- "module": "src/components/sensitive/account/sensitive-account.ts"
233571
+ "name": "GdsSensitiveDate",
233572
+ "module": "src/components/sensitive/date/sensitive-date.ts"
233547
233573
  }
233548
233574
  }
233549
233575
  ]
233550
233576
  },
233551
233577
  {
233552
233578
  "kind": "javascript-module",
233553
- "path": "src/components/sensitive/number/index.ts",
233579
+ "path": "src/components/sensitive/account/index.ts",
233554
233580
  "declarations": [],
233555
233581
  "exports": [
233556
233582
  {
@@ -233558,19 +233584,19 @@
233558
233584
  "name": "*",
233559
233585
  "declaration": {
233560
233586
  "name": "*",
233561
- "module": "src/components/sensitive/number/sensitive-number"
233587
+ "module": "src/components/sensitive/account/sensitive-account"
233562
233588
  }
233563
233589
  }
233564
233590
  ]
233565
233591
  },
233566
233592
  {
233567
233593
  "kind": "javascript-module",
233568
- "path": "src/components/sensitive/number/sensitive-number.component.ts",
233594
+ "path": "src/components/sensitive/account/sensitive-account.component.ts",
233569
233595
  "declarations": [
233570
233596
  {
233571
233597
  "kind": "class",
233572
233598
  "description": "",
233573
- "name": "GdsSensitiveNumber",
233599
+ "name": "GdsSensitiveAccount",
233574
233600
  "members": [
233575
233601
  {
233576
233602
  "kind": "field",
@@ -233579,70 +233605,32 @@
233579
233605
  "text": "boolean"
233580
233606
  },
233581
233607
  "default": "false",
233582
- "description": "When true, hides the sensitive number.",
233608
+ "description": "When true, hides the sensitive account.",
233583
233609
  "attribute": "hide"
233584
233610
  },
233585
233611
  {
233586
233612
  "kind": "field",
233587
- "name": "formattedValue",
233588
- "type": {
233589
- "text": "string"
233590
- },
233591
- "readonly": true,
233592
- "inheritedFrom": {
233593
- "name": "GdsFormattedText",
233594
- "module": "src/components/formatted-text/formatted-text.ts"
233595
- }
233596
- },
233597
- {
233598
- "kind": "field",
233599
- "name": "value",
233613
+ "name": "account",
233600
233614
  "type": {
233601
233615
  "text": "number | string | undefined"
233602
233616
  },
233603
- "description": "The numerical value to display.",
233604
- "inheritedFrom": {
233605
- "name": "GdsFormattedNumber",
233606
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
233607
- }
233608
- },
233609
- {
233610
- "kind": "field",
233611
- "name": "locale",
233612
- "type": {
233613
- "text": "string | undefined"
233614
- },
233615
- "description": "The locale used for number formatting.",
233616
- "attribute": "locale",
233617
- "inheritedFrom": {
233618
- "name": "GdsFormattedNumber",
233619
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
233620
- }
233621
- },
233622
- {
233623
- "kind": "field",
233624
- "name": "currency",
233625
- "type": {
233626
- "text": "string | undefined"
233627
- },
233628
- "description": "The currency used when formatting numbers.",
233629
- "attribute": "currency",
233617
+ "description": "The account number or identifier to display.\nFor format 'seb-account', it needs to be 11 characters.",
233618
+ "attribute": "account",
233630
233619
  "inheritedFrom": {
233631
- "name": "GdsFormattedNumber",
233632
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
233620
+ "name": "GdsFormattedAccount",
233621
+ "module": "src/components/formatted-text/account/formatted-account.component.ts"
233633
233622
  }
233634
233623
  },
233635
233624
  {
233636
233625
  "kind": "field",
233637
- "name": "decimals",
233626
+ "name": "formattedValue",
233638
233627
  "type": {
233639
- "text": "number | undefined"
233628
+ "text": "string"
233640
233629
  },
233641
- "description": "The number of decimal places to display.",
233642
- "attribute": "decimals",
233630
+ "readonly": true,
233643
233631
  "inheritedFrom": {
233644
- "name": "GdsFormattedNumber",
233645
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
233632
+ "name": "GdsFormattedText",
233633
+ "module": "src/components/formatted-text/formatted-text.ts"
233646
233634
  }
233647
233635
  },
233648
233636
  {
@@ -234620,56 +234608,32 @@
234620
234608
  "text": "boolean"
234621
234609
  },
234622
234610
  "default": "false",
234623
- "description": "When true, hides the sensitive number.",
234611
+ "description": "When true, hides the sensitive account.",
234624
234612
  "fieldName": "hide"
234625
234613
  },
234626
234614
  {
234627
- "name": "locale",
234628
- "type": {
234629
- "text": "string | undefined"
234630
- },
234631
- "description": "The locale used for number formatting.",
234632
- "fieldName": "locale",
234633
- "inheritedFrom": {
234634
- "name": "GdsFormattedNumber",
234635
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
234636
- }
234637
- },
234638
- {
234639
- "name": "currency",
234640
- "type": {
234641
- "text": "string | undefined"
234642
- },
234643
- "description": "The currency used when formatting numbers.",
234644
- "fieldName": "currency",
234645
- "inheritedFrom": {
234646
- "name": "GdsFormattedNumber",
234647
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
234648
- }
234649
- },
234650
- {
234651
- "name": "decimals",
234615
+ "name": "account",
234652
234616
  "type": {
234653
- "text": "number | undefined"
234617
+ "text": "number | string | undefined"
234654
234618
  },
234655
- "description": "The number of decimal places to display.",
234656
- "fieldName": "decimals",
234619
+ "description": "The account number or identifier to display.\nFor format 'seb-account', it needs to be 11 characters.",
234620
+ "fieldName": "account",
234657
234621
  "inheritedFrom": {
234658
- "name": "GdsFormattedNumber",
234659
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
234622
+ "name": "GdsFormattedAccount",
234623
+ "module": "src/components/formatted-text/account/formatted-account.component.ts"
234660
234624
  }
234661
234625
  },
234662
234626
  {
234663
234627
  "name": "format",
234664
234628
  "type": {
234665
- "text": "NumberFormats"
234629
+ "text": "AccountFormats"
234666
234630
  },
234667
- "default": "'decimalsAndThousands'",
234668
- "description": "Specifies the number format.",
234631
+ "default": "'seb-account'",
234632
+ "description": "Specifies the account format.",
234669
234633
  "fieldName": "format",
234670
234634
  "inheritedFrom": {
234671
- "name": "GdsFormattedNumber",
234672
- "module": "src/components/formatted-text/number/formatted-number.component.ts"
234635
+ "name": "GdsFormattedAccount",
234636
+ "module": "src/components/formatted-text/account/formatted-account.component.ts"
234673
234637
  }
234674
234638
  },
234675
234639
  {
@@ -234713,10 +234677,10 @@
234713
234677
  }
234714
234678
  ],
234715
234679
  "superclass": {
234716
- "name": "GdsFormattedNumber",
234717
- "module": "/src/components/formatted-text/number/formatted-number.component"
234680
+ "name": "GdsFormattedAccount",
234681
+ "module": "/src/components/formatted-text/account/formatted-account.component"
234718
234682
  },
234719
- "tagName": "gds-sensitive-number",
234683
+ "tagName": "gds-sensitive-account",
234720
234684
  "customElement": true,
234721
234685
  "events": [
234722
234686
  {
@@ -234755,17 +234719,17 @@
234755
234719
  "exports": [
234756
234720
  {
234757
234721
  "kind": "js",
234758
- "name": "GdsSensitiveNumber",
234722
+ "name": "GdsSensitiveAccount",
234759
234723
  "declaration": {
234760
- "name": "GdsSensitiveNumber",
234761
- "module": "src/components/sensitive/number/sensitive-number.component.ts"
234724
+ "name": "GdsSensitiveAccount",
234725
+ "module": "src/components/sensitive/account/sensitive-account.component.ts"
234762
234726
  }
234763
234727
  }
234764
234728
  ]
234765
234729
  },
234766
234730
  {
234767
234731
  "kind": "javascript-module",
234768
- "path": "src/components/sensitive/number/sensitive-number.stories.ts",
234732
+ "path": "src/components/sensitive/account/sensitive-account.stories.ts",
234769
234733
  "declarations": [
234770
234734
  {
234771
234735
  "kind": "variable",
@@ -234773,8 +234737,8 @@
234773
234737
  "type": {
234774
234738
  "text": "Meta"
234775
234739
  },
234776
- "default": "{ title: 'Components/Sensitive/Number', component: 'gds-sensitive-number', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-number'), format: { control: { type: 'select' }, options: Object.keys(numberFormats), }, currency: { type: 'string', }, decimals: { type: 'number', }, }, }",
234777
- "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/number)\n\nGdsSensitiveNumber displays a formatted number and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
234740
+ "default": "{ title: 'Components/Sensitive/Account', component: 'gds-sensitive-account', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-account'), format: { control: { type: 'select' }, options: Object.keys(accountsFormats), }, }, }",
234741
+ "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/account)\n\nGdsSensitiveAccount displays a formatted account and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
234778
234742
  },
234779
234743
  {
234780
234744
  "kind": "variable",
@@ -234782,7 +234746,7 @@
234782
234746
  "type": {
234783
234747
  "text": "Story"
234784
234748
  },
234785
- "default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-number .hide=${args.hide} .value=${args.value} .locale=${args.locale} .currency=${args.currency} .decimals=${args.decimals} ></gds-sensitive-number>`, }"
234749
+ "default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-account .hide=${args.hide} .account=${args.account} ></gds-sensitive-account>`, }"
234786
234750
  }
234787
234751
  ],
234788
234752
  "exports": [
@@ -234791,7 +234755,7 @@
234791
234755
  "name": "default",
234792
234756
  "declaration": {
234793
234757
  "name": "meta",
234794
- "module": "src/components/sensitive/number/sensitive-number.stories.ts"
234758
+ "module": "src/components/sensitive/account/sensitive-account.stories.ts"
234795
234759
  }
234796
234760
  },
234797
234761
  {
@@ -234799,29 +234763,29 @@
234799
234763
  "name": "Default",
234800
234764
  "declaration": {
234801
234765
  "name": "Default",
234802
- "module": "src/components/sensitive/number/sensitive-number.stories.ts"
234766
+ "module": "src/components/sensitive/account/sensitive-account.stories.ts"
234803
234767
  }
234804
234768
  }
234805
234769
  ]
234806
234770
  },
234807
234771
  {
234808
234772
  "kind": "javascript-module",
234809
- "path": "src/components/sensitive/number/sensitive-number.ts",
234773
+ "path": "src/components/sensitive/account/sensitive-account.ts",
234810
234774
  "declarations": [],
234811
234775
  "exports": [
234812
234776
  {
234813
234777
  "kind": "js",
234814
- "name": "GdsSensitiveNumber",
234778
+ "name": "GdsSensitiveAccount",
234815
234779
  "declaration": {
234816
- "name": "GdsSensitiveNumber",
234817
- "module": "src/components/sensitive/number/sensitive-number.ts"
234780
+ "name": "GdsSensitiveAccount",
234781
+ "module": "src/components/sensitive/account/sensitive-account.ts"
234818
234782
  }
234819
234783
  }
234820
234784
  ]
234821
234785
  },
234822
234786
  {
234823
234787
  "kind": "javascript-module",
234824
- "path": "src/components/sensitive/date/index.ts",
234788
+ "path": "src/components/sensitive/number/index.ts",
234825
234789
  "declarations": [],
234826
234790
  "exports": [
234827
234791
  {
@@ -234829,19 +234793,19 @@
234829
234793
  "name": "*",
234830
234794
  "declaration": {
234831
234795
  "name": "*",
234832
- "module": "src/components/sensitive/date/sensitive-date"
234796
+ "module": "src/components/sensitive/number/sensitive-number"
234833
234797
  }
234834
234798
  }
234835
234799
  ]
234836
234800
  },
234837
234801
  {
234838
234802
  "kind": "javascript-module",
234839
- "path": "src/components/sensitive/date/sensitive-date.component.ts",
234803
+ "path": "src/components/sensitive/number/sensitive-number.component.ts",
234840
234804
  "declarations": [
234841
234805
  {
234842
234806
  "kind": "class",
234843
234807
  "description": "",
234844
- "name": "GdsSensitiveDate",
234808
+ "name": "GdsSensitiveNumber",
234845
234809
  "members": [
234846
234810
  {
234847
234811
  "kind": "field",
@@ -234850,33 +234814,31 @@
234850
234814
  "text": "boolean"
234851
234815
  },
234852
234816
  "default": "false",
234853
- "description": "When true, hides the sensitive date.",
234817
+ "description": "When true, hides the sensitive number.",
234854
234818
  "attribute": "hide"
234855
234819
  },
234856
234820
  {
234857
234821
  "kind": "field",
234858
- "name": "value",
234822
+ "name": "formattedValue",
234859
234823
  "type": {
234860
- "text": "Date | string | undefined"
234824
+ "text": "string"
234861
234825
  },
234862
- "description": "The date value to be formatted, either Date or ISO string.",
234826
+ "readonly": true,
234863
234827
  "inheritedFrom": {
234864
- "name": "GdsFormattedDate",
234865
- "module": "src/components/formatted-text/date/formatted-date.component.ts"
234828
+ "name": "GdsFormattedText",
234829
+ "module": "src/components/formatted-text/formatted-text.ts"
234866
234830
  }
234867
234831
  },
234868
234832
  {
234869
234833
  "kind": "field",
234870
- "name": "format",
234834
+ "name": "value",
234871
234835
  "type": {
234872
- "text": "DateTimeFormat"
234836
+ "text": "number | string | undefined"
234873
234837
  },
234874
- "default": "'dateOnlyNumbers'",
234875
- "description": "Specifies the date format.",
234876
- "attribute": "format",
234838
+ "description": "The numerical value to display.",
234877
234839
  "inheritedFrom": {
234878
- "name": "GdsFormattedDate",
234879
- "module": "src/components/formatted-text/date/formatted-date.component.ts"
234840
+ "name": "GdsFormattedNumber",
234841
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
234880
234842
  }
234881
234843
  },
234882
234844
  {
@@ -234885,23 +234847,37 @@
234885
234847
  "type": {
234886
234848
  "text": "string | undefined"
234887
234849
  },
234888
- "description": "The locale used for date formatting.",
234850
+ "description": "The locale used for number formatting.",
234889
234851
  "attribute": "locale",
234890
234852
  "inheritedFrom": {
234891
- "name": "GdsFormattedDate",
234892
- "module": "src/components/formatted-text/date/formatted-date.component.ts"
234853
+ "name": "GdsFormattedNumber",
234854
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
234893
234855
  }
234894
234856
  },
234895
234857
  {
234896
234858
  "kind": "field",
234897
- "name": "formattedValue",
234859
+ "name": "currency",
234898
234860
  "type": {
234899
- "text": "string"
234861
+ "text": "string | undefined"
234900
234862
  },
234901
- "readonly": true,
234863
+ "description": "The currency used when formatting numbers.",
234864
+ "attribute": "currency",
234902
234865
  "inheritedFrom": {
234903
- "name": "GdsFormattedText",
234904
- "module": "src/components/formatted-text/formatted-text.ts"
234866
+ "name": "GdsFormattedNumber",
234867
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
234868
+ }
234869
+ },
234870
+ {
234871
+ "kind": "field",
234872
+ "name": "decimals",
234873
+ "type": {
234874
+ "text": "number | undefined"
234875
+ },
234876
+ "description": "The number of decimal places to display.",
234877
+ "attribute": "decimals",
234878
+ "inheritedFrom": {
234879
+ "name": "GdsFormattedNumber",
234880
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
234905
234881
  }
234906
234882
  },
234907
234883
  {
@@ -235879,32 +235855,56 @@
235879
235855
  "text": "boolean"
235880
235856
  },
235881
235857
  "default": "false",
235882
- "description": "When true, hides the sensitive date.",
235858
+ "description": "When true, hides the sensitive number.",
235883
235859
  "fieldName": "hide"
235884
235860
  },
235885
235861
  {
235886
- "name": "format",
235862
+ "name": "locale",
235887
235863
  "type": {
235888
- "text": "DateTimeFormat"
235864
+ "text": "string | undefined"
235889
235865
  },
235890
- "default": "'dateOnlyNumbers'",
235891
- "description": "Specifies the date format.",
235892
- "fieldName": "format",
235866
+ "description": "The locale used for number formatting.",
235867
+ "fieldName": "locale",
235893
235868
  "inheritedFrom": {
235894
- "name": "GdsFormattedDate",
235895
- "module": "src/components/formatted-text/date/formatted-date.component.ts"
235869
+ "name": "GdsFormattedNumber",
235870
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
235896
235871
  }
235897
235872
  },
235898
235873
  {
235899
- "name": "locale",
235874
+ "name": "currency",
235900
235875
  "type": {
235901
235876
  "text": "string | undefined"
235902
235877
  },
235903
- "description": "The locale used for date formatting.",
235904
- "fieldName": "locale",
235878
+ "description": "The currency used when formatting numbers.",
235879
+ "fieldName": "currency",
235905
235880
  "inheritedFrom": {
235906
- "name": "GdsFormattedDate",
235907
- "module": "src/components/formatted-text/date/formatted-date.component.ts"
235881
+ "name": "GdsFormattedNumber",
235882
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
235883
+ }
235884
+ },
235885
+ {
235886
+ "name": "decimals",
235887
+ "type": {
235888
+ "text": "number | undefined"
235889
+ },
235890
+ "description": "The number of decimal places to display.",
235891
+ "fieldName": "decimals",
235892
+ "inheritedFrom": {
235893
+ "name": "GdsFormattedNumber",
235894
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
235895
+ }
235896
+ },
235897
+ {
235898
+ "name": "format",
235899
+ "type": {
235900
+ "text": "NumberFormats"
235901
+ },
235902
+ "default": "'decimalsAndThousands'",
235903
+ "description": "Specifies the number format.",
235904
+ "fieldName": "format",
235905
+ "inheritedFrom": {
235906
+ "name": "GdsFormattedNumber",
235907
+ "module": "src/components/formatted-text/number/formatted-number.component.ts"
235908
235908
  }
235909
235909
  },
235910
235910
  {
@@ -235948,10 +235948,10 @@
235948
235948
  }
235949
235949
  ],
235950
235950
  "superclass": {
235951
- "name": "GdsFormattedDate",
235952
- "module": "/src/components/formatted-text/date/formatted-date.component"
235951
+ "name": "GdsFormattedNumber",
235952
+ "module": "/src/components/formatted-text/number/formatted-number.component"
235953
235953
  },
235954
- "tagName": "gds-sensitive-date",
235954
+ "tagName": "gds-sensitive-number",
235955
235955
  "customElement": true,
235956
235956
  "events": [
235957
235957
  {
@@ -235990,17 +235990,17 @@
235990
235990
  "exports": [
235991
235991
  {
235992
235992
  "kind": "js",
235993
- "name": "GdsSensitiveDate",
235993
+ "name": "GdsSensitiveNumber",
235994
235994
  "declaration": {
235995
- "name": "GdsSensitiveDate",
235996
- "module": "src/components/sensitive/date/sensitive-date.component.ts"
235995
+ "name": "GdsSensitiveNumber",
235996
+ "module": "src/components/sensitive/number/sensitive-number.component.ts"
235997
235997
  }
235998
235998
  }
235999
235999
  ]
236000
236000
  },
236001
236001
  {
236002
236002
  "kind": "javascript-module",
236003
- "path": "src/components/sensitive/date/sensitive-date.stories.ts",
236003
+ "path": "src/components/sensitive/number/sensitive-number.stories.ts",
236004
236004
  "declarations": [
236005
236005
  {
236006
236006
  "kind": "variable",
@@ -236008,8 +236008,8 @@
236008
236008
  "type": {
236009
236009
  "text": "Meta"
236010
236010
  },
236011
- "default": "{ title: 'Components/Sensitive/Date', component: 'gds-sensitive-date', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-date'), format: { control: { type: 'select' }, options: Object.keys(dateTimeFormats), }, }, }",
236012
- "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/date)\n\nGdsSensitiveDate displays a formatted date and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
236011
+ "default": "{ title: 'Components/Sensitive/Number', component: 'gds-sensitive-number', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-number'), format: { control: { type: 'select' }, options: Object.keys(numberFormats), }, currency: { type: 'string', }, decimals: { type: 'number', }, }, }",
236012
+ "description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/number)\n\nGdsSensitiveNumber displays a formatted number and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
236013
236013
  },
236014
236014
  {
236015
236015
  "kind": "variable",
@@ -236017,7 +236017,7 @@
236017
236017
  "type": {
236018
236018
  "text": "Story"
236019
236019
  },
236020
- "default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-date .hide=${args.hide} .value=${args.value} .locale=${args.locale} .format=${args.format} ></gds-sensitive-date>`, }"
236020
+ "default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-number .hide=${args.hide} .value=${args.value} .locale=${args.locale} .currency=${args.currency} .decimals=${args.decimals} ></gds-sensitive-number>`, }"
236021
236021
  }
236022
236022
  ],
236023
236023
  "exports": [
@@ -236026,7 +236026,7 @@
236026
236026
  "name": "default",
236027
236027
  "declaration": {
236028
236028
  "name": "meta",
236029
- "module": "src/components/sensitive/date/sensitive-date.stories.ts"
236029
+ "module": "src/components/sensitive/number/sensitive-number.stories.ts"
236030
236030
  }
236031
236031
  },
236032
236032
  {
@@ -236034,22 +236034,22 @@
236034
236034
  "name": "Default",
236035
236035
  "declaration": {
236036
236036
  "name": "Default",
236037
- "module": "src/components/sensitive/date/sensitive-date.stories.ts"
236037
+ "module": "src/components/sensitive/number/sensitive-number.stories.ts"
236038
236038
  }
236039
236039
  }
236040
236040
  ]
236041
236041
  },
236042
236042
  {
236043
236043
  "kind": "javascript-module",
236044
- "path": "src/components/sensitive/date/sensitive-date.ts",
236044
+ "path": "src/components/sensitive/number/sensitive-number.ts",
236045
236045
  "declarations": [],
236046
236046
  "exports": [
236047
236047
  {
236048
236048
  "kind": "js",
236049
- "name": "GdsSensitiveDate",
236049
+ "name": "GdsSensitiveNumber",
236050
236050
  "declaration": {
236051
- "name": "GdsSensitiveDate",
236052
- "module": "src/components/sensitive/date/sensitive-date.ts"
236051
+ "name": "GdsSensitiveNumber",
236052
+ "module": "src/components/sensitive/number/sensitive-number.ts"
236053
236053
  }
236054
236054
  }
236055
236055
  ]
@@ -236579,16 +236579,16 @@
236579
236579
  },
236580
236580
  {
236581
236581
  "kind": "javascript-module",
236582
- "path": "src/generated/react/divider/index.ts",
236582
+ "path": "src/generated/react/div/index.ts",
236583
236583
  "declarations": [
236584
236584
  {
236585
236585
  "kind": "function",
236586
- "name": "GdsDivider",
236586
+ "name": "GdsDiv",
236587
236587
  "parameters": [
236588
236588
  {
236589
236589
  "name": "props",
236590
236590
  "type": {
236591
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<GdsDividerClass>>\n > & { ref?: React.Ref<GdsDividerClass> }"
236591
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<GdsDivClass>>\n > & { ref?: React.Ref<GdsDivClass> }"
236592
236592
  }
236593
236593
  }
236594
236594
  ]
@@ -236597,26 +236597,26 @@
236597
236597
  "exports": [
236598
236598
  {
236599
236599
  "kind": "js",
236600
- "name": "GdsDivider",
236600
+ "name": "GdsDiv",
236601
236601
  "declaration": {
236602
- "name": "GdsDivider",
236603
- "module": "src/generated/react/divider/index.ts"
236602
+ "name": "GdsDiv",
236603
+ "module": "src/generated/react/div/index.ts"
236604
236604
  }
236605
236605
  }
236606
236606
  ]
236607
236607
  },
236608
236608
  {
236609
236609
  "kind": "javascript-module",
236610
- "path": "src/generated/react/div/index.ts",
236610
+ "path": "src/generated/react/divider/index.ts",
236611
236611
  "declarations": [
236612
236612
  {
236613
236613
  "kind": "function",
236614
- "name": "GdsDiv",
236614
+ "name": "GdsDivider",
236615
236615
  "parameters": [
236616
236616
  {
236617
236617
  "name": "props",
236618
236618
  "type": {
236619
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<GdsDivClass>>\n > & { ref?: React.Ref<GdsDivClass> }"
236619
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<GdsDividerClass>>\n > & { ref?: React.Ref<GdsDividerClass> }"
236620
236620
  }
236621
236621
  }
236622
236622
  ]
@@ -236625,10 +236625,10 @@
236625
236625
  "exports": [
236626
236626
  {
236627
236627
  "kind": "js",
236628
- "name": "GdsDiv",
236628
+ "name": "GdsDivider",
236629
236629
  "declaration": {
236630
- "name": "GdsDiv",
236631
- "module": "src/generated/react/div/index.ts"
236630
+ "name": "GdsDivider",
236631
+ "module": "src/generated/react/divider/index.ts"
236632
236632
  }
236633
236633
  }
236634
236634
  ]
@@ -237842,16 +237842,16 @@
237842
237842
  },
237843
237843
  {
237844
237844
  "kind": "javascript-module",
237845
- "path": "src/generated/react/icons/icon-arrow-box-left/index.ts",
237845
+ "path": "src/generated/react/icons/icon-arrow-bottom-top/index.ts",
237846
237846
  "declarations": [
237847
237847
  {
237848
237848
  "kind": "function",
237849
- "name": "IconArrowBoxLeft",
237849
+ "name": "IconArrowBottomTop",
237850
237850
  "parameters": [
237851
237851
  {
237852
237852
  "name": "props",
237853
237853
  "type": {
237854
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconArrowBoxLeftClass>>\n > & { ref?: React.Ref<IconArrowBoxLeftClass> }"
237854
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconArrowBottomTopClass>>\n > & { ref?: React.Ref<IconArrowBottomTopClass> }"
237855
237855
  }
237856
237856
  }
237857
237857
  ]
@@ -237860,26 +237860,26 @@
237860
237860
  "exports": [
237861
237861
  {
237862
237862
  "kind": "js",
237863
- "name": "IconArrowBoxLeft",
237863
+ "name": "IconArrowBottomTop",
237864
237864
  "declaration": {
237865
- "name": "IconArrowBoxLeft",
237866
- "module": "src/generated/react/icons/icon-arrow-box-left/index.ts"
237865
+ "name": "IconArrowBottomTop",
237866
+ "module": "src/generated/react/icons/icon-arrow-bottom-top/index.ts"
237867
237867
  }
237868
237868
  }
237869
237869
  ]
237870
237870
  },
237871
237871
  {
237872
237872
  "kind": "javascript-module",
237873
- "path": "src/generated/react/icons/icon-arrow-bottom-top/index.ts",
237873
+ "path": "src/generated/react/icons/icon-arrow-box-left/index.ts",
237874
237874
  "declarations": [
237875
237875
  {
237876
237876
  "kind": "function",
237877
- "name": "IconArrowBottomTop",
237877
+ "name": "IconArrowBoxLeft",
237878
237878
  "parameters": [
237879
237879
  {
237880
237880
  "name": "props",
237881
237881
  "type": {
237882
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconArrowBottomTopClass>>\n > & { ref?: React.Ref<IconArrowBottomTopClass> }"
237882
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconArrowBoxLeftClass>>\n > & { ref?: React.Ref<IconArrowBoxLeftClass> }"
237883
237883
  }
237884
237884
  }
237885
237885
  ]
@@ -237888,10 +237888,10 @@
237888
237888
  "exports": [
237889
237889
  {
237890
237890
  "kind": "js",
237891
- "name": "IconArrowBottomTop",
237891
+ "name": "IconArrowBoxLeft",
237892
237892
  "declaration": {
237893
- "name": "IconArrowBottomTop",
237894
- "module": "src/generated/react/icons/icon-arrow-bottom-top/index.ts"
237893
+ "name": "IconArrowBoxLeft",
237894
+ "module": "src/generated/react/icons/icon-arrow-box-left/index.ts"
237895
237895
  }
237896
237896
  }
237897
237897
  ]
@@ -239466,16 +239466,16 @@
239466
239466
  },
239467
239467
  {
239468
239468
  "kind": "javascript-module",
239469
- "path": "src/generated/react/icons/icon-brand-linkedin/index.ts",
239469
+ "path": "src/generated/react/icons/icon-brand-play-store/index.ts",
239470
239470
  "declarations": [
239471
239471
  {
239472
239472
  "kind": "function",
239473
- "name": "IconBrandLinkedin",
239473
+ "name": "IconBrandPlayStore",
239474
239474
  "parameters": [
239475
239475
  {
239476
239476
  "name": "props",
239477
239477
  "type": {
239478
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandLinkedinClass>>\n > & { ref?: React.Ref<IconBrandLinkedinClass> }"
239478
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandPlayStoreClass>>\n > & { ref?: React.Ref<IconBrandPlayStoreClass> }"
239479
239479
  }
239480
239480
  }
239481
239481
  ]
@@ -239484,26 +239484,26 @@
239484
239484
  "exports": [
239485
239485
  {
239486
239486
  "kind": "js",
239487
- "name": "IconBrandLinkedin",
239487
+ "name": "IconBrandPlayStore",
239488
239488
  "declaration": {
239489
- "name": "IconBrandLinkedin",
239490
- "module": "src/generated/react/icons/icon-brand-linkedin/index.ts"
239489
+ "name": "IconBrandPlayStore",
239490
+ "module": "src/generated/react/icons/icon-brand-play-store/index.ts"
239491
239491
  }
239492
239492
  }
239493
239493
  ]
239494
239494
  },
239495
239495
  {
239496
239496
  "kind": "javascript-module",
239497
- "path": "src/generated/react/icons/icon-brand-play-store/index.ts",
239497
+ "path": "src/generated/react/icons/icon-brand-linkedin/index.ts",
239498
239498
  "declarations": [
239499
239499
  {
239500
239500
  "kind": "function",
239501
- "name": "IconBrandPlayStore",
239501
+ "name": "IconBrandLinkedin",
239502
239502
  "parameters": [
239503
239503
  {
239504
239504
  "name": "props",
239505
239505
  "type": {
239506
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandPlayStoreClass>>\n > & { ref?: React.Ref<IconBrandPlayStoreClass> }"
239506
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandLinkedinClass>>\n > & { ref?: React.Ref<IconBrandLinkedinClass> }"
239507
239507
  }
239508
239508
  }
239509
239509
  ]
@@ -239512,10 +239512,10 @@
239512
239512
  "exports": [
239513
239513
  {
239514
239514
  "kind": "js",
239515
- "name": "IconBrandPlayStore",
239515
+ "name": "IconBrandLinkedin",
239516
239516
  "declaration": {
239517
- "name": "IconBrandPlayStore",
239518
- "module": "src/generated/react/icons/icon-brand-play-store/index.ts"
239517
+ "name": "IconBrandLinkedin",
239518
+ "module": "src/generated/react/icons/icon-brand-linkedin/index.ts"
239519
239519
  }
239520
239520
  }
239521
239521
  ]
@@ -239578,16 +239578,16 @@
239578
239578
  },
239579
239579
  {
239580
239580
  "kind": "javascript-module",
239581
- "path": "src/generated/react/icons/icon-brand-storybook/index.ts",
239581
+ "path": "src/generated/react/icons/icon-brand-spotify/index.ts",
239582
239582
  "declarations": [
239583
239583
  {
239584
239584
  "kind": "function",
239585
- "name": "IconBrandStorybook",
239585
+ "name": "IconBrandSpotify",
239586
239586
  "parameters": [
239587
239587
  {
239588
239588
  "name": "props",
239589
239589
  "type": {
239590
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandStorybookClass>>\n > & { ref?: React.Ref<IconBrandStorybookClass> }"
239590
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandSpotifyClass>>\n > & { ref?: React.Ref<IconBrandSpotifyClass> }"
239591
239591
  }
239592
239592
  }
239593
239593
  ]
@@ -239596,26 +239596,26 @@
239596
239596
  "exports": [
239597
239597
  {
239598
239598
  "kind": "js",
239599
- "name": "IconBrandStorybook",
239599
+ "name": "IconBrandSpotify",
239600
239600
  "declaration": {
239601
- "name": "IconBrandStorybook",
239602
- "module": "src/generated/react/icons/icon-brand-storybook/index.ts"
239601
+ "name": "IconBrandSpotify",
239602
+ "module": "src/generated/react/icons/icon-brand-spotify/index.ts"
239603
239603
  }
239604
239604
  }
239605
239605
  ]
239606
239606
  },
239607
239607
  {
239608
239608
  "kind": "javascript-module",
239609
- "path": "src/generated/react/icons/icon-brand-spotify/index.ts",
239609
+ "path": "src/generated/react/icons/icon-brand-storybook/index.ts",
239610
239610
  "declarations": [
239611
239611
  {
239612
239612
  "kind": "function",
239613
- "name": "IconBrandSpotify",
239613
+ "name": "IconBrandStorybook",
239614
239614
  "parameters": [
239615
239615
  {
239616
239616
  "name": "props",
239617
239617
  "type": {
239618
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandSpotifyClass>>\n > & { ref?: React.Ref<IconBrandSpotifyClass> }"
239618
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandStorybookClass>>\n > & { ref?: React.Ref<IconBrandStorybookClass> }"
239619
239619
  }
239620
239620
  }
239621
239621
  ]
@@ -239624,10 +239624,10 @@
239624
239624
  "exports": [
239625
239625
  {
239626
239626
  "kind": "js",
239627
- "name": "IconBrandSpotify",
239627
+ "name": "IconBrandStorybook",
239628
239628
  "declaration": {
239629
- "name": "IconBrandSpotify",
239630
- "module": "src/generated/react/icons/icon-brand-spotify/index.ts"
239629
+ "name": "IconBrandStorybook",
239630
+ "module": "src/generated/react/icons/icon-brand-storybook/index.ts"
239631
239631
  }
239632
239632
  }
239633
239633
  ]
@@ -241202,16 +241202,16 @@
241202
241202
  },
241203
241203
  {
241204
241204
  "kind": "javascript-module",
241205
- "path": "src/generated/react/icons/icon-code/index.ts",
241205
+ "path": "src/generated/react/icons/icon-code-brackets/index.ts",
241206
241206
  "declarations": [
241207
241207
  {
241208
241208
  "kind": "function",
241209
- "name": "IconCode",
241209
+ "name": "IconCodeBrackets",
241210
241210
  "parameters": [
241211
241211
  {
241212
241212
  "name": "props",
241213
241213
  "type": {
241214
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconCodeClass>>\n > & { ref?: React.Ref<IconCodeClass> }"
241214
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconCodeBracketsClass>>\n > & { ref?: React.Ref<IconCodeBracketsClass> }"
241215
241215
  }
241216
241216
  }
241217
241217
  ]
@@ -241220,26 +241220,26 @@
241220
241220
  "exports": [
241221
241221
  {
241222
241222
  "kind": "js",
241223
- "name": "IconCode",
241223
+ "name": "IconCodeBrackets",
241224
241224
  "declaration": {
241225
- "name": "IconCode",
241226
- "module": "src/generated/react/icons/icon-code/index.ts"
241225
+ "name": "IconCodeBrackets",
241226
+ "module": "src/generated/react/icons/icon-code-brackets/index.ts"
241227
241227
  }
241228
241228
  }
241229
241229
  ]
241230
241230
  },
241231
241231
  {
241232
241232
  "kind": "javascript-module",
241233
- "path": "src/generated/react/icons/icon-code-brackets/index.ts",
241233
+ "path": "src/generated/react/icons/icon-code/index.ts",
241234
241234
  "declarations": [
241235
241235
  {
241236
241236
  "kind": "function",
241237
- "name": "IconCodeBrackets",
241237
+ "name": "IconCode",
241238
241238
  "parameters": [
241239
241239
  {
241240
241240
  "name": "props",
241241
241241
  "type": {
241242
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconCodeBracketsClass>>\n > & { ref?: React.Ref<IconCodeBracketsClass> }"
241242
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconCodeClass>>\n > & { ref?: React.Ref<IconCodeClass> }"
241243
241243
  }
241244
241244
  }
241245
241245
  ]
@@ -241248,10 +241248,10 @@
241248
241248
  "exports": [
241249
241249
  {
241250
241250
  "kind": "js",
241251
- "name": "IconCodeBrackets",
241251
+ "name": "IconCode",
241252
241252
  "declaration": {
241253
- "name": "IconCodeBrackets",
241254
- "module": "src/generated/react/icons/icon-code-brackets/index.ts"
241253
+ "name": "IconCode",
241254
+ "module": "src/generated/react/icons/icon-code/index.ts"
241255
241255
  }
241256
241256
  }
241257
241257
  ]
@@ -243246,16 +243246,16 @@
243246
243246
  },
243247
243247
  {
243248
243248
  "kind": "javascript-module",
243249
- "path": "src/generated/react/icons/icon-lightning/index.ts",
243249
+ "path": "src/generated/react/icons/icon-line-chart-four/index.ts",
243250
243250
  "declarations": [
243251
243251
  {
243252
243252
  "kind": "function",
243253
- "name": "IconLightning",
243253
+ "name": "IconLineChartFour",
243254
243254
  "parameters": [
243255
243255
  {
243256
243256
  "name": "props",
243257
243257
  "type": {
243258
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconLightningClass>>\n > & { ref?: React.Ref<IconLightningClass> }"
243258
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconLineChartFourClass>>\n > & { ref?: React.Ref<IconLineChartFourClass> }"
243259
243259
  }
243260
243260
  }
243261
243261
  ]
@@ -243264,26 +243264,26 @@
243264
243264
  "exports": [
243265
243265
  {
243266
243266
  "kind": "js",
243267
- "name": "IconLightning",
243267
+ "name": "IconLineChartFour",
243268
243268
  "declaration": {
243269
- "name": "IconLightning",
243270
- "module": "src/generated/react/icons/icon-lightning/index.ts"
243269
+ "name": "IconLineChartFour",
243270
+ "module": "src/generated/react/icons/icon-line-chart-four/index.ts"
243271
243271
  }
243272
243272
  }
243273
243273
  ]
243274
243274
  },
243275
243275
  {
243276
243276
  "kind": "javascript-module",
243277
- "path": "src/generated/react/icons/icon-line-chart-four/index.ts",
243277
+ "path": "src/generated/react/icons/icon-lightning/index.ts",
243278
243278
  "declarations": [
243279
243279
  {
243280
243280
  "kind": "function",
243281
- "name": "IconLineChartFour",
243281
+ "name": "IconLightning",
243282
243282
  "parameters": [
243283
243283
  {
243284
243284
  "name": "props",
243285
243285
  "type": {
243286
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconLineChartFourClass>>\n > & { ref?: React.Ref<IconLineChartFourClass> }"
243286
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconLightningClass>>\n > & { ref?: React.Ref<IconLightningClass> }"
243287
243287
  }
243288
243288
  }
243289
243289
  ]
@@ -243292,10 +243292,10 @@
243292
243292
  "exports": [
243293
243293
  {
243294
243294
  "kind": "js",
243295
- "name": "IconLineChartFour",
243295
+ "name": "IconLightning",
243296
243296
  "declaration": {
243297
- "name": "IconLineChartFour",
243298
- "module": "src/generated/react/icons/icon-line-chart-four/index.ts"
243297
+ "name": "IconLightning",
243298
+ "module": "src/generated/react/icons/icon-lightning/index.ts"
243299
243299
  }
243300
243300
  }
243301
243301
  ]
@@ -245262,16 +245262,16 @@
245262
245262
  },
245263
245263
  {
245264
245264
  "kind": "javascript-module",
245265
- "path": "src/generated/react/icons/icon-school/index.ts",
245265
+ "path": "src/generated/react/icons/icon-safari/index.ts",
245266
245266
  "declarations": [
245267
245267
  {
245268
245268
  "kind": "function",
245269
- "name": "IconSchool",
245269
+ "name": "IconSafari",
245270
245270
  "parameters": [
245271
245271
  {
245272
245272
  "name": "props",
245273
245273
  "type": {
245274
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconSchoolClass>>\n > & { ref?: React.Ref<IconSchoolClass> }"
245274
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconSafariClass>>\n > & { ref?: React.Ref<IconSafariClass> }"
245275
245275
  }
245276
245276
  }
245277
245277
  ]
@@ -245280,26 +245280,26 @@
245280
245280
  "exports": [
245281
245281
  {
245282
245282
  "kind": "js",
245283
- "name": "IconSchool",
245283
+ "name": "IconSafari",
245284
245284
  "declaration": {
245285
- "name": "IconSchool",
245286
- "module": "src/generated/react/icons/icon-school/index.ts"
245285
+ "name": "IconSafari",
245286
+ "module": "src/generated/react/icons/icon-safari/index.ts"
245287
245287
  }
245288
245288
  }
245289
245289
  ]
245290
245290
  },
245291
245291
  {
245292
245292
  "kind": "javascript-module",
245293
- "path": "src/generated/react/icons/icon-safari/index.ts",
245293
+ "path": "src/generated/react/icons/icon-school/index.ts",
245294
245294
  "declarations": [
245295
245295
  {
245296
245296
  "kind": "function",
245297
- "name": "IconSafari",
245297
+ "name": "IconSchool",
245298
245298
  "parameters": [
245299
245299
  {
245300
245300
  "name": "props",
245301
245301
  "type": {
245302
- "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconSafariClass>>\n > & { ref?: React.Ref<IconSafariClass> }"
245302
+ "text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconSchoolClass>>\n > & { ref?: React.Ref<IconSchoolClass> }"
245303
245303
  }
245304
245304
  }
245305
245305
  ]
@@ -245308,10 +245308,10 @@
245308
245308
  "exports": [
245309
245309
  {
245310
245310
  "kind": "js",
245311
- "name": "IconSafari",
245311
+ "name": "IconSchool",
245312
245312
  "declaration": {
245313
- "name": "IconSafari",
245314
- "module": "src/generated/react/icons/icon-safari/index.ts"
245313
+ "name": "IconSchool",
245314
+ "module": "src/generated/react/icons/icon-school/index.ts"
245315
245315
  }
245316
245316
  }
245317
245317
  ]