quirk-ui 0.1.2 → 0.1.3
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/CategoryFilters-BQ3HNIBf.cjs +1 -0
- package/dist/CategoryFilters-bKLPkXw7.js +79 -0
- package/dist/HeroSubComponents-CGkYeBIT.js +202 -0
- package/dist/HeroSubComponents-CfbLrTJF.cjs +6 -0
- package/dist/assets/CategoryFilters.css +1 -1
- package/dist/assets/HeroSubComponents.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index61.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/core/components/Carousel/index.cjs +1 -1
- package/dist/core/components/Carousel/index.mjs +1 -1
- package/dist/core/components/DatePicker/index.cjs +2 -2
- package/dist/core/components/DatePicker/index.mjs +52 -52
- package/dist/core/components/Grid/index.cjs +1 -1
- package/dist/core/components/Grid/index.mjs +1 -1
- package/dist/core/components/Input/index.cjs +1 -1
- package/dist/core/components/Input/index.mjs +1 -1
- package/dist/core/components/Select/index.cjs +1 -1
- package/dist/core/components/Select/index.mjs +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +23 -2
- package/dist/main.mjs +23 -20
- package/dist/next/blocks/AccordionBlock/index.cjs +1 -1
- package/dist/next/blocks/AccordionBlock/index.mjs +17 -17
- package/dist/next/blocks/AdditionalCategoriesBlock/index.cjs +1 -1
- package/dist/next/blocks/AdditionalCategoriesBlock/index.mjs +22 -21
- package/dist/next/blocks/CardGridBlock/index.cjs +1 -1
- package/dist/next/blocks/CardGridBlock/index.mjs +1 -1
- package/dist/next/blocks/CarouselBlock/index.cjs +1 -1
- package/dist/next/blocks/CarouselBlock/index.mjs +1 -1
- package/dist/next/blocks/ContentBlock/index.cjs +1 -1
- package/dist/next/blocks/ContentBlock/index.mjs +73 -69
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.mjs +1 -1
- package/dist/next/blocks/DocumentListBlock/index.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/index.mjs +75 -65
- package/dist/next/blocks/FeaturedDocumentsBlock/index.cjs +1 -1
- package/dist/next/blocks/FeaturedDocumentsBlock/index.mjs +78 -74
- package/dist/next/blocks/HeroBlock/HeroSubComponents.cjs +1 -1
- package/dist/next/blocks/HeroBlock/HeroSubComponents.mjs +1 -1
- package/dist/next/blocks/HeroBlock/index.cjs +1 -1
- package/dist/next/blocks/HeroBlock/index.mjs +1 -1
- package/dist/next/blocks/QuoteBlock/index.cjs +1 -1
- package/dist/next/blocks/QuoteBlock/index.mjs +1 -1
- package/dist/next/blocks/RichTextBlock/index.cjs +1 -1
- package/dist/next/blocks/RichTextBlock/index.mjs +1 -1
- package/dist/next/blocks/StickyScrollBlock/index.cjs +1 -1
- package/dist/next/blocks/StickyScrollBlock/index.mjs +59 -49
- package/dist/next/blocks/TabsBlock/index.cjs +1 -1
- package/dist/next/blocks/TabsBlock/index.mjs +107 -94
- package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
- package/dist/next/blocks/WasHelpfulBlock/index.mjs +1 -1
- package/dist/next/cards/SpotlightCard/index.cjs +1 -1
- package/dist/next/cards/SpotlightCard/index.mjs +1 -1
- package/dist/next/ui/AnimatedSpan/index.cjs +1 -1
- package/dist/next/ui/AnimatedSpan/index.mjs +1 -1
- package/dist/next/ui/PortableTextRenderer/PortableTextRenderer.types.cjs +1 -0
- package/dist/next/ui/PortableTextRenderer/PortableTextRenderer.types.mjs +1 -0
- package/dist/next/ui/PortableTextRenderer/index.cjs +1 -1
- package/dist/next/ui/PortableTextRenderer/index.mjs +1 -1
- package/dist/next/utils/portableTextUtils.cjs +1 -1
- package/dist/next/utils/portableTextUtils.mjs +22 -3
- package/dist/next.cjs +1 -1
- package/dist/next.d.ts +23 -2
- package/dist/next.mjs +15 -12
- package/dist/styles.css +20 -20
- package/package.json +1 -1
- package/dist/CategoryFilters-C0_SftM8.js +0 -77
- package/dist/CategoryFilters-CvVjFOWh.cjs +0 -1
- package/dist/HeroSubComponents-CdjT4Z5_.js +0 -202
- package/dist/HeroSubComponents-OGshYYOc.cjs +0 -6
package/dist/assets/index5.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._additionalCategories_1wmnv_1{width:100%;margin-bottom:var(--spacing-md)}._container_1wmnv_6{padding:0 var(--spacing-md) var(--spacing-md);max-width:var(--layout-width);margin:0 auto}._categories_1wmnv_12{display:flex;align-items:center;justify-content:flex-start;gap:var(--spacing-md)}._categories_1wmnv_12 p{font-weight:var(--font-weight-semibold)}._list_1wmnv_23{display:flex;align-items:center;justify-content:center;gap:var(--spacing-md);flex-wrap:wrap}._category_1wmnv_31{display:flex;align-items:center;justify-content:center;padding:0 var(--spacing-md);height:35px;background-color:var(--color-secondary-75);border-radius:var(--radius-full);transition:background-color .3s ease-in-out;cursor:pointer;color:#fff;text-decoration:none}._category_1wmnv_31:hover{background-color:var(--color-primary-100)}.blog ._container_1wmnv_6{max-width:var(--blog-width)}
|
package/dist/assets/index6.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._cardGrid_o3qfg_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl);overflow:hidden}._padding_o3qfg_8{padding:var(--spacing-md) 0}._noPadding_o3qfg_12{padding:0}._container_o3qfg_16{width:100%;max-width:var(--layout-width);margin:0 auto;display:flex;flex-direction:column;gap:var(--spacing-md);padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._heading_o3qfg_27{display:flex;flex-direction:column;gap:var(--spacing-sm)}._heading_o3qfg_27:has(._title_o3qfg_32+._cta_o3qfg_32):not(:has(._text_o3qfg_32)){gap:var(--spacing-lg)}._heading_o3qfg_27 h1,._heading_o3qfg_27 h2,._heading_o3qfg_27 h3,._heading_o3qfg_27 h4,._heading_o3qfg_27 h5,._heading_o3qfg_27 h6{width:100%;margin-bottom:0}._title_o3qfg_32 span span:first-letter{text-transform:uppercase}._headingHorizontal_o3qfg_55{flex-direction:row;justify-content:space-between}._headingHorizontal_o3qfg_55 ._title_o3qfg_32{margin-bottom:0}@media (max-width: 768px){._headingHorizontal_o3qfg_55{flex-direction:column}}._headingVertical_o3qfg_68{flex-direction:column;justify-content:flex-start}._title_o3qfg_32:first-letter{text-transform:capitalize}h3._description_o3qfg_79{font-size:var(--font-size-xl);margin-top:var(--spacing-md)}._disclaimer_o3qfg_84{max-width:800px;margin-left:auto;margin-right:auto;margin-top:var(--spacing-md);font-size:var(--font-size-sm);color:var(--color-text-primary);line-height:var(--line-height-tight)}._cardGrid_o3qfg_1.split ._container_o3qfg_16{flex-direction:row}@media (max-width: 767px){._cardGrid_o3qfg_1.split ._container_o3qfg_16{flex-direction:column}}._cardGrid_o3qfg_1.split ._container_o3qfg_16 ._heading_o3qfg_27{flex:.5}._cardGrid_o3qfg_1.split ._container_o3qfg_16 ._grid_o3qfg_106{margin-top:0;flex:1;flex-direction:row}._cardGrid_o3qfg_1.split-35-65 ._container_o3qfg_16{flex-direction:row}@media (max-width: 767px){._cardGrid_o3qfg_1.split-35-65 ._container_o3qfg_16{flex-direction:column}}._cardGrid_o3qfg_1.split-35-65 ._container_o3qfg_16 ._heading_o3qfg_27{flex:.35}._cardGrid_o3qfg_1.split-35-65 ._container_o3qfg_16 ._grid_o3qfg_106{margin-top:0;flex:1;flex-direction:row}._grid_o3qfg_106{display:flex;flex-direction:column;gap:1rem}._segmentGrid_o3qfg_163{display:flex;flex-direction:row;align-items:stretch}@media (max-width: 768px){._segmentGrid_o3qfg_163{flex-direction:column}}._segmentGrid_o3qfg_163>*{flex:1;min-width:0;transition:flex .4s ease}._segmentGrid_o3qfg_163:has(article:hover)>*:has(article:hover){flex:1.4}._segmentGrid_o3qfg_163:has(article:hover)>*:not(:has(article:hover)){flex:.8}._gridComponent_o3qfg_195{padding:0}._grid--product_o3qfg_199 ._gridComponent_o3qfg_195{padding-top:var(--spacing-lg);padding-bottom:var(--spacing-lg)}
|
package/dist/assets/index61.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._wrapper_dht9n_1{display:flex;flex-direction:column;gap:var(--spacing-xs);position:relative}._label_dht9n_9{color:var(--color-text-primary);font-size:var(--font-size-md);font-family:var(--font-family-sans);font-weight:500;margin:0}._labelDisabled_dht9n_17{color:var(--color-secondary-50);cursor:not-allowed}._required_dht9n_22{color:var(--color-states-error-text);margin-left:var(--spacing-xs)}._inputWrapper_dht9n_28{position:relative;display:flex;align-items:center}._input_dht9n_28{width:100%;padding:var(--spacing-sm) 3rem var(--spacing-sm) var(--spacing-sm);border:2px solid var(--color-border);border-radius:var(--radius-md);font-size:var(--font-size-md);font-family:var(--font-family-sans);color:var(--color-text-primary);background-color:var(--color-foreground);cursor:pointer;transition:all .2s ease;outline:none}._input_dht9n_28::placeholder{color:var(--color-secondary-50)}._input_dht9n_28:hover:not(:disabled){border-color:var(--color-primary-100)}._input_dht9n_28:focus{border-color:var(--color-primary-100);box-shadow:0 0 0 3px var(--color-primary-10)}._inputDisabled_dht9n_62{background-color:var(--color-secondary-10);border-color:var(--color-secondary-25);cursor:not-allowed;color:var(--color-secondary-50)}._inputError_dht9n_69{border-color:var(--color-error)}._inputError_dht9n_69:focus{box-shadow:0 0 0 3px #ef44441a}._icons_dht9n_78{position:absolute;right:var(--spacing-sm);display:flex;align-items:center;gap:var(--spacing-xs);pointer-events:none}._calendarIcon_dht9n_87{color:var(--color-secondary-50);transition:color .2s ease}._iconDisabled_dht9n_92{opacity:.5}._input_dht9n_28:hover:not(:disabled)~._icons_dht9n_78 ._calendarIcon_dht9n_87{color:var(--color-primary-100)}._clearButton_dht9n_101{all:unset;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background-color:var(--color-secondary-25);color:var(--color-text-primary);font-weight:700;line-height:1;cursor:pointer;pointer-events:auto;transition:all .2s ease}._clearButton_dht9n_101:hover{background-color:var(--color-secondary-50);color:var(--color-primary-foreground)}._clearButton_dht9n_101:focus-visible{outline:2px solid var(--color-primary-100);outline-offset:2px}._helperText_dht9n_129{font-size:var(--font-size-sm);color:var(--color-secondary-50)}._helperTextError_dht9n_134{color:var(--color-states-error-text)}._popover_dht9n_139{position:absolute;top:calc(100% + var(--spacing-xs));left:0;z-index:1000;border-radius:var(--radius-lg);background-color:var(--color-foreground);border:1px solid var(--color-border);box-shadow:var(--shadow-lg);animation:_slideDown_dht9n_1 .2s ease}@keyframes _slideDown_dht9n_1{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){._popover_dht9n_139{left:50%;transform:translate(-50%)}}@media (max-width: 480px){._input_dht9n_28{font-size:var(--font-size-sm);padding:var(--spacing-xs) 2.5rem var(--spacing-xs) var(--spacing-xs)}._calendarIcon_dht9n_87{width:16px;height:16px}._clearButton_dht9n_101{width:18px;height:18px;font-size:16px}}
|
package/dist/assets/index7.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._carouselBlock_idvgn_1{width:100%;overflow-x:hidden;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_idvgn_8{display:flex;flex-direction:column;gap:var(--spacing-md);width:100%;max-width:var(--layout-width);margin:0 auto}@media (min-width: 768px){._container_idvgn_8{padding:var(--spacing-xl) calc(var(--spacing-md) - var(--spacing-sm))}}._heading_idvgn_21{display:flex;flex-direction:column;gap:var(--spacing-sm);padding:0 var(--spacing-md)}._heading_idvgn_21:has(._title_idvgn_27+._cta_idvgn_27):not(:has(._text_idvgn_27)){gap:var(--spacing-lg)}._heading_idvgn_21 h1,._heading_idvgn_21 h2,._heading_idvgn_21 h3,._heading_idvgn_21 h4,._heading_idvgn_21 h5,._heading_idvgn_21 h6{width:100%;margin-bottom:0}@media (min-width: 768px){._heading_idvgn_21{padding:0 calc(var(--spacing-md) - var(--spacing-sm))}}._carousel_idvgn_1{display:block}._rating_idvgn_50{display:flex;align-items:center;justify-content:flex-start;gap:var(--spacing-md)}@media (max-width: 767px){._rating_idvgn_50{justify-content:flex-start}}._ratingValue_idvgn_61{font-weight:var(--font-weight-semibold);color:var(--color-text-primary)}._ratingOuter_idvgn_66{color:transparent;font-size:var(--font-size-xl);position:relative;display:inline-flex}._ratingInner_idvgn_73{color:var(--color-warning);font-size:var(--font-size-xl);position:absolute;top:0;left:0;white-space:nowrap;overflow:hidden}._carouselBlock_idvgn_1.split ._container_idvgn_8{flex-direction:row}@media (max-width: 767px){._carouselBlock_idvgn_1.split ._container_idvgn_8{flex-direction:column}}._carouselBlock_idvgn_1.split ._heading_idvgn_21{flex:.35}._carouselBlock_idvgn_1.split ._carousel_idvgn_1{padding-top:0;margin-top:0;flex:1}@media (max-width: 767px){._carouselBlock_idvgn_1.split ._carousel_idvgn_1{gap:var(--spacing-md);padding-top:0}}._carouselBlock_idvgn_1.split .backgroundPrimary ._carouselComponent_idvgn_109 ._indicator_idvgn_110{background-color:var(--color-primary-100)}
|
package/dist/assets/index8.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._content_1fjz8_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_1fjz8_7{display:flex;align-items:center;justify-content:space-between;flex-direction:column;width:100%;max-width:var(--container-max-width, var(--layout-width));margin:0 auto;padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_1fjz8_7 h1,._container_1fjz8_7 h2,._container_1fjz8_7 h3,._container_1fjz8_7 h4,._container_1fjz8_7 h5,._container_1fjz8_7 h6{width:100%;margin-block:0}@media (max-width: 767px){._container_1fjz8_7{gap:var(--spacing-xl)}}._eyebrow_1fjz8_34{font-weight:var(--font-weight-bold)}._metrics_1fjz8_38{display:flex;align-items:flex-start;flex-wrap:wrap;gap:var(--spacing-md);padding:var(--spacing-md)}@media (max-width: 767px){._metrics_1fjz8_38{flex-direction:column}}._metric_1fjz8_38{flex:1}._metricValue_1fjz8_54{font-size:2.5rem;font-weight:var(--font-weight-bold);position:relative;z-index:1;color:var(--color-text-primary)}._metricValue_1fjz8_54:after{content:"";display:block;background-color:var(--color-primary-10);width:35px;height:35px;position:absolute;top:-3px;left:-.5rem;z-index:-1;border-radius:var(--radius-md)}._disclaimer_1fjz8_75{color:var(--color-text-primary);font-size:var(--font-size-sm)}._layoutHImageRight_1fjz8_80{flex-direction:row;gap:var(--gap, 5rem)}._layoutHImageRight_1fjz8_80 ._heading_1fjz8_84{gap:var(--spacing-sm);flex:.65}._layoutHImageRight_1fjz8_80 ._image_1fjz8_89{flex:.5}@media (max-width: 768px){._layoutHImageRight_1fjz8_80{flex-direction:column-reverse;gap:var(--spacing-lg)}}._noImage_1fjz8_99{flex-direction:column}._layoutHImageLeft_1fjz8_103{flex-direction:row-reverse;gap:var(--gap, 5rem)}._layoutHImageLeft_1fjz8_103 ._heading_1fjz8_84{gap:var(--spacing-sm);flex:.65}._layoutHImageLeft_1fjz8_103 ._image_1fjz8_89{flex:.5}@media (max-width: 768px){._layoutHImageLeft_1fjz8_103{flex-direction:column-reverse;gap:var(--spacing-lg)}}._layoutVImageTop_1fjz8_122{flex-direction:column-reverse;gap:var(--gap, var(--spacing-md))}._layoutVImageTop_1fjz8_122 ._heading_1fjz8_84{gap:var(--spacing-sm)}@media (max-width: 768px){._layoutVImageTop_1fjz8_122{gap:var(--spacing-lg)}}._layoutVImageBottom_1fjz8_135{flex-direction:column;gap:var(--gap, var(--spacing-md))}._layoutVImageBottom_1fjz8_135 ._heading_1fjz8_84{gap:var(--spacing-sm)}@media (max-width: 768px){._layoutVImageBottom_1fjz8_135{gap:var(--spacing-lg)}}._heading_1fjz8_84{display:flex;flex-direction:column;width:100%;gap:var(--spacing-sm)}._heading_1fjz8_84:not(:has(._text_1fjz8_154 .portableTextContainer)){gap:var(--spacing-lg)}._title_1fjz8_159{text-wrap:pretty}._text_1fjz8_154{flex:1;display:flex;justify-content:center;flex-direction:column;gap:var(--spacing-lg)}@media (max-width: 767px){._text_1fjz8_154{flex:1;width:100%;align-items:flex-start}}._cta_1fjz8_178{width:100%}@media (max-width: 767px){._cta_1fjz8_178{justify-content:flex-start}}._headingHorizontal_1fjz8_186{flex-direction:row;justify-content:space-between;gap:5rem}@media (max-width: 767px){._headingHorizontal_1fjz8_186{gap:var(--spacing-md)}}._headingHorizontal_1fjz8_186 ._titleWrapper_1fjz8_195,._headingHorizontal_1fjz8_186 .portableTextContainer{flex:1}._headingHorizontal_1fjz8_186 ._title_1fjz8_159{margin-bottom:0}._headingHorizontal_1fjz8_186 p._title_1fjz8_159{margin-top:1rem}@media (max-width: 768px){._headingHorizontal_1fjz8_186{flex-direction:column}}._headingVertical_1fjz8_216{flex-direction:column;justify-content:flex-start}._image_1fjz8_89{display:flex;align-items:center;justify-content:center;flex:1;width:100%;margin:0 auto;line-height:0}._image_1fjz8_89 img{width:100%;height:auto}._videoWrapper_1fjz8_237{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:var(--radius-md);flex:1}._videoWrapper_1fjz8_237 iframe,._videoWrapper_1fjz8_237 video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}._default_1fjz8_257{display:block}._default_1fjz8_257 img{border-radius:var(--radius-md)}._maxWidth_1fjz8_265{margin:0 auto}._maxWidth_1fjz8_265 img{max-width:var(--max-width, var(--layout-width));border-radius:var(--radius-md);height:auto}._fullBleed_1fjz8_275{width:100%;max-width:unset;border-radius:var(--radius-md);overflow:hidden}.blog ._container_1fjz8_7{max-width:var(--blog-width)}.centered ._heading_1fjz8_84{gap:var(--spacing-sm);align-items:center;justify-content:center}.centered ._text_1fjz8_154{align-items:center}.centered ._cta_1fjz8_178{justify-content:center}.backgroundPrimary ._text_1fjz8_154 p,.backgroundPrimary ._text_1fjz8_154 p a,.backgroundPrimary ._metricValue_1fjz8_54{color:#fff}.backgroundPrimary ._metricValue_1fjz8_54:after{background-color:var(--color-secondary-100)}.backgroundPrimary ._cta_1fjz8_178 ._secondary_1fjz8_316{background-color:#fff}.split-35-65 ._heading_1fjz8_84{flex:.35}._layoutSplitText_1fjz8_329{flex-direction:row;align-items:flex-start;gap:var(--gap, 5rem)}@media (max-width: 768px){._layoutSplitText_1fjz8_329{flex-direction:column;gap:var(--spacing-lg)}}._layoutSplitText_1fjz8_329 ._heading_1fjz8_84{flex:.5}._additionalContent_1fjz8_344{flex:.5;display:flex;flex-direction:column;gap:var(--spacing-md)}@media (max-width: 768px){._additionalContent_1fjz8_344{flex:1;width:100%}}
|
package/dist/assets/index9.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._featuredDocuments_qw1ao_1{width:100%;padding-top:var(--spacing-xl);padding-bottom:var(--spacing-xl)}._container_qw1ao_7{width:100%;max-width:var(--layout-width);margin:0 auto;display:flex;flex-direction:column;gap:var(--spacing-md);padding-left:var(--spacing-md);padding-right:var(--spacing-md)}._container_qw1ao_7:has(._carousel_qw1ao_17){padding-left:var(--spacing-md);padding-right:var(--spacing-md)}@media (max-width: 767px){._container_qw1ao_7:has(._carousel_qw1ao_17){padding-left:0;padding-right:0}}@media (max-width: 767px){._container_qw1ao_7:has(._carousel_qw1ao_17) ._heading_qw1ao_25{padding-left:var(--spacing-md);padding-right:var(--spacing-md)}}._heading_qw1ao_25{display:flex;flex-direction:column;gap:var(--spacing-sm);width:100%;min-height:2.4rem}@media (max-width: 767px){._heading_qw1ao_25{gap:2rem}}._eyebrow_qw1ao_46{font-weight:var(--font-weight-bold)}._flex_qw1ao_50{display:flex;align-items:flex-end;justify-content:space-between}@media (max-width: 767px){._flex_qw1ao_50{flex-direction:column;align-items:flex-start;gap:var(--spacing-md)}}._flex_qw1ao_50>div{flex:1}._flex_qw1ao_50 a{display:flex;align-items:center;gap:var(--spacing-sm);color:var(--color-primary-100);font-weight:var(--font-weight-semibold);text-decoration:none;transition:color .3s ease-in-out}._flex_qw1ao_50 a:hover{color:var(--color-secondary)}._title_qw1ao_80{flex:1;text-wrap:balance}._text_qw1ao_85{flex:1;display:flex;justify-content:center;flex-direction:column;gap:var(--spacing-lg)}@media (max-width: 767px){._text_qw1ao_85{flex:1;width:100%;align-items:flex-start}}._disclaimer_qw1ao_99{color:var(--color-text-primary);font-size:var(--font-size-sm)}._carousel_qw1ao_17{display:block}._carousel_qw1ao_17 ._document_qw1ao_107{margin:0 auto;flex:0 0 300px;min-height:350px}@media (max-width: 767px){._carousel_qw1ao_17 ._document_qw1ao_107{flex:0 0 100%}}._documents_qw1ao_126{display:grid;gap:var(--spacing-md)}._documents_qw1ao_126._col1_qw1ao_130{display:block}._documents_qw1ao_126._col1_qw1ao_130 ._document_qw1ao_107{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--spacing-lg)}@media (max-width: 767px){._documents_qw1ao_126._col1_qw1ao_130 ._document_qw1ao_107{flex-direction:column;gap:var(--spacing-md)}}._documents_qw1ao_126._col2_qw1ao_147{grid-template-columns:repeat(2,1fr)}._documents_qw1ao_126._col2_qw1ao_147 ._document_qw1ao_107{display:flex;flex-direction:column;gap:var(--spacing-md)}._documents_qw1ao_126._col3_qw1ao_157{grid-template-columns:repeat(3,1fr)}._documents_qw1ao_126._col3_qw1ao_157 ._document_qw1ao_107{display:flex;flex-direction:column;gap:var(--spacing-md)}._documents_qw1ao_126._col4_qw1ao_167{grid-template-columns:repeat(4,1fr)}._documents_qw1ao_126._col4_qw1ao_167 ._document_qw1ao_107{display:flex;flex-direction:column;gap:var(--spacing-md)}._documents_qw1ao_126._featuredTop_qw1ao_177{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);row-gap:var(--spacing-xl)}@media (max-width: 767px){._documents_qw1ao_126._featuredTop_qw1ao_177{row-gap:var(--spacing-xl)}}._documents_qw1ao_126._featuredTop_qw1ao_177 ._document_qw1ao_107:not(:first-of-type) ._documentExcerpt_qw1ao_187{display:none}@media (max-width: 767px){._documents_qw1ao_126._featuredTop_qw1ao_177 ._document_qw1ao_107:not(:first-of-type) ._documentExcerpt_qw1ao_187{display:block}}._documents_qw1ao_126._featuredTop_qw1ao_177 ._document_qw1ao_107:first-of-type{grid-column:1/4;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--spacing-lg)}@media (max-width: 767px){._documents_qw1ao_126._featuredTop_qw1ao_177 ._document_qw1ao_107:first-of-type{flex-direction:column;gap:var(--spacing-md)}}._documents_qw1ao_126._featuredTop_qw1ao_177 ._document_qw1ao_107:first-of-type ._documentContent_qw1ao_211{flex:.4}._documents_qw1ao_126._featuredLeft_qw1ao_217{grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(2,1fr);column-gap:var(--spacing-xl)}@media (max-width: 767px){._documents_qw1ao_126._featuredLeft_qw1ao_217{column-gap:var(--spacing-md)}}._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:not(:first-of-type){flex-direction:row;gap:var(--spacing-md)}@media (max-width: 767px){._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:not(:first-of-type){flex-direction:column}}._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:not(:first-of-type) ._documentContent_qw1ao_211{flex:1}@media (max-width: 767px){._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:not(:first-of-type) ._documentExcerpt_qw1ao_187{display:block}}._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:first-of-type{grid-row:1/4;display:flex;flex-direction:column;align-items:center;justify-content:center}._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:first-of-type ._documentContent_qw1ao_211{flex:.4}._documents_qw1ao_126._twoColumn_qw1ao_258{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}._documents_qw1ao_126._twoColumn_qw1ao_258 ._document_qw1ao_107{flex-direction:row;gap:var(--spacing-md);align-items:center}@media (max-width: 767px){._documents_qw1ao_126._col1_qw1ao_130,._documents_qw1ao_126._col2_qw1ao_147,._documents_qw1ao_126._col3_qw1ao_157,._documents_qw1ao_126._col4_qw1ao_167,._documents_qw1ao_126._featuredTop_qw1ao_177,._documents_qw1ao_126._featuredLeft_qw1ao_217,._documents_qw1ao_126._twoColumn_qw1ao_258{display:flex;flex-direction:column}._documents_qw1ao_126._col1_qw1ao_130 ._document_qw1ao_107:first-of-type,._documents_qw1ao_126._col1_qw1ao_130 ._document_qw1ao_107:not(:first-of-type),._documents_qw1ao_126._col2_qw1ao_147 ._document_qw1ao_107:first-of-type,._documents_qw1ao_126._col2_qw1ao_147 ._document_qw1ao_107:not(:first-of-type),._documents_qw1ao_126._col3_qw1ao_157 ._document_qw1ao_107:first-of-type,._documents_qw1ao_126._col3_qw1ao_157 ._document_qw1ao_107:not(:first-of-type),._documents_qw1ao_126._col4_qw1ao_167 ._document_qw1ao_107:first-of-type,._documents_qw1ao_126._col4_qw1ao_167 ._document_qw1ao_107:not(:first-of-type),._documents_qw1ao_126._featuredTop_qw1ao_177 ._document_qw1ao_107:first-of-type,._documents_qw1ao_126._featuredTop_qw1ao_177 ._document_qw1ao_107:not(:first-of-type),._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:first-of-type,._documents_qw1ao_126._featuredLeft_qw1ao_217 ._document_qw1ao_107:not(:first-of-type),._documents_qw1ao_126._twoColumn_qw1ao_258 ._document_qw1ao_107:first-of-type,._documents_qw1ao_126._twoColumn_qw1ao_258 ._document_qw1ao_107:not(:first-of-type){flex-direction:column;gap:var(--spacing-md)}}@media (max-width: 767px){._documents_qw1ao_126{gap:var(--spacing-xl)}}._multiple_qw1ao_293 ._documents_qw1ao_126{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--spacing-md)}._multiple_qw1ao_293 ._document_qw1ao_107{display:flex;flex-direction:column}._document_qw1ao_107{display:flex;text-decoration:none;overflow:hidden;transition:border-color .3s ease-in-out}._document_qw1ao_107:hover{border-color:var(--color-primary-100)}._document_qw1ao_107:hover ._documentTitle_qw1ao_317 h3{color:var(--color-primary-100)}._document_qw1ao_107:hover ._callToAction_qw1ao_323 ._label_qw1ao_324{opacity:1;transform:translateY(0);color:#fff}._document_qw1ao_107:hover ._callToAction_qw1ao_323 ._icon_qw1ao_330{color:var(--color-primary-100)}._documentEyebrow_qw1ao_337{font-size:var(--font-size-sm);color:var(--color-secondary)}._documentImage_qw1ao_342{width:100%;height:100%;aspect-ratio:16/9;position:relative;overflow:hidden;border-radius:var(--radius-md);line-height:0}._documentImage_qw1ao_342 img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease-in-out}._documentTitle_qw1ao_317{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-lg)}._documentContent_qw1ao_211{display:flex;flex-direction:column;gap:var(--spacing-sm);width:100%;color:var(--color-text-primary)}._documentContent_qw1ao_211 h3{flex:1;font-size:var(--font-size-lg);margin-bottom:0;transition:color .3s ease-in-out}._documentContent_qw1ao_211 p{text-decoration:none}._callToAction_qw1ao_323{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing-sm)}._callToAction_qw1ao_323 ._icon_qw1ao_330{display:flex;align-items:center;justify-content:center;width:25px;height:25px;background-color:transparent;color:var(--color-text-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out}._callToAction_qw1ao_323 ._label_qw1ao_324{color:var(--color-primary-100);font-weight:var(--font-weight-semibold);opacity:0;transform:translateY(10px);transition:opacity .3s ease-in-out,transform .3s ease-in-out}.blog ._container_qw1ao_7{max-width:var(--blog-width)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index16.css');const c=require("react/jsx-runtime"),n=require("react"),Ce=require("../../../arrow-left-4E3t8axP.cjs"),ye=require("../../../arrow-right-DO6S4vfx.cjs"),Se="_carousel_48j55_1",Ee="_noPointerEvents_48j55_21",ke="_trackContainer_48j55_25",Ie="_track_48j55_25",Xe="_isMounted_48j55_39",De="_page_48j55_44",Ne="_controls_48j55_54",Re="_indicators_48j55_65",Te="_indicator_48j55_65",We="_active_48j55_82",Ae="_buttons_48j55_86",Le="_prev_48j55_91",Pe="_disabled_48j55_91",qe="_next_48j55_92",ze="_expandable_48j55_122",r={carousel:Se,noPointerEvents:Ee,trackContainer:ke,track:Ie,isMounted:Xe,page:De,controls:Ne,indicators:Re,indicator:Te,active:We,buttons:Ae,prev:Le,disabled:Pe,next:qe,expandable:ze};function Ye({items:w,itemsPerPage:f=3,itemsPerRow:F=3,autoplay:J=!1,autoplayInterval:W=3,className:Q,parentRef:Z,siblingRef:p,isSplit:A=!1,isExpandable:ee=!1,ariaLabel:te="Carousel"}){const[d,v]=n.useState(0),[l,j]=n.useState(0),[_,k]=n.useState(0),[a,ne]=n.useState(f),[M,se]=n.useState(!1),[L,oe]=n.useState(J),[$,ae]=n.useState(!1),[re,ce]=n.useState(!1),le=n.useRef(null),h=n.useRef(null),x=n.useRef(null),C=Z,[m,I]=n.useState(!1),[P,q]=n.useState(null),[y,z]=n.useState(null),[Y,B]=n.useState(null),[ie,H]=n.useState(!1),[b,K]=n.useState(null),[X,O]=n.useState(null),ue=e=>{Math.abs((X??0)-(b??0))>25&&(e.stopPropagation(),e.preventDefault())},de=e=>{K(e.clientX)},he=e=>{b!==null&&Math.abs(e.clientX-b)>5&&(H(!0),O(e.clientX))},fe=()=>{if(!b||!X){D();return}const e=b-X;Math.abs(e)>50&&(e>0?S():E()),D()},pe=()=>{D()},D=()=>{H(!1),K(null),O(null)},ve=e=>{e.key==="ArrowLeft"?(e.preventDefault(),E()):e.key==="ArrowRight"?(e.preventDefault(),S()):e.key==="Home"?(e.preventDefault(),T(0)):e.key==="End"&&(e.preventDefault(),T(i-1))},_e=e=>{z(e.touches[0].clientX),q(e.touches[0].clientY),I(!1)},U=n.useRef(null);n.useEffect(()=>{ce(!0)},[]),n.useEffect(()=>{const e=U.current;if(!e)return;const t=s=>{const o=s.touches[0].clientX-(y??0),u=s.touches[0].clientY-(P??0);!m&&Math.abs(o)>Math.abs(u)&&I(!0),m&&(s.preventDefault(),B(s.touches[0].clientX))};return e.addEventListener("touchmove",t,{passive:!0}),()=>{e.removeEventListener("touchmove",t)}},[m,y,P]);const Me=()=>{if(y===null||Y===null)return;const e=y-Y;Math.abs(e)>50&&(e>0?S():E()),z(null),B(null),q(null),I(!1)},we=(e,t)=>{const s=[];for(let o=0;o<e.length;o+=t)s.push(e.slice(o,o+t));return s};n.useLayoutEffect(()=>{if(typeof window<"u"){const e=()=>{const t=window.innerWidth<768,s=t?1:f;se(t),ne(t?1:f),v(o=>Math.min(o,Math.ceil(w.length/s)-1))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}},[f]);const N=Math.ceil(a/F),G=we(w,a),i=G.length,xe=3*16,me=3*16,be=n.useCallback(e=>{if(e&&!$){const t=e.getBoundingClientRect().width;t>0&&t!==_&&(k(t),ae(!0))}},[_,$]);n.useEffect(()=>{var e,t,s,o;if($&&l>0&&h.current&&((t=(e=h.current.children[0])==null?void 0:e.children[0])!=null&&t.children[0])){const g=((o=(s=h.current.children[0])==null?void 0:s.children[0])==null?void 0:o.children[0]).getBoundingClientRect().width;g>0&&g!==_&&k(g)}},[l,$,_]),n.useEffect(()=>{const e=new ResizeObserver(t=>{var s,o;for(let u of t)if(u.contentRect){M?j(u.contentRect.width-me):A?p!=null&&p.current?j(u.contentRect.width-((s=p==null?void 0:p.current)==null?void 0:s.offsetWidth)-xe):j(u.contentRect.width):(j(u.contentRect.width),k(((o=h==null?void 0:h.current)==null?void 0:o.children[0].children[0].children[0].getBoundingClientRect().width)??0));const g=M?1:f;v($e=>Math.min($e,Math.ceil(w.length/g)-1))}});return C!=null&&C.current&&e.observe(C.current),()=>e.disconnect()},[M,A,w]);const R=()=>{x.current&&clearInterval(x.current),oe(!1)},S=()=>{R(),v(e=>Math.min(e+1,i-1))},E=()=>{R(),v(e=>Math.max(e-1,0))},T=e=>{R(),v(e)},ge=()=>l?`translateX(-${d*l}px)`:"translateX(0px)",V=()=>{v(e=>e>=i-1?0:e+1)};n.useEffect(()=>(L&&(x.current=setInterval(V,W*1e3)),()=>{x.current&&clearInterval(x.current)}),[L,W,V]);const je={"--max-item-width":`${(l-(a-1)*16)/a}px`};return c.jsxs("div",{className:`${Q??""} ${r.carousel}`,ref:le,role:"region","aria-label":te,"aria-roledescription":"carousel",tabIndex:0,onKeyDown:ve,style:{outline:"none"},children:[c.jsx("div",{ref:U,className:`${r.trackContainer} ${ie||m?r.noPointerEvents:""}`,style:{maxWidth:`${l}px`,touchAction:m?"none":"pan-y"},onTouchStart:_e,onTouchEnd:Me,onMouseDown:de,onMouseMove:he,onMouseUp:fe,onMouseLeave:pe,children:c.jsx("div",{ref:h,className:`${r.track} ${re?r.isMounted:""}`,style:{width:`${i*100}%`,transform:ge()},"aria-live":"polite","aria-atomic":"true","aria-label":`Slide ${d+1} of ${i}`,children:G.map((e,t)=>c.jsx("div",{className:`${r.page} ${ee?r.expandable:""}`,style:{display:N>1?"grid":"flex",gridTemplateColumns:`repeat(${Math.ceil(a/N)}, 1fr)`,gridTemplateRows:`repeat(${N}, 1fr)`,width:`${l}px`,margin:`${a>1?"unset":"0 auto"}`,justifyContent:`${a>1?"unset":"center"}`},children:e.map((s,o)=>c.jsx("div",{ref:t===0&&o===0?be:null,onClickCapture:ue,style:{...je,display:a>1?"unset":"flex",justifyContent:a>1?"unset":"center",alignItems:a>1?"unset":"center",flexBasis:a>1?M?"100%":`${(l-(a-1)*16)/a}px`:"unset",width:a>1?M?`${l/a-16}px`:"unset":"100%"},children:s},o))},t))})}),i>1&&c.jsxs("div",{className:r.controls,style:{maxWidth:_>0&&f===1&&!M?`${_}px`:"unset"},children:[c.jsx("div",{className:r.indicators,children:Array.from({length:i}).map((e,t)=>c.jsx("button",{className:`${r.indicator} ${t===d?r.active:""}`,onClick:()=>T(t),"aria-label":`Go to group ${t+1}`},t))}),c.jsxs("div",{className:r.buttons,children:[c.jsx("button",{"aria-label":"Previous slide",className:`${r.prev} ${d===0?r.disabled:""}`,onClick:E,disabled:d===0,children:c.jsx(Ce.ArrowLeft,{size:36})}),c.jsx("button",{"aria-label":"Next slide",className:`${r.next} ${d>=i-1?r.disabled:""}`,onClick:S,disabled:d>=w.length-a,children:c.jsx(ye.ArrowRight,{size:36})})]})]})]})}exports.Carousel=Ye;
|
|
@@ -2,7 +2,7 @@ import { jsxs as R, jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as a, useRef as X, useEffect as x, useLayoutEffect as kt, useCallback as It } from "react";
|
|
3
3
|
import { A as Xt } from "../../../arrow-left-BIJvHwNQ.js";
|
|
4
4
|
import { A as Dt } from "../../../arrow-right-QEwnX3Sk.js";
|
|
5
|
-
import '../../../assets/
|
|
5
|
+
import '../../../assets/index16.css';const Nt = "_carousel_48j55_1", At = "_noPointerEvents_48j55_21", Tt = "_trackContainer_48j55_25", Wt = "_track_48j55_25", Lt = "_isMounted_48j55_39", St = "_page_48j55_44", Rt = "_controls_48j55_54", Pt = "_indicators_48j55_65", zt = "_indicator_48j55_65", Yt = "_active_48j55_82", Bt = "_buttons_48j55_86", Ht = "_prev_48j55_91", Kt = "_disabled_48j55_91", Ut = "_next_48j55_92", Gt = "_expandable_48j55_122", r = {
|
|
6
6
|
carousel: Nt,
|
|
7
7
|
noPointerEvents: At,
|
|
8
8
|
trackContainer: Tt,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index61.css');const r=require("react/jsx-runtime"),o=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index61.css');const r=require("react/jsx-runtime"),o=require("react"),v=require("../../../index-CiXCoJuk.cjs"),O=require("../Label/index.cjs"),B=require("../../../x-Dft9NVe_.cjs"),P=require("../../../createLucideIcon-DpotSgUx.cjs");/**
|
|
2
2
|
* @license lucide-react v0.488.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const W=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],z=P.createLucideIcon("calendar",W),R="
|
|
6
|
+
*/const W=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],z=P.createLucideIcon("calendar",W),R="_wrapper_dht9n_1",F="_inputWrapper_dht9n_28",X="_input_dht9n_28",A="_inputDisabled_dht9n_62",G="_inputError_dht9n_69",H="_icons_dht9n_78",J="_calendarIcon_dht9n_87",K="_iconDisabled_dht9n_92",Q="_clearButton_dht9n_101",U="_helperText_dht9n_129",Y="_helperTextError_dht9n_134",Z="_popover_dht9n_139",e={wrapper:R,inputWrapper:F,input:X,inputDisabled:A,inputError:G,icons:H,calendarIcon:J,iconDisabled:K,clearButton:Q,helperText:U,helperTextError:Y,popover:Z};function V({id:E,name:k,label:x,value:d,defaultValue:D,placeholder:$="Select date",required:y=!1,disabled:n=!1,error:a=!1,helperText:_,minDate:b,maxDate:j,disabledDates:w,formatStr:I="yyyy-MM-dd",className:N,onChange:s,onValueChange:c,...S}){const[l,m]=o.useState(D||d||null),[i,p]=o.useState(!1),f=o.useRef(null),u=E||`datepicker-${Math.random().toString(36).substr(2,9)}`;o.useEffect(()=>{d!==void 0&&m(d)},[d]),o.useEffect(()=>{const t=h=>{f.current&&!f.current.contains(h.target)&&p(!1)};return i&&document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[i]),o.useEffect(()=>{const t=h=>{h.key==="Escape"&&i&&p(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[i]);const L=t=>{m(t),p(!1),s==null||s(t),c==null||c(t)},T=t=>{t.stopPropagation(),m(null),s==null||s(null),c==null||c(null)},M=()=>{n||p(!i)},q=l?v.format(l,I):"";return r.jsxs("div",{ref:f,className:`${e.wrapper} ${N??""}`.trim(),children:[x&&r.jsx(O.Label,{htmlFor:u,intent:a?"error":n?"disabled":"default",required:y,disabled:n,size:"md",children:x}),r.jsxs("div",{className:e.inputWrapper,children:[r.jsx("input",{id:u,name:k,type:"text",readOnly:!0,value:q,onClick:M,placeholder:$,required:y,disabled:n,className:`${e.input} ${a?e.inputError:""} ${n?e.inputDisabled:""}`.trim(),"aria-invalid":a,"aria-describedby":_?`${u}-helper`:void 0,...S}),r.jsxs("div",{className:e.icons,children:[l&&!n&&r.jsx("button",{type:"button",onClick:T,className:e.clearButton,"aria-label":"Clear date",tabIndex:-1,children:r.jsx(B.X,{size:14})}),r.jsx(z,{size:18,className:`${e.calendarIcon} ${n?e.iconDisabled:""}`.trim()})]})]}),_&&r.jsx("div",{id:`${u}-helper`,className:`${e.helperText} ${a?e.helperTextError:""}`.trim(),children:_}),i&&r.jsx("div",{className:e.popover,children:r.jsx(v.Calendar,{selectedDate:l,onSelectDate:L,minDate:b,maxDate:j,disabledDates:w})})]})}exports.DatePicker=V;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k, useRef as z, useEffect as y } from "react";
|
|
3
3
|
import { f as j, C as P } from "../../../index-hM-Do4qg.js";
|
|
4
4
|
import { Label as R } from "../Label/index.mjs";
|
|
5
5
|
import { X as F } from "../../../x-CnsEH4Ox.js";
|
|
@@ -15,7 +15,7 @@ const A = [
|
|
|
15
15
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
16
16
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
17
17
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
18
|
-
], G = X("calendar", A), H = "
|
|
18
|
+
], G = X("calendar", A), H = "_wrapper_dht9n_1", J = "_inputWrapper_dht9n_28", K = "_input_dht9n_28", Q = "_inputDisabled_dht9n_62", U = "_inputError_dht9n_69", Y = "_icons_dht9n_78", Z = "_calendarIcon_dht9n_87", q = "_iconDisabled_dht9n_92", V = "_clearButton_dht9n_101", C = "_helperText_dht9n_129", g = "_helperTextError_dht9n_134", tt = "_popover_dht9n_139", t = {
|
|
19
19
|
wrapper: H,
|
|
20
20
|
inputWrapper: J,
|
|
21
21
|
input: K,
|
|
@@ -27,17 +27,17 @@ const A = [
|
|
|
27
27
|
clearButton: V,
|
|
28
28
|
helperText: C,
|
|
29
29
|
helperTextError: g,
|
|
30
|
-
popover:
|
|
30
|
+
popover: tt
|
|
31
31
|
};
|
|
32
|
-
function
|
|
33
|
-
id:
|
|
34
|
-
name:
|
|
35
|
-
label:
|
|
32
|
+
function ot({
|
|
33
|
+
id: x,
|
|
34
|
+
name: D,
|
|
35
|
+
label: v,
|
|
36
36
|
value: o,
|
|
37
|
-
defaultValue:
|
|
37
|
+
defaultValue: $,
|
|
38
38
|
placeholder: b = "Select date",
|
|
39
|
-
required:
|
|
40
|
-
disabled:
|
|
39
|
+
required: E = !1,
|
|
40
|
+
disabled: n = !1,
|
|
41
41
|
error: p = !1,
|
|
42
42
|
helperText: m,
|
|
43
43
|
minDate: w,
|
|
@@ -45,78 +45,78 @@ function oe({
|
|
|
45
45
|
disabledDates: I,
|
|
46
46
|
formatStr: T = "yyyy-MM-dd",
|
|
47
47
|
className: L,
|
|
48
|
-
onChange:
|
|
48
|
+
onChange: c,
|
|
49
49
|
onValueChange: s,
|
|
50
50
|
...M
|
|
51
51
|
}) {
|
|
52
|
-
const [
|
|
53
|
-
|
|
54
|
-
), [i,
|
|
52
|
+
const [d, _] = k(
|
|
53
|
+
$ || o || null
|
|
54
|
+
), [i, a] = k(!1), u = z(null), l = x || `datepicker-${Math.random().toString(36).substr(2, 9)}`;
|
|
55
55
|
y(() => {
|
|
56
56
|
o !== void 0 && _(o);
|
|
57
57
|
}, [o]), y(() => {
|
|
58
|
-
const
|
|
59
|
-
u.current && !u.current.contains(
|
|
58
|
+
const e = (f) => {
|
|
59
|
+
u.current && !u.current.contains(f.target) && a(!1);
|
|
60
60
|
};
|
|
61
|
-
return i && document.addEventListener("mousedown",
|
|
62
|
-
document.removeEventListener("mousedown",
|
|
61
|
+
return i && document.addEventListener("mousedown", e), () => {
|
|
62
|
+
document.removeEventListener("mousedown", e);
|
|
63
63
|
};
|
|
64
64
|
}, [i]), y(() => {
|
|
65
|
-
const
|
|
66
|
-
|
|
65
|
+
const e = (f) => {
|
|
66
|
+
f.key === "Escape" && i && a(!1);
|
|
67
67
|
};
|
|
68
|
-
return document.addEventListener("keydown",
|
|
68
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
69
69
|
}, [i]);
|
|
70
|
-
const S = (
|
|
71
|
-
_(
|
|
72
|
-
}, B = (
|
|
73
|
-
|
|
70
|
+
const S = (e) => {
|
|
71
|
+
_(e), a(!1), c == null || c(e), s == null || s(e);
|
|
72
|
+
}, B = (e) => {
|
|
73
|
+
e.stopPropagation(), _(null), c == null || c(null), s == null || s(null);
|
|
74
74
|
}, O = () => {
|
|
75
|
-
|
|
76
|
-
}, W =
|
|
77
|
-
return /* @__PURE__ */
|
|
75
|
+
n || a(!i);
|
|
76
|
+
}, W = d ? j(d, T) : "";
|
|
77
|
+
return /* @__PURE__ */ h(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
80
|
ref: u,
|
|
81
|
-
className: `${
|
|
81
|
+
className: `${t.wrapper} ${L ?? ""}`.trim(),
|
|
82
82
|
children: [
|
|
83
|
-
|
|
83
|
+
v && /* @__PURE__ */ r(
|
|
84
84
|
R,
|
|
85
85
|
{
|
|
86
|
-
htmlFor:
|
|
87
|
-
intent: p ? "error" :
|
|
88
|
-
required:
|
|
89
|
-
disabled:
|
|
86
|
+
htmlFor: l,
|
|
87
|
+
intent: p ? "error" : n ? "disabled" : "default",
|
|
88
|
+
required: E,
|
|
89
|
+
disabled: n,
|
|
90
90
|
size: "md",
|
|
91
|
-
children:
|
|
91
|
+
children: v
|
|
92
92
|
}
|
|
93
93
|
),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ h("div", { className: t.inputWrapper, children: [
|
|
95
95
|
/* @__PURE__ */ r(
|
|
96
96
|
"input",
|
|
97
97
|
{
|
|
98
|
-
id:
|
|
99
|
-
name:
|
|
98
|
+
id: l,
|
|
99
|
+
name: D,
|
|
100
100
|
type: "text",
|
|
101
101
|
readOnly: !0,
|
|
102
102
|
value: W,
|
|
103
103
|
onClick: O,
|
|
104
104
|
placeholder: b,
|
|
105
|
-
required:
|
|
106
|
-
disabled:
|
|
107
|
-
className: `${
|
|
105
|
+
required: E,
|
|
106
|
+
disabled: n,
|
|
107
|
+
className: `${t.input} ${p ? t.inputError : ""} ${n ? t.inputDisabled : ""}`.trim(),
|
|
108
108
|
"aria-invalid": p,
|
|
109
|
-
"aria-describedby": m ? `${
|
|
109
|
+
"aria-describedby": m ? `${l}-helper` : void 0,
|
|
110
110
|
...M
|
|
111
111
|
}
|
|
112
112
|
),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
113
|
+
/* @__PURE__ */ h("div", { className: t.icons, children: [
|
|
114
|
+
d && !n && /* @__PURE__ */ r(
|
|
115
115
|
"button",
|
|
116
116
|
{
|
|
117
117
|
type: "button",
|
|
118
118
|
onClick: B,
|
|
119
|
-
className:
|
|
119
|
+
className: t.clearButton,
|
|
120
120
|
"aria-label": "Clear date",
|
|
121
121
|
tabIndex: -1,
|
|
122
122
|
children: /* @__PURE__ */ r(F, { size: 14 })
|
|
@@ -126,7 +126,7 @@ function oe({
|
|
|
126
126
|
G,
|
|
127
127
|
{
|
|
128
128
|
size: 18,
|
|
129
|
-
className: `${
|
|
129
|
+
className: `${t.calendarIcon} ${n ? t.iconDisabled : ""}`.trim()
|
|
130
130
|
}
|
|
131
131
|
)
|
|
132
132
|
] })
|
|
@@ -134,15 +134,15 @@ function oe({
|
|
|
134
134
|
m && /* @__PURE__ */ r(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
|
-
id: `${
|
|
138
|
-
className: `${
|
|
137
|
+
id: `${l}-helper`,
|
|
138
|
+
className: `${t.helperText} ${p ? t.helperTextError : ""}`.trim(),
|
|
139
139
|
children: m
|
|
140
140
|
}
|
|
141
141
|
),
|
|
142
|
-
i && /* @__PURE__ */ r("div", { className:
|
|
142
|
+
i && /* @__PURE__ */ r("div", { className: t.popover, children: /* @__PURE__ */ r(
|
|
143
143
|
P,
|
|
144
144
|
{
|
|
145
|
-
selectedDate:
|
|
145
|
+
selectedDate: d,
|
|
146
146
|
onSelectDate: S,
|
|
147
147
|
minDate: w,
|
|
148
148
|
maxDate: N,
|
|
@@ -154,5 +154,5 @@ function oe({
|
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
ot as DatePicker
|
|
158
158
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index15.css');const q=require("react/jsx-runtime"),C="_grid_a6iq3_1",_={grid:C};function h({columns:r=1,rows:t,gap:b="1rem",rowGap:m,columnGap:n,areas:o,autoFit:g=!1,autoFitMinMax:f,alignItems:l,justifyItems:p,justifyContent:d,alignContent:u,fullHeight:c=!1,className:N,style:y,children:$,...x}){const e={...y,display:"grid",gap:b};if(m&&(e.rowGap=m),n&&(e.columnGap=n),o&&(e.gridTemplateAreas=o.map(i=>`"${i.join(" ")}"`).join(" ")),t){const i=isNaN(Number(t))?t:Number(t);e.gridTemplateRows=typeof i=="number"?`repeat(${i}, 1fr)`:i}if(g||f){const i=f||"250px";e.gridTemplateColumns=`repeat(auto-fit, minmax(${i}, 1fr))`}else if(typeof r=="object"){const{xs:i,sm:j,md:k,lg:v,xl:T}=r;[{breakpoint:"xs",value:i},{breakpoint:"sm",value:j},{breakpoint:"md",value:k},{breakpoint:"lg",value:v},{breakpoint:"xl",value:T}].forEach(({breakpoint:S,value:s})=>{const a=isNaN(Number(s))?s:Number(s);a&&(e[`--${S}-columns`]=typeof a=="number"?`repeat(${a}, 1fr)`:a)})}else{const i=isNaN(Number(r))?r:Number(r);e.gridTemplateColumns=typeof i=="number"?`repeat(${i}, 1fr)`:i}return l&&(e.alignItems=l),p&&(e.justifyItems=p),d&&(e.justifyContent=d),u&&(e.alignContent=u),c&&(e.minHeight="100%"),q.jsx("div",{className:`${N??""} ${_.grid}`.trim(),style:e,...x,children:$})}exports.Grid=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index17.css');const e=require("react/jsx-runtime"),j=require("../Label/index.cjs"),C="_wrapper_1nvgm_1",M="_fullWidth_1nvgm_8",L="_inputContainer_1nvgm_36",N="_input_1nvgm_36",y="_sm_1nvgm_78",b="_md_1nvgm_84",w="_lg_1nvgm_90",R="_filled_1nvgm_102",W="_flushed_1nvgm_112",S="_hasLeftIcon_1nvgm_126",T="_hasRightIcon_1nvgm_130",q="_leftIcon_1nvgm_134",E="_rightIcon_1nvgm_145",F="_errorInput_1nvgm_157",O="_helperText_1nvgm_167",k="_errorMessage_1nvgm_173",n={wrapper:C,fullWidth:M,inputContainer:L,input:N,sm:y,md:b,lg:w,default:"_default_1nvgm_97",filled:R,flushed:W,hasLeftIcon:S,hasRightIcon:T,leftIcon:q,rightIcon:E,errorInput:F,helperText:O,errorMessage:k};function z({label:_,id:g,className:h,error:r,helperText:i,required:d,disabled:o,readOnly:p,size:m="md",variant:f="default",fullWidth:v=!1,leftIcon:a,rightIcon:l,style:I,...u}){const s=g??u.name??`input-${Math.random().toString(36).slice(2)}`,t=!!r,c=typeof r=="string"?r:void 0,$={sm:n.sm,md:n.md,lg:n.lg}[m],x={default:n.default,filled:n.filled,flushed:n.flushed}[f];return e.jsxs("div",{className:`${h??""} ${n.wrapper} ${v?n.fullWidth:""}`.trim(),style:I,children:[_&&e.jsx(j.Label,{htmlFor:s,size:m,intent:t?"error":o?"disabled":"default",required:d,disabled:o,children:_}),e.jsxs("div",{className:`${n.inputContainer} ${t?n.errorContainer:""}`.trim(),children:[a&&e.jsx("span",{className:n.leftIcon,"aria-hidden":"true",children:a}),e.jsx("input",{id:s,className:`${n.input} ${$} ${x} ${t?n.errorInput:""} ${a?n.hasLeftIcon:""} ${l?n.hasRightIcon:""}`.trim(),"aria-invalid":t,"aria-describedby":c||i?`${s}-description`:void 0,disabled:o,readOnly:p,required:d,...u}),l&&e.jsx("span",{className:n.rightIcon,"aria-hidden":"true",children:l})]}),(c||i)&&e.jsx("div",{id:`${s}-description`,className:`${n.helperText} ${t?n.errorMessage:""}`.trim(),children:c||i})]})}exports.Input=z;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Label as N } from "../Label/index.mjs";
|
|
3
|
-
import '../../../assets/
|
|
3
|
+
import '../../../assets/index17.css';const x = "_wrapper_1nvgm_1", L = "_fullWidth_1nvgm_8", w = "_inputContainer_1nvgm_36", R = "_input_1nvgm_36", W = "_sm_1nvgm_78", y = "_md_1nvgm_84", j = "_lg_1nvgm_90", T = "_filled_1nvgm_102", b = "_flushed_1nvgm_112", E = "_hasLeftIcon_1nvgm_126", F = "_hasRightIcon_1nvgm_130", S = "_leftIcon_1nvgm_134", k = "_rightIcon_1nvgm_145", z = "_errorInput_1nvgm_157", A = "_helperText_1nvgm_167", B = "_errorMessage_1nvgm_173", n = {
|
|
4
4
|
wrapper: x,
|
|
5
5
|
fullWidth: L,
|
|
6
6
|
inputContainer: w,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index18.css');const r=require("react/jsx-runtime"),C=require("../Label/index.cjs"),N="_wrapper_1i56r_1",W="_fullWidth_1i56r_8",M="_selectContainer_1i56r_13",O="_select_1i56r_13",q="_sm_1i56r_63",L="_md_1i56r_70",E="_lg_1i56r_77",F="_arrow_1i56r_104",G="_error_1i56r_124",I="_helperText_1i56r_134",P="_errorText_1i56r_140",e={wrapper:N,fullWidth:W,selectContainer:M,select:O,sm:q,md:L,lg:E,arrow:F,error:G,helperText:I,errorText:P};function k(o){return"options"in o}function z({id:o,name:p,label:u,placeholder:h="Select an option",options:b,value:m,defaultValue:x,required:f=!1,disabled:l=!1,error:c=!1,helperText:a,size:$="md",fullWidth:j=!1,multiple:d=!1,className:v,style:w,onChange:T,...S}){const n=o??p??`select-${Math.random().toString(36).slice(2)}`,i=!!c,_=typeof c=="string"?c:void 0,y={sm:e.sm,md:e.md,lg:e.lg}[$],g=s=>s.map(t=>r.jsx("option",{value:t.value,disabled:t.disabled,children:t.label},t.value));return r.jsxs("div",{className:`${v??""} ${e.wrapper} ${j?e.fullWidth:""}`.trim(),style:w,children:[u&&r.jsx(C.Label,{htmlFor:n,size:$,intent:i?"error":l?"disabled":"default",required:f,disabled:l,children:u}),r.jsxs("div",{className:e.selectContainer,children:[r.jsxs("select",{id:n,name:p,value:m,defaultValue:x,required:f,disabled:l,multiple:d,onChange:T,className:`${e.select} ${y} ${i?e.error:""}`.trim(),"aria-invalid":i,"aria-describedby":_||a?`${n}-description`:void 0,...S,children:[!d&&h&&!m&&!x&&r.jsx("option",{value:"",disabled:!0,hidden:!0,children:h}),b.map((s,t)=>k(s)?r.jsx("optgroup",{label:s.label,children:g(s.options)},t):g([s])[0])]}),!d&&r.jsx("span",{className:e.arrow,"aria-hidden":"true",children:"▼"})]}),(_||a)&&r.jsx("div",{id:`${n}-description`,className:`${e.helperText} ${i?e.errorText:""}`.trim(),children:_||a})]})}exports.Select=z;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { Label as S } from "../Label/index.mjs";
|
|
3
|
-
import '../../../assets/
|
|
3
|
+
import '../../../assets/index18.css';const j = "_wrapper_1i56r_1", M = "_fullWidth_1i56r_8", O = "_selectContainer_1i56r_13", E = "_select_1i56r_13", F = "_sm_1i56r_63", G = "_md_1i56r_70", I = "_lg_1i56r_77", L = "_arrow_1i56r_104", k = "_error_1i56r_124", z = "_helperText_1i56r_134", A = "_errorText_1i56r_140", r = {
|
|
4
4
|
wrapper: j,
|
|
5
5
|
fullWidth: M,
|
|
6
6
|
selectContainer: O,
|
package/dist/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const c=require("./core/components/Accordion/index.cjs"),t=require("./AccordionItem-BWiG2pOx.cjs"),i=require("./core/components/Avatar/index.cjs"),_=require("./core/components/Badge/index.cjs"),s=require("./core/components/Box/index.cjs"),d=require("./core/components/Breadcrumbs/index.cjs"),l=require("./core/components/ButtonGroup/index.cjs"),a=require("./index-CAxKHP72.cjs"),u=require("./core/components/Card/index.cjs"),x=require("./core/components/Carousel/index.cjs"),p=require("./core/components/Checkbox/index.cjs"),k=require("./core/components/Container/index.cjs"),m=require("./core/components/DatePicker/index.cjs"),q=require("./core/components/Divider/index.cjs"),B=require("./core/components/Drawer/index.cjs"),b=require("./core/components/Fieldset/index.cjs"),T=require("./core/components/FileUpload/index.cjs"),S=require("./core/components/FloatingActionButton/index.cjs"),C=require("./core/components/Footer/index.cjs"),g=require("./core/components/Form/index.cjs"),h=require("./core/components/Grid/index.cjs"),A=require("./core/components/Heading/index.cjs"),L=require("./core/components/Input/index.cjs"),v=require("./core/components/Label/index.cjs"),F=require("./core/components/List/index.cjs"),P=require("./core/components/Modal/index.cjs"),D=require("./core/components/MultiSelect/index.cjs"),H=require("./core/components/NavBar/index.cjs"),R=require("./core/components/Notification/index.cjs"),f=require("./core/components/NotificationContainer/index.cjs"),G=require("./core/components/ProgressBar/index.cjs"),N=require("./core/components/Radio/index.cjs"),M=require("./core/components/Range/index.cjs"),w=require("./core/components/Select/index.cjs"),I=require("./core/components/Sidebar/index.cjs"),y=require("./core/components/Skeleton/index.cjs"),U=require("./core/components/Spacer/index.cjs"),Q=require("./core/components/Spinner/index.cjs"),W=require("./core/components/Stack/index.cjs"),j=require("./core/components/Switch/index.cjs"),O=require("./core/components/Table/index.cjs"),z=require("./core/components/Tabs/index.cjs"),E=require("./core/components/Text/index.cjs"),J=require("./core/components/Textarea/index.cjs"),K=require("./core/components/Tooltip/index.cjs"),V=require("./core/utils/ThemeProvider/index.cjs"),X=require("./next/blocks/AccordionBlock/index.cjs"),Y=require("./next/blocks/AdditionalCategoriesBlock/index.cjs"),Z=require("./next/blocks/CardGridBlock/index.cjs"),$=require("./next/blocks/CarouselBlock/index.cjs"),ee=require("./next/blocks/ContentBlock/index.cjs"),oe=require("./next/blocks/DocumentListBlock/index.cjs"),re=require("./next/blocks/FeaturedDocumentsBlock/index.cjs"),ne=require("./next/blocks/HeroBlock/index.cjs"),e=require("./next/blocks/HeroBlock/HeroContext.cjs"),ce=require("./next/ui/LocaleLink/index.cjs"),te=require("./next/blocks/QuoteBlock/index.cjs"),ie=require("./next/blocks/RichTextBlock/index.cjs"),_e=require("./next/ui/PortableTextRenderer/index.cjs"),se=require("./next/blocks/StickyScrollBlock/index.cjs"),de=require("./next/blocks/TabsBlock/index.cjs"),le=require("./next/blocks/WasHelpfulBlock/index.cjs"),ae=require("./next/cards/SpotlightCard/index.cjs"),o=require("./next/context/LocaleBridge.cjs"),r=require("./core/context/ThemeContext.cjs"),n=require("./next/utils/portableTextUtils.cjs");exports.Accordion=c.Accordion;exports.AccordionItem=t.AccordionItem;exports.Avatar=i.Avatar;exports.Badge=_.Badge;exports.Box=s.Box;exports.Breadcrumbs=d.Breadcrumbs;exports.ButtonGroup=l.ButtonGroup;exports.Button=a.Button;exports.Card=u.Card;exports.Carousel=x.Carousel;exports.Checkbox=p.Checkbox;exports.Container=k.Container;exports.DatePicker=m.DatePicker;exports.Divider=q.Divider;exports.Drawer=B.Drawer;exports.Fieldset=b.Fieldset;exports.FileUpload=T.FileUpload;exports.FloatingActionButton=S.FloatingActionButton;exports.Footer=C.Footer;exports.Form=g.Form;exports.Grid=h.Grid;exports.Heading=A.Heading;exports.Input=L.Input;exports.Label=v.Label;exports.List=F.List;exports.Modal=P.Modal;exports.MultiSelect=D.MultiSelect;exports.Navbar=H.Navbar;exports.Notification=R.Notification;exports.NotificationContainer=f.NotificationContainer;exports.ProgressBar=G.ProgressBar;exports.Radio=N.Radio;exports.Range=M.Range;exports.Select=w.Select;exports.Sidebar=I.Sidebar;exports.Skeleton=y.Skeleton;exports.Spacer=U.Spacer;exports.Spinner=Q.Spinner;exports.Stack=W.Stack;exports.Switch=j.Switch;exports.Table=O.Table;exports.Tabs=z.Tabs;exports.Text=E.Text;exports.Textarea=J.Textarea;exports.Tooltip=K.Tooltip;exports.ThemeProvider=V.ThemeProvider;exports.AccordionBlock=X.AccordionBlock;exports.AdditionalCategoriesBlock=Y.AdditionalCategoriesBlock;exports.CardGridBlock=Z.CardGridBlock;exports.CarouselBlock=$.CarouselBlock;exports.ContentBlock=ee.ContentBlock;exports.DocumentListBlock=oe.DocumentListBlock;exports.FeaturedDocumentsBlock=re.FeaturedDocumentsBlock;exports.HeroBlock=ne.HeroBlock;exports.HeroProvider=e.HeroProvider;exports.useHeroContext=e.useHeroContext;exports.LocaleLink=ce.LocaleLink;exports.QuoteBlock=te.QuoteBlock;exports.RichTextBlock=ie.RichTextBlock;exports.RichText=_e.RichText;exports.StickyScrollBlock=se.StickyScrollBlock;exports.TabsBlock=de.TabsBlock;exports.WasHelpfulBlock=le.WasHelpfulBlock;exports.SpotlightCard=ae.SpotlightCard;exports.LocaleBridgeProvider=o.LocaleBridgeProvider;exports.useLocaleBridge=o.useLocaleBridge;exports.AppThemeProvider=r.AppThemeProvider;exports.useTheme=r.useTheme;exports.extractText=n.extractText;exports.renderRichText=n.renderRichText;
|
package/dist/main.d.ts
CHANGED
|
@@ -448,6 +448,13 @@ export declare type DrawerProps = {
|
|
|
448
448
|
|
|
449
449
|
export declare type DrawerSize = keyof typeof sizeClassMap_3;
|
|
450
450
|
|
|
451
|
+
/**
|
|
452
|
+
* Extracts plain text from a PortableText block array.
|
|
453
|
+
* Flattens all span children into a single string — suitable for Badge labels,
|
|
454
|
+
* aria attributes, and any context that needs a plain string from rich text.
|
|
455
|
+
*/
|
|
456
|
+
export declare function extractText(blocks: PortableTextBlock[]): string;
|
|
457
|
+
|
|
451
458
|
declare type FABPosition = "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
452
459
|
|
|
453
460
|
declare type FABSize = "sm" | "md" | "lg";
|
|
@@ -1350,10 +1357,24 @@ declare type RenderImageProps = {
|
|
|
1350
1357
|
style?: default_2.CSSProperties;
|
|
1351
1358
|
};
|
|
1352
1359
|
|
|
1353
|
-
|
|
1360
|
+
/**
|
|
1361
|
+
* Drop-in `renderRichText` prop for all QuirkUI blocks.
|
|
1362
|
+
*
|
|
1363
|
+
* @example
|
|
1364
|
+
* // Pass directly as a prop value — no wrapper needed
|
|
1365
|
+
* <HeroBlock {...section} renderRichText={renderRichText} />
|
|
1366
|
+
* <CardGridBlock {...section} renderRichText={renderRichText} />
|
|
1367
|
+
*/
|
|
1368
|
+
export declare function renderRichText({ blocks, className, textOverride, animateText, }: RenderRichTextProps): default_2.ReactElement | null;
|
|
1369
|
+
|
|
1370
|
+
export declare interface RenderRichTextProps {
|
|
1354
1371
|
blocks: PortableTextBlock[];
|
|
1355
1372
|
className?: string;
|
|
1356
|
-
|
|
1373
|
+
/** Optional plain-text override — replaces rendered block content */
|
|
1374
|
+
textOverride?: string;
|
|
1375
|
+
/** Triggers text entrance animation when true */
|
|
1376
|
+
animateText?: boolean;
|
|
1377
|
+
}
|
|
1357
1378
|
|
|
1358
1379
|
export declare type RichContent = string | {
|
|
1359
1380
|
type: "markdown";
|