@trilogy-ds/react 0.0.1-beta-65 → 0.0.1-beta-69
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/lib/components/accordion/AccordionPropsDefaults.js +45 -0
- package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +59 -0
- package/lib/components/accordion/header/AccordionHeader.js +1 -1
- package/lib/components/accordion/header/AccordionHeader.js.map +1 -1
- package/lib/components/accordion/header/AccordionHeaderPropsDefaults.js +60 -0
- package/lib/components/accordion/index.d.ts +1 -2
- package/lib/components/accordion/index.js +1 -2
- package/lib/components/accordion/index.js.map +1 -1
- package/lib/components/accordion/item/AccordionItem.js +2 -1
- package/lib/components/accordion/item/AccordionItem.js.map +1 -1
- package/lib/components/accordion/item/AccordionItemPropsDefaults.js +68 -0
- package/lib/components/accordion/item/OnClickCallbackDefaults.js +1 -0
- package/lib/components/alert/AlertPropsDefaults.js +162 -0
- package/lib/components/alert/ToasterAlertPropsDefaults.js +242 -0
- package/lib/components/alert/context/ToastConfigDefaults.js +24 -0
- package/lib/components/alert/context/ToastPropsDefaults.js +129 -0
- package/lib/components/alert/index.d.ts +1 -2
- package/lib/components/alert/index.js +1 -2
- package/lib/components/alert/index.js.map +1 -1
- package/lib/components/badge/BadgePropsDefaults.js +85 -0
- package/lib/components/badge/index.d.ts +1 -2
- package/lib/components/badge/index.js +1 -2
- package/lib/components/badge/index.js.map +1 -1
- package/lib/components/box/BoxPropsDefaults.js +197 -0
- package/lib/components/box/content/BoxContentPropsDefaults.js +93 -0
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +77 -0
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +108 -0
- package/lib/components/box/index.d.ts +1 -2
- package/lib/components/box/index.js +1 -2
- package/lib/components/box/index.js.map +1 -1
- package/lib/components/box/item/BoxItemPropsDefaults.js +35 -0
- package/lib/components/box/table-container/BoxTableContainerPropsDefaults.js +45 -0
- package/lib/components/breadcrumb/BreadcrumbPropsDefaults.js +38 -0
- package/lib/components/breadcrumb/BreadcrumbWebPropsDefaults.js +45 -0
- package/lib/components/breadcrumb/index.d.ts +1 -2
- package/lib/components/breadcrumb/index.js +1 -2
- package/lib/components/breadcrumb/index.js.map +1 -1
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsDefaults.js +53 -0
- package/lib/components/breadcrumb/item/BreadcrumbItemPropsWebDefaults.js +253 -0
- package/lib/components/button/ButtonPropsDefaults.js +380 -0
- package/lib/components/button/index.d.ts +1 -2
- package/lib/components/button/index.js +1 -2
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/button/list/ButtonListPropsDefaults.js +19 -0
- package/lib/components/button/list/ButtonListWebPropsDefaults.js +50 -0
- package/lib/components/card/CardPropsDefaults.js +211 -0
- package/lib/components/card/content/CardContentPropsDefaults.js +167 -0
- package/lib/components/card/image/CardImagePropsDefaults.js +60 -0
- package/lib/components/card/index.d.ts +1 -2
- package/lib/components/card/index.js +1 -2
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/checkbox/CheckboxChangeEventDefaults.js +21 -0
- package/lib/components/checkbox/CheckboxClickEventDefaults.js +21 -0
- package/lib/components/checkbox/CheckboxPropsDefaults.js +200 -0
- package/lib/components/checkbox/index.d.ts +1 -2
- package/lib/components/checkbox/index.js +1 -2
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/chips/Chips.native.js +1 -1
- package/lib/components/chips/ChipsPropsDefaults.js +83 -0
- package/lib/components/chips/index.d.ts +1 -2
- package/lib/components/chips/index.js +1 -2
- package/lib/components/chips/index.js.map +1 -1
- package/lib/components/chips/list/ChipsListPropsDefaults.js +25 -0
- package/lib/components/columns/ColumnsPropsDefaults.js +106 -0
- package/lib/components/columns/index.d.ts +1 -2
- package/lib/components/columns/index.js +1 -2
- package/lib/components/columns/index.js.map +1 -1
- package/lib/components/columns/item/ColumnsItemPropsDefaults.js +323 -0
- package/lib/components/container/ContainerPropsDefaults.js +176 -0
- package/lib/components/container/index.d.ts +1 -2
- package/lib/components/container/index.js +1 -2
- package/lib/components/container/index.js.map +1 -1
- package/lib/components/countdown/CountdownPropsDefaults.js +49 -0
- package/lib/components/countdown/index.d.ts +1 -2
- package/lib/components/countdown/index.js +1 -2
- package/lib/components/countdown/index.js.map +1 -1
- package/lib/components/divider/DividerPropsDefaults.js +180 -0
- package/lib/components/divider/index.d.ts +1 -2
- package/lib/components/divider/index.js +1 -2
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/fab/FabPropsDefaults.js +187 -0
- package/lib/components/fab/index.d.ts +1 -2
- package/lib/components/fab/index.js +1 -2
- package/lib/components/fab/index.js.map +1 -1
- package/lib/components/hero/HeroPropsDefaults.js +135 -0
- package/lib/components/hero/index.d.ts +1 -2
- package/lib/components/hero/index.js +1 -2
- package/lib/components/hero/index.js.map +1 -1
- package/lib/components/icon/IconPropsDefaults.js +297 -0
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +158 -0
- package/lib/components/icon/index.d.ts +1 -2
- package/lib/components/icon/index.js +1 -2
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/status/StatusIconPropsDefaults.js +126 -0
- package/lib/components/icon/text/TextIcon.d.ts +4 -2
- package/lib/components/icon/text/TextIcon.js +15 -17
- package/lib/components/icon/text/TextIcon.js.map +1 -1
- package/lib/components/icon/text/TextIconPropsDefaults.js +160 -0
- package/lib/components/image/ImagePropsDefaults.js +75 -0
- package/lib/components/image/index.d.ts +1 -2
- package/lib/components/image/index.js +1 -2
- package/lib/components/image/index.js.map +1 -1
- package/lib/components/input/ILengthVerifyDefaults.js +16 -0
- package/lib/components/input/IValidationRulesDefaults.js +41 -0
- package/lib/components/input/InputChangeEventDefaults.js +17 -0
- package/lib/components/input/InputClickEventDefaults.js +10 -0
- package/lib/components/input/InputKeyboardEventDefaults.js +18 -0
- package/lib/components/input/InputNativeEventsDefaults.js +23 -0
- package/lib/components/input/InputPropsDefaults.js +681 -0
- package/lib/components/input/InputWebEventsDefaults.js +37 -0
- package/lib/components/input/autocomplete/AutoCompletePropsDefaults.js +765 -0
- package/lib/components/input/autocomplete/ItemDefaults.js +10 -0
- package/lib/components/input/autocomplete/ItemSelectedEventDefaults.js +10 -0
- package/lib/components/input/autocomplete/item/AutoCompleteItemPropsDefaults.js +56 -0
- package/lib/components/input/autocomplete/menu/AutoCompleteMenuPropsDefaults.js +60 -0
- package/lib/components/input/index.d.ts +1 -2
- package/lib/components/input/index.js +1 -2
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/link/LinkPropsDefaults.js +375 -0
- package/lib/components/link/index.d.ts +1 -2
- package/lib/components/link/index.js +1 -2
- package/lib/components/link/index.js.map +1 -1
- package/lib/components/list/ListPropsDefaults.js +53 -0
- package/lib/components/list/index.d.ts +1 -2
- package/lib/components/list/index.js +1 -2
- package/lib/components/list/index.js.map +1 -1
- package/lib/components/list/item/ListItemPropsDefaults.js +119 -0
- package/lib/components/list/item/description/ListItemDescriptionPropsDefaults.js +23 -0
- package/lib/components/modal/CloseButtonPropsDefaults.js +9 -0
- package/lib/components/modal/Modal.d.ts +1 -1
- package/lib/components/modal/Modal.js +8 -5
- package/lib/components/modal/Modal.js.map +1 -1
- package/lib/components/modal/ModalContentButtonPropsDefaults.js +16 -0
- package/lib/components/modal/ModalProps.d.ts +0 -4
- package/lib/components/modal/ModalPropsDefaults.js +325 -0
- package/lib/components/modal/footer/ModalFooterPropsDefaults.js +23 -0
- package/lib/components/modal/index.d.ts +1 -2
- package/lib/components/modal/index.js +1 -2
- package/lib/components/modal/index.js.map +1 -1
- package/lib/components/modal/title/ModalTitle.js +1 -1
- package/lib/components/modal/title/ModalTitle.js.map +1 -1
- package/lib/components/modal/title/ModalTitlePropsDefaults.js +92 -0
- package/lib/components/otp/OtpPropsDefaults.js +97 -0
- package/lib/components/otp/index.d.ts +1 -2
- package/lib/components/otp/index.js +1 -2
- package/lib/components/otp/index.js.map +1 -1
- package/lib/components/pagination/PaginationPropsDefaults.js +63 -0
- package/lib/components/pagination/index.d.ts +1 -2
- package/lib/components/pagination/index.js +1 -2
- package/lib/components/pagination/index.js.map +1 -1
- package/lib/components/popover/PopoverPropsDefaults.js +60 -0
- package/lib/components/popover/PopoverWebPropsDefaults.js +89 -0
- package/lib/components/popover/index.d.ts +1 -2
- package/lib/components/popover/index.js +1 -2
- package/lib/components/popover/index.js.map +1 -1
- package/lib/components/price/PricePropsDefaults.js +188 -0
- package/lib/components/price/index.d.ts +1 -2
- package/lib/components/price/index.js +1 -2
- package/lib/components/price/index.js.map +1 -1
- package/lib/components/product-tour/ProductTourPropsDefaults.js +85 -0
- package/lib/components/product-tour/ProductTourWebPropsDefaults.js +92 -0
- package/lib/components/progress/ProgressPropsDefaults.js +95 -0
- package/lib/components/progress/index.d.ts +1 -2
- package/lib/components/progress/index.js +1 -2
- package/lib/components/progress/index.js.map +1 -1
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +84 -0
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +165 -0
- package/lib/components/progress/radial/item/ProgressRadialItemPropsDefaults.js +49 -0
- package/lib/components/radio/RadioPropsDefaults.js +216 -0
- package/lib/components/radio/index.d.ts +1 -2
- package/lib/components/radio/index.js +1 -2
- package/lib/components/radio/index.js.map +1 -1
- package/lib/components/radio/list/RadioListPropsDefaults.js +19 -0
- package/lib/components/radio/list/RadioListWebPropsDefaults.js +50 -0
- package/lib/components/range/RangePropsDefaults.js +123 -0
- package/lib/components/range/index.d.ts +1 -2
- package/lib/components/range/index.js +1 -2
- package/lib/components/range/index.js.map +1 -1
- package/lib/components/rows/RowsPropsDefaults.js +23 -0
- package/lib/components/rows/index.d.ts +1 -2
- package/lib/components/rows/index.js +1 -2
- package/lib/components/rows/index.js.map +1 -1
- package/lib/components/rows/item/RowsItemPropsDefaults.js +31 -0
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +117 -0
- package/lib/components/section/SectionPropsDefaults.js +125 -0
- package/lib/components/section/index.d.ts +1 -2
- package/lib/components/section/index.js +1 -2
- package/lib/components/section/index.js.map +1 -1
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +107 -0
- package/lib/components/segment-control/index.d.ts +1 -2
- package/lib/components/segment-control/index.js +1 -2
- package/lib/components/segment-control/index.js.map +1 -1
- package/lib/components/segment-control/item/SegmentControlItemPropsDefaults.js +55 -0
- package/lib/components/select/ISelectOptionDefaults.js +23 -0
- package/lib/components/select/SelectChangeEventDefaults.js +37 -0
- package/lib/components/select/SelectPropsDefaults.js +187 -0
- package/lib/components/select/index.d.ts +1 -2
- package/lib/components/select/index.js +1 -2
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/option/SelectOptionPropsDefaults.js +134 -0
- package/lib/components/selector/SelectorEndDefaults.js +10 -0
- package/lib/components/selector/SelectorPropsDefaults.js +128 -0
- package/lib/components/selector/item/SelectorItemPropsDefaults.js +84 -0
- package/lib/components/spacer/SpacerPropsDefaults.js +22 -0
- package/lib/components/stepper/StepperPropsDefaults.js +31 -0
- package/lib/components/stepper/index.d.ts +1 -2
- package/lib/components/stepper/index.js +1 -2
- package/lib/components/stepper/index.js.map +1 -1
- package/lib/components/stepper/step/StepperStepPropsDefaults.js +136 -0
- package/lib/components/sticker/StickerPropsDefaults.js +71 -0
- package/lib/components/sticker/index.d.ts +1 -2
- package/lib/components/sticker/index.js +1 -2
- package/lib/components/sticker/index.js.map +1 -1
- package/lib/components/switch/SwitchChangeEventDefaults.js +13 -0
- package/lib/components/switch/SwitchPropsDefaults.js +105 -0
- package/lib/components/switch/index.d.ts +1 -2
- package/lib/components/switch/index.js +1 -2
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/table/TablePropsDefaults.js +63 -0
- package/lib/components/table/body/TableBodyPropsDefaults.js +87 -0
- package/lib/components/table/head/TableHeadPropsDefaults.js +87 -0
- package/lib/components/table/index.d.ts +1 -2
- package/lib/components/table/index.js +1 -2
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/td/TableTdPropsDefaults.js +44 -0
- package/lib/components/table/th/TableThPropsDefaults.js +44 -0
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +92 -0
- package/lib/components/tabs/TabsPropsDefaults.js +160 -0
- package/lib/components/tabs/index.d.ts +1 -2
- package/lib/components/tabs/index.js +1 -2
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/tabs/item/TabsItemPropsDefaults.js +336 -0
- package/lib/components/tag/TagClickEventDefaults.js +1 -0
- package/lib/components/tag/TagPropsDefaults.js +119 -0
- package/lib/components/tag/index.d.ts +1 -2
- package/lib/components/tag/index.js +1 -2
- package/lib/components/tag/index.js.map +1 -1
- package/lib/components/tag/list/TagListPropsDefaults.js +47 -0
- package/lib/components/text/TextPropsDefaults.js +198 -0
- package/lib/components/text/index.d.ts +1 -2
- package/lib/components/text/index.js +1 -2
- package/lib/components/text/index.js.map +1 -1
- package/lib/components/textarea/TextareaChangeEventDefaults.js +10 -0
- package/lib/components/textarea/index.d.ts +1 -2
- package/lib/components/textarea/index.js +1 -2
- package/lib/components/textarea/index.js.map +1 -1
- package/lib/components/timeline/TimelinePropsDefaults.js +39 -0
- package/lib/components/timeline/content/TimelineContentPropsDefaults.js +51 -0
- package/lib/components/timeline/content/TimelineContentWebPropsDefaults.js +58 -0
- package/lib/components/timeline/index.d.ts +1 -2
- package/lib/components/timeline/index.js +1 -2
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/timeline/item/TimelineItemPropsDefaults.js +48 -0
- package/lib/components/timeline/item/TimelineItemWebPropsDefaults.js +55 -0
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +113 -0
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +127 -0
- package/lib/components/title/TitlePropsDefaults.js +171 -0
- package/lib/components/title/index.d.ts +1 -2
- package/lib/components/title/index.js +1 -2
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/toaster/ToasterPropsDefaults.js +227 -0
- package/lib/components/toaster/context/ToastConfigDefaults.js +24 -0
- package/lib/components/toaster/context/ToastPropsDefaults.js +129 -0
- package/lib/components/view/ViewPropsDefaults.js +212 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/lib/components/accordion/Accordion.example.d.ts +0 -3
- package/lib/components/accordion/Accordion.example.js +0 -19
- package/lib/components/accordion/Accordion.example.js.map +0 -1
- package/lib/components/alert/Alert.example.d.ts +0 -3
- package/lib/components/alert/Alert.example.js +0 -5
- package/lib/components/alert/Alert.example.js.map +0 -1
- package/lib/components/badge/Badge.example.d.ts +0 -3
- package/lib/components/badge/Badge.example.js +0 -5
- package/lib/components/badge/Badge.example.js.map +0 -1
- package/lib/components/box/Box.example.d.ts +0 -3
- package/lib/components/box/Box.example.js +0 -10
- package/lib/components/box/Box.example.js.map +0 -1
- package/lib/components/breadcrumb/Breadcrumb.example.d.ts +0 -3
- package/lib/components/breadcrumb/Breadcrumb.example.js +0 -9
- package/lib/components/breadcrumb/Breadcrumb.example.js.map +0 -1
- package/lib/components/button/Button.example.d.ts +0 -3
- package/lib/components/button/Button.example.js +0 -9
- package/lib/components/button/Button.example.js.map +0 -1
- package/lib/components/card/Card.example.d.ts +0 -3
- package/lib/components/card/Card.example.js +0 -25
- package/lib/components/card/Card.example.js.map +0 -1
- package/lib/components/checkbox/Checkbox.example.d.ts +0 -3
- package/lib/components/checkbox/Checkbox.example.js +0 -8
- package/lib/components/checkbox/Checkbox.example.js.map +0 -1
- package/lib/components/chips/Chips.example.d.ts +0 -3
- package/lib/components/chips/Chips.example.js +0 -13
- package/lib/components/chips/Chips.example.js.map +0 -1
- package/lib/components/columns/Columns.example.d.ts +0 -3
- package/lib/components/columns/Columns.example.js +0 -16
- package/lib/components/columns/Columns.example.js.map +0 -1
- package/lib/components/container/Container.example.d.ts +0 -3
- package/lib/components/container/Container.example.js +0 -9
- package/lib/components/container/Container.example.js.map +0 -1
- package/lib/components/countdown/Countdown.example.d.ts +0 -3
- package/lib/components/countdown/Countdown.example.js +0 -5
- package/lib/components/countdown/Countdown.example.js.map +0 -1
- package/lib/components/divider/Divider.example.d.ts +0 -3
- package/lib/components/divider/Divider.example.js +0 -5
- package/lib/components/divider/Divider.example.js.map +0 -1
- package/lib/components/fab/Fab.example.d.ts +0 -3
- package/lib/components/fab/Fab.example.js +0 -5
- package/lib/components/fab/Fab.example.js.map +0 -1
- package/lib/components/hero/Hero.example.d.ts +0 -3
- package/lib/components/hero/Hero.example.js +0 -14
- package/lib/components/hero/Hero.example.js.map +0 -1
- package/lib/components/icon/Icon.example.d.ts +0 -3
- package/lib/components/icon/Icon.example.js +0 -8
- package/lib/components/icon/Icon.example.js.map +0 -1
- package/lib/components/image/Image.example.d.ts +0 -3
- package/lib/components/image/Image.example.js +0 -5
- package/lib/components/image/Image.example.js.map +0 -1
- package/lib/components/input/Input.example.d.ts +0 -3
- package/lib/components/input/Input.example.js +0 -5
- package/lib/components/input/Input.example.js.map +0 -1
- package/lib/components/link/Link.example.d.ts +0 -3
- package/lib/components/link/Link.example.js +0 -15
- package/lib/components/link/Link.example.js.map +0 -1
- package/lib/components/list/List.example.d.ts +0 -3
- package/lib/components/list/List.example.js +0 -8
- package/lib/components/list/List.example.js.map +0 -1
- package/lib/components/modal/Modal.example.d.ts +0 -3
- package/lib/components/modal/Modal.example.js +0 -5
- package/lib/components/modal/Modal.example.js.map +0 -1
- package/lib/components/otp/Otp.example.d.ts +0 -3
- package/lib/components/otp/Otp.example.js +0 -6
- package/lib/components/otp/Otp.example.js.map +0 -1
- package/lib/components/pagination/Pagination.example.d.ts +0 -3
- package/lib/components/pagination/Pagination.example.js +0 -5
- package/lib/components/pagination/Pagination.example.js.map +0 -1
- package/lib/components/popover/Popover.example.d.ts +0 -3
- package/lib/components/popover/Popover.example.js +0 -7
- package/lib/components/popover/Popover.example.js.map +0 -1
- package/lib/components/price/Price.example.d.ts +0 -3
- package/lib/components/price/Price.example.js +0 -5
- package/lib/components/price/Price.example.js.map +0 -1
- package/lib/components/progress/Progress.example.d.ts +0 -3
- package/lib/components/progress/Progress.example.js +0 -7
- package/lib/components/progress/Progress.example.js.map +0 -1
- package/lib/components/radio/Radio.example.d.ts +0 -3
- package/lib/components/radio/Radio.example.js +0 -8
- package/lib/components/radio/Radio.example.js.map +0 -1
- package/lib/components/range/Range.example.d.ts +0 -3
- package/lib/components/range/Range.example.js +0 -5
- package/lib/components/range/Range.example.js.map +0 -1
- package/lib/components/rows/Rows.example.d.ts +0 -3
- package/lib/components/rows/Rows.example.js +0 -16
- package/lib/components/rows/Rows.example.js.map +0 -1
- package/lib/components/section/Section.example.d.ts +0 -3
- package/lib/components/section/Section.example.js +0 -12
- package/lib/components/section/Section.example.js.map +0 -1
- package/lib/components/segment-control/SegmentControl.example.d.ts +0 -3
- package/lib/components/segment-control/SegmentControl.example.js +0 -9
- package/lib/components/segment-control/SegmentControl.example.js.map +0 -1
- package/lib/components/select/Select.example.d.ts +0 -3
- package/lib/components/select/Select.example.js +0 -8
- package/lib/components/select/Select.example.js.map +0 -1
- package/lib/components/stepper/Stepper.example.d.ts +0 -3
- package/lib/components/stepper/Stepper.example.js +0 -10
- package/lib/components/stepper/Stepper.example.js.map +0 -1
- package/lib/components/sticker/Sticker.example.d.ts +0 -3
- package/lib/components/sticker/Sticker.example.js +0 -8
- package/lib/components/sticker/Sticker.example.js.map +0 -1
- package/lib/components/switch/Switch.example.d.ts +0 -3
- package/lib/components/switch/Switch.example.js +0 -5
- package/lib/components/switch/Switch.example.js.map +0 -1
- package/lib/components/table/Table.example.d.ts +0 -3
- package/lib/components/table/Table.example.js +0 -19
- package/lib/components/table/Table.example.js.map +0 -1
- package/lib/components/tabs/Tabs.example.d.ts +0 -3
- package/lib/components/tabs/Tabs.example.js +0 -8
- package/lib/components/tabs/Tabs.example.js.map +0 -1
- package/lib/components/tag/Tag.example.d.ts +0 -3
- package/lib/components/tag/Tag.example.js +0 -6
- package/lib/components/tag/Tag.example.js.map +0 -1
- package/lib/components/text/Text.example.d.ts +0 -3
- package/lib/components/text/Text.example.js +0 -5
- package/lib/components/text/Text.example.js.map +0 -1
- package/lib/components/textarea/Textarea.example.d.ts +0 -3
- package/lib/components/textarea/Textarea.example.js +0 -5
- package/lib/components/textarea/Textarea.example.js.map +0 -1
- package/lib/components/timeline/Timeline.example.d.ts +0 -3
- package/lib/components/timeline/Timeline.example.js +0 -17
- package/lib/components/timeline/Timeline.example.js.map +0 -1
- package/lib/components/title/Title.example.d.ts +0 -3
- package/lib/components/title/Title.example.js +0 -8
- package/lib/components/title/Title.example.js.map +0 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"className": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"customIcon": {
|
|
24
|
+
"type": "react",
|
|
25
|
+
"values": [
|
|
26
|
+
"undefined",
|
|
27
|
+
"null",
|
|
28
|
+
"string",
|
|
29
|
+
"number",
|
|
30
|
+
"false",
|
|
31
|
+
"true",
|
|
32
|
+
"JSXElementConstructor<any>>",
|
|
33
|
+
"ReactNode>",
|
|
34
|
+
"ReactPortal"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"status": {
|
|
38
|
+
"type": "enum",
|
|
39
|
+
"values": [
|
|
40
|
+
"undefined",
|
|
41
|
+
"SUCCESS",
|
|
42
|
+
"ERROR",
|
|
43
|
+
"SUCCESS",
|
|
44
|
+
"ERROR"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"title": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"values": [
|
|
50
|
+
"undefined",
|
|
51
|
+
"string"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"description": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"values": [
|
|
57
|
+
"undefined",
|
|
58
|
+
"string"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"action": {
|
|
62
|
+
"type": "react",
|
|
63
|
+
"values": [
|
|
64
|
+
"undefined",
|
|
65
|
+
"null",
|
|
66
|
+
"string",
|
|
67
|
+
"number",
|
|
68
|
+
"false",
|
|
69
|
+
"true",
|
|
70
|
+
"JSXElementConstructor<any>>",
|
|
71
|
+
"ReactNode>",
|
|
72
|
+
"ReactPortal"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"divider": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"values": [
|
|
78
|
+
"undefined",
|
|
79
|
+
"false",
|
|
80
|
+
"true"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"deletable": {
|
|
84
|
+
"type": "react",
|
|
85
|
+
"values": [
|
|
86
|
+
"undefined",
|
|
87
|
+
"null",
|
|
88
|
+
"string",
|
|
89
|
+
"number",
|
|
90
|
+
"false",
|
|
91
|
+
"true",
|
|
92
|
+
"JSXElementConstructor<any>>",
|
|
93
|
+
"ReactNode>",
|
|
94
|
+
"ReactPortal"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"testId": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"values": [
|
|
100
|
+
"undefined",
|
|
101
|
+
"string"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"accessibilityLabel": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"values": [
|
|
107
|
+
"undefined",
|
|
108
|
+
"string"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"accessibilityActivate": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"values": [
|
|
114
|
+
"undefined",
|
|
115
|
+
"false",
|
|
116
|
+
"true"
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"className": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -32,5 +32,5 @@ import { ModalProps } from './ModalProps';
|
|
|
32
32
|
* @param bottom {boolean} If bottom
|
|
33
33
|
* @param swipable {boolean} Swipable Native Modal
|
|
34
34
|
*/
|
|
35
|
-
declare const Modal: ({ children, className, contentClassNames, active, title, content, triggerMarkup, triggerContent, triggerClassNames, ctaContent, ctaOnClick, onClose, onOpen, iconName, ctaCancelOnClick, closeIcon, iconColor, panel, footerClassNames, footer, fullwidth, disableHandlingClickOutside, testId,
|
|
35
|
+
declare const Modal: ({ children, className, contentClassNames, active, title, content, triggerMarkup, triggerContent, triggerClassNames, ctaContent, ctaOnClick, onClose, onOpen, iconName, ctaCancelOnClick, closeIcon, iconColor, panel, footerClassNames, footer, fullwidth, disableHandlingClickOutside, testId, titleButtonClose, ...others }: ModalProps) => JSX.Element;
|
|
36
36
|
export default Modal;
|
|
@@ -44,7 +44,7 @@ const idModal = shortid.generate();
|
|
|
44
44
|
* @param bottom {boolean} If bottom
|
|
45
45
|
* @param swipable {boolean} Swipable Native Modal
|
|
46
46
|
*/
|
|
47
|
-
const Modal = ({ children, className, contentClassNames, active, title, content, triggerMarkup, triggerContent, triggerClassNames = 'button is-primary', ctaContent, ctaOnClick, onClose, onOpen, iconName, ctaCancelOnClick, closeIcon, iconColor, panel, footerClassNames, footer, fullwidth, disableHandlingClickOutside = false, testId,
|
|
47
|
+
const Modal = ({ children, className, contentClassNames, active, title, content, triggerMarkup, triggerContent, triggerClassNames = 'button is-primary', ctaContent, ctaOnClick, onClose, onOpen, iconName, ctaCancelOnClick, closeIcon, iconColor, panel, footerClassNames, footer, fullwidth, disableHandlingClickOutside = false, testId, titleButtonClose, ...others }) => {
|
|
48
48
|
const modal = useRef(null);
|
|
49
49
|
const [display, setDisplay] = useState(active || false);
|
|
50
50
|
const { styled } = useTrilogyContext();
|
|
@@ -120,22 +120,25 @@ const Modal = ({ children, className, contentClassNames, active, title, content,
|
|
|
120
120
|
}
|
|
121
121
|
}, [refsActions.current.length, display]);
|
|
122
122
|
return (React.createElement("div", { "data-testid": testId, onKeyDown: onKeyDown },
|
|
123
|
-
triggerContent && (React.createElement(TriggerTag, { "aria-
|
|
123
|
+
triggerContent && (React.createElement(TriggerTag, { "aria-haspopup": 'dialog', ref: refBtnModal, "aria-controls": ariaControls, onClick: (e) => {
|
|
124
124
|
handleOpen(onOpen, e);
|
|
125
125
|
}, className: hashClass(styled, clsx(triggerClassNames)) }, triggerContent)),
|
|
126
126
|
React.createElement("div", { className: classes, role: 'dialog', "aria-modal": display ? 'true' : undefined, "aria-labelledby": title ? idTitle : undefined, "aria-describedby": content ? idDescription : undefined, ...others },
|
|
127
127
|
React.createElement("div", { ref: modal, className: contentClasses },
|
|
128
128
|
closeIcon && (React.createElement("button", { onClick: (e) => {
|
|
129
129
|
handleClose(onClose, e);
|
|
130
|
-
}, className: hashClass(styled, clsx('modal-close', is('large'))), "aria-label":
|
|
130
|
+
}, className: hashClass(styled, clsx('modal-close', is('large'))), "aria-label": 'close', type: ButtonType.BUTTON, title: titleButtonClose, "aria-controls": ariaControls, ref: (el) => el && (refsActions.current[0] = el) })),
|
|
131
131
|
(title || iconName) && (React.createElement(ModalTitle, { iconColor: iconColor, iconName: iconName, ...{ textId: idTitle } }, title)),
|
|
132
132
|
content && typeof content === 'string' ? React.createElement(Text, { ...{ id: idDescription } }, content) : content,
|
|
133
133
|
children != null && children,
|
|
134
134
|
React.createElement(ModalFooter, { className: footerClasses }, ((ctaOnClick != null || ctaCancelOnClick != null) && (React.createElement(ButtonList, { centered: true, className: is('flex') },
|
|
135
135
|
ctaCancelOnClick && (React.createElement("button", { onClick: (e) => {
|
|
136
136
|
handleClose(ctaCancelOnClick, e);
|
|
137
|
-
}, className: hashClass(styled, clsx('button', is('secondary'))), "aria-
|
|
138
|
-
ctaOnClick && (React.createElement("button", { className: hashClass(styled, clsx('button', is('primary'))),
|
|
137
|
+
}, className: hashClass(styled, clsx('button', is('secondary'))), "aria-controls": ariaControls, ref: (el) => (refsActions.current[1] = el) }, "Annuler")),
|
|
138
|
+
ctaOnClick && (React.createElement("button", { className: hashClass(styled, clsx('button', is('primary'))), title: ctaContent, "aria-controls": ariaControls, ref: (el) => (refsActions.current[2] = el), onClick: ctaOnClick },
|
|
139
|
+
React.createElement("span", { className: 'sr-only' },
|
|
140
|
+
" ",
|
|
141
|
+
ctaContent)))))) ||
|
|
139
142
|
footer)))));
|
|
140
143
|
};
|
|
141
144
|
export default Modal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAA;AAC/B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,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C,CAAC,EAAE,EAAE;4BACb,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;wBAClC,CAAC,EACD,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,mBAC9C,YAAY,EAC3B,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,cAGnC,CACV;oBACA,UAAU,IAAI,CACb,gCACE,SAAS,EAAE,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAC3D,KAAK,EAAE,UAAU,mBACF,YAAY,EAC3B,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,EAC1C,OAAO,EAAE,UAAU;wBAEnB,8BAAM,SAAS,EAAC,SAAS;;4BAAG,UAAU,CAAQ,CACvC,CACV,CACU,CACd,CAAC;oBACA,MAAM,CACI,CACV,CACF,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -37,9 +37,5 @@ export interface ModalProps extends Clipped, Fullwidth, Accessibility {
|
|
|
37
37
|
onModalHide?: () => void;
|
|
38
38
|
disableHandlingClickOutside?: boolean;
|
|
39
39
|
swipable?: boolean;
|
|
40
|
-
ariaLabelButtonClose?: string;
|
|
41
|
-
ariaLabelCta?: string;
|
|
42
40
|
titleButtonClose?: string;
|
|
43
|
-
ariaLabelButtonOpen?: string;
|
|
44
|
-
titleButtonOpen?: string;
|
|
45
41
|
}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"active": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"false",
|
|
21
|
+
"true"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"title": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"values": [
|
|
27
|
+
"undefined",
|
|
28
|
+
"string"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"content": {
|
|
32
|
+
"type": "react",
|
|
33
|
+
"values": [
|
|
34
|
+
"undefined",
|
|
35
|
+
"null",
|
|
36
|
+
"string",
|
|
37
|
+
"number",
|
|
38
|
+
"false",
|
|
39
|
+
"true",
|
|
40
|
+
"JSXElementConstructor<any>>",
|
|
41
|
+
"ReactNode>",
|
|
42
|
+
"ReactPortal"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"footer": {
|
|
46
|
+
"type": "react",
|
|
47
|
+
"values": [
|
|
48
|
+
"undefined",
|
|
49
|
+
"null",
|
|
50
|
+
"string",
|
|
51
|
+
"number",
|
|
52
|
+
"false",
|
|
53
|
+
"true",
|
|
54
|
+
"JSXElementConstructor<any>>",
|
|
55
|
+
"ReactNode>",
|
|
56
|
+
"ReactPortal"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"className": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"values": [
|
|
62
|
+
"undefined",
|
|
63
|
+
"string"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"contentClassNames": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"values": [
|
|
69
|
+
"undefined",
|
|
70
|
+
"string"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"footerClassNames": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"values": [
|
|
76
|
+
"undefined",
|
|
77
|
+
"string"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"iconName": {
|
|
81
|
+
"type": "enum",
|
|
82
|
+
"values": [
|
|
83
|
+
"undefined",
|
|
84
|
+
"tri-alert",
|
|
85
|
+
"tri-arrow-down",
|
|
86
|
+
"tri-arrow-left",
|
|
87
|
+
"tri-arrow-right",
|
|
88
|
+
"tri-arrow-up",
|
|
89
|
+
"tri-bell",
|
|
90
|
+
"tri-check-circle",
|
|
91
|
+
"tri-check",
|
|
92
|
+
"tri-exclamation-circle",
|
|
93
|
+
"tri-eye-slash",
|
|
94
|
+
"tri-eye",
|
|
95
|
+
"tri-infos-circle",
|
|
96
|
+
"tri-search",
|
|
97
|
+
"tri-times",
|
|
98
|
+
"tri-trash",
|
|
99
|
+
"tri-picto-faciliti",
|
|
100
|
+
"tri-picto-handicapzero",
|
|
101
|
+
"tri-picto-la-fibre",
|
|
102
|
+
"tri-picto-payment-americanexpress",
|
|
103
|
+
"tri-picto-payment-cb",
|
|
104
|
+
"tri-picto-payment-mastercard",
|
|
105
|
+
"tri-picto-payment-paypal",
|
|
106
|
+
"tri-picto-payment-visa",
|
|
107
|
+
"tri-alert",
|
|
108
|
+
"tri-arrow-down",
|
|
109
|
+
"tri-arrow-left",
|
|
110
|
+
"tri-arrow-right",
|
|
111
|
+
"tri-arrow-up",
|
|
112
|
+
"tri-bell",
|
|
113
|
+
"tri-check-circle",
|
|
114
|
+
"tri-check",
|
|
115
|
+
"tri-exclamation-circle",
|
|
116
|
+
"tri-eye-slash",
|
|
117
|
+
"tri-eye",
|
|
118
|
+
"tri-infos-circle",
|
|
119
|
+
"tri-search",
|
|
120
|
+
"tri-times",
|
|
121
|
+
"tri-trash",
|
|
122
|
+
"tri-picto-faciliti",
|
|
123
|
+
"tri-picto-handicapzero",
|
|
124
|
+
"tri-picto-la-fibre",
|
|
125
|
+
"tri-picto-payment-americanexpress",
|
|
126
|
+
"tri-picto-payment-cb",
|
|
127
|
+
"tri-picto-payment-mastercard",
|
|
128
|
+
"tri-picto-payment-paypal",
|
|
129
|
+
"tri-picto-payment-visa"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"iconColor": {
|
|
133
|
+
"type": "enum",
|
|
134
|
+
"values": [
|
|
135
|
+
"undefined",
|
|
136
|
+
"SUCCESS",
|
|
137
|
+
"INFO",
|
|
138
|
+
"WARNING",
|
|
139
|
+
"ERROR",
|
|
140
|
+
"MAIN",
|
|
141
|
+
"WHITE",
|
|
142
|
+
"ACCENT",
|
|
143
|
+
"NEUTRAL",
|
|
144
|
+
"SUCCESS",
|
|
145
|
+
"ERROR",
|
|
146
|
+
"INFO",
|
|
147
|
+
"WARNING",
|
|
148
|
+
"MAIN",
|
|
149
|
+
"BACKGROUND",
|
|
150
|
+
"ACCENT",
|
|
151
|
+
"NEUTRAL",
|
|
152
|
+
"WHITE",
|
|
153
|
+
"BACKGROUND"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"triggerContent": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"values": [
|
|
159
|
+
"undefined",
|
|
160
|
+
"string"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"triggerClassNames": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"values": [
|
|
166
|
+
"undefined",
|
|
167
|
+
"string"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"triggerMarkup": {
|
|
171
|
+
"type": "enum",
|
|
172
|
+
"values": [
|
|
173
|
+
"undefined",
|
|
174
|
+
"a",
|
|
175
|
+
"button",
|
|
176
|
+
"div",
|
|
177
|
+
"h1",
|
|
178
|
+
"h2",
|
|
179
|
+
"h3",
|
|
180
|
+
"h4",
|
|
181
|
+
"h5",
|
|
182
|
+
"h6",
|
|
183
|
+
"p",
|
|
184
|
+
"span",
|
|
185
|
+
"h1",
|
|
186
|
+
"h2",
|
|
187
|
+
"h3",
|
|
188
|
+
"h4",
|
|
189
|
+
"h5",
|
|
190
|
+
"h6",
|
|
191
|
+
"p",
|
|
192
|
+
"span",
|
|
193
|
+
"div",
|
|
194
|
+
"button",
|
|
195
|
+
"a"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"ctaContent": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"values": [
|
|
201
|
+
"undefined",
|
|
202
|
+
"string"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"closeIcon": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"values": [
|
|
208
|
+
"undefined",
|
|
209
|
+
"false",
|
|
210
|
+
"true"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"ctaOnClick": {
|
|
214
|
+
"type": "function",
|
|
215
|
+
"values": [
|
|
216
|
+
"undefined",
|
|
217
|
+
"ClickEvent"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
"ctaCancelOnClick": {
|
|
221
|
+
"type": "function",
|
|
222
|
+
"values": [
|
|
223
|
+
"undefined",
|
|
224
|
+
"ClickEvent"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"onClose": {
|
|
228
|
+
"type": "function",
|
|
229
|
+
"values": [
|
|
230
|
+
"undefined",
|
|
231
|
+
"ClickEvent"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"onOpen": {
|
|
235
|
+
"type": "function",
|
|
236
|
+
"values": [
|
|
237
|
+
"undefined",
|
|
238
|
+
"ClickEvent"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"bottom": {
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"values": [
|
|
244
|
+
"undefined",
|
|
245
|
+
"false",
|
|
246
|
+
"true"
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"panel": {
|
|
250
|
+
"type": "boolean",
|
|
251
|
+
"values": [
|
|
252
|
+
"undefined",
|
|
253
|
+
"false",
|
|
254
|
+
"true"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"onModalHide": {
|
|
258
|
+
"type": "function",
|
|
259
|
+
"values": [
|
|
260
|
+
"undefined",
|
|
261
|
+
"() => void"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"disableHandlingClickOutside": {
|
|
265
|
+
"type": "boolean",
|
|
266
|
+
"values": [
|
|
267
|
+
"undefined",
|
|
268
|
+
"false",
|
|
269
|
+
"true"
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
"swipable": {
|
|
273
|
+
"type": "boolean",
|
|
274
|
+
"values": [
|
|
275
|
+
"undefined",
|
|
276
|
+
"false",
|
|
277
|
+
"true"
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
"titleButtonClose": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"values": [
|
|
283
|
+
"undefined",
|
|
284
|
+
"string"
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
"clipped": {
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"values": [
|
|
290
|
+
"undefined",
|
|
291
|
+
"false",
|
|
292
|
+
"true"
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
"fullwidth": {
|
|
296
|
+
"type": "boolean",
|
|
297
|
+
"values": [
|
|
298
|
+
"undefined",
|
|
299
|
+
"false",
|
|
300
|
+
"true"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"testId": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"values": [
|
|
306
|
+
"undefined",
|
|
307
|
+
"string"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
"accessibilityLabel": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"values": [
|
|
313
|
+
"undefined",
|
|
314
|
+
"string"
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"accessibilityActivate": {
|
|
318
|
+
"type": "boolean",
|
|
319
|
+
"values": [
|
|
320
|
+
"undefined",
|
|
321
|
+
"false",
|
|
322
|
+
"true"
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"children": {
|
|
3
|
+
"type": "react",
|
|
4
|
+
"values": [
|
|
5
|
+
"undefined",
|
|
6
|
+
"null",
|
|
7
|
+
"string",
|
|
8
|
+
"number",
|
|
9
|
+
"false",
|
|
10
|
+
"true",
|
|
11
|
+
"JSXElementConstructor<any>>",
|
|
12
|
+
"ReactNode>",
|
|
13
|
+
"ReactPortal"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"className": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"values": [
|
|
19
|
+
"undefined",
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Modal from './Modal';
|
|
2
2
|
import ModalFooter from './footer/ModalFooter';
|
|
3
3
|
import ModalTitle from './title/ModalTitle';
|
|
4
|
-
import ModalExample from './Modal.example';
|
|
5
4
|
export * from './ModalEnum';
|
|
6
|
-
export { Modal, ModalFooter, ModalTitle
|
|
5
|
+
export { Modal, ModalFooter, ModalTitle };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Modal from './Modal';
|
|
2
2
|
import ModalFooter from './footer/ModalFooter';
|
|
3
3
|
import ModalTitle from './title/ModalTitle';
|
|
4
|
-
import ModalExample from './Modal.example';
|
|
5
4
|
export * from './ModalEnum';
|
|
6
|
-
export { Modal, ModalFooter, ModalTitle
|
|
5
|
+
export { Modal, ModalFooter, ModalTitle };
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,WAAW,MAAM,sBAAsB,CAAA;AAC9C,OAAO,UAAU,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,WAAW,MAAM,sBAAsB,CAAA;AAC9C,OAAO,UAAU,MAAM,oBAAoB,CAAA;AAE3C,cAAc,aAAa,CAAA;AAE3B,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -13,7 +13,7 @@ import * as React from 'react';
|
|
|
13
13
|
const ModalTitle = ({ children, className, iconColor, iconName, ...others }) => {
|
|
14
14
|
const { styled } = useTrilogyContext();
|
|
15
15
|
const { textId } = others;
|
|
16
|
-
return (React.createElement("div", { className: hashClass(styled, clsx('modal-title', className))
|
|
16
|
+
return (React.createElement("div", { className: hashClass(styled, clsx('modal-title', className)) }, iconName ? (React.createElement(TextIcon, { markup: 'p', color: iconColor, size: 'large', name: iconName, content: children, position: 'up', textId: textId, textAriaLevel: 1, textRole: 'heading' })) : (children)));
|
|
17
17
|
};
|
|
18
18
|
export default ModalTitle;
|
|
19
19
|
//# sourceMappingURL=ModalTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalTitle.js","sourceRoot":"","sources":["../../../../components/modal/title/ModalTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,iCAAiC,CAAA;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B;;;;;;GAMG;AACH,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAmB,EAAe,EAAE;IAC3G,MAAM,EAAE,MAA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