@4alldigital/foundation-ui--gamma 1.22.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/foundation-ui.css +1 -1
- package/dist/index.esm.js +26 -6
- package/dist/index.js +26 -5
- package/dist/types/fui/components/Blockquote/Blockquote.d.ts +8 -0
- package/dist/types/fui/components/Blockquote/Blockquote.stories.d.ts +6 -0
- package/dist/types/fui/components/Blockquote/Blockquote.test.d.ts +1 -0
- package/dist/types/fui/components/Blockquote/Blockquote.types.d.ts +7 -0
- package/dist/types/fui/components/Blockquote/index.d.ts +1 -0
- package/dist/types/fui/components/Button/Button.d.ts +6 -0
- package/dist/types/fui/components/Button/Button.stories.d.ts +8 -0
- package/dist/types/fui/components/Button/Button.test.d.ts +1 -0
- package/dist/types/fui/components/Button/Button.types.d.ts +20 -0
- package/dist/types/fui/components/Button/index.d.ts +1 -0
- package/dist/types/fui/components/Container/Container.d.ts +6 -0
- package/dist/types/fui/components/Container/Container.stories.d.ts +6 -0
- package/dist/types/fui/components/Container/Container.test.d.ts +1 -0
- package/dist/types/fui/components/Container/Container.types.d.ts +6 -0
- package/dist/types/fui/components/Container/index.d.ts +1 -0
- package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.d.ts +3 -0
- package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.stories.d.ts +6 -0
- package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.test.d.ts +1 -0
- package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.types.d.ts +17 -0
- package/dist/types/fui/components/ContentPageLayout/index.d.ts +1 -0
- package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.d.ts +8 -0
- package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.stories.d.ts +6 -0
- package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.test.d.ts +1 -0
- package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.types.d.ts +15 -0
- package/dist/types/fui/components/ContentRowsLayout/index.d.ts +1 -0
- package/dist/types/fui/components/Copy/Copy.d.ts +11 -0
- package/dist/types/fui/components/Copy/Copy.stories.d.ts +6 -0
- package/dist/types/fui/components/Copy/Copy.test.d.ts +1 -0
- package/dist/types/fui/components/Copy/Copy.types.d.ts +40 -0
- package/dist/types/fui/components/Copy/index.d.ts +1 -0
- package/dist/types/fui/components/Heading/Heading.d.ts +8 -0
- package/dist/types/fui/components/Heading/Heading.stories.d.ts +7 -0
- package/dist/types/fui/components/Heading/Heading.test.d.ts +1 -0
- package/dist/types/fui/components/Heading/Heading.types.d.ts +31 -0
- package/dist/types/fui/components/Heading/index.d.ts +1 -0
- package/dist/types/fui/components/Hr/Hr.d.ts +2 -0
- package/dist/types/fui/components/Hr/Hr.stories.d.ts +6 -0
- package/dist/types/fui/components/Hr/Hr.test.d.ts +1 -0
- package/dist/types/fui/components/Hr/index.d.ts +1 -0
- package/dist/types/fui/components/Icon/Icon.d.ts +12 -0
- package/dist/types/fui/components/Icon/Icon.stories.d.ts +6 -0
- package/dist/types/fui/components/Icon/Icon.test.d.ts +1 -0
- package/dist/types/fui/components/Icon/Icon.types.d.ts +7 -0
- package/dist/types/fui/components/Icon/index.d.ts +1 -0
- package/dist/types/fui/components/Image/Image.d.ts +3 -0
- package/dist/types/fui/components/Image/Image.stories.d.ts +6 -0
- package/dist/types/fui/components/Image/Image.test.d.ts +1 -0
- package/dist/types/fui/components/Image/Image.types.d.ts +16 -0
- package/dist/types/fui/components/Image/index.d.ts +1 -0
- package/dist/types/fui/components/Link/Link.d.ts +11 -0
- package/dist/types/fui/components/Link/Link.stories.d.ts +6 -0
- package/dist/types/fui/components/Link/Link.test.d.ts +1 -0
- package/dist/types/fui/components/Link/Link.types.d.ts +12 -0
- package/dist/types/fui/components/Link/index.d.ts +1 -0
- package/dist/types/fui/components/List/List.d.ts +8 -0
- package/dist/types/fui/components/List/List.stories.d.ts +6 -0
- package/dist/types/fui/components/List/List.test.d.ts +1 -0
- package/dist/types/fui/components/List/List.types.d.ts +24 -0
- package/dist/types/fui/components/List/index.d.ts +1 -0
- package/dist/types/fui/components/ListItem/ListItem.d.ts +8 -0
- package/dist/types/fui/components/ListItem/ListItem.test.d.ts +1 -0
- package/dist/types/fui/components/ListItem/ListItem.types.d.ts +7 -0
- package/dist/types/fui/components/ListItem/index.d.ts +1 -0
- package/dist/types/fui/components/Loader/Loader.d.ts +8 -0
- package/dist/types/fui/components/Loader/Loader.stories.d.ts +6 -0
- package/dist/types/fui/components/Loader/Loader.test.d.ts +1 -0
- package/dist/types/fui/components/Loader/Loader.types.d.ts +4 -0
- package/dist/types/fui/components/Loader/index.d.ts +1 -0
- package/dist/types/fui/components/Notice/Notice.d.ts +3 -0
- package/dist/types/fui/components/Notice/Notice.stories.d.ts +6 -0
- package/dist/types/fui/components/Notice/Notice.test.d.ts +1 -0
- package/dist/types/fui/components/Notice/Notice.types.d.ts +5 -0
- package/dist/types/fui/components/Notice/index.d.ts +1 -0
- package/dist/types/fui/components/index.d.ts +15 -0
- package/dist/types/fui/context/ThemeContext.d.ts +18 -0
- package/dist/types/fui/index.d.ts +1 -0
- package/dist/types/fui/setupTests.d.ts +1 -0
- package/dist/types/fui/stories/Header.d.ts +11 -0
- package/dist/types/fui/stories/Header.stories.d.ts +8 -0
- package/dist/types/fui/stories/Page.d.ts +2 -0
- package/dist/types/fui/stories/Page.stories.d.ts +8 -0
- package/package.json +2 -2
package/dist/foundation-ui.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=checkbox]:indeterminate,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}body{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(16 35 59/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));font-family:ProximaNova-Regular,serif}:is(.dark body){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(16 35 59/var(--tw-bg-opacity));color:rgb(238 238 238/var(--tw-text-opacity))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:480px){.container{max-width:480px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:976px){.container{max-width:976px}}@media (min-width:1440px){.container{max-width:1440px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.relative{position:relative}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.-ml-1{margin-left:-.25rem}.mb-3{margin-bottom:.75rem}.mr-3{margin-right:.75rem}.mt-6{margin-top:1.5rem}.inline{display:inline}.flex{display:flex}.list-item{display:list-item}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-5xl{max-width:64rem}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.auto-cols-auto{grid-auto-columns:auto}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-around{justify-content:space-around}.gap-2{gap:.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(2px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(2px*var(--tw-divide-x-reverse))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-dark-body-text{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(0 47 108/var(--tw-border-opacity))}.border-primary-darker{--tw-border-opacity:1;border-color:rgb(0 42 97/var(--tw-border-opacity))}.border-secondary{--tw-border-opacity:1;border-color:rgb(252 183 0/var(--tw-border-opacity))}.border-secondary-darker{--tw-border-opacity:1;border-color:rgb(227 165 0/var(--tw-border-opacity))}.border-tertiary{--tw-border-opacity:1;border-color:rgb(42 61 130/var(--tw-border-opacity))}.border-tertiary-darker{--tw-border-opacity:1;border-color:rgb(38 55 117/var(--tw-border-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(0 47 108/var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity:1;background-color:rgb(252 183 0/var(--tw-bg-opacity))}.bg-tertiary{--tw-bg-opacity:1;background-color:rgb(42 61 130/var(--tw-bg-opacity))}.bg-transparent{background-color:initial}.p-0{padding:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-16{padding-bottom:4rem;padding-top:4rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-24{padding-bottom:6rem;padding-top:6rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-40{padding-bottom:10rem;padding-top:10rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.font-heading{font-family:ProximaNova-Bold,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.leading-5{line-height:1.25rem}.text-black{color:rgb(0 0 0/var(--tw-text-opacity))}.text-black,.text-white{--tw-text-opacity:1}.text-white{color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.hover\:border-primary-darker:hover{--tw-border-opacity:1;border-color:rgb(0 42 97/var(--tw-border-opacity))}.hover\:border-secondary-darker:hover{--tw-border-opacity:1;border-color:rgb(227 165 0/var(--tw-border-opacity))}.hover\:border-tertiary-darker:hover{--tw-border-opacity:1;border-color:rgb(38 55 117/var(--tw-border-opacity))}.hover\:bg-primary-darker:hover{--tw-bg-opacity:1;background-color:rgb(0 42 97/var(--tw-bg-opacity))}.hover\:bg-secondary-darker:hover{--tw-bg-opacity:1;background-color:rgb(227 165 0/var(--tw-bg-opacity))}.hover\:bg-tertiary-darker:hover{--tw-bg-opacity:1;background-color:rgb(38 55 117/var(--tw-bg-opacity))}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:border-dark-body-text){--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}
|
|
1
|
+
[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=checkbox]:checked{-webkit-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active) {[type=radio]:checked{-webkit-appearance:auto;appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=checkbox]:indeterminate,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%}@media (forced-colors:active) {[type=checkbox]:indeterminate{-webkit-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}body{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(16 35 59/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));font-family:ProximaNova-Regular,serif}:is(.dark body){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(16 35 59/var(--tw-bg-opacity));color:rgb(238 238 238/var(--tw-text-opacity))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:480px){.container{max-width:480px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:976px){.container{max-width:976px}}@media (min-width:1440px){.container{max-width:1440px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.relative{position:relative}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.-ml-1{margin-left:-.25rem}.mb-0{margin-bottom:0}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-24{margin-bottom:6rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-40{margin-bottom:10rem}.mb-8{margin-bottom:2rem}.mr-3{margin-right:.75rem}.mt-6{margin-top:1.5rem}.inline{display:inline}.flex{display:flex}.grid{display:grid}.list-item{display:list-item}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-5xl{max-width:64rem}.flex-1{flex:1 1 0%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.auto-cols-auto{grid-auto-columns:auto}.auto-rows-min{grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-around{justify-content:space-around}.gap-2{gap:.5rem}.gap-x-4{column-gap:1rem}.gap-y-0{row-gap:0}.gap-y-16{row-gap:4rem}.gap-y-2{row-gap:.5rem}.gap-y-24{row-gap:6rem}.gap-y-4{row-gap:1rem}.gap-y-40{row-gap:10rem}.gap-y-8{row-gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(2px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(2px*var(--tw-divide-x-reverse))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-solid{border-style:solid}.border-dark-body-text{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(0 47 108/var(--tw-border-opacity))}.border-primary-darker{--tw-border-opacity:1;border-color:rgb(0 42 97/var(--tw-border-opacity))}.border-secondary{--tw-border-opacity:1;border-color:rgb(252 183 0/var(--tw-border-opacity))}.border-secondary-darker{--tw-border-opacity:1;border-color:rgb(227 165 0/var(--tw-border-opacity))}.border-tertiary{--tw-border-opacity:1;border-color:rgb(42 61 130/var(--tw-border-opacity))}.border-tertiary-darker{--tw-border-opacity:1;border-color:rgb(38 55 117/var(--tw-border-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(0 47 108/var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity:1;background-color:rgb(252 183 0/var(--tw-bg-opacity))}.bg-tertiary{--tw-bg-opacity:1;background-color:rgb(42 61 130/var(--tw-bg-opacity))}.bg-transparent{background-color:initial}.p-0{padding:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-16{padding-bottom:4rem;padding-top:4rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-24{padding-bottom:6rem;padding-top:6rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-40{padding-bottom:10rem;padding-top:10rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.font-heading{font-family:ProximaNova-Bold,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.leading-5{line-height:1.25rem}.text-black{color:rgb(0 0 0/var(--tw-text-opacity))}.text-black,.text-white{--tw-text-opacity:1}.text-white{color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.hover\:border-primary-darker:hover{--tw-border-opacity:1;border-color:rgb(0 42 97/var(--tw-border-opacity))}.hover\:border-secondary-darker:hover{--tw-border-opacity:1;border-color:rgb(227 165 0/var(--tw-border-opacity))}.hover\:border-tertiary-darker:hover{--tw-border-opacity:1;border-color:rgb(38 55 117/var(--tw-border-opacity))}.hover\:bg-primary-darker:hover{--tw-bg-opacity:1;background-color:rgb(0 42 97/var(--tw-bg-opacity))}.hover\:bg-secondary-darker:hover{--tw-bg-opacity:1;background-color:rgb(227 165 0/var(--tw-bg-opacity))}.hover\:bg-tertiary-darker:hover{--tw-bg-opacity:1;background-color:rgb(38 55 117/var(--tw-bg-opacity))}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is(.dark .dark\:border-dark-body-text){--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}
|
|
2
2
|
@font-face{font-display:swap;font-family:ProximaNova-Regular;font-style:normal;font-weight:400;src:url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaReg.woff2) format("woff2"),url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaReg.woff) format("woff")}@font-face{font-display:swap;font-family:ProximaNova-Bold;font-style:normal;font-weight:700;src:url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaBold.woff2) format("woff2"),url(https://cdn.tools.4alldigital.io/fonts/ProximaNovaBold.woff) format("woff")}
|
package/dist/index.esm.js
CHANGED
|
@@ -168,9 +168,9 @@ Icon.defaultProps = {
|
|
|
168
168
|
};
|
|
169
169
|
|
|
170
170
|
var Image = function (_a) {
|
|
171
|
-
var src = _a.src, alt = _a.alt, title = _a.title, caption = _a.caption, figure = _a.figure, onLoad = _a.onLoad, id = _a.id, testID = _a.testID;
|
|
171
|
+
var src = _a.src, alt = _a.alt, title = _a.title, caption = _a.caption, figure = _a.figure, onLoad = _a.onLoad, id = _a.id, className = _a.className, testID = _a.testID;
|
|
172
172
|
var figureClasses = cx('m-0');
|
|
173
|
-
var classes = cx('w-full h-auto');
|
|
173
|
+
var classes = cx('w-full h-auto', className);
|
|
174
174
|
/**
|
|
175
175
|
* Render as a figure.
|
|
176
176
|
*/
|
|
@@ -184,7 +184,7 @@ var Image = function (_a) {
|
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
var Link = function (_a) {
|
|
187
|
-
var href = _a.href, children = _a.children, onClick = _a.onClick, history = _a.history, target = _a.target, id = _a.id, testID = _a.testID;
|
|
187
|
+
var href = _a.href, children = _a.children, onClick = _a.onClick, history = _a.history, target = _a.target, id = _a.id, testID = _a.testID, className = _a.className;
|
|
188
188
|
var handleClick = function (event) {
|
|
189
189
|
if (onClick) {
|
|
190
190
|
onClick(event);
|
|
@@ -198,8 +198,8 @@ var Link = function (_a) {
|
|
|
198
198
|
history.push(href);
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
var classes = cx('link');
|
|
202
|
-
return (jsx("a", { "data-testid": testID || id ||
|
|
201
|
+
var classes = cx('link', className);
|
|
202
|
+
return (jsx("a", { "data-testid": testID || id || 'Link', className: classes, href: href, onClick: handleClick, target: target, children: children }));
|
|
203
203
|
};
|
|
204
204
|
Link.defaultProps = {
|
|
205
205
|
href: undefined,
|
|
@@ -273,4 +273,24 @@ var ContentPageLayout = function (_a) {
|
|
|
273
273
|
return (jsx("div", { "data-testid": "ContentPageLayout", className: classes, children: children }));
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
var SIZE;
|
|
277
|
+
(function (SIZE) {
|
|
278
|
+
SIZE["NONE"] = "none";
|
|
279
|
+
SIZE["ATOM"] = "atom";
|
|
280
|
+
SIZE["DEFAULT"] = "default";
|
|
281
|
+
SIZE["ELEMENT"] = "element";
|
|
282
|
+
SIZE["COMPONENT"] = "component";
|
|
283
|
+
SIZE["MODULE"] = "module";
|
|
284
|
+
SIZE["FEATURE"] = "feature";
|
|
285
|
+
})(SIZE || (SIZE = {}));
|
|
286
|
+
|
|
287
|
+
var ContentRowsLayout = function (_a) {
|
|
288
|
+
var className = _a.className, children = _a.children, size = _a.size;
|
|
289
|
+
var classes = cx('grid', 'auto-rows-min', 'grid-cols-1', 'gap-x-4', { 'gap-y-0 mb-0': size === 'none' }, { 'gap-y-2 mb-2': size === 'atom' }, { 'gap-y-4 mb-4': size === 'default' }, { 'gap-y-8 mb-8': size === 'element' }, { 'gap-y-16 mb-16': size === 'module' }, { 'gap-y-24 mb-24': size === 'component' }, { 'gap-y-40 mb-40': size === 'feature' }, className);
|
|
290
|
+
return (jsx("div", { "data-testid": "ContentRowsLayout", className: classes, children: children }));
|
|
291
|
+
};
|
|
292
|
+
ContentRowsLayout.defaultProps = {
|
|
293
|
+
size: SIZE.DEFAULT,
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export { Blockquote, Button, Container, ContentPageLayout, ContentRowsLayout, Copy, Heading, Hr, Icon, Image, Link, List, ListItem, Loader, Notice };
|
package/dist/index.js
CHANGED
|
@@ -170,9 +170,9 @@ Icon.defaultProps = {
|
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
var Image = function (_a) {
|
|
173
|
-
var src = _a.src, alt = _a.alt, title = _a.title, caption = _a.caption, figure = _a.figure, onLoad = _a.onLoad, id = _a.id, testID = _a.testID;
|
|
173
|
+
var src = _a.src, alt = _a.alt, title = _a.title, caption = _a.caption, figure = _a.figure, onLoad = _a.onLoad, id = _a.id, className = _a.className, testID = _a.testID;
|
|
174
174
|
var figureClasses = cx('m-0');
|
|
175
|
-
var classes = cx('w-full h-auto');
|
|
175
|
+
var classes = cx('w-full h-auto', className);
|
|
176
176
|
/**
|
|
177
177
|
* Render as a figure.
|
|
178
178
|
*/
|
|
@@ -186,7 +186,7 @@ var Image = function (_a) {
|
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
var Link = function (_a) {
|
|
189
|
-
var href = _a.href, children = _a.children, onClick = _a.onClick, history = _a.history, target = _a.target, id = _a.id, testID = _a.testID;
|
|
189
|
+
var href = _a.href, children = _a.children, onClick = _a.onClick, history = _a.history, target = _a.target, id = _a.id, testID = _a.testID, className = _a.className;
|
|
190
190
|
var handleClick = function (event) {
|
|
191
191
|
if (onClick) {
|
|
192
192
|
onClick(event);
|
|
@@ -200,8 +200,8 @@ var Link = function (_a) {
|
|
|
200
200
|
history.push(href);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
|
-
var classes = cx('link');
|
|
204
|
-
return (jsxRuntime.jsx("a", { "data-testid": testID || id ||
|
|
203
|
+
var classes = cx('link', className);
|
|
204
|
+
return (jsxRuntime.jsx("a", { "data-testid": testID || id || 'Link', className: classes, href: href, onClick: handleClick, target: target, children: children }));
|
|
205
205
|
};
|
|
206
206
|
Link.defaultProps = {
|
|
207
207
|
href: undefined,
|
|
@@ -275,10 +275,31 @@ var ContentPageLayout = function (_a) {
|
|
|
275
275
|
return (jsxRuntime.jsx("div", { "data-testid": "ContentPageLayout", className: classes, children: children }));
|
|
276
276
|
};
|
|
277
277
|
|
|
278
|
+
var SIZE;
|
|
279
|
+
(function (SIZE) {
|
|
280
|
+
SIZE["NONE"] = "none";
|
|
281
|
+
SIZE["ATOM"] = "atom";
|
|
282
|
+
SIZE["DEFAULT"] = "default";
|
|
283
|
+
SIZE["ELEMENT"] = "element";
|
|
284
|
+
SIZE["COMPONENT"] = "component";
|
|
285
|
+
SIZE["MODULE"] = "module";
|
|
286
|
+
SIZE["FEATURE"] = "feature";
|
|
287
|
+
})(SIZE || (SIZE = {}));
|
|
288
|
+
|
|
289
|
+
var ContentRowsLayout = function (_a) {
|
|
290
|
+
var className = _a.className, children = _a.children, size = _a.size;
|
|
291
|
+
var classes = cx('grid', 'auto-rows-min', 'grid-cols-1', 'gap-x-4', { 'gap-y-0 mb-0': size === 'none' }, { 'gap-y-2 mb-2': size === 'atom' }, { 'gap-y-4 mb-4': size === 'default' }, { 'gap-y-8 mb-8': size === 'element' }, { 'gap-y-16 mb-16': size === 'module' }, { 'gap-y-24 mb-24': size === 'component' }, { 'gap-y-40 mb-40': size === 'feature' }, className);
|
|
292
|
+
return (jsxRuntime.jsx("div", { "data-testid": "ContentRowsLayout", className: classes, children: children }));
|
|
293
|
+
};
|
|
294
|
+
ContentRowsLayout.defaultProps = {
|
|
295
|
+
size: SIZE.DEFAULT,
|
|
296
|
+
};
|
|
297
|
+
|
|
278
298
|
exports.Blockquote = Blockquote;
|
|
279
299
|
exports.Button = Button;
|
|
280
300
|
exports.Container = Container;
|
|
281
301
|
exports.ContentPageLayout = ContentPageLayout;
|
|
302
|
+
exports.ContentRowsLayout = ContentRowsLayout;
|
|
282
303
|
exports.Copy = Copy;
|
|
283
304
|
exports.Heading = Heading;
|
|
284
305
|
exports.Hr = Hr;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Blockquote';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Props } from './Button.types';
|
|
2
|
+
declare const Button: {
|
|
3
|
+
({ variant, size, uppercase, children, id, type, disabled, ariaLabel, onClick, icon, external, iconFirst, raised, outline, wide, rounded, testID, }: Props): React.ReactElement;
|
|
4
|
+
defaultProps: Partial<Props>;
|
|
5
|
+
};
|
|
6
|
+
export default Button;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Button from '.';
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
type Story = StoryObj<typeof Button>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const WithIcon: Story;
|
|
8
|
+
export declare const IconOnly: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
4
|
+
size: 'small' | 'medium' | 'large';
|
|
5
|
+
uppercase?: boolean;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
type?: 'button' | 'submit' | 'reset';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
ariaLabel: string;
|
|
10
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
11
|
+
icon?: string;
|
|
12
|
+
external?: boolean;
|
|
13
|
+
iconFirst?: boolean;
|
|
14
|
+
raised?: boolean;
|
|
15
|
+
outline?: boolean;
|
|
16
|
+
wide?: boolean;
|
|
17
|
+
rounded?: boolean;
|
|
18
|
+
id?: string;
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Container';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare enum SPACING {
|
|
3
|
+
NONE = "none",
|
|
4
|
+
ATOM = "atom",
|
|
5
|
+
DEFAULT = "default",
|
|
6
|
+
ELEMENT = "element",
|
|
7
|
+
COMPONENT = "component",
|
|
8
|
+
MODULE = "module",
|
|
9
|
+
FEATURE = "feature"
|
|
10
|
+
}
|
|
11
|
+
export interface Props {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
narrow?: boolean;
|
|
14
|
+
flush?: boolean;
|
|
15
|
+
spacing?: SPACING;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ContentPageLayout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare enum SIZE {
|
|
3
|
+
NONE = "none",
|
|
4
|
+
ATOM = "atom",
|
|
5
|
+
DEFAULT = "default",
|
|
6
|
+
ELEMENT = "element",
|
|
7
|
+
COMPONENT = "component",
|
|
8
|
+
MODULE = "module",
|
|
9
|
+
FEATURE = "feature"
|
|
10
|
+
}
|
|
11
|
+
export interface Props {
|
|
12
|
+
className?: string;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
size?: SIZE;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ContentRowsLayout';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Align, Props, Tag } from './Copy.types';
|
|
2
|
+
declare const Copy: {
|
|
3
|
+
({ children, tag: Tag, size, align, transform, id, testID }: Props): React.ReactElement;
|
|
4
|
+
defaultProps: {
|
|
5
|
+
inverted: boolean;
|
|
6
|
+
maxLength: boolean;
|
|
7
|
+
tag: Tag;
|
|
8
|
+
align: Align;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default Copy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare enum Align {
|
|
3
|
+
LEFT = "left",
|
|
4
|
+
CENTER = "center",
|
|
5
|
+
RIGHT = "right",
|
|
6
|
+
JUSTIFY = "justify",
|
|
7
|
+
NOWRAP = "nowrap"
|
|
8
|
+
}
|
|
9
|
+
export declare enum Transform {
|
|
10
|
+
LOWERCASE = "lowercase",
|
|
11
|
+
UPPERCASE = "uppercase",
|
|
12
|
+
CAPITALIZE = "capitalize",
|
|
13
|
+
NORMALCASE = "normal-case"
|
|
14
|
+
}
|
|
15
|
+
export declare enum Contextual {
|
|
16
|
+
INVERTED = "inverted",
|
|
17
|
+
MUTED = "muted"
|
|
18
|
+
}
|
|
19
|
+
export declare enum Size {
|
|
20
|
+
SMALL = "small",
|
|
21
|
+
LARGE = "large",
|
|
22
|
+
INTRO = "intro"
|
|
23
|
+
}
|
|
24
|
+
export declare enum Tag {
|
|
25
|
+
P = "p",
|
|
26
|
+
DIV = "div",
|
|
27
|
+
SMALL = "small"
|
|
28
|
+
}
|
|
29
|
+
export interface Props {
|
|
30
|
+
children: string | Array<React.ReactNode> | React.ReactNode;
|
|
31
|
+
align?: Align;
|
|
32
|
+
size?: Size;
|
|
33
|
+
transform?: Transform;
|
|
34
|
+
contextual?: Contextual;
|
|
35
|
+
inverted?: boolean;
|
|
36
|
+
maxLength?: boolean;
|
|
37
|
+
tag: Tag;
|
|
38
|
+
id?: string;
|
|
39
|
+
testID?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Copy';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Heading from '.';
|
|
3
|
+
declare const meta: Meta<typeof Heading>;
|
|
4
|
+
type Story = StoryObj<typeof Heading>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const Examples: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare enum HeadingTag {
|
|
3
|
+
H1 = "h1",
|
|
4
|
+
H2 = "h2",
|
|
5
|
+
H3 = "h3",
|
|
6
|
+
H4 = "h4",
|
|
7
|
+
H5 = "h5"
|
|
8
|
+
}
|
|
9
|
+
export declare enum HeadingAlign {
|
|
10
|
+
LEFT = "left",
|
|
11
|
+
CENTER = "center",
|
|
12
|
+
RIGHT = "right",
|
|
13
|
+
JUSTIFY = "justify",
|
|
14
|
+
NOWRAP = "nowrap"
|
|
15
|
+
}
|
|
16
|
+
export declare enum HeadingTransform {
|
|
17
|
+
LOWERCASE = "lowercase",
|
|
18
|
+
UPPERCASE = "uppercase",
|
|
19
|
+
CAPITALIZE = "capitalize",
|
|
20
|
+
NORMAL_CASE = "normal-case"
|
|
21
|
+
}
|
|
22
|
+
export interface Props {
|
|
23
|
+
children: string | React.ReactNode;
|
|
24
|
+
tag: HeadingTag;
|
|
25
|
+
align?: HeadingAlign;
|
|
26
|
+
transform?: HeadingTransform;
|
|
27
|
+
id?: string;
|
|
28
|
+
testID?: string;
|
|
29
|
+
flush?: boolean;
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Heading';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Hr';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Props } from './Icon.types';
|
|
2
|
+
/**
|
|
3
|
+
* Icon component
|
|
4
|
+
* List of supported icons can be found at https://icon-sets.iconify.design.
|
|
5
|
+
*/
|
|
6
|
+
declare const Icon: {
|
|
7
|
+
({ name, size, color, id, testID }: Props): React.ReactElement;
|
|
8
|
+
defaultProps: {
|
|
9
|
+
size: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default Icon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Icon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type Props = {
|
|
2
|
+
src: string;
|
|
3
|
+
alt: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
onLoad?: () => void;
|
|
6
|
+
/** Image caption, will display as a `figure` if set. */
|
|
7
|
+
caption?: string;
|
|
8
|
+
/** Display within a `figure`. */
|
|
9
|
+
figure?: boolean;
|
|
10
|
+
/** The image will take up the entire width of the container. */
|
|
11
|
+
fluid?: boolean;
|
|
12
|
+
crossOrigin?: 'anonymous' | 'use-credentials';
|
|
13
|
+
id?: string;
|
|
14
|
+
testID?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Image';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Props } from './Link.types';
|
|
2
|
+
declare const Link: {
|
|
3
|
+
({ href, children, onClick, history, target, id, testID, className }: Props): React.ReactElement;
|
|
4
|
+
defaultProps: {
|
|
5
|
+
href: undefined;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
history: undefined;
|
|
8
|
+
target: undefined;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default Link;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { History } from 'history';
|
|
3
|
+
export interface Props {
|
|
4
|
+
href: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
history?: History;
|
|
7
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
8
|
+
onClick?: React.MouseEventHandler;
|
|
9
|
+
id?: string;
|
|
10
|
+
testID?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Link';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type VariantsTypes = 'unstyled' | 'inline' | 'small' | 'large';
|
|
3
|
+
export declare enum Variants {
|
|
4
|
+
UNSTYLED = "unstyled",
|
|
5
|
+
INLINE = "inline",
|
|
6
|
+
SMALL = "small",
|
|
7
|
+
LARGE = "large"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ListTag {
|
|
10
|
+
OL = "ol",
|
|
11
|
+
UL = "ul",
|
|
12
|
+
DL = "dl",
|
|
13
|
+
DIV = "div",
|
|
14
|
+
DT = "dt",
|
|
15
|
+
DD = "dd",
|
|
16
|
+
LI = "li"
|
|
17
|
+
}
|
|
18
|
+
export type Props = {
|
|
19
|
+
variants?: Array<Variants>;
|
|
20
|
+
children: string | React.ReactNode | Array<React.ReactNode>;
|
|
21
|
+
as: ListTag;
|
|
22
|
+
id?: string;
|
|
23
|
+
testID?: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './List';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ListItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Loader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Notice';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as Blockquote } from './Blockquote';
|
|
2
|
+
export { default as Button } from './Button';
|
|
3
|
+
export { default as Copy } from './Copy';
|
|
4
|
+
export { default as Hr } from './Hr';
|
|
5
|
+
export { default as Heading } from './Heading';
|
|
6
|
+
export { default as Icon } from './Icon';
|
|
7
|
+
export { default as Image } from './Image';
|
|
8
|
+
export { default as Link } from './Link';
|
|
9
|
+
export { default as List } from './List';
|
|
10
|
+
export { default as ListItem } from './ListItem';
|
|
11
|
+
export { default as Notice } from './Notice';
|
|
12
|
+
export { default as Loader } from './Loader';
|
|
13
|
+
export { default as Container } from './Container';
|
|
14
|
+
export { default as ContentPageLayout } from './ContentPageLayout';
|
|
15
|
+
export { default as ContentRowsLayout } from './ContentRowsLayout';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Brand {
|
|
3
|
+
logo: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
interface ThemeContextProps {
|
|
7
|
+
isDarkTheme: boolean;
|
|
8
|
+
toggleTheme: () => void;
|
|
9
|
+
brand?: Brand;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultTheme: ThemeContextProps;
|
|
12
|
+
export declare const ThemeContext: React.Context<ThemeContextProps>;
|
|
13
|
+
interface ThemeProviderProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
theme: ThemeContextProps;
|
|
16
|
+
}
|
|
17
|
+
declare const ThemeProvider: ({ children, theme }: ThemeProviderProps) => React.ReactElement;
|
|
18
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type User = {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
interface HeaderProps {
|
|
5
|
+
user?: User;
|
|
6
|
+
onLogin: () => void;
|
|
7
|
+
onLogout: () => void;
|
|
8
|
+
onCreateAccount: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Header } from './Header';
|
|
3
|
+
declare const meta: Meta<typeof Header>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Header>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LoggedIn: Story;
|
|
8
|
+
export declare const LoggedOut: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Page } from './Page';
|
|
3
|
+
declare const meta: Meta<typeof Page>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Page>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LoggedOut: Story;
|
|
8
|
+
export declare const LoggedIn: Story;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4alldigital/foundation-ui--gamma",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.1",
|
|
4
4
|
"description": "Foundation UI Component library with GAMMA theme. ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "cd3209776ac9773506e9c264f00e12225468b878",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@headlessui/react": "^1.7.8",
|
|
30
30
|
"@heroicons/react": "^2.0.14",
|