@cloud-ru/ds-uikit-product-price-summary 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE +201 -0
- package/README.md +408 -0
- package/dist/cjs/components/ContentBlock/ContentBlock.d.ts +7 -0
- package/dist/cjs/components/ContentBlock/ContentBlock.js +24 -0
- package/dist/cjs/components/ContentBlock/index.d.ts +1 -0
- package/dist/cjs/components/ContentBlock/index.js +17 -0
- package/dist/cjs/components/ContentBlock/styles.module.css +12 -0
- package/dist/cjs/components/PriceSummary/PriceSummary.d.ts +22 -0
- package/dist/cjs/components/PriceSummary/PriceSummary.js +23 -0
- package/dist/cjs/components/PriceSummary/components/CoveredByGrantLabel/CoveredByGrantLabel.d.ts +5 -0
- package/dist/cjs/components/PriceSummary/components/CoveredByGrantLabel/CoveredByGrantLabel.js +16 -0
- package/dist/cjs/components/PriceSummary/components/CoveredByGrantLabel/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/CoveredByGrantLabel/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/CoveredByGrantLabel/styles.module.css +6 -0
- package/dist/cjs/components/PriceSummary/components/DiscountBlock/DiscountBlock.d.ts +5 -0
- package/dist/cjs/components/PriceSummary/components/DiscountBlock/DiscountBlock.js +17 -0
- package/dist/cjs/components/PriceSummary/components/DiscountBlock/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/DiscountBlock/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/DiscountBlock/styles.module.css +16 -0
- package/dist/cjs/components/PriceSummary/components/DiscountPercentCell/DiscountPercentCell.d.ts +5 -0
- package/dist/cjs/components/PriceSummary/components/DiscountPercentCell/DiscountPercentCell.js +16 -0
- package/dist/cjs/components/PriceSummary/components/DiscountPercentCell/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/DiscountPercentCell/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/DiscountPercentCell/styles.module.css +5 -0
- package/dist/cjs/components/PriceSummary/components/Divider/Divider.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/Divider/Divider.js +11 -0
- package/dist/cjs/components/PriceSummary/components/Divider/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/Divider/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/Divider/styles.module.css +6 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/HeaderBlock.d.ts +8 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/HeaderBlock.js +17 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/constants.d.ts +4 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/constants.js +7 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/styles.module.css +14 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/types.d.ts +3 -0
- package/dist/cjs/components/PriceSummary/components/HeaderBlock/types.js +2 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceBlock/InvoiceBlock.d.ts +6 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceBlock/InvoiceBlock.js +18 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceBlock/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceBlock/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceBlock/styles.module.css +13 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceDetailsBlock/InvoiceDetailsBlock.d.ts +5 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceDetailsBlock/InvoiceDetailsBlock.js +23 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceDetailsBlock/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceDetailsBlock/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceDetailsBlock/styles.module.css +16 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemBlock/InvoiceItemBlock.d.ts +7 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemBlock/InvoiceItemBlock.js +27 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemBlock/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemBlock/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemBlock/styles.module.css +36 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemLabelCell/InvoiceItemLabelCell.d.ts +5 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemLabelCell/InvoiceItemLabelCell.js +19 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemLabelCell/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemLabelCell/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/InvoiceItemLabelCell/styles.module.css +14 -0
- package/dist/cjs/components/PriceSummary/components/PeriodDropdown/PeriodDropdown.d.ts +7 -0
- package/dist/cjs/components/PriceSummary/components/PeriodDropdown/PeriodDropdown.js +26 -0
- package/dist/cjs/components/PriceSummary/components/PeriodDropdown/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/PeriodDropdown/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/PeriodDropdown/styles.module.css +15 -0
- package/dist/cjs/components/PriceSummary/components/TotalValueBlock/TotalValueBlock.d.ts +17 -0
- package/dist/cjs/components/PriceSummary/components/TotalValueBlock/TotalValueBlock.js +22 -0
- package/dist/cjs/components/PriceSummary/components/TotalValueBlock/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/components/TotalValueBlock/index.js +17 -0
- package/dist/cjs/components/PriceSummary/components/TotalValueBlock/styles.module.css +51 -0
- package/dist/cjs/components/PriceSummary/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummary/index.js +17 -0
- package/dist/cjs/components/PriceSummary/styles.module.css +227 -0
- package/dist/cjs/components/PriceSummarySmall/PriceSummarySmall.d.ts +18 -0
- package/dist/cjs/components/PriceSummarySmall/PriceSummarySmall.js +23 -0
- package/dist/cjs/components/PriceSummarySmall/index.d.ts +1 -0
- package/dist/cjs/components/PriceSummarySmall/index.js +17 -0
- package/dist/cjs/components/PriceSummarySmall/styles.module.css +242 -0
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/components/index.js +18 -0
- package/dist/cjs/constants.d.ts +34 -0
- package/dist/cjs/constants.js +37 -0
- package/dist/cjs/helpers/formatters.d.ts +2 -0
- package/dist/cjs/helpers/formatters.js +14 -0
- package/dist/cjs/helpers/index.d.ts +1 -0
- package/dist/cjs/helpers/index.js +17 -0
- package/dist/cjs/hooks/index.d.ts +1 -0
- package/dist/cjs/hooks/index.js +17 -0
- package/dist/cjs/hooks/usePeriodFormat.d.ts +5 -0
- package/dist/cjs/hooks/usePeriodFormat.js +21 -0
- package/dist/cjs/index.d.ts +5 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/locale/index.d.ts +107 -0
- package/dist/cjs/locale/index.js +58 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/style.css +673 -0
- package/dist/cjs/types.d.ts +79 -0
- package/dist/cjs/types.js +2 -0
- package/dist/cjs/utils/getAppearanceIcon.d.ts +2 -0
- package/dist/cjs/utils/getAppearanceIcon.js +25 -0
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.js +17 -0
- package/dist/esm/components/ContentBlock/ContentBlock.d.ts +7 -0
- package/dist/esm/components/ContentBlock/ContentBlock.js +18 -0
- package/dist/esm/components/ContentBlock/index.d.ts +1 -0
- package/dist/esm/components/ContentBlock/index.js +1 -0
- package/dist/esm/components/ContentBlock/styles.module.css +12 -0
- package/dist/esm/components/PriceSummary/PriceSummary.d.ts +22 -0
- package/dist/esm/components/PriceSummary/PriceSummary.js +17 -0
- package/dist/esm/components/PriceSummary/components/CoveredByGrantLabel/CoveredByGrantLabel.d.ts +5 -0
- package/dist/esm/components/PriceSummary/components/CoveredByGrantLabel/CoveredByGrantLabel.js +10 -0
- package/dist/esm/components/PriceSummary/components/CoveredByGrantLabel/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/CoveredByGrantLabel/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/CoveredByGrantLabel/styles.module.css +6 -0
- package/dist/esm/components/PriceSummary/components/DiscountBlock/DiscountBlock.d.ts +5 -0
- package/dist/esm/components/PriceSummary/components/DiscountBlock/DiscountBlock.js +11 -0
- package/dist/esm/components/PriceSummary/components/DiscountBlock/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/DiscountBlock/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/DiscountBlock/styles.module.css +16 -0
- package/dist/esm/components/PriceSummary/components/DiscountPercentCell/DiscountPercentCell.d.ts +5 -0
- package/dist/esm/components/PriceSummary/components/DiscountPercentCell/DiscountPercentCell.js +10 -0
- package/dist/esm/components/PriceSummary/components/DiscountPercentCell/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/DiscountPercentCell/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/DiscountPercentCell/styles.module.css +5 -0
- package/dist/esm/components/PriceSummary/components/Divider/Divider.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/Divider/Divider.js +5 -0
- package/dist/esm/components/PriceSummary/components/Divider/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/Divider/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/Divider/styles.module.css +6 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/HeaderBlock.d.ts +8 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/HeaderBlock.js +11 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/constants.d.ts +4 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/constants.js +4 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/styles.module.css +14 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/types.d.ts +3 -0
- package/dist/esm/components/PriceSummary/components/HeaderBlock/types.js +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceBlock/InvoiceBlock.d.ts +6 -0
- package/dist/esm/components/PriceSummary/components/InvoiceBlock/InvoiceBlock.js +12 -0
- package/dist/esm/components/PriceSummary/components/InvoiceBlock/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceBlock/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceBlock/styles.module.css +13 -0
- package/dist/esm/components/PriceSummary/components/InvoiceDetailsBlock/InvoiceDetailsBlock.d.ts +5 -0
- package/dist/esm/components/PriceSummary/components/InvoiceDetailsBlock/InvoiceDetailsBlock.js +17 -0
- package/dist/esm/components/PriceSummary/components/InvoiceDetailsBlock/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceDetailsBlock/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceDetailsBlock/styles.module.css +16 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemBlock/InvoiceItemBlock.d.ts +7 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemBlock/InvoiceItemBlock.js +21 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemBlock/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemBlock/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemBlock/styles.module.css +36 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemLabelCell/InvoiceItemLabelCell.d.ts +5 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemLabelCell/InvoiceItemLabelCell.js +13 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemLabelCell/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemLabelCell/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/InvoiceItemLabelCell/styles.module.css +14 -0
- package/dist/esm/components/PriceSummary/components/PeriodDropdown/PeriodDropdown.d.ts +7 -0
- package/dist/esm/components/PriceSummary/components/PeriodDropdown/PeriodDropdown.js +20 -0
- package/dist/esm/components/PriceSummary/components/PeriodDropdown/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/PeriodDropdown/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/PeriodDropdown/styles.module.css +15 -0
- package/dist/esm/components/PriceSummary/components/TotalValueBlock/TotalValueBlock.d.ts +17 -0
- package/dist/esm/components/PriceSummary/components/TotalValueBlock/TotalValueBlock.js +16 -0
- package/dist/esm/components/PriceSummary/components/TotalValueBlock/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/components/TotalValueBlock/index.js +1 -0
- package/dist/esm/components/PriceSummary/components/TotalValueBlock/styles.module.css +51 -0
- package/dist/esm/components/PriceSummary/index.d.ts +1 -0
- package/dist/esm/components/PriceSummary/index.js +1 -0
- package/dist/esm/components/PriceSummary/styles.module.css +227 -0
- package/dist/esm/components/PriceSummarySmall/PriceSummarySmall.d.ts +18 -0
- package/dist/esm/components/PriceSummarySmall/PriceSummarySmall.js +17 -0
- package/dist/esm/components/PriceSummarySmall/index.d.ts +1 -0
- package/dist/esm/components/PriceSummarySmall/index.js +1 -0
- package/dist/esm/components/PriceSummarySmall/styles.module.css +242 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/constants.d.ts +34 -0
- package/dist/esm/constants.js +34 -0
- package/dist/esm/helpers/formatters.d.ts +2 -0
- package/dist/esm/helpers/formatters.js +10 -0
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +1 -0
- package/dist/esm/hooks/index.d.ts +1 -0
- package/dist/esm/hooks/index.js +1 -0
- package/dist/esm/hooks/usePeriodFormat.d.ts +5 -0
- package/dist/esm/hooks/usePeriodFormat.js +17 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/locale/index.d.ts +107 -0
- package/dist/esm/locale/index.js +55 -0
- package/dist/esm/style.css +673 -0
- package/dist/esm/types.d.ts +79 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/utils/getAppearanceIcon.d.ts +2 -0
- package/dist/esm/utils/getAppearanceIcon.js +22 -0
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/tsconfig.cjs.tsbuildinfo +1 -0
- package/dist/tsconfig.esm.tsbuildinfo +1 -0
- package/package.json +61 -0
- package/src/components/ContentBlock/ContentBlock.tsx +41 -0
- package/src/components/ContentBlock/index.ts +1 -0
- package/src/components/ContentBlock/styles.module.scss +14 -0
- package/src/components/PriceSummary/PriceSummary.tsx +107 -0
- package/src/components/PriceSummary/components/CoveredByGrantLabel/CoveredByGrantLabel.tsx +32 -0
- package/src/components/PriceSummary/components/CoveredByGrantLabel/index.ts +1 -0
- package/src/components/PriceSummary/components/CoveredByGrantLabel/styles.module.scss +8 -0
- package/src/components/PriceSummary/components/DiscountBlock/DiscountBlock.tsx +42 -0
- package/src/components/PriceSummary/components/DiscountBlock/index.ts +1 -0
- package/src/components/PriceSummary/components/DiscountBlock/styles.module.scss +17 -0
- package/src/components/PriceSummary/components/DiscountPercentCell/DiscountPercentCell.tsx +30 -0
- package/src/components/PriceSummary/components/DiscountPercentCell/index.ts +1 -0
- package/src/components/PriceSummary/components/DiscountPercentCell/styles.module.scss +7 -0
- package/src/components/PriceSummary/components/Divider/Divider.tsx +5 -0
- package/src/components/PriceSummary/components/Divider/index.ts +1 -0
- package/src/components/PriceSummary/components/Divider/styles.module.scss +8 -0
- package/src/components/PriceSummary/components/HeaderBlock/HeaderBlock.tsx +41 -0
- package/src/components/PriceSummary/components/HeaderBlock/constants.ts +4 -0
- package/src/components/PriceSummary/components/HeaderBlock/index.ts +1 -0
- package/src/components/PriceSummary/components/HeaderBlock/styles.module.scss +16 -0
- package/src/components/PriceSummary/components/HeaderBlock/types.ts +5 -0
- package/src/components/PriceSummary/components/InvoiceBlock/InvoiceBlock.tsx +37 -0
- package/src/components/PriceSummary/components/InvoiceBlock/index.ts +1 -0
- package/src/components/PriceSummary/components/InvoiceBlock/styles.module.scss +15 -0
- package/src/components/PriceSummary/components/InvoiceDetailsBlock/InvoiceDetailsBlock.tsx +63 -0
- package/src/components/PriceSummary/components/InvoiceDetailsBlock/index.ts +1 -0
- package/src/components/PriceSummary/components/InvoiceDetailsBlock/styles.module.scss +18 -0
- package/src/components/PriceSummary/components/InvoiceItemBlock/InvoiceItemBlock.tsx +82 -0
- package/src/components/PriceSummary/components/InvoiceItemBlock/index.ts +1 -0
- package/src/components/PriceSummary/components/InvoiceItemBlock/styles.module.scss +42 -0
- package/src/components/PriceSummary/components/InvoiceItemLabelCell/InvoiceItemLabelCell.tsx +37 -0
- package/src/components/PriceSummary/components/InvoiceItemLabelCell/index.ts +1 -0
- package/src/components/PriceSummary/components/InvoiceItemLabelCell/styles.module.scss +16 -0
- package/src/components/PriceSummary/components/PeriodDropdown/PeriodDropdown.tsx +54 -0
- package/src/components/PriceSummary/components/PeriodDropdown/index.ts +1 -0
- package/src/components/PriceSummary/components/PeriodDropdown/styles.module.scss +18 -0
- package/src/components/PriceSummary/components/TotalValueBlock/TotalValueBlock.tsx +82 -0
- package/src/components/PriceSummary/components/TotalValueBlock/index.ts +1 -0
- package/src/components/PriceSummary/components/TotalValueBlock/styles.module.scss +54 -0
- package/src/components/PriceSummary/index.ts +1 -0
- package/src/components/PriceSummary/styles.module.scss +27 -0
- package/src/components/PriceSummarySmall/PriceSummarySmall.tsx +89 -0
- package/src/components/PriceSummarySmall/index.ts +1 -0
- package/src/components/PriceSummarySmall/styles.module.scss +42 -0
- package/src/components/index.ts +2 -0
- package/src/constants.ts +37 -0
- package/src/helpers/formatters.ts +12 -0
- package/src/helpers/index.ts +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/usePeriodFormat.ts +30 -0
- package/src/index.ts +5 -0
- package/src/locale/index.ts +59 -0
- package/src/types.ts +93 -0
- package/src/utils/getAppearanceIcon.tsx +26 -0
- package/src/utils/index.ts +1 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.acrylic{
|
|
3
|
+
pointer-events:none;
|
|
4
|
+
position:absolute;
|
|
5
|
+
inset:0;
|
|
6
|
+
border-radius:inherit;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.priceSummarySmall{
|
|
10
|
+
position:relative;
|
|
11
|
+
box-sizing:border-box;
|
|
12
|
+
width:100%;
|
|
13
|
+
color:var(--sn-theme-color-available-version-textMain, var(--sn-brand-color-text-version-main, #41424e));
|
|
14
|
+
border-radius:var(--sn-block-anatomy-m-borderRadius, var(--sn-brand-anatomy-radius-block-m, var(--sn-primitive-dimension-4, 4px)));
|
|
15
|
+
padding:var(--sn-block-anatomy-m-padding, var(--sn-density-spacing-block-m-padding, var(--sn-primitive-dimension-24, 24px)));
|
|
16
|
+
border-width:var(--sn-block-anatomy-m-borderWidth, var(--sn-primitive-strokeWeight-strokeRegular, 1px));
|
|
17
|
+
}
|
|
18
|
+
.priceSummarySmall[data-acrylic-appearance=primary][data-acrylic-level=default]{
|
|
19
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
20
|
+
}
|
|
21
|
+
.priceSummarySmall[data-acrylic-appearance=primary][data-acrylic-level=default] .acrylic{
|
|
22
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
23
|
+
background:var(--sn-theme-color-primary-background, var(--sn-brand-color-primary-90, var(--sn-brandRole-color-brandA-90, var(--sn-primitive-color-brandA-90, #edf7f1))));
|
|
24
|
+
}
|
|
25
|
+
.priceSummarySmall[data-acrylic-appearance=primary][data-acrylic-level="1Level"]{
|
|
26
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
27
|
+
}
|
|
28
|
+
.priceSummarySmall[data-acrylic-appearance=primary][data-acrylic-level="1Level"] .acrylic{
|
|
29
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
30
|
+
background:var(--sn-theme-color-primary-background1Level, var(--sn-brand-color-primary-95, var(--sn-brandRole-color-brandA-95, var(--sn-primitive-color-brandA-95, #f5fdf8))));
|
|
31
|
+
}
|
|
32
|
+
.priceSummarySmall[data-acrylic-appearance=primary][data-acrylic-level="2Level"]{
|
|
33
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
34
|
+
}
|
|
35
|
+
.priceSummarySmall[data-acrylic-appearance=primary][data-acrylic-level="2Level"] .acrylic{
|
|
36
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
37
|
+
background:var(--sn-theme-color-primary-background2Level, var(--sn-brand-color-primary-99, var(--sn-brandRole-color-brandA-99, var(--sn-primitive-color-brandA-99, #fbfffc))));
|
|
38
|
+
}
|
|
39
|
+
.priceSummarySmall[data-acrylic-appearance=neutral][data-acrylic-level=default]{
|
|
40
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
41
|
+
}
|
|
42
|
+
.priceSummarySmall[data-acrylic-appearance=neutral][data-acrylic-level=default] .acrylic{
|
|
43
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
44
|
+
background:var(--sn-theme-color-neutral-background, var(--sn-brand-color-neutral-90, var(--sn-primitive-color-gray-90, #eeeff3)));
|
|
45
|
+
}
|
|
46
|
+
.priceSummarySmall[data-acrylic-appearance=neutral][data-acrylic-level="1Level"]{
|
|
47
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
48
|
+
}
|
|
49
|
+
.priceSummarySmall[data-acrylic-appearance=neutral][data-acrylic-level="1Level"] .acrylic{
|
|
50
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
51
|
+
background:var(--sn-theme-color-neutral-background1Level, var(--sn-brand-color-neutral-95, var(--sn-primitive-color-gray-95, #fdfdfd)));
|
|
52
|
+
}
|
|
53
|
+
.priceSummarySmall[data-acrylic-appearance=neutral][data-acrylic-level="2Level"]{
|
|
54
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
55
|
+
}
|
|
56
|
+
.priceSummarySmall[data-acrylic-appearance=neutral][data-acrylic-level="2Level"] .acrylic{
|
|
57
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
58
|
+
background:var(--sn-theme-color-neutral-background2Level, var(--sn-brand-color-neutral-99, var(--sn-primitive-color-gray-99, #ffffff)));
|
|
59
|
+
}
|
|
60
|
+
.priceSummarySmall[data-acrylic-appearance=red][data-acrylic-level=default]{
|
|
61
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
62
|
+
}
|
|
63
|
+
.priceSummarySmall[data-acrylic-appearance=red][data-acrylic-level=default] .acrylic{
|
|
64
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
65
|
+
background:var(--sn-theme-color-red-background, var(--sn-primitive-color-red-90, #fee8e5));
|
|
66
|
+
}
|
|
67
|
+
.priceSummarySmall[data-acrylic-appearance=red][data-acrylic-level="1Level"]{
|
|
68
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
69
|
+
}
|
|
70
|
+
.priceSummarySmall[data-acrylic-appearance=red][data-acrylic-level="1Level"] .acrylic{
|
|
71
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
72
|
+
background:var(--sn-theme-color-red-background1Level, var(--sn-primitive-color-red-95, #fef5f1));
|
|
73
|
+
}
|
|
74
|
+
.priceSummarySmall[data-acrylic-appearance=red][data-acrylic-level="2Level"]{
|
|
75
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
76
|
+
}
|
|
77
|
+
.priceSummarySmall[data-acrylic-appearance=red][data-acrylic-level="2Level"] .acrylic{
|
|
78
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
79
|
+
background:var(--sn-theme-color-red-background2Level, var(--sn-primitive-color-red-99, #fffaf7));
|
|
80
|
+
}
|
|
81
|
+
.priceSummarySmall[data-acrylic-appearance=orange][data-acrylic-level=default]{
|
|
82
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
83
|
+
}
|
|
84
|
+
.priceSummarySmall[data-acrylic-appearance=orange][data-acrylic-level=default] .acrylic{
|
|
85
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
86
|
+
background:var(--sn-theme-color-orange-background, var(--sn-primitive-color-orange-90, #ffedcf));
|
|
87
|
+
}
|
|
88
|
+
.priceSummarySmall[data-acrylic-appearance=orange][data-acrylic-level="1Level"]{
|
|
89
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
90
|
+
}
|
|
91
|
+
.priceSummarySmall[data-acrylic-appearance=orange][data-acrylic-level="1Level"] .acrylic{
|
|
92
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
93
|
+
background:var(--sn-theme-color-orange-background1Level, var(--sn-primitive-color-orange-95, #fff6e5));
|
|
94
|
+
}
|
|
95
|
+
.priceSummarySmall[data-acrylic-appearance=orange][data-acrylic-level="2Level"]{
|
|
96
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
97
|
+
}
|
|
98
|
+
.priceSummarySmall[data-acrylic-appearance=orange][data-acrylic-level="2Level"] .acrylic{
|
|
99
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
100
|
+
background:var(--sn-theme-color-orange-background2Level, var(--sn-primitive-color-orange-99, #fffcf4));
|
|
101
|
+
}
|
|
102
|
+
.priceSummarySmall[data-acrylic-appearance=yellow][data-acrylic-level=default]{
|
|
103
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
104
|
+
}
|
|
105
|
+
.priceSummarySmall[data-acrylic-appearance=yellow][data-acrylic-level=default] .acrylic{
|
|
106
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
107
|
+
background:var(--sn-theme-color-yellow-background, var(--sn-primitive-color-yellow-90, #fdf4cc));
|
|
108
|
+
}
|
|
109
|
+
.priceSummarySmall[data-acrylic-appearance=yellow][data-acrylic-level="1Level"]{
|
|
110
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
111
|
+
}
|
|
112
|
+
.priceSummarySmall[data-acrylic-appearance=yellow][data-acrylic-level="1Level"] .acrylic{
|
|
113
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
114
|
+
background:var(--sn-theme-color-yellow-background1Level, var(--sn-primitive-color-yellow-95, #fffbe6));
|
|
115
|
+
}
|
|
116
|
+
.priceSummarySmall[data-acrylic-appearance=yellow][data-acrylic-level="2Level"]{
|
|
117
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
118
|
+
}
|
|
119
|
+
.priceSummarySmall[data-acrylic-appearance=yellow][data-acrylic-level="2Level"] .acrylic{
|
|
120
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
121
|
+
background:var(--sn-theme-color-yellow-background2Level, var(--sn-primitive-color-yellow-99, #fffef6));
|
|
122
|
+
}
|
|
123
|
+
.priceSummarySmall[data-acrylic-appearance=green][data-acrylic-level=default]{
|
|
124
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
125
|
+
}
|
|
126
|
+
.priceSummarySmall[data-acrylic-appearance=green][data-acrylic-level=default] .acrylic{
|
|
127
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
128
|
+
background:var(--sn-theme-color-green-background, var(--sn-primitive-color-green-90, #e4f5df));
|
|
129
|
+
}
|
|
130
|
+
.priceSummarySmall[data-acrylic-appearance=green][data-acrylic-level="1Level"]{
|
|
131
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
132
|
+
}
|
|
133
|
+
.priceSummarySmall[data-acrylic-appearance=green][data-acrylic-level="1Level"] .acrylic{
|
|
134
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
135
|
+
background:var(--sn-theme-color-green-background1Level, var(--sn-primitive-color-green-95, #f1faed));
|
|
136
|
+
}
|
|
137
|
+
.priceSummarySmall[data-acrylic-appearance=green][data-acrylic-level="2Level"]{
|
|
138
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
139
|
+
}
|
|
140
|
+
.priceSummarySmall[data-acrylic-appearance=green][data-acrylic-level="2Level"] .acrylic{
|
|
141
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
142
|
+
background:var(--sn-theme-color-green-background2Level, var(--sn-primitive-color-green-99, #fcfefa));
|
|
143
|
+
}
|
|
144
|
+
.priceSummarySmall[data-acrylic-appearance=blue][data-acrylic-level=default]{
|
|
145
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
146
|
+
}
|
|
147
|
+
.priceSummarySmall[data-acrylic-appearance=blue][data-acrylic-level=default] .acrylic{
|
|
148
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
149
|
+
background:var(--sn-theme-color-blue-background, var(--sn-primitive-color-blue-90, #e6f4fd));
|
|
150
|
+
}
|
|
151
|
+
.priceSummarySmall[data-acrylic-appearance=blue][data-acrylic-level="1Level"]{
|
|
152
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
153
|
+
}
|
|
154
|
+
.priceSummarySmall[data-acrylic-appearance=blue][data-acrylic-level="1Level"] .acrylic{
|
|
155
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
156
|
+
background:var(--sn-theme-color-blue-background1Level, var(--sn-primitive-color-blue-95, #f2f9ff));
|
|
157
|
+
}
|
|
158
|
+
.priceSummarySmall[data-acrylic-appearance=blue][data-acrylic-level="2Level"]{
|
|
159
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
160
|
+
}
|
|
161
|
+
.priceSummarySmall[data-acrylic-appearance=blue][data-acrylic-level="2Level"] .acrylic{
|
|
162
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
163
|
+
background:var(--sn-theme-color-blue-background2Level, var(--sn-primitive-color-blue-99, #fdfeff));
|
|
164
|
+
}
|
|
165
|
+
.priceSummarySmall[data-acrylic-appearance=violet][data-acrylic-level=default]{
|
|
166
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
167
|
+
}
|
|
168
|
+
.priceSummarySmall[data-acrylic-appearance=violet][data-acrylic-level=default] .acrylic{
|
|
169
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
170
|
+
background:var(--sn-theme-color-violet-background, var(--sn-primitive-color-violet-90, #f3edfc));
|
|
171
|
+
}
|
|
172
|
+
.priceSummarySmall[data-acrylic-appearance=violet][data-acrylic-level="1Level"]{
|
|
173
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
174
|
+
}
|
|
175
|
+
.priceSummarySmall[data-acrylic-appearance=violet][data-acrylic-level="1Level"] .acrylic{
|
|
176
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
177
|
+
background:var(--sn-theme-color-violet-background1Level, var(--sn-primitive-color-violet-95, #f9f5ff));
|
|
178
|
+
}
|
|
179
|
+
.priceSummarySmall[data-acrylic-appearance=violet][data-acrylic-level="2Level"]{
|
|
180
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
181
|
+
}
|
|
182
|
+
.priceSummarySmall[data-acrylic-appearance=violet][data-acrylic-level="2Level"] .acrylic{
|
|
183
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
184
|
+
background:var(--sn-theme-color-violet-background2Level, var(--sn-primitive-color-violet-99, #fdfdfd));
|
|
185
|
+
}
|
|
186
|
+
.priceSummarySmall[data-acrylic-appearance=pink][data-acrylic-level=default]{
|
|
187
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground, 0) / 2));
|
|
188
|
+
}
|
|
189
|
+
.priceSummarySmall[data-acrylic-appearance=pink][data-acrylic-level=default] .acrylic{
|
|
190
|
+
opacity:var(--sn-acrylic-opacityBackground, 1);
|
|
191
|
+
background:var(--sn-theme-color-pink-background, var(--sn-primitive-color-pink-90, #fceaf0));
|
|
192
|
+
}
|
|
193
|
+
.priceSummarySmall[data-acrylic-appearance=pink][data-acrylic-level="1Level"]{
|
|
194
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
195
|
+
}
|
|
196
|
+
.priceSummarySmall[data-acrylic-appearance=pink][data-acrylic-level="1Level"] .acrylic{
|
|
197
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
198
|
+
background:var(--sn-theme-color-pink-background1Level, var(--sn-primitive-color-pink-95, #fff5f7));
|
|
199
|
+
}
|
|
200
|
+
.priceSummarySmall[data-acrylic-appearance=pink][data-acrylic-level="2Level"]{
|
|
201
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground2Level, 0) / 2));
|
|
202
|
+
}
|
|
203
|
+
.priceSummarySmall[data-acrylic-appearance=pink][data-acrylic-level="2Level"] .acrylic{
|
|
204
|
+
opacity:var(--sn-acrylic-opacityBackground2Level, 1);
|
|
205
|
+
background:var(--sn-theme-color-pink-background2Level, var(--sn-primitive-color-pink-99, #fdfcfc));
|
|
206
|
+
}
|
|
207
|
+
.priceSummarySmall[data-acrylic-appearance=transparent]{
|
|
208
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
209
|
+
}
|
|
210
|
+
.priceSummarySmall[data-acrylic-appearance=transparent] .acrylic{
|
|
211
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
212
|
+
background:transparent;
|
|
213
|
+
}
|
|
214
|
+
.priceSummarySmall[data-acrylic-appearance=decorTransparent]{
|
|
215
|
+
backdrop-filter:blur(calc(var(--sn-acrylic-blurBackground1Level, 0) / 2));
|
|
216
|
+
}
|
|
217
|
+
.priceSummarySmall[data-acrylic-appearance=decorTransparent] .acrylic{
|
|
218
|
+
opacity:var(--sn-acrylic-opacityBackground1Level, 1);
|
|
219
|
+
background:var(--sn-theme-color-neutral-decorTransparent, var(--sn-brand-color-neutral-transparent-forLightMode, rgba(124, 131, 182, 0.0784313725)));
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.content{
|
|
223
|
+
position:relative;
|
|
224
|
+
display:flex;
|
|
225
|
+
flex-direction:column;
|
|
226
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.value{
|
|
230
|
+
display:flex;
|
|
231
|
+
gap:var(--sn-primitive-dimension-4, 4px);
|
|
232
|
+
align-items:center;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.icon{
|
|
236
|
+
flex-shrink:0;
|
|
237
|
+
color:var(--sn-theme-color-available-version-textTertiary, var(--sn-brand-color-text-version-tertiary, rgba(65, 66, 78, 0.5490196078)));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.docLink{
|
|
241
|
+
align-self:flex-start;
|
|
242
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PriceSummary"), exports);
|
|
18
|
+
__exportStar(require("./PriceSummarySmall"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const TEST_IDS: {
|
|
2
|
+
readonly priceSummary: "price-summary";
|
|
3
|
+
readonly priceSummarySmall: "price-summary-small";
|
|
4
|
+
readonly periodDropdown: "price-summary-period-dropdown";
|
|
5
|
+
readonly periodOptionYear: "price-summary-period-option-year";
|
|
6
|
+
readonly periodOptionMonth: "price-summary-period-option-month";
|
|
7
|
+
readonly periodOptionDay: "price-summary-period-option-day";
|
|
8
|
+
readonly periodOptionHour: "price-summary-period-option-hour";
|
|
9
|
+
readonly periodOptionMinute: "price-summary-period-option-minute";
|
|
10
|
+
readonly contentBlockRetry: "price-summary-content-block-retry";
|
|
11
|
+
readonly loadingBlock: "price-summary-loading-block";
|
|
12
|
+
readonly orderDetails: "price-summary-order-details";
|
|
13
|
+
readonly orderDetailsContent: "price-summary-order-details-content";
|
|
14
|
+
};
|
|
15
|
+
export declare const APPEARANCE_STATE: {
|
|
16
|
+
readonly Default: "default";
|
|
17
|
+
readonly UserError: "userError";
|
|
18
|
+
readonly SystemError: "systemError";
|
|
19
|
+
readonly Warning: "warning";
|
|
20
|
+
};
|
|
21
|
+
export declare const PRICE_PERIOD: {
|
|
22
|
+
readonly Year: "year";
|
|
23
|
+
readonly Month: "month";
|
|
24
|
+
readonly Day: "day";
|
|
25
|
+
readonly Hour: "hour";
|
|
26
|
+
readonly Minute: "minute";
|
|
27
|
+
};
|
|
28
|
+
export declare const PERIOD_OPTION_TEST_IDS: {
|
|
29
|
+
readonly year: "price-summary-period-option-year";
|
|
30
|
+
readonly month: "price-summary-period-option-month";
|
|
31
|
+
readonly day: "price-summary-period-option-day";
|
|
32
|
+
readonly hour: "price-summary-period-option-hour";
|
|
33
|
+
readonly minute: "price-summary-period-option-minute";
|
|
34
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PERIOD_OPTION_TEST_IDS = exports.PRICE_PERIOD = exports.APPEARANCE_STATE = exports.TEST_IDS = void 0;
|
|
4
|
+
exports.TEST_IDS = {
|
|
5
|
+
priceSummary: 'price-summary',
|
|
6
|
+
priceSummarySmall: 'price-summary-small',
|
|
7
|
+
periodDropdown: 'price-summary-period-dropdown',
|
|
8
|
+
periodOptionYear: 'price-summary-period-option-year',
|
|
9
|
+
periodOptionMonth: 'price-summary-period-option-month',
|
|
10
|
+
periodOptionDay: 'price-summary-period-option-day',
|
|
11
|
+
periodOptionHour: 'price-summary-period-option-hour',
|
|
12
|
+
periodOptionMinute: 'price-summary-period-option-minute',
|
|
13
|
+
contentBlockRetry: 'price-summary-content-block-retry',
|
|
14
|
+
loadingBlock: 'price-summary-loading-block',
|
|
15
|
+
orderDetails: 'price-summary-order-details',
|
|
16
|
+
orderDetailsContent: 'price-summary-order-details-content',
|
|
17
|
+
};
|
|
18
|
+
exports.APPEARANCE_STATE = {
|
|
19
|
+
Default: 'default',
|
|
20
|
+
UserError: 'userError',
|
|
21
|
+
SystemError: 'systemError',
|
|
22
|
+
Warning: 'warning',
|
|
23
|
+
};
|
|
24
|
+
exports.PRICE_PERIOD = {
|
|
25
|
+
Year: 'year',
|
|
26
|
+
Month: 'month',
|
|
27
|
+
Day: 'day',
|
|
28
|
+
Hour: 'hour',
|
|
29
|
+
Minute: 'minute',
|
|
30
|
+
};
|
|
31
|
+
exports.PERIOD_OPTION_TEST_IDS = {
|
|
32
|
+
[exports.PRICE_PERIOD.Year]: exports.TEST_IDS.periodOptionYear,
|
|
33
|
+
[exports.PRICE_PERIOD.Month]: exports.TEST_IDS.periodOptionMonth,
|
|
34
|
+
[exports.PRICE_PERIOD.Day]: exports.TEST_IDS.periodOptionDay,
|
|
35
|
+
[exports.PRICE_PERIOD.Hour]: exports.TEST_IDS.periodOptionHour,
|
|
36
|
+
[exports.PRICE_PERIOD.Minute]: exports.TEST_IDS.periodOptionMinute,
|
|
37
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatCurrency = formatCurrency;
|
|
4
|
+
exports.formatQuantity = formatQuantity;
|
|
5
|
+
const ft_formatters_1 = require("@cloud-ru/ft-formatters");
|
|
6
|
+
function formatCurrency(value) {
|
|
7
|
+
return (0, ft_formatters_1.formatNumber)(value.toFixed(2), {
|
|
8
|
+
precision: 2,
|
|
9
|
+
type: ft_formatters_1.formatNumber.types.Currency,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function formatQuantity(value) {
|
|
13
|
+
return typeof value === 'string' ? value : `×${value}`;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './formatters';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./formatters"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './usePeriodFormat';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./usePeriodFormat"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PricePeriod } from '../types';
|
|
2
|
+
type PeriodLabelKey = 'pricePeriodYear' | 'pricePeriodMonth' | 'pricePeriodDay' | 'pricePeriodHour' | 'pricePeriodMinute';
|
|
3
|
+
export declare function formatPeriodLabel(t: (key: PeriodLabelKey) => string, period: PricePeriod): string;
|
|
4
|
+
export declare function usePeriodFormat(): (period: PricePeriod) => string;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatPeriodLabel = formatPeriodLabel;
|
|
4
|
+
exports.usePeriodFormat = usePeriodFormat;
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
const locale_1 = require("../locale");
|
|
8
|
+
const PERIOD_LABEL_KEYS = {
|
|
9
|
+
[constants_1.PRICE_PERIOD.Year]: 'pricePeriodYear',
|
|
10
|
+
[constants_1.PRICE_PERIOD.Month]: 'pricePeriodMonth',
|
|
11
|
+
[constants_1.PRICE_PERIOD.Day]: 'pricePeriodDay',
|
|
12
|
+
[constants_1.PRICE_PERIOD.Hour]: 'pricePeriodHour',
|
|
13
|
+
[constants_1.PRICE_PERIOD.Minute]: 'pricePeriodMinute',
|
|
14
|
+
};
|
|
15
|
+
function formatPeriodLabel(t, period) {
|
|
16
|
+
return t(PERIOD_LABEL_KEYS[period]);
|
|
17
|
+
}
|
|
18
|
+
function usePeriodFormat() {
|
|
19
|
+
const { t } = locale_1.priceSummaryLocale.useTranslations();
|
|
20
|
+
return (0, react_1.useCallback)((period) => formatPeriodLabel(t, period), [t]);
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./components"), exports);
|
|
18
|
+
__exportStar(require("./constants"), exports);
|
|
19
|
+
__exportStar(require("./hooks"), exports);
|
|
20
|
+
__exportStar(require("./types"), exports);
|
|
21
|
+
__exportStar(require("./locale"), exports);
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
declare const PRICE_SUMMARY_MESSAGES: {
|
|
2
|
+
readonly 'en-GB': {
|
|
3
|
+
readonly total: "Total";
|
|
4
|
+
readonly vat: "VAT included";
|
|
5
|
+
readonly vatExcluded: "VAT excluded";
|
|
6
|
+
readonly docsLink: "Calculation details";
|
|
7
|
+
readonly costLink: "Cost";
|
|
8
|
+
readonly dataError: "Failed to load data";
|
|
9
|
+
readonly basePrice: "Base price";
|
|
10
|
+
readonly discount: "Discount";
|
|
11
|
+
readonly orderDetails: "Order breakdown";
|
|
12
|
+
readonly price: "Cost";
|
|
13
|
+
readonly notAvailable: "N/A";
|
|
14
|
+
readonly pricePeriodYear: "per year";
|
|
15
|
+
readonly pricePeriodMonth: "per month";
|
|
16
|
+
readonly pricePeriodDay: "per day";
|
|
17
|
+
readonly pricePeriodHour: "per hour";
|
|
18
|
+
readonly pricePeriodMinute: "per minute";
|
|
19
|
+
readonly totalSumFromPrefix: "from";
|
|
20
|
+
readonly increasedPrice: "Increased by";
|
|
21
|
+
readonly decreasedPrice: "Decreased by";
|
|
22
|
+
readonly coveredByGrant: "Covered by grants";
|
|
23
|
+
readonly notCoveredByGrant: "Not covered by grant";
|
|
24
|
+
readonly coveredByGrantTooltip: "Amount is covered by grant";
|
|
25
|
+
readonly notCoveredByGrantTooltip: "Amount is not covered by grant";
|
|
26
|
+
};
|
|
27
|
+
readonly 'ru-RU': {
|
|
28
|
+
readonly total: "Итого";
|
|
29
|
+
readonly vat: "с НДС";
|
|
30
|
+
readonly vatExcluded: "без НДС";
|
|
31
|
+
readonly docsLink: "Подробнее о расчёте";
|
|
32
|
+
readonly costLink: "Стоимость";
|
|
33
|
+
readonly dataError: "Не удалось загрузить данные";
|
|
34
|
+
readonly basePrice: "Базовая цена";
|
|
35
|
+
readonly discount: "Скидка";
|
|
36
|
+
readonly orderDetails: "Детализация заказа";
|
|
37
|
+
readonly price: "Стоимость";
|
|
38
|
+
readonly notAvailable: "н/д";
|
|
39
|
+
readonly pricePeriodYear: "в год";
|
|
40
|
+
readonly pricePeriodMonth: "в месяц";
|
|
41
|
+
readonly pricePeriodDay: "в день";
|
|
42
|
+
readonly pricePeriodHour: "в час";
|
|
43
|
+
readonly pricePeriodMinute: "в минуту";
|
|
44
|
+
readonly totalSumFromPrefix: "от";
|
|
45
|
+
readonly increasedPrice: "Повышение на";
|
|
46
|
+
readonly decreasedPrice: "Снижение на";
|
|
47
|
+
readonly coveredByGrant: "Покрывается грантами";
|
|
48
|
+
readonly notCoveredByGrant: "Не покрыто грантом";
|
|
49
|
+
readonly coveredByGrantTooltip: "Сумма покрыта грантом";
|
|
50
|
+
readonly notCoveredByGrantTooltip: "Сумма не покрыта грантом";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export type PriceSummaryMessages = (typeof PRICE_SUMMARY_MESSAGES)['en-GB'];
|
|
54
|
+
/** locale компонента PriceSummary: `priceSummaryLocale.useTranslations()` в коде, `priceSummaryLocale.extend(...)` в сервисе. */
|
|
55
|
+
export declare const priceSummaryLocale: import("@cloud-ru/ds-locale").DefinedLocale<{
|
|
56
|
+
readonly 'en-GB': {
|
|
57
|
+
readonly total: "Total";
|
|
58
|
+
readonly vat: "VAT included";
|
|
59
|
+
readonly vatExcluded: "VAT excluded";
|
|
60
|
+
readonly docsLink: "Calculation details";
|
|
61
|
+
readonly costLink: "Cost";
|
|
62
|
+
readonly dataError: "Failed to load data";
|
|
63
|
+
readonly basePrice: "Base price";
|
|
64
|
+
readonly discount: "Discount";
|
|
65
|
+
readonly orderDetails: "Order breakdown";
|
|
66
|
+
readonly price: "Cost";
|
|
67
|
+
readonly notAvailable: "N/A";
|
|
68
|
+
readonly pricePeriodYear: "per year";
|
|
69
|
+
readonly pricePeriodMonth: "per month";
|
|
70
|
+
readonly pricePeriodDay: "per day";
|
|
71
|
+
readonly pricePeriodHour: "per hour";
|
|
72
|
+
readonly pricePeriodMinute: "per minute";
|
|
73
|
+
readonly totalSumFromPrefix: "from";
|
|
74
|
+
readonly increasedPrice: "Increased by";
|
|
75
|
+
readonly decreasedPrice: "Decreased by";
|
|
76
|
+
readonly coveredByGrant: "Covered by grants";
|
|
77
|
+
readonly notCoveredByGrant: "Not covered by grant";
|
|
78
|
+
readonly coveredByGrantTooltip: "Amount is covered by grant";
|
|
79
|
+
readonly notCoveredByGrantTooltip: "Amount is not covered by grant";
|
|
80
|
+
};
|
|
81
|
+
readonly 'ru-RU': {
|
|
82
|
+
readonly total: "Итого";
|
|
83
|
+
readonly vat: "с НДС";
|
|
84
|
+
readonly vatExcluded: "без НДС";
|
|
85
|
+
readonly docsLink: "Подробнее о расчёте";
|
|
86
|
+
readonly costLink: "Стоимость";
|
|
87
|
+
readonly dataError: "Не удалось загрузить данные";
|
|
88
|
+
readonly basePrice: "Базовая цена";
|
|
89
|
+
readonly discount: "Скидка";
|
|
90
|
+
readonly orderDetails: "Детализация заказа";
|
|
91
|
+
readonly price: "Стоимость";
|
|
92
|
+
readonly notAvailable: "н/д";
|
|
93
|
+
readonly pricePeriodYear: "в год";
|
|
94
|
+
readonly pricePeriodMonth: "в месяц";
|
|
95
|
+
readonly pricePeriodDay: "в день";
|
|
96
|
+
readonly pricePeriodHour: "в час";
|
|
97
|
+
readonly pricePeriodMinute: "в минуту";
|
|
98
|
+
readonly totalSumFromPrefix: "от";
|
|
99
|
+
readonly increasedPrice: "Повышение на";
|
|
100
|
+
readonly decreasedPrice: "Снижение на";
|
|
101
|
+
readonly coveredByGrant: "Покрывается грантами";
|
|
102
|
+
readonly notCoveredByGrant: "Не покрыто грантом";
|
|
103
|
+
readonly coveredByGrantTooltip: "Сумма покрыта грантом";
|
|
104
|
+
readonly notCoveredByGrantTooltip: "Сумма не покрыта грантом";
|
|
105
|
+
};
|
|
106
|
+
}, "@cloud-ru/ds-uikit-product-price-summary">;
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.priceSummaryLocale = void 0;
|
|
4
|
+
const locale_1 = require("@cloud-ru/ds-locale");
|
|
5
|
+
const PRICE_SUMMARY_MESSAGES = (0, locale_1.defineMessages)({
|
|
6
|
+
'en-GB': {
|
|
7
|
+
total: 'Total',
|
|
8
|
+
vat: 'VAT included',
|
|
9
|
+
vatExcluded: 'VAT excluded',
|
|
10
|
+
docsLink: 'Calculation details',
|
|
11
|
+
costLink: 'Cost',
|
|
12
|
+
dataError: 'Failed to load data',
|
|
13
|
+
basePrice: 'Base price',
|
|
14
|
+
discount: 'Discount',
|
|
15
|
+
orderDetails: 'Order breakdown',
|
|
16
|
+
price: 'Cost',
|
|
17
|
+
notAvailable: 'N/A',
|
|
18
|
+
pricePeriodYear: 'per year',
|
|
19
|
+
pricePeriodMonth: 'per month',
|
|
20
|
+
pricePeriodDay: 'per day',
|
|
21
|
+
pricePeriodHour: 'per hour',
|
|
22
|
+
pricePeriodMinute: 'per minute',
|
|
23
|
+
totalSumFromPrefix: 'from',
|
|
24
|
+
increasedPrice: 'Increased by',
|
|
25
|
+
decreasedPrice: 'Decreased by',
|
|
26
|
+
coveredByGrant: 'Covered by grants',
|
|
27
|
+
notCoveredByGrant: 'Not covered by grant',
|
|
28
|
+
coveredByGrantTooltip: 'Amount is covered by grant',
|
|
29
|
+
notCoveredByGrantTooltip: 'Amount is not covered by grant',
|
|
30
|
+
},
|
|
31
|
+
'ru-RU': {
|
|
32
|
+
total: 'Итого',
|
|
33
|
+
vat: 'с НДС',
|
|
34
|
+
vatExcluded: 'без НДС',
|
|
35
|
+
docsLink: 'Подробнее о расчёте',
|
|
36
|
+
costLink: 'Стоимость',
|
|
37
|
+
dataError: 'Не удалось загрузить данные',
|
|
38
|
+
basePrice: 'Базовая цена',
|
|
39
|
+
discount: 'Скидка',
|
|
40
|
+
orderDetails: 'Детализация заказа',
|
|
41
|
+
price: 'Стоимость',
|
|
42
|
+
notAvailable: 'н/д',
|
|
43
|
+
pricePeriodYear: 'в год',
|
|
44
|
+
pricePeriodMonth: 'в месяц',
|
|
45
|
+
pricePeriodDay: 'в день',
|
|
46
|
+
pricePeriodHour: 'в час',
|
|
47
|
+
pricePeriodMinute: 'в минуту',
|
|
48
|
+
totalSumFromPrefix: 'от',
|
|
49
|
+
increasedPrice: 'Повышение на',
|
|
50
|
+
decreasedPrice: 'Снижение на',
|
|
51
|
+
coveredByGrant: 'Покрывается грантами',
|
|
52
|
+
notCoveredByGrant: 'Не покрыто грантом',
|
|
53
|
+
coveredByGrantTooltip: 'Сумма покрыта грантом',
|
|
54
|
+
notCoveredByGrantTooltip: 'Сумма не покрыта грантом',
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
/** locale компонента PriceSummary: `priceSummaryLocale.useTranslations()` в коде, `priceSummaryLocale.extend(...)` в сервисе. */
|
|
58
|
+
exports.priceSummaryLocale = (0, locale_1.defineLocale)('@cloud-ru/ds-uikit-product-price-summary', PRICE_SUMMARY_MESSAGES);
|