@ultraviolet/plus 3.4.5 → 3.5.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/dist/.vite/license.md +3 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/defineProperty.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js +28 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js +18 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPrimitive.js +17 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPropertyKey.js +12 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/typeof.js +14 -0
- package/dist/_virtual/_rolldown/runtime.js +9 -0
- package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.js +111 -137
- package/dist/components/CodeEditor/styles.css.js +18 -15
- package/dist/components/ContentCard/Skeleton.d.ts.map +1 -1
- package/dist/components/ContentCard/Skeleton.js +31 -27
- package/dist/components/ContentCard/index.js +107 -140
- package/dist/components/ContentCard/styles.css.d.ts +1 -1
- package/dist/components/ContentCard/styles.css.js +24 -19
- package/dist/components/ContentCardGroup/Card.js +55 -69
- package/dist/components/ContentCardGroup/SkeletonCard.js +28 -14
- package/dist/components/ContentCardGroup/index.d.ts +7 -7
- package/dist/components/ContentCardGroup/index.js +20 -25
- package/dist/components/ContentCardGroup/styles.css.js +6 -11
- package/dist/components/Conversation/index.d.ts +29 -23
- package/dist/components/Conversation/index.d.ts.map +1 -1
- package/dist/components/Conversation/index.js +46 -48
- package/dist/components/Conversation/styles.css.js +18 -13
- package/dist/components/CustomerSatisfaction/assets/1-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/1-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
- package/dist/components/CustomerSatisfaction/index.d.ts.map +1 -1
- package/dist/components/CustomerSatisfaction/index.js +85 -100
- package/dist/components/CustomerSatisfaction/styles.css.js +18 -6
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +39 -52
- package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Item.js +223 -323
- package/dist/components/EstimateCost/Components/LineThrough.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/LineThrough.js +16 -16
- package/dist/components/EstimateCost/Components/NumberInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +33 -37
- package/dist/components/EstimateCost/Components/Region.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Region.js +34 -57
- package/dist/components/EstimateCost/Components/Regular.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Regular.js +21 -26
- package/dist/components/EstimateCost/Components/Strong.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Strong.js +14 -19
- package/dist/components/EstimateCost/Components/Unit.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Unit.js +47 -40
- package/dist/components/EstimateCost/Components/Zone.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Zone.js +33 -55
- package/dist/components/EstimateCost/Components/components.css.js +122 -86
- package/dist/components/EstimateCost/EstimateCost.d.ts +138 -121
- package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCost.js +79 -124
- package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +284 -394
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +30 -37
- package/dist/components/EstimateCost/OverlayComponent.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +95 -93
- package/dist/components/EstimateCost/OverlayContext.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +12 -10
- package/dist/components/EstimateCost/constants.js +19 -21
- package/dist/components/EstimateCost/helper.d.ts +2 -2
- package/dist/components/EstimateCost/helper.d.ts.map +1 -1
- package/dist/components/EstimateCost/helper.js +9 -14
- package/dist/components/EstimateCost/locales/en.js +24 -23
- package/dist/components/EstimateCost/styles.css.d.ts +2 -2
- package/dist/components/EstimateCost/styles.css.js +50 -36
- package/dist/components/EstimateCost/types.d.ts +1 -1
- package/dist/components/EstimateCost/types.d.ts.map +1 -1
- package/dist/components/FAQ/index.d.ts.map +1 -1
- package/dist/components/FAQ/index.js +37 -31
- package/dist/components/FAQ/styles.css.js +6 -4
- package/dist/components/InfoTable/InfoTable.d.ts +10 -13
- package/dist/components/InfoTable/InfoTable.d.ts.map +1 -1
- package/dist/components/InfoTable/InfoTable.js +24 -15
- package/dist/components/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Cell.js +37 -45
- package/dist/components/InfoTable/components/Row.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Row.js +19 -27
- package/dist/components/InfoTable/context.d.ts +1 -1
- package/dist/components/InfoTable/context.d.ts.map +1 -1
- package/dist/components/InfoTable/context.js +5 -3
- package/dist/components/InfoTable/styles.css.js +6 -10
- package/dist/components/Navigation/Footer.d.ts.map +1 -1
- package/dist/components/Navigation/Footer.js +59 -75
- package/dist/components/Navigation/Header.d.ts.map +1 -1
- package/dist/components/Navigation/Header.js +20 -17
- package/dist/components/Navigation/Navigation.d.ts +46 -43
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +23 -27
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationContent.js +100 -138
- package/dist/components/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationProvider.js +116 -165
- package/dist/components/Navigation/components/Group.d.ts.map +1 -1
- package/dist/components/Navigation/components/Group.js +36 -43
- package/dist/components/Navigation/components/Item.d.ts +1 -1
- package/dist/components/Navigation/components/Item.d.ts.map +1 -1
- package/dist/components/Navigation/components/Item.js +440 -607
- package/dist/components/Navigation/components/ItemProvider.d.ts.map +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +13 -8
- package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/Navigation/components/PinnedItems.js +101 -132
- package/dist/components/Navigation/components/Separator.js +10 -7
- package/dist/components/Navigation/components/ShowHide.d.ts +1 -1
- package/dist/components/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/components/Navigation/components/ShowHide.js +51 -75
- package/dist/components/Navigation/components/items.css.js +72 -30
- package/dist/components/Navigation/components/styles.css.js +23 -13
- package/dist/components/Navigation/locales/en.js +12 -11
- package/dist/components/Navigation/styles.css.js +29 -14
- package/dist/components/Navigation/variables.css.js +4 -4
- package/dist/components/OfferList/OfferList.d.ts +5 -51
- package/dist/components/OfferList/OfferList.d.ts.map +1 -1
- package/dist/components/OfferList/OfferList.js +11 -78
- package/dist/components/OrderSummary/index.d.ts +5 -2
- package/dist/components/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/OrderSummary/index.js +11 -204
- package/dist/components/Plans/index.d.ts +5 -21
- package/dist/components/Plans/index.d.ts.map +1 -1
- package/dist/components/Plans/index.js +11 -214
- package/dist/components/SteppedListCard/index.d.ts +5 -1
- package/dist/components/SteppedListCard/index.d.ts.map +1 -1
- package/dist/components/SteppedListCard/index.js +11 -0
- package/dist/index.js +5 -21
- package/dist/plus.css +2 -1
- package/package.json +8 -7
- package/LICENSE +0 -189
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.js +0 -4
- package/dist/components/Navigation/constants.js +0 -10
- package/dist/components/OfferList/OfferListProvider.d.ts +0 -30
- package/dist/components/OfferList/OfferListProvider.d.ts.map +0 -1
- package/dist/components/OfferList/OfferListProvider.js +0 -48
- package/dist/components/OfferList/components/Banner.d.ts +0 -13
- package/dist/components/OfferList/components/Banner.d.ts.map +0 -1
- package/dist/components/OfferList/components/Banner.js +0 -43
- package/dist/components/OfferList/components/Cell.d.ts +0 -4
- package/dist/components/OfferList/components/Cell.d.ts.map +0 -1
- package/dist/components/OfferList/components/Cell.js +0 -35
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts +0 -9
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts.map +0 -1
- package/dist/components/OfferList/components/OfferListRowProvider.js +0 -10
- package/dist/components/OfferList/components/Row.d.ts +0 -18
- package/dist/components/OfferList/components/Row.d.ts.map +0 -1
- package/dist/components/OfferList/components/Row.js +0 -258
- package/dist/components/OfferList/styles.css.d.ts +0 -44
- package/dist/components/OfferList/styles.css.d.ts.map +0 -1
- package/dist/components/OfferList/styles.css.js +0 -40
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +0 -20
- package/dist/components/OrderSummary/NonScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +0 -136
- package/dist/components/OrderSummary/Provider.d.ts +0 -15
- package/dist/components/OrderSummary/Provider.d.ts.map +0 -1
- package/dist/components/OrderSummary/Provider.js +0 -15
- package/dist/components/OrderSummary/ScrollableContent.d.ts +0 -2
- package/dist/components/OrderSummary/ScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/ScrollableContent.js +0 -314
- package/dist/components/OrderSummary/constants.d.ts +0 -3
- package/dist/components/OrderSummary/constants.d.ts.map +0 -1
- package/dist/components/OrderSummary/constants.js +0 -18
- package/dist/components/OrderSummary/helpers.d.ts +0 -28
- package/dist/components/OrderSummary/helpers.d.ts.map +0 -1
- package/dist/components/OrderSummary/helpers.js +0 -156
- package/dist/components/OrderSummary/locales/en.d.ts +0 -11
- package/dist/components/OrderSummary/locales/en.d.ts.map +0 -1
- package/dist/components/OrderSummary/locales/en.js +0 -12
- package/dist/components/OrderSummary/styles.css.d.ts +0 -21
- package/dist/components/OrderSummary/styles.css.d.ts.map +0 -1
- package/dist/components/OrderSummary/styles.css.js +0 -26
- package/dist/components/OrderSummary/types.d.ts +0 -125
- package/dist/components/OrderSummary/types.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.d.ts +0 -7
- package/dist/components/Plans/FeatureHint.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.js +0 -42
- package/dist/components/Plans/PlanHeader.d.ts +0 -14
- package/dist/components/Plans/PlanHeader.d.ts.map +0 -1
- package/dist/components/Plans/PlanHeader.js +0 -96
- package/dist/components/Plans/locales/en.d.ts +0 -7
- package/dist/components/Plans/locales/en.d.ts.map +0 -1
- package/dist/components/Plans/locales/en.js +0 -8
- package/dist/components/Plans/styles.css.d.ts +0 -67
- package/dist/components/Plans/styles.css.d.ts.map +0 -1
- package/dist/components/Plans/styles.css.js +0 -26
- package/dist/components/Plans/types.d.ts +0 -38
- package/dist/components/Plans/types.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.d.ts +0 -23
- package/dist/components/SteppedListCard/Step.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.js +0 -61
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +0 -69
- package/dist/components/SteppedListCard/SteppedListCard.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListCard.js +0 -105
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +0 -12
- package/dist/components/SteppedListCard/SteppedListContent.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListContent.js +0 -53
- package/dist/components/SteppedListCard/helper.d.ts +0 -27
- package/dist/components/SteppedListCard/helper.d.ts.map +0 -1
- package/dist/components/SteppedListCard/helper.js +0 -41
- package/dist/components/SteppedListCard/styles.css.d.ts +0 -9
- package/dist/components/SteppedListCard/styles.css.d.ts.map +0 -1
- package/dist/components/SteppedListCard/styles.css.js +0 -19
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating1NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cpath%20fill='%23f0f0f0'%20d='M36.1%200c-4.3%200-8.6.4-12.9%201.1C11.5%203.1%204%209.6%201.5%2021.4c-2%209.2-2.1%2018.8-.2%2028%202.3%2012%209.6%2019.2%2021.6%2021.4%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8-2.3-12-9.5-18.9-21.6-21C44.8.4%2040.4%200%2036.1%200'/%3e%3cpath%20fill='%233b3b3b'%20d='M70.7%2022.2c-2.3-12-9.5-18.9-21.6-21-.6-.2-1.3-.2-1.9-.3C54.4%206.1%2059.6%2013.5%2062%2022c.3%201%205.2%2020.2-7%2034-10.9%2012.3-30.9%2015.4-48%206.2%203.7%204.5%209.1%207.5%2016%208.7%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8'%20opacity='.06'/%3e%3cpath%20fill='%231f1f1f'%20d='M37.6%2047.7c-.2%200-.3%200-.4-.1-2.4-.9-5-.9-7.4%200-.6.2-1.4-.1-1.6-.7s.1-1.4.7-1.6c3-1.2%206.2-1.2%209.2%200%20.6.2%201%201%20.7%201.6-.2.5-.7.8-1.2.8'%20opacity='.31'/%3e%3cpath%20fill='%232b2b2b'%20d='M33.9%2036.2c-6.9%200-13.6%202.7-18.5%207.7-.5.5-.4%201.3.1%201.8.5.4%201.2.4%201.6%200%209.3-9.3%2024.3-9.3%2033.5%200%20.5.5%201.3.4%201.8-.1.4-.5.4-1.2%200-1.6-4.9-5.1-11.5-7.8-18.5-7.8m-20-6.7c-.1%202.5%201.8%204.7%204.4%204.8%202.5.1%204.7-1.8%204.8-4.4v-.4q0-.75-.3-1.5c.5.1%201%20.1%201.5.1%201.6%200%203.2-.2%204.8-.7.7-.2%201-.9.9-1.5-.2-.7-.8-1-1.5-.9-8.8%202.4-12.6-3.2-12.7-3.4-.4-.6-1.1-.7-1.7-.4s-.7%201.1-.4%201.7c.7%201%201.6%201.9%202.6%202.6-1.5.8-2.4%202.3-2.4%204m38.5-8.3c-.6-.4-1.3-.2-1.7.4%200%20.1-3.9%205.8-12.7%203.4-.7-.2-1.3.2-1.5.9s.2%201.3.9%201.5c1.6.4%203.2.7%204.8.7.5%200%201%200%201.5-.1q-.3.75-.3%201.5c0%202.5%202%204.6%204.6%204.6%202.5%200%204.6-2%204.6-4.6%200-1.7-.9-3.2-2.4-4%201-.7%201.9-1.6%202.6-2.6.4-.5.2-1.3-.4-1.7'/%3e%3cpath%20fill='none'%20stroke='%238e8e8e'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1.5'%20d='m46%209.5-2.3%202.3-2.3-2.3m6.5%206.6-2.3-2.3%202.3-2.3m-6.3%206.3%202.3-2.3%202.3%202.3m-6.5-6.5%202.3%202.3-2.3%202.3'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating1NS as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating2 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%234f0599'%20d='M44.7%2040.9a23.75%2023.75%200%200%200-26.47%200%201.11%201.11%200%200%200-.31%201.55%201.14%201.14%200%200%200%201.56.31%2021.5%2021.5%200%200%201%2024%200%201.2%201.2%200%200%200%20.62.19%201.15%201.15%200%200%200%20.94-.5%201.12%201.12%200%200%200-.34-1.55M22.22%2025.15a4.15%204.15%200%201%200-4.15%204.15%204.15%204.15%200%200%200%204.15-4.15M44.85%2021A4.15%204.15%200%201%200%2049%2025.15%204.16%204.16%200%200%200%2044.85%2021'/%3e%3cpath%20fill='%231b1464'%20d='M35.19%2044.84a1.1%201.1%200%200%201-.4-.08%209.2%209.2%200%200%200-6.65%200%201.12%201.12%200%201%201-.8-2.09%2011.4%2011.4%200%200%201%208.25%200%201.12%201.12%200%200%201-.4%202.17'%20opacity='.31'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating2 as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating2NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cpath%20fill='%23f0f0f0'%20d='M36.1%200c-4.3%200-8.6.4-12.9%201.1C11.5%203.1%204%209.6%201.5%2021.4c-2%209.2-2.1%2018.8-.2%2028%202.3%2012%209.6%2019.2%2021.6%2021.4%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8-2.3-12-9.5-18.9-21.6-21C44.8.4%2040.4%200%2036.1%200'/%3e%3cpath%20fill='%233b3b3b'%20d='M70.7%2022.2c-2.3-12-9.5-18.9-21.6-21-.6-.2-1.3-.2-1.9-.3C54.4%206.1%2059.6%2013.5%2062%2022c.3%201%205.2%2020.2-7%2034-10.9%2012.3-30.9%2015.4-48%206.2%203.7%204.5%209.1%207.5%2016%208.7%204.3.8%208.6%201.1%2013%201.1%204.3%200%208.6-.4%2012.9-1.1%2011.6-2%2019.3-9.2%2021.8-20.9%201.8-9.2%201.8-18.6%200-27.8'%20opacity='.06'/%3e%3cpath%20fill='%232b2b2b'%20d='M44.7%2040.9c-8-5.4-18.5-5.4-26.5%200-.5.3-.7%201-.3%201.5s1%20.6%201.6.3c7.3-4.9%2016.7-4.9%2024%200%20.2.1.4.2.6.2.4%200%20.7-.2.9-.5.4-.5.2-1.2-.3-1.5M22.2%2025.1c0-2.3-1.9-4.1-4.1-4.1-2.3%200-4.2%201.9-4.2%204.1s1.9%204.1%204.2%204.1c2.3.1%204.1-1.8%204.1-4.1M44.8%2021c-2.3%200-4.1%201.9-4.1%204.2s1.9%204.1%204.2%204.1%204.1-1.9%204.1-4.1c0-2.3-1.9-4.2-4.2-4.2'/%3e%3cpath%20fill='%231f1f1f'%20d='M35.2%2044.8c-.1%200-.3%200-.4-.1-2.1-.8-4.5-.8-6.6%200-.6.2-1.2%200-1.5-.6-.2-.6%200-1.2.6-1.5h.1c2.7-1%205.6-1%208.2%200%20.6.2.9.9.7%201.4-.2.6-.6.8-1.1.8'%20opacity='.31'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating2NS as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%234f0599'%20d='M23.64%2025.86a4.86%204.86%200%201%200-4.86%204.85%204.87%204.87%200%200%200%204.86-4.85M50.14%2021A4.86%204.86%200%201%200%2055%2025.86%204.86%204.86%200%200%200%2050.14%2021'/%3e%3cpath%20fill='none'%20stroke='%234f0599'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2.51'%20d='M24%2044h22'/%3e%3cpath%20fill='none'%20stroke='%231b1464'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2'%20d='M32%2050h6'%20opacity='.31'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating3 as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating3NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23f0f0f0'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%233b3b3b'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%232b2b2b'%20d='M23.64%2025.86a4.86%204.86%200%201%200-4.86%204.85%204.87%204.87%200%200%200%204.86-4.85M50.14%2021A4.86%204.86%200%201%200%2055%2025.86%204.86%204.86%200%200%200%2050.14%2021'/%3e%3cpath%20fill='none'%20stroke='%232b2b2b'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2.51'%20d='M24%2044h22'/%3e%3cpath%20fill='none'%20stroke='%231f1f1f'%20stroke-linecap='round'%20stroke-miterlimit='10'%20stroke-width='2'%20d='M32%2050h6'%20opacity='.31'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating3NS as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating4 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%234f0599'%20d='M31.5%2046.28a17.85%2017.85%200%200%201-13.09-5.81%201.18%201.18%200%200%201%200-1.59%201%201%200%200%201%201.48%200%2015.66%2015.66%200%200%200%2023.22%200%201%201%200%200%201%201.48%200%201.2%201.2%200%200%201%200%201.59%2017.85%2017.85%200%200%201-13.09%205.81'/%3e%3cpath%20fill='%231b1464'%20d='M31.5%2051.14a17.5%2017.5%200%200%201-5-.74%201.13%201.13%200%200%201-.73-1.4%201%201%200%200%201%201.29-.78%2015.26%2015.26%200%200%200%208.88%200%201%201%200%200%201%201.29.78%201.13%201.13%200%200%201-.72%201.38%2017.5%2017.5%200%200%201-5.01.76'%20opacity='.31'/%3e%3cpath%20fill='%234f0599'%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'/%3e%3cellipse%20cx='13.75'%20cy='37.62'%20fill='%23f270a8'%20rx='2.75'%20ry='2.96'/%3e%3cellipse%20cx='49.25'%20cy='37.62'%20fill='%23f270a8'%20rx='2.75'%20ry='2.96'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating4 as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating4NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cdefs%3e%3cstyle%3e%20.cls-2{fill:%232b2b2b}.cls-4{fill:%239d9d9d}%20%3c/style%3e%3c/defs%3e%3cg%20id='Calque_2'%20data-name='Calque%202'%3e%3cg%20id='Calque_1-2'%20data-name='Calque%201'%3e%3cpath%20fill='%23f0f0f0'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20d='M31.5%2046.28a17.85%2017.85%200%200%201-13.09-5.81%201.18%201.18%200%200%201%200-1.59%201%201%200%200%201%201.48%200%2015.66%2015.66%200%200%200%2023.22%200%201%201%200%200%201%201.48%200%201.2%201.2%200%200%201%200%201.59%2017.85%2017.85%200%200%201-13.09%205.81'%20class='cls-2'/%3e%3cpath%20fill='%231f1f1f'%20d='M31.5%2051.14a17.5%2017.5%200%200%201-5-.74%201.13%201.13%200%200%201-.73-1.4%201%201%200%200%201%201.29-.78%2015.26%2015.26%200%200%200%208.88%200%201%201%200%200%201%201.29.78%201.13%201.13%200%200%201-.72%201.38%2017.5%2017.5%200%200%201-5.01.76'%20opacity='.31'/%3e%3cpath%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'%20class='cls-2'/%3e%3cellipse%20cx='13.75'%20cy='37.62'%20class='cls-4'%20rx='2.75'%20ry='2.96'/%3e%3cellipse%20cx='49.25'%20cy='37.62'%20class='cls-4'%20rx='2.75'%20ry='2.96'/%3e%3cpath%20fill='%233b3b3b'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating4NS as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating5 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23eef'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%234f0599'%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'/%3e%3cpath%20fill='%232e3192'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%23fff'%20d='M46%2032.9v5.47a21.22%2021.22%200%200%201-30%200V32.9a21.22%2021.22%200%200%200%2030%200'/%3e%3cpath%20fill='%23f954a2'%20d='M34.82%2048.44a6.4%206.4%200%200%201%205.63%203.36%2015%2015%200%200%201-18.9%200A6.39%206.39%200%200%201%2031%2049.71a6.3%206.3%200%200%201%203.82-1.27'/%3e%3cpath%20fill='%23971096'%20d='M46%2038.37v1.78a15%2015%200%200%201-4.39%2010.61c-.37.37-.76.71-1.16%201a6.4%206.4%200%200%200-5.63-3.36A6.3%206.3%200%200%200%2031%2049.71a6.39%206.39%200%200%200-9.45%202.09A15%2015%200%200%201%2016%2040.15v-1.78a21.22%2021.22%200%200%200%2030%200'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating5 as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const rating5NS = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2072%2072'%3e%3cg%20data-name='Calque%202'%3e%3cg%20data-name='Calque%201'%3e%3cpath%20fill='%23f0f0f0'%20fill-rule='evenodd'%20d='M36.08%200a77%2077%200%200%200-12.91%201.1C11.48%203.08%204%209.65%201.55%2021.43a69.7%2069.7%200%200%200-.24%2028.05c2.31%2012%209.57%2019.25%2021.61%2021.38a75%2075%200%200%200%2013%201.14%2077%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200%200-27.82c-2.31-12-9.54-18.91-21.58-21A75%2075%200%200%200%2036.08%200'/%3e%3cpath%20fill='%232b2b2b'%20d='M24.32%2028.58a1.08%201.08%200%200%201-1-1.12A5.3%205.3%200%200%200%2018.19%2022a5.3%205.3%200%200%200-5.09%205.46%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.45%207.45%200%200%201%207.17%207.7%201.08%201.08%200%200%201-1.04%201.12m26.62%200a1.09%201.09%200%200%201-1-1.12%205.1%205.1%200%201%200-10.17%200%201%201%200%201%201-2.09%200%207.46%207.46%200%200%201%207.18-7.7%207.46%207.46%200%200%201%207.14%207.7%201.08%201.08%200%200%201-1.06%201.12'/%3e%3cpath%20fill='%233b3b3b'%20fill-rule='evenodd'%20d='M70.66%2022.18c-2.31-12-9.54-18.91-21.58-21C48.46%201%2047.84%201%2047.22.85A39.73%2039.73%200%200%201%2062%2022c.28%201%205.22%2020.18-7%2034-10.87%2012.29-30.91%2015.38-48%206.17%203.73%204.53%209.06%207.47%2016%208.69A75%2075%200%200%200%2036%2072a77%2077%200%200%200%2012.91-1.1c11.65-2%2019.34-9.2%2021.8-20.9a72%2072%200%200%200-.05-27.82'%20opacity='.06'/%3e%3cpath%20fill='%23fff'%20d='M46%2032.9v5.47a21.22%2021.22%200%200%201-30%200V32.9a21.22%2021.22%200%200%200%2030%200'/%3e%3cpath%20fill='%238e8e8e'%20d='M34.82%2048.44a6.4%206.4%200%200%201%205.63%203.36%2015%2015%200%200%201-18.9%200A6.39%206.39%200%200%201%2031%2049.71a6.3%206.3%200%200%201%203.82-1.27'/%3e%3cpath%20fill='%23474747'%20d='M46%2038.37v1.78a15%2015%200%200%201-4.39%2010.61c-.37.37-.76.71-1.16%201a6.4%206.4%200%200%200-5.63-3.36A6.3%206.3%200%200%200%2031%2049.71a6.39%206.39%200%200%200-9.45%202.09A15%2015%200%200%201%2016%2040.15v-1.78a21.22%2021.22%200%200%200%2030%200'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
rating5NS as default
|
|
4
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
type OfferListContextValue = {
|
|
3
|
-
selectable: 'radio' | 'checkbox';
|
|
4
|
-
radioSelectedRow: string | undefined;
|
|
5
|
-
setRadioSelectedRow: Dispatch<SetStateAction<string | undefined>>;
|
|
6
|
-
expandable?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
loading?: boolean;
|
|
9
|
-
onChangeSelect?: (selected: string | string[]) => void;
|
|
10
|
-
autoCollapse?: boolean;
|
|
11
|
-
checkboxSelectedRows: string[];
|
|
12
|
-
setCheckboxSelectedRows: Dispatch<SetStateAction<string[]>>;
|
|
13
|
-
};
|
|
14
|
-
type OfferListProviderProps = {
|
|
15
|
-
selectable: 'radio' | 'checkbox';
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
expandable?: boolean;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
loading?: boolean;
|
|
20
|
-
onChangeSelect?: (selected: string | string[]) => void;
|
|
21
|
-
autoCollapse?: boolean;
|
|
22
|
-
radioSelectedRow: string | undefined;
|
|
23
|
-
setRadioSelectedRow: Dispatch<SetStateAction<string | undefined>>;
|
|
24
|
-
checkboxSelectedRows: string[];
|
|
25
|
-
setCheckboxSelectedRows: Dispatch<SetStateAction<string[]>>;
|
|
26
|
-
};
|
|
27
|
-
export declare const OfferListProvider: ({ selectable, children, expandable, disabled, loading, onChangeSelect, autoCollapse, radioSelectedRow, setRadioSelectedRow, checkboxSelectedRows, setCheckboxSelectedRows, }: OfferListProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export declare const useOfferListContext: () => OfferListContextValue;
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=OfferListProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OfferListProvider.d.ts","sourceRoot":"","sources":["../../../src/components/OfferList/OfferListProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGhE,KAAK,qBAAqB,GAAG;IAC3B,UAAU,EAAE,OAAO,GAAG,UAAU,CAAA;IAChC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IACtD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,oBAAoB,EAAE,MAAM,EAAE,CAAA;IAC9B,uBAAuB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;CAC5D,CAAA;AAKD,KAAK,sBAAsB,GAAG;IAC5B,UAAU,EAAE,OAAO,GAAG,UAAU,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IACtD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IACjE,oBAAoB,EAAE,MAAM,EAAE,CAAA;IAC9B,uBAAuB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;CAC5D,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,8KAY/B,sBAAsB,4CAiBxB,CAAA;AAGD,eAAO,MAAM,mBAAmB,6BAU/B,CAAA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
3
|
-
const OfferListContext = createContext(
|
|
4
|
-
void 0
|
|
5
|
-
);
|
|
6
|
-
const OfferListProvider = ({
|
|
7
|
-
selectable,
|
|
8
|
-
children,
|
|
9
|
-
expandable,
|
|
10
|
-
disabled,
|
|
11
|
-
loading,
|
|
12
|
-
onChangeSelect,
|
|
13
|
-
autoCollapse,
|
|
14
|
-
radioSelectedRow,
|
|
15
|
-
setRadioSelectedRow,
|
|
16
|
-
checkboxSelectedRows,
|
|
17
|
-
setCheckboxSelectedRows
|
|
18
|
-
}) => /* @__PURE__ */ jsx(
|
|
19
|
-
OfferListContext.Provider,
|
|
20
|
-
{
|
|
21
|
-
value: {
|
|
22
|
-
autoCollapse,
|
|
23
|
-
checkboxSelectedRows,
|
|
24
|
-
disabled,
|
|
25
|
-
expandable,
|
|
26
|
-
loading,
|
|
27
|
-
onChangeSelect,
|
|
28
|
-
radioSelectedRow,
|
|
29
|
-
selectable,
|
|
30
|
-
setCheckboxSelectedRows,
|
|
31
|
-
setRadioSelectedRow
|
|
32
|
-
},
|
|
33
|
-
children
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
const useOfferListContext = () => {
|
|
37
|
-
const context = useContext(OfferListContext);
|
|
38
|
-
if (!context) {
|
|
39
|
-
throw new Error(
|
|
40
|
-
"useOfferListContext should be used inside a OfferList component"
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
return context;
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
OfferListProvider,
|
|
47
|
-
useOfferListContext
|
|
48
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { List } from '@ultraviolet/ui';
|
|
2
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
type BannerProps = {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
sentiment?: ComponentProps<typeof List.Row>['sentiment'];
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
colSpan?: number;
|
|
8
|
-
type?: 'cell' | 'div';
|
|
9
|
-
shouldHavePrimaryBorder?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare const Banner: ({ children, sentiment, disabled, colSpan, type, shouldHavePrimaryBorder, }: BannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=Banner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../src/components/OfferList/components/Banner.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAe,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAA;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,4EAOpB,WAAW,4CA+BX,CAAA"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Stack, Text, List } from "@ultraviolet/ui";
|
|
4
|
-
import { offerListBannerStack, offerListBanner, offerListBannerCell, offerListBannerText } from "../styles.css.js";
|
|
5
|
-
const Banner = ({
|
|
6
|
-
children,
|
|
7
|
-
sentiment = "neutral",
|
|
8
|
-
disabled,
|
|
9
|
-
colSpan = 1e3,
|
|
10
|
-
type = "div",
|
|
11
|
-
shouldHavePrimaryBorder
|
|
12
|
-
}) => type === "div" ? /* @__PURE__ */ jsx(
|
|
13
|
-
Stack,
|
|
14
|
-
{
|
|
15
|
-
"aria-disabled": disabled,
|
|
16
|
-
className: offerListBannerStack({ sentiment }),
|
|
17
|
-
children: /* @__PURE__ */ jsx(Text, { as: "p", disabled, sentiment, variant: "caption", children })
|
|
18
|
-
}
|
|
19
|
-
) : /* @__PURE__ */ jsx("tr", { className: offerListBanner, children: /* @__PURE__ */ jsx(
|
|
20
|
-
List.Cell,
|
|
21
|
-
{
|
|
22
|
-
"aria-disabled": disabled,
|
|
23
|
-
className: offerListBannerCell,
|
|
24
|
-
colSpan,
|
|
25
|
-
children: /* @__PURE__ */ jsx(
|
|
26
|
-
Text,
|
|
27
|
-
{
|
|
28
|
-
as: "p",
|
|
29
|
-
className: offerListBannerText({
|
|
30
|
-
disabled,
|
|
31
|
-
primaryBorder: shouldHavePrimaryBorder,
|
|
32
|
-
sentiment
|
|
33
|
-
}),
|
|
34
|
-
disabled,
|
|
35
|
-
variant: "caption",
|
|
36
|
-
children
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
) });
|
|
41
|
-
export {
|
|
42
|
-
Banner
|
|
43
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { List } from '@ultraviolet/ui';
|
|
2
|
-
import type { ComponentProps } from 'react';
|
|
3
|
-
export declare const Cell: ({ children, className, "data-testid": dataTestId, colSpan, style, }: ComponentProps<typeof List.Cell>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=Cell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../src/components/OfferList/components/Cell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAY,MAAM,iBAAiB,CAAA;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAU3C,eAAO,MAAM,IAAI,GAAI,qEAMlB,cAAc,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,4CAuBlC,CAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { List, Skeleton } from "@ultraviolet/ui";
|
|
4
|
-
import { cn } from "@ultraviolet/utils";
|
|
5
|
-
import { useOfferListContext } from "../OfferListProvider.js";
|
|
6
|
-
import { offerListLoadingCell, offerListCell, offerListSelectedCell, offerListCellNoRadius } from "../styles.css.js";
|
|
7
|
-
import { useOfferListRowContext } from "./OfferListRowProvider.js";
|
|
8
|
-
const Cell = ({
|
|
9
|
-
children,
|
|
10
|
-
className,
|
|
11
|
-
"data-testid": dataTestId,
|
|
12
|
-
colSpan,
|
|
13
|
-
style
|
|
14
|
-
}) => {
|
|
15
|
-
const { loading } = useOfferListContext();
|
|
16
|
-
const { selected, banner } = useOfferListRowContext();
|
|
17
|
-
return loading ? /* @__PURE__ */ jsx(List.Cell, { className: offerListLoadingCell, style, children: /* @__PURE__ */ jsx(Skeleton, { "data-state": loading, variant: "line" }) }) : /* @__PURE__ */ jsx(
|
|
18
|
-
List.Cell,
|
|
19
|
-
{
|
|
20
|
-
className: cn(
|
|
21
|
-
className,
|
|
22
|
-
offerListCell,
|
|
23
|
-
selected ? offerListSelectedCell : "",
|
|
24
|
-
banner ? offerListCellNoRadius : ""
|
|
25
|
-
),
|
|
26
|
-
colSpan,
|
|
27
|
-
"data-testid": dataTestId,
|
|
28
|
-
style,
|
|
29
|
-
children
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
Cell
|
|
35
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const OfferListRowContext: import("react").Context<{
|
|
2
|
-
selected: boolean;
|
|
3
|
-
banner: boolean;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const useOfferListRowContext: () => {
|
|
6
|
-
selected: boolean;
|
|
7
|
-
banner: boolean;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=OfferListRowProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OfferListRowProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/OfferList/components/OfferListRowProvider.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;EAG9B,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;CAAwC,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from "react";
|
|
2
|
-
const OfferListRowContext = createContext({
|
|
3
|
-
selected: false,
|
|
4
|
-
banner: false
|
|
5
|
-
});
|
|
6
|
-
const useOfferListRowContext = () => useContext(OfferListRowContext);
|
|
7
|
-
export {
|
|
8
|
-
OfferListRowContext,
|
|
9
|
-
useOfferListRowContext
|
|
10
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Badge as BadgeUV, List } from '@ultraviolet/ui';
|
|
2
|
-
import type { ComponentProps, CSSProperties, ReactNode } from 'react';
|
|
3
|
-
type RowProps = ComponentProps<typeof List.Row> & {
|
|
4
|
-
banner?: {
|
|
5
|
-
text: ReactNode;
|
|
6
|
-
sentiment?: 'neutral' | 'primary' | 'warning' | 'danger';
|
|
7
|
-
};
|
|
8
|
-
offerName: string;
|
|
9
|
-
badge?: {
|
|
10
|
-
text: string;
|
|
11
|
-
sentiment?: ComponentProps<typeof BadgeUV>['sentiment'];
|
|
12
|
-
prominence?: ComponentProps<typeof BadgeUV>['prominence'];
|
|
13
|
-
};
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
};
|
|
16
|
-
export declare const Row: ({ children, disabled, id, banner, expandablePadding, offerName, expandable: expandableContent, selectDisabled, highlightAnimation, expanded, className, "data-dragging": dataDragging, "data-testid": dataTestId, style, badge, }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/components/OfferList/components/Row.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,IAAI,OAAO,EAGhB,IAAI,EAGL,MAAM,iBAAiB,CAAA;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAmBrE,KAAK,QAAQ,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG;IAChD,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,SAAS,CAAA;QACf,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;KACzD,CAAA;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,CAAC,EAAE,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,WAAW,CAAC,CAAA;QACvD,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,YAAY,CAAC,CAAA;KAC1D,CAAA;IACD,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,GAAG,GAAI,mOAgBjB,QAAQ,4CA6OV,CAAA"}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { ArrowDownIcon } from "@ultraviolet/icons/ArrowDownIcon";
|
|
4
|
-
import { ArrowUpIcon } from "@ultraviolet/icons/ArrowUpIcon";
|
|
5
|
-
import { theme } from "@ultraviolet/themes";
|
|
6
|
-
import { List, Badge, Tooltip, Radio, Checkbox, Button } from "@ultraviolet/ui";
|
|
7
|
-
import { cn } from "@ultraviolet/utils";
|
|
8
|
-
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
9
|
-
import { useState, Children, useCallback, useMemo } from "react";
|
|
10
|
-
import { useOfferListContext } from "../OfferListProvider.js";
|
|
11
|
-
import { offerListRowExpandable, expandablePadding, offerListBadge, offerListRowSelectableContainer, offerListNoPaddingCell, offerListSelectedCell, offerListCellNoRadius, offerListRowBanner, offerListRowSelected, offerListRowSelectedExpandable, offerListRowSelectedNotExpandable } from "../styles.css.js";
|
|
12
|
-
import { Banner } from "./Banner.js";
|
|
13
|
-
import { OfferListRowContext } from "./OfferListRowProvider.js";
|
|
14
|
-
const Row = ({
|
|
15
|
-
children,
|
|
16
|
-
disabled,
|
|
17
|
-
id,
|
|
18
|
-
banner,
|
|
19
|
-
expandablePadding: expandablePadding$1,
|
|
20
|
-
offerName,
|
|
21
|
-
expandable: expandableContent,
|
|
22
|
-
selectDisabled,
|
|
23
|
-
highlightAnimation,
|
|
24
|
-
expanded,
|
|
25
|
-
className,
|
|
26
|
-
"data-dragging": dataDragging,
|
|
27
|
-
"data-testid": dataTestId,
|
|
28
|
-
style,
|
|
29
|
-
badge
|
|
30
|
-
}) => {
|
|
31
|
-
const {
|
|
32
|
-
selectable,
|
|
33
|
-
radioSelectedRow,
|
|
34
|
-
setRadioSelectedRow,
|
|
35
|
-
checkboxSelectedRows,
|
|
36
|
-
setCheckboxSelectedRows,
|
|
37
|
-
expandable,
|
|
38
|
-
loading,
|
|
39
|
-
onChangeSelect,
|
|
40
|
-
autoCollapse
|
|
41
|
-
} = useOfferListContext();
|
|
42
|
-
const { expandedRowIds, collapseRow, expandRow } = List.useListContext();
|
|
43
|
-
const [isHovered, setHovered] = useState(false);
|
|
44
|
-
const childrenNumber = Children.count(children) + (selectable ? 1 : 0) + (expandable ? 1 : 0);
|
|
45
|
-
const toggleRowExpand = useCallback(() => {
|
|
46
|
-
if (!loading) {
|
|
47
|
-
if (expandedRowIds[id]) {
|
|
48
|
-
collapseRow(id);
|
|
49
|
-
} else {
|
|
50
|
-
expandRow(id);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, [collapseRow, expandRow, expandedRowIds, id, loading]);
|
|
54
|
-
const computedExpandableContent = useMemo(() => {
|
|
55
|
-
if (expandable && !loading && expandedRowIds[id] && banner) {
|
|
56
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
className: offerListRowExpandable,
|
|
61
|
-
style: assignInlineVars({
|
|
62
|
-
[expandablePadding]: theme.space[expandablePadding$1 ?? 2]
|
|
63
|
-
}),
|
|
64
|
-
children: expandableContent
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ jsx(Banner, { disabled, sentiment: banner.sentiment, children: banner.text })
|
|
68
|
-
] });
|
|
69
|
-
}
|
|
70
|
-
if (expandable && !loading) {
|
|
71
|
-
return expandableContent;
|
|
72
|
-
}
|
|
73
|
-
return void 0;
|
|
74
|
-
}, [
|
|
75
|
-
expandable,
|
|
76
|
-
loading,
|
|
77
|
-
expandedRowIds,
|
|
78
|
-
banner,
|
|
79
|
-
expandablePadding$1,
|
|
80
|
-
id,
|
|
81
|
-
expandableContent,
|
|
82
|
-
disabled
|
|
83
|
-
]);
|
|
84
|
-
const isRowSelected = useMemo(() => {
|
|
85
|
-
if (selectable === "radio") {
|
|
86
|
-
return radioSelectedRow === offerName;
|
|
87
|
-
}
|
|
88
|
-
return checkboxSelectedRows.includes(offerName);
|
|
89
|
-
}, [offerName, checkboxSelectedRows, radioSelectedRow, selectable]);
|
|
90
|
-
const isSelected = selectable === "radio" ? radioSelectedRow === offerName : checkboxSelectedRows.includes(offerName);
|
|
91
|
-
const handleChangeCheckbox = () => {
|
|
92
|
-
if (isRowSelected) {
|
|
93
|
-
const newSelectedList = checkboxSelectedRows.filter(
|
|
94
|
-
(element) => element !== offerName
|
|
95
|
-
);
|
|
96
|
-
setCheckboxSelectedRows(newSelectedList);
|
|
97
|
-
onChangeSelect?.(newSelectedList);
|
|
98
|
-
} else {
|
|
99
|
-
const newSelectedList = [...checkboxSelectedRows, offerName];
|
|
100
|
-
setCheckboxSelectedRows(newSelectedList);
|
|
101
|
-
onChangeSelect?.(newSelectedList);
|
|
102
|
-
}
|
|
103
|
-
if (expandedRowIds[id]) {
|
|
104
|
-
expandRow(id);
|
|
105
|
-
} else if (!autoCollapse) {
|
|
106
|
-
collapseRow(id);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
const handleChangeRadio = () => {
|
|
110
|
-
setRadioSelectedRow(offerName);
|
|
111
|
-
onChangeSelect?.(offerName);
|
|
112
|
-
};
|
|
113
|
-
const isSelectableDisable = disabled || loading || !!selectDisabled;
|
|
114
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
115
|
-
/* @__PURE__ */ jsxs(
|
|
116
|
-
List.Row,
|
|
117
|
-
{
|
|
118
|
-
className: cn(
|
|
119
|
-
className,
|
|
120
|
-
banner ? offerListRowBanner : "",
|
|
121
|
-
isSelected ? offerListRowSelected : "",
|
|
122
|
-
expandable ? offerListRowSelectedExpandable : offerListRowSelectedNotExpandable
|
|
123
|
-
),
|
|
124
|
-
"data-dragging": dataDragging,
|
|
125
|
-
"data-testid": dataTestId,
|
|
126
|
-
disabled,
|
|
127
|
-
expandable: computedExpandableContent,
|
|
128
|
-
expandablePadding: banner ? "0" : void 0,
|
|
129
|
-
expanded: expanded ?? expandedRowIds[id],
|
|
130
|
-
highlightAnimation,
|
|
131
|
-
id,
|
|
132
|
-
onClick: () => {
|
|
133
|
-
if (selectDisabled || disabled || expandable) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (selectable === "radio") {
|
|
137
|
-
handleChangeRadio();
|
|
138
|
-
}
|
|
139
|
-
if (selectable === "checkbox") {
|
|
140
|
-
handleChangeCheckbox();
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
onMouseEnter: () => setHovered(true),
|
|
144
|
-
onMouseLeave: () => setHovered(false),
|
|
145
|
-
style,
|
|
146
|
-
children: [
|
|
147
|
-
/* @__PURE__ */ jsxs(
|
|
148
|
-
List.Cell,
|
|
149
|
-
{
|
|
150
|
-
className: cn(
|
|
151
|
-
offerListNoPaddingCell,
|
|
152
|
-
isSelected ? offerListSelectedCell : "",
|
|
153
|
-
banner ? offerListCellNoRadius : ""
|
|
154
|
-
),
|
|
155
|
-
children: [
|
|
156
|
-
badge ? /* @__PURE__ */ jsx(
|
|
157
|
-
Badge,
|
|
158
|
-
{
|
|
159
|
-
className: offerListBadge,
|
|
160
|
-
disabled,
|
|
161
|
-
prominence: badge.prominence,
|
|
162
|
-
sentiment: badge.sentiment,
|
|
163
|
-
size: "small",
|
|
164
|
-
children: badge.text
|
|
165
|
-
}
|
|
166
|
-
) : null,
|
|
167
|
-
/* @__PURE__ */ jsx("div", { className: offerListRowSelectableContainer, children: /* @__PURE__ */ jsx(
|
|
168
|
-
Tooltip,
|
|
169
|
-
{
|
|
170
|
-
text: typeof selectDisabled === "string" ? selectDisabled : void 0,
|
|
171
|
-
children: selectable === "radio" ? /* @__PURE__ */ jsx(
|
|
172
|
-
Radio,
|
|
173
|
-
{
|
|
174
|
-
checked: isRowSelected,
|
|
175
|
-
disabled: isSelectableDisable,
|
|
176
|
-
id,
|
|
177
|
-
name: `radio-offer-list-${id}`,
|
|
178
|
-
onChange: () => {
|
|
179
|
-
if (expandable) {
|
|
180
|
-
handleChangeRadio();
|
|
181
|
-
}
|
|
182
|
-
if (expandedRowIds[id]) {
|
|
183
|
-
expandRow(id);
|
|
184
|
-
} else if (!autoCollapse) {
|
|
185
|
-
collapseRow(id);
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
value: id
|
|
189
|
-
}
|
|
190
|
-
) : /* @__PURE__ */ jsx(
|
|
191
|
-
Checkbox,
|
|
192
|
-
{
|
|
193
|
-
"aria-label": "select",
|
|
194
|
-
checked: isRowSelected,
|
|
195
|
-
disabled: isSelectableDisable,
|
|
196
|
-
id,
|
|
197
|
-
name: `checkbox-offer-list-${id}`,
|
|
198
|
-
onChange: () => {
|
|
199
|
-
if (expandable) {
|
|
200
|
-
handleChangeCheckbox();
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
value: id
|
|
204
|
-
}
|
|
205
|
-
)
|
|
206
|
-
}
|
|
207
|
-
) })
|
|
208
|
-
]
|
|
209
|
-
}
|
|
210
|
-
),
|
|
211
|
-
expandable ? /* @__PURE__ */ jsx(
|
|
212
|
-
List.Cell,
|
|
213
|
-
{
|
|
214
|
-
className: cn(
|
|
215
|
-
offerListNoPaddingCell,
|
|
216
|
-
isSelected ? offerListSelectedCell : ""
|
|
217
|
-
),
|
|
218
|
-
children: /* @__PURE__ */ jsx(
|
|
219
|
-
Button,
|
|
220
|
-
{
|
|
221
|
-
"aria-label": "expand",
|
|
222
|
-
"data-testid": "list-expand-button",
|
|
223
|
-
disabled: (disabled ?? !expandable) || loading,
|
|
224
|
-
onClick: toggleRowExpand,
|
|
225
|
-
sentiment: "neutral",
|
|
226
|
-
size: "small",
|
|
227
|
-
variant: "ghost",
|
|
228
|
-
children: expandedRowIds[id] ? /* @__PURE__ */ jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsx(ArrowDownIcon, {})
|
|
229
|
-
}
|
|
230
|
-
)
|
|
231
|
-
}
|
|
232
|
-
) : null,
|
|
233
|
-
/* @__PURE__ */ jsx(
|
|
234
|
-
OfferListRowContext.Provider,
|
|
235
|
-
{
|
|
236
|
-
value: { selected: isSelected, banner: !!banner },
|
|
237
|
-
children
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
]
|
|
241
|
-
}
|
|
242
|
-
),
|
|
243
|
-
banner && !expandedRowIds[id] ? /* @__PURE__ */ jsx(
|
|
244
|
-
Banner,
|
|
245
|
-
{
|
|
246
|
-
colSpan: childrenNumber,
|
|
247
|
-
disabled,
|
|
248
|
-
sentiment: banner.sentiment,
|
|
249
|
-
shouldHavePrimaryBorder: isHovered || isRowSelected,
|
|
250
|
-
type: "cell",
|
|
251
|
-
children: banner.text
|
|
252
|
-
}
|
|
253
|
-
) : null
|
|
254
|
-
] });
|
|
255
|
-
};
|
|
256
|
-
export {
|
|
257
|
-
Row
|
|
258
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const expandablePadding: `var(--${string})`;
|
|
2
|
-
export declare const offerList: string;
|
|
3
|
-
export declare const offerListBanner: string;
|
|
4
|
-
export declare const offerListBannerText: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
5
|
-
disabled: {
|
|
6
|
-
true: {
|
|
7
|
-
border: `1px solid var(--${string})`;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
primaryBorder: {
|
|
11
|
-
false: {
|
|
12
|
-
border: `1px solid var(--${string})`;
|
|
13
|
-
selectors: {
|
|
14
|
-
'&&': {
|
|
15
|
-
borderTop: "1px solid transparent";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
sentiment: {
|
|
21
|
-
[k: string]: {};
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
24
|
-
export declare const offerListBannerCell: string;
|
|
25
|
-
export declare const offerListBannerStack: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
26
|
-
sentiment: {
|
|
27
|
-
[k: string]: {
|
|
28
|
-
backgroundColor: `var(--${string})`;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}>;
|
|
32
|
-
export declare const offerListBadge: string;
|
|
33
|
-
export declare const offerListNoPaddingCell: string;
|
|
34
|
-
export declare const offerListRowSelected: string;
|
|
35
|
-
export declare const offerListRowSelectedNotExpandable: string;
|
|
36
|
-
export declare const offerListRowSelectedExpandable: string;
|
|
37
|
-
export declare const offerListRowBanner: string;
|
|
38
|
-
export declare const offerListCellNoRadius: string;
|
|
39
|
-
export declare const offerListRowSelectableContainer: string;
|
|
40
|
-
export declare const offerListRowExpandable: string;
|
|
41
|
-
export declare const offerListCell: string;
|
|
42
|
-
export declare const offerListLoadingCell: string;
|
|
43
|
-
export declare const offerListSelectedCell: string;
|
|
44
|
-
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/OfferList/styles.css.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,iBAAiB,oBAAc,CAAA;AAkB5C,eAAO,MAAM,SAAS,QAAY,CAAA;AAQlC,eAAO,MAAM,eAAe,QAQ1B,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;EAsD9B,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAQ9B,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;EA8B/B,CAAA;AAEF,eAAO,MAAM,cAAc,QAIzB,CAAA;AAEF,eAAO,MAAM,sBAAsB,QAQjC,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAE/B,CAAA;AACF,eAAO,MAAM,iCAAiC,QAE5C,CAAA;AACF,eAAO,MAAM,8BAA8B,QAAY,CAAA;AAEvD,eAAO,MAAM,kBAAkB,QAAY,CAAA;AAC3C,eAAO,MAAM,qBAAqB,QAShC,CAAA;AAEF,eAAO,MAAM,+BAA+B,QAA6B,CAAA;AAEzE,eAAO,MAAM,sBAAsB,QAEjC,CAAA;AAEF,eAAO,MAAM,aAAa,QAQxB,CAAA;AASF,eAAO,MAAM,oBAAoB,QAA4B,CAAA;AAE7D,eAAO,MAAM,qBAAqB,QAEhC,CAAA"}
|