@repobit/dex-system-design 4.5.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/src/components/icons/arrow-back.d.ts +1 -0
- package/dist/src/components/icons/arrow-back.js +6 -0
- package/dist/src/components/icons/arrow-back.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +1 -0
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.d.ts +1 -0
- package/dist/src/components/pricing-card/pricing-card.css.js +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.d.ts +65 -49
- package/dist/src/components/pricing-card/pricing-card.js +7 -9
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +1 -1
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +7 -1
- package/dist/src/components/pricing-card/pricing-feature-group.js +5 -2
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-feature.css.js +1 -1
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-price.css.js +1 -1
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-price.d.ts +31 -2
- package/dist/src/components/pricing-card/pricing-price.js +3 -3
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/package.json +2 -2
- package/schemas/component-manifest.json +98 -97
- package/schemas/figma-component-map.json +5 -10
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +0 -3
- package/dist/src/components/pricing-card/pricing-group.css.js +0 -2
- package/dist/src/components/pricing-card/pricing-group.css.js.map +0 -1
- package/dist/src/components/pricing-card/pricing-group.d.ts +0 -48
- package/dist/src/components/pricing-card/pricing-group.js +0 -6
- package/dist/src/components/pricing-card/pricing-group.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifestVersion": 1,
|
|
3
3
|
"package": "@repobit/dex-system-design",
|
|
4
|
-
"packageVersion": "
|
|
4
|
+
"packageVersion": "5.0.1",
|
|
5
5
|
"generatedFrom": [
|
|
6
6
|
"package.json exports",
|
|
7
7
|
"Lit reactive properties (static properties or @property/@state)",
|
|
@@ -3359,61 +3359,34 @@
|
|
|
3359
3359
|
]
|
|
3360
3360
|
},
|
|
3361
3361
|
{
|
|
3362
|
-
"tag": "bd-pricing-
|
|
3363
|
-
"packageExport": "./pricing-card",
|
|
3364
|
-
"module": "./dist/src/components/pricing-card/pricing-group.js",
|
|
3365
|
-
"role": "container",
|
|
3366
|
-
"contentModel": "children",
|
|
3367
|
-
"children": [
|
|
3368
|
-
"bd-pricing-card"
|
|
3369
|
-
],
|
|
3370
|
-
"slots": [
|
|
3371
|
-
{
|
|
3372
|
-
"name": "",
|
|
3373
|
-
"accepts": [
|
|
3374
|
-
"bd-pricing-card",
|
|
3375
|
-
"bd-context",
|
|
3376
|
-
"bd-product",
|
|
3377
|
-
"bd-option"
|
|
3378
|
-
]
|
|
3379
|
-
}
|
|
3380
|
-
],
|
|
3381
|
-
"props": [],
|
|
3382
|
-
"notes": [
|
|
3383
|
-
"A row of bd-pricing-card children on the brand band (3.x pricing-cards-container, and bd-pricing-container's band). Write each card bare or inside the store's <bd-context>/<bd-product>/<bd-option>; the wrappers draw no box here, so a wrapped card lays out as a bare one does.",
|
|
3384
|
-
"One column below xl, each card up to 426 wide and centred; from xl one row of as many equal columns as there are cards. The band sits in the page column, and in a column it is already in (a bd-tab-group panel) it fills it.",
|
|
3385
|
-
"For plans behind a switch, write <bd-tab-group appearance=\"switcher\" label=\"Plan type\"> with one bd-tab and one bd-tab-panel per plan, each panel holding a bd-pricing-group: that is what bd-pricing-container drew."
|
|
3386
|
-
]
|
|
3387
|
-
},
|
|
3388
|
-
{
|
|
3389
|
-
"tag": "bd-pricing-card",
|
|
3362
|
+
"tag": "bd-pricing-price",
|
|
3390
3363
|
"packageExport": "./pricing-card",
|
|
3391
|
-
"module": "./dist/src/components/pricing-card/pricing-
|
|
3392
|
-
"role": "
|
|
3364
|
+
"module": "./dist/src/components/pricing-card/pricing-price.js",
|
|
3365
|
+
"role": "subcomponent",
|
|
3393
3366
|
"contentModel": "children",
|
|
3394
|
-
"children": [
|
|
3395
|
-
"bd-pricing-price",
|
|
3396
|
-
"bd-pricing-feature-group",
|
|
3397
|
-
"bd-accordion-item"
|
|
3398
|
-
],
|
|
3399
3367
|
"slots": [
|
|
3400
3368
|
{
|
|
3401
3369
|
"name": "",
|
|
3402
|
-
"accepts":
|
|
3403
|
-
|
|
3404
|
-
"
|
|
3370
|
+
"accepts": "text",
|
|
3371
|
+
"owns": [
|
|
3372
|
+
"size",
|
|
3373
|
+
"ink"
|
|
3405
3374
|
]
|
|
3406
3375
|
},
|
|
3407
3376
|
{
|
|
3408
|
-
"name": "
|
|
3409
|
-
"accepts": "
|
|
3377
|
+
"name": "caption",
|
|
3378
|
+
"accepts": "text",
|
|
3379
|
+
"owns": [
|
|
3380
|
+
"size",
|
|
3381
|
+
"ink"
|
|
3382
|
+
]
|
|
3410
3383
|
},
|
|
3411
3384
|
{
|
|
3412
|
-
"name": "
|
|
3385
|
+
"name": "discount",
|
|
3413
3386
|
"accepts": "atoms"
|
|
3414
3387
|
},
|
|
3415
3388
|
{
|
|
3416
|
-
"name": "
|
|
3389
|
+
"name": "full",
|
|
3417
3390
|
"accepts": "text",
|
|
3418
3391
|
"owns": [
|
|
3419
3392
|
"size",
|
|
@@ -3421,20 +3394,56 @@
|
|
|
3421
3394
|
]
|
|
3422
3395
|
},
|
|
3423
3396
|
{
|
|
3424
|
-
"name": "
|
|
3397
|
+
"name": "period",
|
|
3425
3398
|
"accepts": "text",
|
|
3426
3399
|
"owns": [
|
|
3427
3400
|
"size",
|
|
3428
3401
|
"ink"
|
|
3429
3402
|
]
|
|
3403
|
+
}
|
|
3404
|
+
],
|
|
3405
|
+
"props": [
|
|
3406
|
+
{
|
|
3407
|
+
"name": "appearance",
|
|
3408
|
+
"type": "string",
|
|
3409
|
+
"enum": ["card", "hero"],
|
|
3410
|
+
"default": "card",
|
|
3411
|
+
"description": "Where the zone stands, which decides the discount's look: card, the bd-badge in discount drawn in the success shade; hero, the solid success fill at size lg, as bd-product-hero's. The zone sets the slotted badge's variant, appearance and size itself. Reflected."
|
|
3430
3412
|
},
|
|
3431
3413
|
{
|
|
3432
|
-
"name": "
|
|
3414
|
+
"name": "size",
|
|
3415
|
+
"type": "string",
|
|
3416
|
+
"enum": ["md", "lg"],
|
|
3417
|
+
"default": "md",
|
|
3418
|
+
"description": "How big a card's discount pill is: md, as 3.x v1 drew it, or lg, as bd-pricing-card draws it (Figma's Badge size=lg). A hero's is always lg. Reflected."
|
|
3419
|
+
}
|
|
3420
|
+
],
|
|
3421
|
+
"notes": [
|
|
3422
|
+
"A pricing card's price zone, all page markup: <s slot=\"full\" data-store-render data-store-price=\"full\" data-store-hide=\"!it.option.price.discounted\">, a <bd-badge slot=\"discount\" data-store-hide=\"!it.option.price.discounted\">Save <span data-store-render data-store-discount=\"percentage\"></span></bd-badge>, the price as <span data-store-render data-store-price=\"discounted||full\"> in the default slot, <span slot=\"period\">/year</span>, and the small print in caption with its terms link a bd-link inline.",
|
|
3423
|
+
"Drawn at 3.x's roles: the full price at body-small, the price and its period at heading-h3 (a paragraph, not a heading), the caption at body-small. For a monthly price write data-store-price=\"discounted-monthly||full-monthly\" and \"full-monthly\", and \"/month\".",
|
|
3424
|
+
"Write the discount as a bare <bd-badge slot=\"discount\">: appearance=\"card\" (the default) draws it in the success shade for a row of cards, appearance=\"hero\" in the solid success fill at size lg for a hero banner's one price. In a card, size=\"lg\" is bd-pricing-card's pill; size=\"md\", the default, 3.x v1's."
|
|
3425
|
+
]
|
|
3426
|
+
},
|
|
3427
|
+
{
|
|
3428
|
+
"tag": "bd-pricing-feature-group",
|
|
3429
|
+
"packageExport": "./pricing-card",
|
|
3430
|
+
"module": "./dist/src/components/pricing-card/pricing-feature-group.js",
|
|
3431
|
+
"role": "container",
|
|
3432
|
+
"contentModel": "children",
|
|
3433
|
+
"children": [
|
|
3434
|
+
"bd-pricing-feature"
|
|
3435
|
+
],
|
|
3436
|
+
"slots": [
|
|
3437
|
+
{
|
|
3438
|
+
"name": "",
|
|
3433
3439
|
"accepts": [
|
|
3434
|
-
"bd-pricing-
|
|
3435
|
-
"bd-tab-group"
|
|
3440
|
+
"bd-pricing-feature"
|
|
3436
3441
|
]
|
|
3437
3442
|
},
|
|
3443
|
+
{
|
|
3444
|
+
"name": "icon",
|
|
3445
|
+
"accepts": "atoms"
|
|
3446
|
+
},
|
|
3438
3447
|
{
|
|
3439
3448
|
"name": "title",
|
|
3440
3449
|
"accepts": "heading",
|
|
@@ -3443,39 +3452,39 @@
|
|
|
3443
3452
|
]
|
|
3444
3453
|
}
|
|
3445
3454
|
],
|
|
3446
|
-
"props": [
|
|
3447
|
-
{
|
|
3448
|
-
"name": "highlight",
|
|
3449
|
-
"type": "boolean",
|
|
3450
|
-
"default": false,
|
|
3451
|
-
"description": "The highlighted plan: a green edge, and the banner slot's ribbon drawn over the card's top edge. Reflected."
|
|
3452
|
-
}
|
|
3453
|
-
],
|
|
3455
|
+
"props": [],
|
|
3454
3456
|
"notes": [
|
|
3455
|
-
"A
|
|
3456
|
-
"
|
|
3457
|
-
"Name each button with its label, as 3.x did: label=\"Buy Now, {title}\" and label=\"Learn more about {title}\". The title is the page's words as written; nothing is parsed out of it.",
|
|
3458
|
-
"A billing choice is a <bd-tab-group slot=\"price\" appearance=\"switcher\" label=\"Billing period\"> with one bd-pricing-price per panel. A list of further features is a <bd-accordion-item appearance=\"chevron\"> in the default slot holding a bd-pricing-feature-group.",
|
|
3459
|
-
"No part has a fallback, and each part's box is hidden while its slot is empty; the banner is drawn only with highlight."
|
|
3457
|
+
"A <bd-icon slot=\"icon\"> sits before the heading in the brand's text ink, drawn only with a title: <bd-icon slot=\"icon\" name=\"arrow-back\"> before \"Everything from Total Security and:\" in bd-pricing-card.",
|
|
3458
|
+
"A titled list of a card's features (3.x's five feature lists): <bd-h slot=\"title\" as=\"h4\"> drawn at heading-h4, and bd-pricing-feature children, a list named by the title. One feature's description is open at a time."
|
|
3460
3459
|
]
|
|
3461
3460
|
},
|
|
3462
3461
|
{
|
|
3463
|
-
"tag": "bd-pricing-
|
|
3462
|
+
"tag": "bd-pricing-card",
|
|
3464
3463
|
"packageExport": "./pricing-card",
|
|
3465
|
-
"module": "./dist/src/components/pricing-card/pricing-
|
|
3466
|
-
"role": "
|
|
3464
|
+
"module": "./dist/src/components/pricing-card/pricing-card.js",
|
|
3465
|
+
"role": "item",
|
|
3467
3466
|
"contentModel": "children",
|
|
3467
|
+
"children": [
|
|
3468
|
+
"bd-pricing-price",
|
|
3469
|
+
"bd-pricing-feature-group"
|
|
3470
|
+
],
|
|
3468
3471
|
"slots": [
|
|
3469
3472
|
{
|
|
3470
3473
|
"name": "",
|
|
3471
|
-
"accepts":
|
|
3472
|
-
|
|
3473
|
-
"size",
|
|
3474
|
-
"ink"
|
|
3474
|
+
"accepts": [
|
|
3475
|
+
"bd-pricing-feature-group"
|
|
3475
3476
|
]
|
|
3476
3477
|
},
|
|
3477
3478
|
{
|
|
3478
|
-
"name": "
|
|
3479
|
+
"name": "actions",
|
|
3480
|
+
"accepts": "atoms"
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"name": "badge",
|
|
3484
|
+
"accepts": "atoms"
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"name": "banner",
|
|
3479
3488
|
"accepts": "text",
|
|
3480
3489
|
"owns": [
|
|
3481
3490
|
"size",
|
|
@@ -3483,11 +3492,7 @@
|
|
|
3483
3492
|
]
|
|
3484
3493
|
},
|
|
3485
3494
|
{
|
|
3486
|
-
"name": "
|
|
3487
|
-
"accepts": "atoms"
|
|
3488
|
-
},
|
|
3489
|
-
{
|
|
3490
|
-
"name": "full",
|
|
3495
|
+
"name": "caption",
|
|
3491
3496
|
"accepts": "text",
|
|
3492
3497
|
"owns": [
|
|
3493
3498
|
"size",
|
|
@@ -3495,34 +3500,20 @@
|
|
|
3495
3500
|
]
|
|
3496
3501
|
},
|
|
3497
3502
|
{
|
|
3498
|
-
"name": "
|
|
3499
|
-
"accepts":
|
|
3503
|
+
"name": "description",
|
|
3504
|
+
"accepts": [
|
|
3505
|
+
"bd-p"
|
|
3506
|
+
],
|
|
3500
3507
|
"owns": [
|
|
3501
3508
|
"size",
|
|
3502
3509
|
"ink"
|
|
3503
3510
|
]
|
|
3504
|
-
}
|
|
3505
|
-
],
|
|
3506
|
-
"props": [],
|
|
3507
|
-
"notes": [
|
|
3508
|
-
"A pricing card's price zone, all page markup: <s slot=\"full\" data-store-render data-store-price=\"full\" data-store-hide=\"!it.option.price.discounted\">, a <bd-badge slot=\"discount\" variant=\"success\" appearance=\"shade\" data-store-hide=\"!it.option.price.discounted\">Save <span data-store-render data-store-discount=\"percentage\"></span></bd-badge>, the price as <span data-store-render data-store-price=\"discounted||full\"> in the default slot, <span slot=\"period\">/year</span>, and the small print in caption with its terms link a bd-link inline.",
|
|
3509
|
-
"Drawn at 3.x's roles: the full price at body-small, the price and its period at heading-h3 (a paragraph, not a heading), the caption at body-small. For a monthly price write data-store-price=\"discounted-monthly||full-monthly\" and \"full-monthly\", and \"/month\"."
|
|
3510
|
-
]
|
|
3511
|
-
},
|
|
3512
|
-
{
|
|
3513
|
-
"tag": "bd-pricing-feature-group",
|
|
3514
|
-
"packageExport": "./pricing-card",
|
|
3515
|
-
"module": "./dist/src/components/pricing-card/pricing-feature-group.js",
|
|
3516
|
-
"role": "container",
|
|
3517
|
-
"contentModel": "children",
|
|
3518
|
-
"children": [
|
|
3519
|
-
"bd-pricing-feature"
|
|
3520
|
-
],
|
|
3521
|
-
"slots": [
|
|
3511
|
+
},
|
|
3522
3512
|
{
|
|
3523
|
-
"name": "",
|
|
3513
|
+
"name": "price",
|
|
3524
3514
|
"accepts": [
|
|
3525
|
-
"bd-pricing-
|
|
3515
|
+
"bd-pricing-price",
|
|
3516
|
+
"bd-tab-group"
|
|
3526
3517
|
]
|
|
3527
3518
|
},
|
|
3528
3519
|
{
|
|
@@ -3533,9 +3524,19 @@
|
|
|
3533
3524
|
]
|
|
3534
3525
|
}
|
|
3535
3526
|
],
|
|
3536
|
-
"props": [
|
|
3527
|
+
"props": [
|
|
3528
|
+
{
|
|
3529
|
+
"name": "highlight",
|
|
3530
|
+
"type": "boolean",
|
|
3531
|
+
"default": false,
|
|
3532
|
+
"description": "The recommended plan: a brand edge, and the banner slot's tab drawn over the card's top edge. Reflected."
|
|
3533
|
+
}
|
|
3534
|
+
],
|
|
3537
3535
|
"notes": [
|
|
3538
|
-
"A
|
|
3536
|
+
"A plan's pricing card: a <bd-badge slot=\"badge\" variant=\"brand\" size=\"lg\">, <bd-h slot=\"title\" as=\"h3\"> at heading-h5 in bold whatever its level (a word in <em> -- \"Ultimate Security <em>Plus</em>\" -- drawn upright in the brand's text ink), one <bd-p slot=\"description\"> per paragraph (what the plan covers, then its pitch), a <bd-pricing-price slot=\"price\">, the Buy Now <bd-button buy-link appearance=\"accent\" full-width> and Learn More <bd-button href appearance=\"ghost\" full-width> in actions, the guarantee in caption, and bd-pricing-feature-groups in the default slot, drawn in the card's scale.",
|
|
3537
|
+
"Lay a row out in <bd-grid gap=\"lg\" gap-md=\"md\" item-rows=\"8\">, the cards 24 apart from md and 32 stacked below it, where the recommended card's tab overhangs the card above: each card is a subgrid of the grid's eight rows (badge, title, description, rule, price, actions, caption, features), so the parts line up across the row. Wrapped in <bd-context><bd-product product-id><bd-option devices subscription data-layer-event>, the wrappers draw no box in a bd-grid and the card is still the subgrid.",
|
|
3538
|
+
"The version without features is the same card with nothing in caption and the default slot. Name each button with its label (\"Buy Now, {title}\", \"Learn More, {title}\").",
|
|
3539
|
+
"No part has a fallback, and each part's box is hidden while its slot is empty; the banner is drawn only with highlight."
|
|
3539
3540
|
]
|
|
3540
3541
|
},
|
|
3541
3542
|
{
|
|
@@ -2978,16 +2978,6 @@
|
|
|
2978
2978
|
"packageExport": "./pagination-dots",
|
|
2979
2979
|
"role": "navigation"
|
|
2980
2980
|
},
|
|
2981
|
-
{
|
|
2982
|
-
"tag": "bd-pricing-group",
|
|
2983
|
-
"packageExport": "./pricing-card",
|
|
2984
|
-
"role": "container"
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
"tag": "bd-pricing-card",
|
|
2988
|
-
"packageExport": "./pricing-card",
|
|
2989
|
-
"role": "item"
|
|
2990
|
-
},
|
|
2991
2981
|
{
|
|
2992
2982
|
"tag": "bd-pricing-price",
|
|
2993
2983
|
"packageExport": "./pricing-card",
|
|
@@ -2998,6 +2988,11 @@
|
|
|
2998
2988
|
"packageExport": "./pricing-card",
|
|
2999
2989
|
"role": "container"
|
|
3000
2990
|
},
|
|
2991
|
+
{
|
|
2992
|
+
"tag": "bd-pricing-card",
|
|
2993
|
+
"packageExport": "./pricing-card",
|
|
2994
|
+
"role": "item"
|
|
2995
|
+
},
|
|
3001
2996
|
{
|
|
3002
2997
|
"tag": "bd-pricing-feature",
|
|
3003
2998
|
"packageExport": "./pricing-card",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}:host([hidden]){display:none}.band{justify-items:center;gap:var(--spacing-52) var(--spacing-24);box-sizing:border-box;padding:var(--spacing-64) var(--spacing-16) var(--spacing-48);background:var(--status-brand-surface);border-radius:var(--shape-radius-2xl);grid-template-columns:minmax(0,1fr);display:grid}@media (width>=576px){.band{padding-inline:var(--spacing-32)}}@media (width>=1200px){.band{row-gap:var(--spacing-24);grid-template-columns:none;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}}`,n=e`:where(bd-pricing-group) :is(bd-context,bd-product,bd-option):has(bd-pricing-card):not(bd-pricing-card *){display:contents}`;export{t as default,n as storeWrapperCSS};
|
|
2
|
-
//# sourceMappingURL=pricing-group.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-group.css.js","names":["pricing_group_css_default","storeWrapperCSS"],"sources":["../../../../src/components/pricing-card/pricing-group.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* bd-pricing-group: the band bd-pricing-container drew behind v1's cards\n (pricing-card.css.ts's .pricing-cards), and the row in it. */\nexport default css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n /* The band the cards sit on: the brand wash, 3.x's 2xl corner, and an\n inset taller at the top for the highlighted card's banner, which\n overhangs its card. Three adjacent plans need telling apart from each\n other, not just from the page, so the cards are white with an edge on a\n tint, which separates them by hue (3.x's note on .pricing-cards).\n\n Below sm the band's sides are 16, not 32: the band sits in the page\n column now, whose own 16 gutter 3.x's band did not have, and 16 keeps a\n phone's card at the 311 it measured at 375.\n\n ONE COLUMN BELOW XL, centred, each card as wide as 3.x's (the card's own\n max-width), 52 apart, as v1's stacked below 1024. FROM XL ONE ROW of as\n many equal columns as there are cards, 24 apart, each as tall as the\n row: 3.x's count, which v2's container reflected to give two cards a\n half and three a third, as a grid's auto-flow. */\n .band {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n justify-items: center;\n gap: var(--spacing-52) var(--spacing-24);\n box-sizing: border-box;\n padding: var(--spacing-64) var(--spacing-16) var(--spacing-48);\n background: var(--status-brand-surface);\n border-radius: var(--shape-radius-2xl);\n }\n\n @media ${unsafeCSS(above(\"sm\"))} {\n .band {\n padding-inline: var(--spacing-32);\n }\n }\n\n @media ${unsafeCSS(above(\"xl\"))} {\n .band {\n grid-template-columns: none;\n grid-auto-flow: column;\n grid-auto-columns: minmax(0, 1fr);\n row-gap: var(--spacing-24);\n }\n }\n`;\n\n/* Adopted into the tree the group sits in (adoptStyles, in connectedCallback):\n the store's elements between the group and a card draw no box, so the card\n is the row's item. bd-context, bd-product and bd-option set no display of\n their own; each is an inline box with a slot in it, and a card inside one\n was the block inside an inline -- never the row's item, never as tall as\n its row. Only the wrappers around a card, and none inside one. */\nexport const storeWrapperCSS = css`\n :where(bd-pricing-group) :is(bd-context, bd-product, bd-option):has(bd-pricing-card):not(bd-pricing-card *) {\n display: contents;\n }\n`;\n"],"mappings":"A,4DAKA,IAAAA,EAAe,CAAG,ghBAyDLC,EAAkB,CAAG,8H"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import "../../tokens/tokens.js";
|
|
3
|
-
/**
|
|
4
|
-
* A row of pricing cards on the brand band they are drawn for.
|
|
5
|
-
*
|
|
6
|
-
* <bd-pricing-group>
|
|
7
|
-
* <bd-product product-id="ts_i">
|
|
8
|
-
* <bd-option devices="5" subscription="1" data-layer-event="info">
|
|
9
|
-
* <bd-pricing-card>…</bd-pricing-card>
|
|
10
|
-
* </bd-option>
|
|
11
|
-
* </bd-product>
|
|
12
|
-
* <bd-pricing-card>…</bd-pricing-card>
|
|
13
|
-
* </bd-pricing-group>
|
|
14
|
-
*
|
|
15
|
-
* It was 3.x's pricing-cards-container (v2's row), and it draws the band
|
|
16
|
-
* bd-pricing-container drew behind v1's cards: the brand wash, the card
|
|
17
|
-
* corner and an inset that holds the highlighted card's banner. The cards'
|
|
18
|
-
* white ground and edge are drawn for that band (CLAUDE.md, A card's ground
|
|
19
|
-
* and its edge), so v2's cards, which sat on the page, sit on it too.
|
|
20
|
-
*
|
|
21
|
-
* Its cards are its children, bare or wrapped in the bd-context, bd-product
|
|
22
|
-
* and bd-option the store reads them through. Those set no display of their
|
|
23
|
-
* own -- each is an inline box with a slot in it -- so a wrapped card would
|
|
24
|
-
* be the block inside an inline, never the row's item, and never as tall as
|
|
25
|
-
* its row. The wrappers between this group and a card draw no box, then
|
|
26
|
-
* (storeWrapperCSS, adopted into the tree the group sits in, because no
|
|
27
|
-
* shadow-root rule reaches past a slotted element): the card is the row's
|
|
28
|
-
* item whichever way the page wrote it.
|
|
29
|
-
*
|
|
30
|
-
* 3.x's `count` -- the cards counted on every slotchange and reflected, so the
|
|
31
|
-
* stylesheet could give each a half, a third or a quarter -- is CSS now. The
|
|
32
|
-
* cards are one column below xl, each as wide as 3.x's card and centred, as
|
|
33
|
-
* v1's stacked below 1024; from xl they are one row of equal columns, as many
|
|
34
|
-
* as there are cards (a grid's auto-flow), which is what the count chose for
|
|
35
|
-
* two and three. 3.x's `padding: 0 240px` drew nothing -- the host was inline,
|
|
36
|
-
* so the padding never reached the row inside it -- and the row is the page
|
|
37
|
-
* column now (bd-ensemble), which collapses into a column it is already in.
|
|
38
|
-
*/
|
|
39
|
-
export declare class BdPricingGroup extends LitElement {
|
|
40
|
-
static styles: import("lit").CSSResult[];
|
|
41
|
-
connectedCallback(): void;
|
|
42
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
-
}
|
|
44
|
-
declare global {
|
|
45
|
-
interface HTMLElementTagNameMap {
|
|
46
|
-
"bd-pricing-group": BdPricingGroup;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import{adoptStyles as r}from"../shared/adopt-styles.js";import i,{storeWrapperCSS as a}from"./pricing-group.css.js";import{LitElement as o,html as s}from"lit";var c=class extends o{static{this.styles=[n,i]}connectedCallback(){super.connectedCallback(),r(this,`bd-pricing-group`,a)}render(){return s`
|
|
2
|
-
<div class="bd-ensemble">
|
|
3
|
-
<div class="band"><slot></slot></div>
|
|
4
|
-
</div>
|
|
5
|
-
`}};c=t([e(`bd-pricing-group`)],c);export{c as BdPricingGroup};
|
|
6
|
-
//# sourceMappingURL=pricing-group.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-group.js","names":["pricingGroupCSS","_decorate","__decorate","pricing_group_css_default","BdPricingGroup","LitElement","ensembleCSS","adoptStyles","storeWrapperCSS","defineElement"],"sources":["../../../../src/components/pricing-card/pricing-group.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { adoptStyles } from \"#shared/adopt-styles.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport pricingGroupCSS, { storeWrapperCSS } from \"./pricing-group.css.ts\";\n\n/**\n * A row of pricing cards on the brand band they are drawn for.\n *\n * <bd-pricing-group>\n * <bd-product product-id=\"ts_i\">\n * <bd-option devices=\"5\" subscription=\"1\" data-layer-event=\"info\">\n * <bd-pricing-card>…</bd-pricing-card>\n * </bd-option>\n * </bd-product>\n * <bd-pricing-card>…</bd-pricing-card>\n * </bd-pricing-group>\n *\n * It was 3.x's pricing-cards-container (v2's row), and it draws the band\n * bd-pricing-container drew behind v1's cards: the brand wash, the card\n * corner and an inset that holds the highlighted card's banner. The cards'\n * white ground and edge are drawn for that band (CLAUDE.md, A card's ground\n * and its edge), so v2's cards, which sat on the page, sit on it too.\n *\n * Its cards are its children, bare or wrapped in the bd-context, bd-product\n * and bd-option the store reads them through. Those set no display of their\n * own -- each is an inline box with a slot in it -- so a wrapped card would\n * be the block inside an inline, never the row's item, and never as tall as\n * its row. The wrappers between this group and a card draw no box, then\n * (storeWrapperCSS, adopted into the tree the group sits in, because no\n * shadow-root rule reaches past a slotted element): the card is the row's\n * item whichever way the page wrote it.\n *\n * 3.x's `count` -- the cards counted on every slotchange and reflected, so the\n * stylesheet could give each a half, a third or a quarter -- is CSS now. The\n * cards are one column below xl, each as wide as 3.x's card and centred, as\n * v1's stacked below 1024; from xl they are one row of equal columns, as many\n * as there are cards (a grid's auto-flow), which is what the count chose for\n * two and three. 3.x's `padding: 0 240px` drew nothing -- the host was inline,\n * so the padding never reached the row inside it -- and the row is the page\n * column now (bd-ensemble), which collapses into a column it is already in.\n */\n@defineElement(\"bd-pricing-group\")\nexport class BdPricingGroup extends LitElement {\n static styles = [ensembleCSS, pricingGroupCSS];\n\n connectedCallback() {\n super.connectedCallback();\n adoptStyles(this, \"bd-pricing-group\", storeWrapperCSS);\n }\n\n render() {\n return html`\n <div class=\"bd-ensemble\">\n <div class=\"band\"><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-pricing-group\": BdPricingGroup;\n }\n}\n"],"mappings":"A,4XA6CO,IAAMI,EAAN,cAA6BC,CAAW,C,OAC7B,KAAA,OAAA,CAACC,EAAaN,CAAe,C,CAE7C,mBAAoB,CAClB,MAAM,kBAAkB,EACxBO,EAAY,KAAM,mBAAoBC,CAAe,CACvD,CAEA,QAAS,CACP,MAAO,EAAI;;;;KAKb,CACF,EAhBC,EAAAP,EAAA,CAAAQ,EAAc,kBAAkB,CAAA,EAAAL,CAAA,E"}
|