@clubmed/trident-ui 2.0.0-beta.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/assets/trident-ui.css +3 -0
- package/chunks/Backdrop.js +1 -1
- package/chunks/Backdrop.js.map +1 -1
- package/chunks/Birthdate.js +27 -0
- package/chunks/Birthdate.js.map +1 -0
- package/chunks/Carousel.context.js +1548 -0
- package/chunks/Carousel.context.js.map +1 -0
- package/chunks/ChatMessage.js +14395 -0
- package/chunks/ChatMessage.js.map +1 -0
- package/chunks/CriteriaParticipants.js +415 -0
- package/chunks/CriteriaParticipants.js.map +1 -0
- package/chunks/DateField.js +196 -136
- package/chunks/DateField.js.map +1 -1
- package/chunks/Datepicker.js +2039 -0
- package/chunks/Datepicker.js.map +1 -0
- package/chunks/Day.js +88 -0
- package/chunks/Day.js.map +1 -0
- package/chunks/Range.js +2 -2
- package/chunks/Range.js.map +1 -1
- package/chunks/Tooltip.js +4461 -0
- package/chunks/Tooltip.js.map +1 -0
- package/chunks/addLeadingZeros.js +33 -0
- package/chunks/addLeadingZeros.js.map +1 -0
- package/chunks/addYears.js +18 -0
- package/chunks/addYears.js.map +1 -0
- package/chunks/chunk.js +11 -4
- package/chunks/client.js +18953 -0
- package/chunks/client.js.map +1 -0
- package/chunks/endOfMonth.js +17 -0
- package/chunks/endOfMonth.js.map +1 -0
- package/chunks/format.js +1113 -0
- package/chunks/format.js.map +1 -0
- package/chunks/formatISO.js +29 -0
- package/chunks/formatISO.js.map +1 -0
- package/chunks/isAfter.js +9 -0
- package/chunks/isAfter.js.map +1 -0
- package/chunks/isBefore.js +15 -0
- package/chunks/isBefore.js.map +1 -0
- package/chunks/normalizeDates.js +10 -0
- package/chunks/normalizeDates.js.map +1 -0
- package/chunks/subYears.js +9 -0
- package/chunks/subYears.js.map +1 -0
- package/examples/accordion-demo.d.ts +1 -0
- package/examples/accordion-demo.js +79 -0
- package/examples/accordion-demo.js.map +1 -0
- package/examples/accordion-multiple-demo.d.ts +1 -0
- package/examples/accordion-multiple-demo.js +79 -0
- package/examples/accordion-multiple-demo.js.map +1 -0
- package/examples/accordion-trigger-wrapper-demo.d.ts +1 -0
- package/examples/accordion-trigger-wrapper-demo.js +80 -0
- package/examples/accordion-trigger-wrapper-demo.js.map +1 -0
- package/examples/advanced-toast-demo.js +2 -2
- package/examples/advanced-toast-demo.js.map +1 -1
- package/examples/advanced-toast-green-demo.js +1 -1
- package/examples/advanced-toast-green-demo.js.map +1 -1
- package/examples/advanced-toast-no-dismiss-demo.js +1 -1
- package/examples/advanced-toast-no-dismiss-demo.js.map +1 -1
- package/examples/advanced-toast-red-demo.js +1 -1
- package/examples/advanced-toast-red-demo.js.map +1 -1
- package/examples/advanced-toast-with-details-demo.js +2 -2
- package/examples/advanced-toast-with-details-demo.js.map +1 -1
- package/examples/arrow-button-demo.js +2 -1
- package/examples/arrow-button-demo.js.map +1 -1
- package/examples/arrow-button-disabled-demo.js +2 -1
- package/examples/arrow-button-disabled-demo.js.map +1 -1
- package/examples/arrow-button-left-demo.js +2 -1
- package/examples/arrow-button-left-demo.js.map +1 -1
- package/examples/arrow-button-outline-demo.js +2 -1
- package/examples/arrow-button-outline-demo.js.map +1 -1
- package/examples/arrow-button-tail-demo.js +2 -1
- package/examples/arrow-button-tail-demo.js.map +1 -1
- package/examples/avatar-demo.js +7 -7
- package/examples/button-demo.js +2 -2
- package/examples/button-demo.js.map +1 -1
- package/examples/card-list-demo.js +10 -10
- package/examples/card-no-border-demo.js +7 -7
- package/examples/chapters-demo.d.ts +1 -0
- package/examples/chapters-demo.js +46 -0
- package/examples/chapters-demo.js.map +1 -0
- package/examples/chat-button-demo.js +1 -1
- package/examples/chat-button-demo.js.map +1 -1
- package/examples/chat-button-offset-demo.js +4 -1
- package/examples/chat-button-offset-demo.js.map +1 -1
- package/examples/chat-input-demo.d.ts +1 -0
- package/examples/chat-input-demo.js +22 -0
- package/examples/chat-input-demo.js.map +1 -0
- package/examples/chat-message-demo.d.ts +1 -0
- package/examples/chat-message-demo.js +20 -0
- package/examples/chat-message-demo.js.map +1 -0
- package/examples/chat-typing-indicator-demo.d.ts +1 -0
- package/examples/chat-typing-indicator-demo.js +14 -0
- package/examples/chat-typing-indicator-demo.js.map +1 -0
- package/examples/chat-window-csat-demo.d.ts +1 -0
- package/examples/chat-window-csat-demo.js +69 -0
- package/examples/chat-window-csat-demo.js.map +1 -0
- package/examples/chat-window-csat-prompt-demo.d.ts +1 -0
- package/examples/chat-window-csat-prompt-demo.js +40 -0
- package/examples/chat-window-csat-prompt-demo.js.map +1 -0
- package/examples/chat-window-demo.d.ts +1 -0
- package/examples/chat-window-demo.js +70 -0
- package/examples/chat-window-demo.js.map +1 -0
- package/examples/chat-window-quote-demo.d.ts +1 -0
- package/examples/chat-window-quote-demo.js +47 -0
- package/examples/chat-window-quote-demo.js.map +1 -0
- package/examples/chat-window-quotes-demo.d.ts +1 -0
- package/examples/chat-window-quotes-demo.js +68 -0
- package/examples/chat-window-quotes-demo.js.map +1 -0
- package/examples/checkbox-demo.js +2 -2
- package/examples/checkbox-demo.js.map +1 -1
- package/examples/checkbox-select-demo.d.ts +1 -0
- package/examples/checkbox-select-demo.js +101 -0
- package/examples/checkbox-select-demo.js.map +1 -0
- package/examples/checkboxes-demo.js +1 -0
- package/examples/checkboxes-demo.js.map +1 -1
- package/examples/checkboxes-with-form-control-demo.js +4 -4
- package/examples/chip-demo.js +4 -4
- package/examples/choice-expander-demo.js +5 -67
- package/examples/choice-expander-demo.js.map +1 -1
- package/examples/countdown-demo.d.ts +1 -0
- package/examples/countdown-demo.js +39 -0
- package/examples/countdown-demo.js.map +1 -0
- package/examples/criteria-dates-demo.d.ts +1 -0
- package/examples/criteria-dates-demo.js +41 -0
- package/examples/criteria-dates-demo.js.map +1 -0
- package/examples/criteria-participants-demo.d.ts +1 -0
- package/examples/criteria-participants-demo.js +77 -0
- package/examples/criteria-participants-demo.js.map +1 -0
- package/examples/criteria-participants-flow1-demo.d.ts +1 -0
- package/examples/criteria-participants-flow1-demo.js +53 -0
- package/examples/criteria-participants-flow1-demo.js.map +1 -0
- package/examples/criteria-participants-flow2-demo.d.ts +1 -0
- package/examples/criteria-participants-flow2-demo.js +61 -0
- package/examples/criteria-participants-flow2-demo.js.map +1 -0
- package/examples/criteria-participants-flow3-demo.d.ts +1 -0
- package/examples/criteria-participants-flow3-demo.js +72 -0
- package/examples/criteria-participants-flow3-demo.js.map +1 -0
- package/examples/criteria-transports-b2b-demo.d.ts +1 -0
- package/examples/criteria-transports-b2b-demo.js +118 -0
- package/examples/criteria-transports-b2b-demo.js.map +1 -0
- package/examples/criteria-transports-demo.d.ts +1 -0
- package/examples/criteria-transports-demo.js +223 -0
- package/examples/criteria-transports-demo.js.map +1 -0
- package/examples/datepicker-demo.d.ts +1 -0
- package/examples/datepicker-demo.js +51 -0
- package/examples/datepicker-demo.js.map +1 -0
- package/examples/datepicker-disabled-days-demo.d.ts +1 -0
- package/examples/datepicker-disabled-days-demo.js +42 -0
- package/examples/datepicker-disabled-days-demo.js.map +1 -0
- package/examples/datepicker-duration-tooltip-demo.d.ts +1 -0
- package/examples/datepicker-duration-tooltip-demo.js +68 -0
- package/examples/datepicker-duration-tooltip-demo.js.map +1 -0
- package/examples/datepicker-no-prices-demo.d.ts +1 -0
- package/examples/datepicker-no-prices-demo.js +42 -0
- package/examples/datepicker-no-prices-demo.js.map +1 -0
- package/examples/datepicker-preselected-demo.d.ts +1 -0
- package/examples/datepicker-preselected-demo.js +77 -0
- package/examples/datepicker-preselected-demo.js.map +1 -0
- package/examples/dropdown-demo.js +9 -1
- package/examples/dropdown-demo.js.map +1 -1
- package/examples/expandable-text-demo.d.ts +1 -0
- package/examples/expandable-text-demo.js +22 -0
- package/examples/expandable-text-demo.js.map +1 -0
- package/examples/filter-demo.js +5 -5
- package/examples/floating-label-text-field-demo.d.ts +1 -0
- package/examples/floating-label-text-field-demo.js +32 -0
- package/examples/floating-label-text-field-demo.js.map +1 -0
- package/examples/frame-demo.d.ts +1 -0
- package/examples/frame-demo.js +36 -0
- package/examples/frame-demo.js.map +1 -0
- package/examples/frame-horizontal-demo.d.ts +1 -0
- package/examples/frame-horizontal-demo.js +44 -0
- package/examples/frame-horizontal-demo.js.map +1 -0
- package/examples/frame-no-image-demo.d.ts +1 -0
- package/examples/frame-no-image-demo.js +47 -0
- package/examples/frame-no-image-demo.js.map +1 -0
- package/examples/frame-vertical-demo.d.ts +1 -0
- package/examples/frame-vertical-demo.js +44 -0
- package/examples/frame-vertical-demo.js.map +1 -0
- package/examples/frame-with-tag-demo.d.ts +1 -0
- package/examples/frame-with-tag-demo.js +48 -0
- package/examples/frame-with-tag-demo.js.map +1 -0
- package/examples/journey-card-compact-demo.d.ts +1 -0
- package/examples/journey-card-compact-demo.js +71 -0
- package/examples/journey-card-compact-demo.js.map +1 -0
- package/examples/journey-card-demo.d.ts +1 -0
- package/examples/journey-card-demo.js +123 -0
- package/examples/journey-card-demo.js.map +1 -0
- package/examples/page-navigation-demo.d.ts +1 -0
- package/examples/page-navigation-demo.js +53 -0
- package/examples/page-navigation-demo.js.map +1 -0
- package/examples/password-demo.js +1 -0
- package/examples/password-demo.js.map +1 -1
- package/examples/phone-field-demo.js +6 -2
- package/examples/phone-field-demo.js.map +1 -1
- package/examples/promises-demo.d.ts +1 -0
- package/examples/promises-demo.js +50 -0
- package/examples/promises-demo.js.map +1 -0
- package/examples/radio-demo.js +3 -3
- package/examples/radio-demo.js.map +1 -1
- package/examples/radio-select-demo.d.ts +1 -0
- package/examples/radio-select-demo.js +100 -0
- package/examples/radio-select-demo.js.map +1 -0
- package/examples/scrollbar-demo.d.ts +1 -0
- package/examples/scrollbar-demo.js +42 -0
- package/examples/scrollbar-demo.js.map +1 -0
- package/examples/select-demo.js +1 -0
- package/examples/select-demo.js.map +1 -1
- package/examples/slider-frame-demo.d.ts +1 -0
- package/examples/slider-frame-demo.js +39 -0
- package/examples/slider-frame-demo.js.map +1 -0
- package/examples/slider-frame-with-button-demo.d.ts +1 -0
- package/examples/slider-frame-with-button-demo.js +47 -0
- package/examples/slider-frame-with-button-demo.js.map +1 -0
- package/examples/slider-frame-with-tag-demo.d.ts +1 -0
- package/examples/slider-frame-with-tag-demo.js +51 -0
- package/examples/slider-frame-with-tag-demo.js.map +1 -0
- package/examples/sparkle-wrapper-demo.d.ts +1 -0
- package/examples/sparkle-wrapper-demo.js +34 -0
- package/examples/sparkle-wrapper-demo.js.map +1 -0
- package/examples/switch-demo.js +3 -2
- package/examples/switch-demo.js.map +1 -1
- package/examples/tabs-demo.js +2 -5
- package/examples/tabs-demo.js.map +1 -1
- package/examples/tabs-notification-demo.d.ts +1 -0
- package/examples/tabs-notification-demo.js +64 -0
- package/examples/tabs-notification-demo.js.map +1 -0
- package/examples/tabs-with-select-demo.js +1 -0
- package/examples/tabs-with-select-demo.js.map +1 -1
- package/examples/text-field-demo.js +6 -0
- package/examples/text-field-demo.js.map +1 -1
- package/examples/toggle-demo.d.ts +1 -0
- package/examples/toggle-demo.js +44 -0
- package/examples/toggle-demo.js.map +1 -0
- package/examples/toggle-small-demo.d.ts +1 -0
- package/examples/toggle-small-demo.js +33 -0
- package/examples/toggle-small-demo.js.map +1 -0
- package/examples/tooltip-demo.d.ts +1 -0
- package/examples/tooltip-demo.js +103 -0
- package/examples/tooltip-demo.js.map +1 -0
- package/package.json +9 -3
- package/styles/animate.css +19 -0
- package/styles/components.css +97 -4
- package/styles/index.css +0 -1
- package/styles/theme.css +1 -2
- package/styles/ui/button.css +1 -1
- package/styles/ui/chat-button.css +68 -1
- package/styles/ui/controls.css +11 -58
- package/styles/ui/range.css +6 -1
- package/styles/ui/tabs.css +0 -19
- package/ui/Accordion.d.ts +30 -0
- package/ui/Accordion.js +71 -0
- package/ui/Accordion.js.map +1 -0
- package/ui/AdvancedToast.js +22 -19
- package/ui/AdvancedToast.js.map +1 -1
- package/ui/Avatar.js +1 -1
- package/ui/Avatar.js.map +1 -1
- package/ui/BasicToast.js +12 -12
- package/ui/BasicToast.js.map +1 -1
- package/ui/Breadcrumb.js +7 -6
- package/ui/Breadcrumb.js.map +1 -1
- package/ui/Chapters/Chapter.d.ts +7 -0
- package/ui/Chapters/Chapter.js +36 -0
- package/ui/Chapters/Chapter.js.map +1 -0
- package/ui/Chapters/ChapterTitle.d.ts +14 -0
- package/ui/Chapters/ChapterTitle.js +35 -0
- package/ui/Chapters/ChapterTitle.js.map +1 -0
- package/ui/Chapters/Chapters.d.ts +15 -0
- package/ui/Chapters/Chapters.js +42 -0
- package/ui/Chapters/Chapters.js.map +1 -0
- package/ui/Chapters/Chapters.themes.d.ts +9 -0
- package/ui/Chapters/Chapters.themes.js +65 -0
- package/ui/Chapters/Chapters.themes.js.map +1 -0
- package/ui/Chapters/ChaptersSummary.d.ts +17 -0
- package/ui/Chapters/ChaptersSummary.js +29 -0
- package/ui/Chapters/ChaptersSummary.js.map +1 -0
- package/ui/ChatButton.js +9 -9
- package/ui/ChatButton.js.map +1 -1
- package/ui/ChatInput.d.ts +10 -0
- package/ui/ChatInput.js +149 -0
- package/ui/ChatInput.js.map +1 -0
- package/ui/ChatMessage.d.ts +6 -0
- package/ui/ChatMessage.js +2 -0
- package/ui/ChatTypingIndicator.d.ts +2 -0
- package/ui/ChatTypingIndicator.js +30 -0
- package/ui/ChatTypingIndicator.js.map +1 -0
- package/ui/ChatWindow.d.ts +34 -0
- package/ui/ChatWindow.js +142 -0
- package/ui/ChatWindow.js.map +1 -0
- package/ui/ChatWindowCsatPrompt.d.ts +15 -0
- package/ui/ChatWindowCsatPrompt.js +71 -0
- package/ui/ChatWindowCsatPrompt.js.map +1 -0
- package/ui/ChatWindowCsatThankYou.d.ts +9 -0
- package/ui/ChatWindowCsatThankYou.js +29 -0
- package/ui/ChatWindowCsatThankYou.js.map +1 -0
- package/ui/ChatWindowQuote.d.ts +22 -0
- package/ui/ChatWindowQuote.js +141 -0
- package/ui/ChatWindowQuote.js.map +1 -0
- package/ui/Chip.js +4 -4
- package/ui/ChoiceExpander.js +17 -17
- package/ui/ChoiceExpander.js.map +1 -1
- package/ui/Countdown.d.ts +16 -0
- package/ui/Countdown.js +61 -0
- package/ui/Countdown.js.map +1 -0
- package/ui/Datepicker.d.ts +26 -0
- package/ui/Datepicker.js +2 -0
- package/ui/Day.d.ts +25 -0
- package/ui/Day.js +2 -0
- package/ui/Dropdown.d.ts +20 -3
- package/ui/Dropdown.js +61 -27
- package/ui/Dropdown.js.map +1 -1
- package/ui/ElasticHeight.js +1 -0
- package/ui/ElasticHeight.js.map +1 -1
- package/ui/ExpandableText.d.ts +14 -0
- package/ui/ExpandableText.js +40 -0
- package/ui/ExpandableText.js.map +1 -0
- package/ui/FlipCard.d.ts +7 -0
- package/ui/FlipCard.js +59 -0
- package/ui/FlipCard.js.map +1 -0
- package/ui/HamburgerIcon.js +1 -1
- package/ui/HamburgerIcon.js.map +1 -1
- package/ui/Link.js +8 -8
- package/ui/Link.js.map +1 -1
- package/ui/PageNavigation.d.ts +13 -0
- package/ui/PageNavigation.js +71 -0
- package/ui/PageNavigation.js.map +1 -0
- package/ui/Pagination.js +23 -23
- package/ui/Pagination.js.map +1 -1
- package/ui/Promises/Promises.d.ts +26 -0
- package/ui/Promises/Promises.js +42 -0
- package/ui/Promises/Promises.js.map +1 -0
- package/ui/Promises/PromisesMedia.d.ts +12 -0
- package/ui/Promises/PromisesMedia.js +64 -0
- package/ui/Promises/PromisesMedia.js.map +1 -0
- package/ui/Promises/PromisesMenu.d.ts +11 -0
- package/ui/Promises/PromisesMenu.js +154 -0
- package/ui/Promises/PromisesMenu.js.map +1 -0
- package/ui/Scrollbar.d.ts +14 -0
- package/ui/Scrollbar.js +68 -0
- package/ui/Scrollbar.js.map +1 -0
- package/ui/SidebarLayout.d.ts +3 -1
- package/ui/SidebarLayout.js +67 -59
- package/ui/SidebarLayout.js.map +1 -1
- package/ui/SparkleWrapper.d.ts +5 -0
- package/ui/SparkleWrapper.js +56 -0
- package/ui/SparkleWrapper.js.map +1 -0
- package/ui/Tag.js +6 -6
- package/ui/Toggle.d.ts +15 -0
- package/ui/Toggle.js +42 -0
- package/ui/Toggle.js.map +1 -0
- package/ui/Tooltip.d.ts +8 -0
- package/ui/Tooltip.js +2 -0
- package/ui/buttons/Button.type.d.ts +1 -1
- package/ui/buttons/Button.type.js +1 -1
- package/ui/buttons/Button.type.js.map +1 -1
- package/ui/buttons/ButtonContent.js +3 -3
- package/ui/carousel/Carousel.context.d.ts +27 -0
- package/ui/carousel/Carousel.context.js +2 -0
- package/ui/carousel/Carousel.d.ts +3 -0
- package/ui/carousel/Carousel.js +12 -0
- package/ui/carousel/Carousel.js.map +1 -0
- package/ui/carousel/CarouselBody.d.ts +6 -0
- package/ui/carousel/CarouselBody.js +21 -0
- package/ui/carousel/CarouselBody.js.map +1 -0
- package/ui/carousel/CarouselItem.d.ts +6 -0
- package/ui/carousel/CarouselItem.js +21 -0
- package/ui/carousel/CarouselItem.js.map +1 -0
- package/ui/carousel/CarouselNext.d.ts +8 -0
- package/ui/carousel/CarouselNext.js +23 -0
- package/ui/carousel/CarouselNext.js.map +1 -0
- package/ui/carousel/CarouselPrevious.d.ts +8 -0
- package/ui/carousel/CarouselPrevious.js +23 -0
- package/ui/carousel/CarouselPrevious.js.map +1 -0
- package/ui/contexts/TridentUIConfig.js +1 -1
- package/ui/criteria/Birthdate.d.ts +13 -0
- package/ui/criteria/Birthdate.js +2 -0
- package/ui/criteria/CriteriaDates.d.ts +32 -0
- package/ui/criteria/CriteriaDates.js +76 -0
- package/ui/criteria/CriteriaDates.js.map +1 -0
- package/ui/criteria/CriteriaParticipants.d.ts +106 -0
- package/ui/criteria/CriteriaParticipants.js +2 -0
- package/ui/criteria/CriteriaSection.d.ts +6 -0
- package/ui/criteria/CriteriaSection.js +15 -0
- package/ui/criteria/CriteriaSection.js.map +1 -0
- package/ui/criteria/CriteriaTransports.d.ts +53 -0
- package/ui/criteria/CriteriaTransports.js +274 -0
- package/ui/criteria/CriteriaTransports.js.map +1 -0
- package/ui/forms/CheckboxSelect.d.ts +31 -0
- package/ui/forms/CheckboxSelect.js +119 -0
- package/ui/forms/CheckboxSelect.js.map +1 -0
- package/ui/forms/Filter.d.ts +3 -1
- package/ui/forms/Filter.js +17 -13
- package/ui/forms/Filter.js.map +1 -1
- package/ui/forms/FloatingLabelTextField.d.ts +12 -0
- package/ui/forms/FloatingLabelTextField.js +132 -0
- package/ui/forms/FloatingLabelTextField.js.map +1 -0
- package/ui/forms/FormControl.d.ts +1 -1
- package/ui/forms/FormControl.js.map +1 -1
- package/ui/forms/FormControlError.js +4 -4
- package/ui/forms/NumberField.d.ts +3 -2
- package/ui/forms/NumberField.js +24 -25
- package/ui/forms/NumberField.js.map +1 -1
- package/ui/forms/PhoneField.d.ts +5 -10
- package/ui/forms/PhoneField.js +31 -211
- package/ui/forms/PhoneField.js.map +1 -1
- package/ui/forms/PhoneFieldFullInput.d.ts +16 -0
- package/ui/forms/PhoneFieldFullInput.js +110 -0
- package/ui/forms/PhoneFieldFullInput.js.map +1 -0
- package/ui/forms/PhoneFieldSplitInput.d.ts +19 -0
- package/ui/forms/PhoneFieldSplitInput.js +158 -0
- package/ui/forms/PhoneFieldSplitInput.js.map +1 -0
- package/ui/forms/RadioSelect.d.ts +31 -0
- package/ui/forms/RadioSelect.js +117 -0
- package/ui/forms/RadioSelect.js.map +1 -0
- package/ui/forms/Range.d.ts +1 -1
- package/ui/forms/Select.js +16 -17
- package/ui/forms/Select.js.map +1 -1
- package/ui/forms/Switch.d.ts +5 -3
- package/ui/forms/Switch.js +54 -34
- package/ui/forms/Switch.js.map +1 -1
- package/ui/forms/TextField.js +33 -24
- package/ui/forms/TextField.js.map +1 -1
- package/ui/forms/checkboxes/Checkbox.d.ts +3 -1
- package/ui/forms/checkboxes/Checkbox.js +21 -17
- package/ui/forms/checkboxes/Checkbox.js.map +1 -1
- package/ui/forms/checkboxes/Checkboxes.d.ts +5 -0
- package/ui/forms/checkboxes/Checkboxes.js +8 -8
- package/ui/forms/checkboxes/Checkboxes.js.map +1 -1
- package/ui/forms/password/Password.js +19 -20
- package/ui/forms/password/Password.js.map +1 -1
- package/ui/forms/password/ValidationMessage.js +5 -5
- package/ui/forms/radios/Radio.d.ts +2 -1
- package/ui/forms/radios/Radio.js +6 -3
- package/ui/forms/radios/Radio.js.map +1 -1
- package/ui/forms/radios/RadioGroup.js +5 -6
- package/ui/forms/radios/RadioGroup.js.map +1 -1
- package/ui/frame/Frame.d.ts +8 -0
- package/ui/frame/Frame.js +16 -0
- package/ui/frame/Frame.js.map +1 -0
- package/ui/frame/FrameLabelsWrapper.d.ts +5 -0
- package/ui/frame/FrameLabelsWrapper.js +12 -0
- package/ui/frame/FrameLabelsWrapper.js.map +1 -0
- package/ui/frame/FrameTitle.d.ts +7 -0
- package/ui/frame/FrameTitle.js +25 -0
- package/ui/frame/FrameTitle.js.map +1 -0
- package/ui/frame/FrameWrapper.d.ts +6 -0
- package/ui/frame/FrameWrapper.js +14 -0
- package/ui/frame/FrameWrapper.js.map +1 -0
- package/ui/frame/SliderFrame.d.ts +14 -0
- package/ui/frame/SliderFrame.js +50 -0
- package/ui/frame/SliderFrame.js.map +1 -0
- package/ui/helpers/cn.d.ts +2 -0
- package/ui/helpers/cn.js +10 -0
- package/ui/helpers/cn.js.map +1 -0
- package/ui/helpers/phone/defaultPrefixes.d.ts +1 -0
- package/ui/helpers/phone/defaultPrefixes.js +52 -28
- package/ui/helpers/phone/defaultPrefixes.js.map +1 -1
- package/ui/helpers/phone/formatters.d.ts +11 -0
- package/ui/helpers/phone/formatters.js +32 -1
- package/ui/helpers/phone/formatters.js.map +1 -1
- package/ui/helpers/phone/index.d.ts +1 -1
- package/ui/helpers/phone/index.js +3 -3
- package/ui/hooks/useIsClient.d.ts +1 -0
- package/ui/hooks/useIsClient.js +12 -0
- package/ui/hooks/useIsClient.js.map +1 -0
- package/ui/hooks/useValue.d.ts +3 -4
- package/ui/hooks/useValue.js +11 -11
- package/ui/hooks/useValue.js.map +1 -1
- package/ui/journey-card/FlightSegmentCard.d.ts +15 -0
- package/ui/journey-card/FlightSegmentCard.js +73 -0
- package/ui/journey-card/FlightSegmentCard.js.map +1 -0
- package/ui/journey-card/FlightTimeline.d.ts +5 -0
- package/ui/journey-card/FlightTimeline.js +27 -0
- package/ui/journey-card/FlightTimeline.js.map +1 -0
- package/ui/journey-card/ItineraryDetails.d.ts +9 -0
- package/ui/journey-card/ItineraryDetails.js +40 -0
- package/ui/journey-card/ItineraryDetails.js.map +1 -0
- package/ui/journey-card/JourneyCard.d.ts +17 -0
- package/ui/journey-card/JourneyCard.js +34 -0
- package/ui/journey-card/JourneyCard.js.map +1 -0
- package/ui/journey-card/JourneyDetails.d.ts +47 -0
- package/ui/journey-card/JourneyDetails.js +183 -0
- package/ui/journey-card/JourneyDetails.js.map +1 -0
- package/ui/tabs/Tabs.d.ts +5 -1
- package/ui/tabs/Tabs.js +208 -124
- package/ui/tabs/Tabs.js.map +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { FloatingLabelTextField as e } from "../ui/forms/FloatingLabelTextField.js";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/examples/floating-label-text-field-demo.tsx
|
|
5
|
+
function r() {
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
className: "flex flex-col gap-16 w-full max-w-[496px]",
|
|
8
|
+
children: [
|
|
9
|
+
/* @__PURE__ */ t(e, { label: "Select" }),
|
|
10
|
+
/* @__PURE__ */ t(e, {
|
|
11
|
+
label: "Select",
|
|
12
|
+
value: "First value of the list",
|
|
13
|
+
hasDropdown: !0
|
|
14
|
+
}),
|
|
15
|
+
/* @__PURE__ */ t(e, {
|
|
16
|
+
label: "Select",
|
|
17
|
+
value: "First value of the list",
|
|
18
|
+
validationStatus: "error",
|
|
19
|
+
errorMessage: "Please select a value",
|
|
20
|
+
hasDropdown: !0
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ t(e, {
|
|
23
|
+
label: "Select",
|
|
24
|
+
disabled: !0
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { r as default };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=floating-label-text-field-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floating-label-text-field-demo.js","names":[],"sources":["../../lib/examples/floating-label-text-field-demo.tsx"],"sourcesContent":["'use client';\n\nimport { FloatingLabelTextField } from '@/ui/forms/FloatingLabelTextField';\n\nexport default function FloatingLabelTextFieldDemo() {\n return (\n <div className=\"flex flex-col gap-16 w-full max-w-[496px]\">\n <FloatingLabelTextField label=\"Select\" />\n\n <FloatingLabelTextField label=\"Select\" value=\"First value of the list\" hasDropdown />\n\n <FloatingLabelTextField\n label=\"Select\"\n value=\"First value of the list\"\n validationStatus=\"error\"\n errorMessage=\"Please select a value\"\n hasDropdown\n />\n\n <FloatingLabelTextField label=\"Select\" disabled />\n </div>\n );\n}\n"],"mappings":";;;;AAIA,SAAwB,IAA6B;AACnD,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,GAAD,EAAwB,OAAM,UAAW,CAAA;GAEzC,kBAAC,GAAD;IAAwB,OAAM;IAAS,OAAM;IAA0B,aAAA;IAAc,CAAA;GAErF,kBAAC,GAAD;IACE,OAAM;IACN,OAAM;IACN,kBAAiB;IACjB,cAAa;IACb,aAAA;IACA,CAAA;GAEF,kBAAC,GAAD;IAAwB,OAAM;IAAS,UAAA;IAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FrameDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Frame as e } from "../ui/frame/Frame.js";
|
|
3
|
+
import { FrameLabelsWrapper as t } from "../ui/frame/FrameLabelsWrapper.js";
|
|
4
|
+
import { FrameTitle as n } from "../ui/frame/FrameTitle.js";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
//#region lib/examples/frame-demo.tsx
|
|
7
|
+
function a() {
|
|
8
|
+
return /* @__PURE__ */ r(e, {
|
|
9
|
+
format: "horizontal",
|
|
10
|
+
className: "max-w-380",
|
|
11
|
+
image: {
|
|
12
|
+
alt: "Mountain landscape",
|
|
13
|
+
src: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4"
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ r(t, {
|
|
16
|
+
hasImage: !0,
|
|
17
|
+
children: /* @__PURE__ */ r(n, {
|
|
18
|
+
className: "w-full justify-center text-center",
|
|
19
|
+
coverLink: !0,
|
|
20
|
+
hasImage: !0,
|
|
21
|
+
href: "#",
|
|
22
|
+
children: /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("div", {
|
|
23
|
+
className: "text-b2 font-semibold",
|
|
24
|
+
children: "Mountain Resort"
|
|
25
|
+
}), /* @__PURE__ */ r("div", {
|
|
26
|
+
className: "text-b3",
|
|
27
|
+
children: "Winter"
|
|
28
|
+
})] })
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { a as default };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=frame-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-demo.js","names":[],"sources":["../../lib/examples/frame-demo.tsx"],"sourcesContent":["'use client';\n\nimport { Frame } from '@/ui/frame/Frame';\nimport { FrameLabelsWrapper } from '@/ui/frame/FrameLabelsWrapper';\nimport { FrameTitle } from '@/ui/frame/FrameTitle';\n\nexport default function FrameDemo() {\n return (\n <Frame\n format=\"horizontal\"\n className=\"max-w-380\"\n image={{\n alt: 'Mountain landscape',\n src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4',\n }}\n >\n <FrameLabelsWrapper hasImage>\n <FrameTitle className=\"w-full justify-center text-center\" coverLink hasImage href=\"#\">\n <div>\n <div className=\"text-b2 font-semibold\">Mountain Resort</div>\n <div className=\"text-b3\">Winter</div>\n </div>\n </FrameTitle>\n </FrameLabelsWrapper>\n </Frame>\n );\n}\n"],"mappings":";;;;;;AAMA,SAAwB,IAAY;AAClC,QACE,kBAAC,GAAD;EACE,QAAO;EACP,WAAU;EACV,OAAO;GACL,KAAK;GACL,KAAK;GACN;YAED,kBAAC,GAAD;GAAoB,UAAA;aAClB,kBAAC,GAAD;IAAY,WAAU;IAAoC,WAAA;IAAU,UAAA;IAAS,MAAK;cAChF,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eAAwB;KAAqB,CAAA,EAC5D,kBAAC,OAAD;KAAK,WAAU;eAAU;KAAY,CAAA,CACjC,EAAA,CAAA;IACK,CAAA;GACM,CAAA;EACf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FrameHorizontalDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Button as e } from "../ui/buttons/Button.js";
|
|
3
|
+
import { Frame as t } from "../ui/frame/Frame.js";
|
|
4
|
+
import { FrameLabelsWrapper as n } from "../ui/frame/FrameLabelsWrapper.js";
|
|
5
|
+
import { FrameTitle as r } from "../ui/frame/FrameTitle.js";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
//#region lib/examples/frame-horizontal-demo.tsx
|
|
8
|
+
function o() {
|
|
9
|
+
return /* @__PURE__ */ i(t, {
|
|
10
|
+
format: "horizontal",
|
|
11
|
+
className: "max-w-380",
|
|
12
|
+
image: {
|
|
13
|
+
alt: "Mountain landscape",
|
|
14
|
+
src: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4"
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ i(n, {
|
|
17
|
+
hasImage: !0,
|
|
18
|
+
children: /* @__PURE__ */ a(r, {
|
|
19
|
+
className: "w-full justify-between",
|
|
20
|
+
coverLink: !0,
|
|
21
|
+
hasImage: !0,
|
|
22
|
+
href: "#",
|
|
23
|
+
children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("div", {
|
|
24
|
+
className: "text-b2 font-semibold",
|
|
25
|
+
children: "Alpine Adventures"
|
|
26
|
+
}), /* @__PURE__ */ i("div", {
|
|
27
|
+
className: "text-b3",
|
|
28
|
+
children: "Explore"
|
|
29
|
+
})] }), /* @__PURE__ */ i(e, {
|
|
30
|
+
"aria-label": "Explore Alpine Adventures",
|
|
31
|
+
className: "pointer-events-auto shrink-0",
|
|
32
|
+
color: "white",
|
|
33
|
+
icon: "ArrowDefaultRight",
|
|
34
|
+
theme: "outline",
|
|
35
|
+
variant: "circle"
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { o as default };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=frame-horizontal-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-horizontal-demo.js","names":[],"sources":["../../lib/examples/frame-horizontal-demo.tsx"],"sourcesContent":["'use client';\n\nimport { Button } from '@/ui/buttons/Button';\nimport { Frame } from '@/ui/frame/Frame';\nimport { FrameLabelsWrapper } from '@/ui/frame/FrameLabelsWrapper';\nimport { FrameTitle } from '@/ui/frame/FrameTitle';\n\nexport default function FrameHorizontalDemo() {\n return (\n <Frame\n format=\"horizontal\"\n className=\"max-w-380\"\n image={{\n alt: 'Mountain landscape',\n src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4',\n }}\n >\n <FrameLabelsWrapper hasImage>\n <FrameTitle className=\"w-full justify-between\" coverLink hasImage href=\"#\">\n <div>\n <div className=\"text-b2 font-semibold\">Alpine Adventures</div>\n <div className=\"text-b3\">Explore</div>\n </div>\n <Button\n aria-label=\"Explore Alpine Adventures\"\n className=\"pointer-events-auto shrink-0\"\n color=\"white\"\n icon=\"ArrowDefaultRight\"\n theme=\"outline\"\n variant=\"circle\"\n />\n </FrameTitle>\n </FrameLabelsWrapper>\n </Frame>\n );\n}\n"],"mappings":";;;;;;;AAOA,SAAwB,IAAsB;AAC5C,QACE,kBAAC,GAAD;EACE,QAAO;EACP,WAAU;EACV,OAAO;GACL,KAAK;GACL,KAAK;GACN;YAED,kBAAC,GAAD;GAAoB,UAAA;aAClB,kBAAC,GAAD;IAAY,WAAU;IAAyB,WAAA;IAAU,UAAA;IAAS,MAAK;cAAvE,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eAAwB;KAAuB,CAAA,EAC9D,kBAAC,OAAD;KAAK,WAAU;eAAU;KAAa,CAAA,CAClC,EAAA,CAAA,EACN,kBAAC,GAAD;KACE,cAAW;KACX,WAAU;KACV,OAAM;KACN,MAAK;KACL,OAAM;KACN,SAAQ;KACR,CAAA,CAAA;;GAEe,CAAA;EACf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FrameNoImageDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Button as e } from "../ui/buttons/Button.js";
|
|
3
|
+
import { Tag as t } from "../ui/Tag.js";
|
|
4
|
+
import { Frame as n } from "../ui/frame/Frame.js";
|
|
5
|
+
import { FrameLabelsWrapper as r } from "../ui/frame/FrameLabelsWrapper.js";
|
|
6
|
+
import { FrameTitle as i } from "../ui/frame/FrameTitle.js";
|
|
7
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
+
//#region lib/examples/frame-no-image-demo.tsx
|
|
9
|
+
function s() {
|
|
10
|
+
return /* @__PURE__ */ a(n, {
|
|
11
|
+
format: "horizontal",
|
|
12
|
+
image: null,
|
|
13
|
+
className: "bg-saffron h-240 w-380",
|
|
14
|
+
children: /* @__PURE__ */ o(r, {
|
|
15
|
+
hasImage: !1,
|
|
16
|
+
children: [/* @__PURE__ */ a(t, {
|
|
17
|
+
label: "Partnership",
|
|
18
|
+
border: "ultramarine",
|
|
19
|
+
color: "white",
|
|
20
|
+
backgroundColor: "ultramarine",
|
|
21
|
+
className: "mx-12 mt-12 self-start px-8 sm:mx-24 sm:mt-24 sm:px-16"
|
|
22
|
+
}), /* @__PURE__ */ o(i, {
|
|
23
|
+
className: "w-full justify-between",
|
|
24
|
+
coverLink: !0,
|
|
25
|
+
href: "#",
|
|
26
|
+
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("div", {
|
|
27
|
+
className: "text-b2 font-semibold",
|
|
28
|
+
children: "Special Offer"
|
|
29
|
+
}), /* @__PURE__ */ a("div", {
|
|
30
|
+
className: "text-b3",
|
|
31
|
+
children: "Explore"
|
|
32
|
+
})] }), /* @__PURE__ */ a(e, {
|
|
33
|
+
"aria-label": "Explore Special Offer",
|
|
34
|
+
className: "pointer-events-auto shrink-0",
|
|
35
|
+
color: "black",
|
|
36
|
+
icon: "ArrowDefaultRight",
|
|
37
|
+
theme: "outline",
|
|
38
|
+
variant: "circle"
|
|
39
|
+
})]
|
|
40
|
+
})]
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { s as default };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=frame-no-image-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-no-image-demo.js","names":[],"sources":["../../lib/examples/frame-no-image-demo.tsx"],"sourcesContent":["'use client';\n\nimport { Button } from '@/ui/buttons/Button';\nimport { Tag } from '@/ui/Tag';\nimport { Frame } from '@/ui/frame/Frame';\nimport { FrameLabelsWrapper } from '@/ui/frame/FrameLabelsWrapper';\nimport { FrameTitle } from '@/ui/frame/FrameTitle';\n\nexport default function FrameNoImageDemo() {\n return (\n <Frame format=\"horizontal\" image={null} className=\"bg-saffron h-240 w-380\">\n <FrameLabelsWrapper hasImage={false}>\n <Tag\n label=\"Partnership\"\n border=\"ultramarine\"\n color=\"white\"\n backgroundColor=\"ultramarine\"\n className=\"mx-12 mt-12 self-start px-8 sm:mx-24 sm:mt-24 sm:px-16\"\n />\n <FrameTitle className=\"w-full justify-between\" coverLink href=\"#\">\n <div>\n <div className=\"text-b2 font-semibold\">Special Offer</div>\n <div className=\"text-b3\">Explore</div>\n </div>\n <Button\n aria-label=\"Explore Special Offer\"\n className=\"pointer-events-auto shrink-0\"\n color=\"black\"\n icon=\"ArrowDefaultRight\"\n theme=\"outline\"\n variant=\"circle\"\n />\n </FrameTitle>\n </FrameLabelsWrapper>\n </Frame>\n );\n}\n"],"mappings":";;;;;;;;AAQA,SAAwB,IAAmB;AACzC,QACE,kBAAC,GAAD;EAAO,QAAO;EAAa,OAAO;EAAM,WAAU;YAChD,kBAAC,GAAD;GAAoB,UAAU;aAA9B,CACE,kBAAC,GAAD;IACE,OAAM;IACN,QAAO;IACP,OAAM;IACN,iBAAgB;IAChB,WAAU;IACV,CAAA,EACF,kBAAC,GAAD;IAAY,WAAU;IAAyB,WAAA;IAAU,MAAK;cAA9D,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eAAwB;KAAmB,CAAA,EAC1D,kBAAC,OAAD;KAAK,WAAU;eAAU;KAAa,CAAA,CAClC,EAAA,CAAA,EACN,kBAAC,GAAD;KACE,cAAW;KACX,WAAU;KACV,OAAM;KACN,MAAK;KACL,OAAM;KACN,SAAQ;KACR,CAAA,CAAA;;;EAGA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FrameVerticalDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Button as e } from "../ui/buttons/Button.js";
|
|
3
|
+
import { Frame as t } from "../ui/frame/Frame.js";
|
|
4
|
+
import { FrameLabelsWrapper as n } from "../ui/frame/FrameLabelsWrapper.js";
|
|
5
|
+
import { FrameTitle as r } from "../ui/frame/FrameTitle.js";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
//#region lib/examples/frame-vertical-demo.tsx
|
|
8
|
+
function o() {
|
|
9
|
+
return /* @__PURE__ */ i(t, {
|
|
10
|
+
format: "vertical",
|
|
11
|
+
className: "max-w-280",
|
|
12
|
+
image: {
|
|
13
|
+
alt: "Mountain landscape",
|
|
14
|
+
src: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4"
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ i(n, {
|
|
17
|
+
hasImage: !0,
|
|
18
|
+
children: /* @__PURE__ */ a(r, {
|
|
19
|
+
className: "w-full justify-between",
|
|
20
|
+
coverLink: !0,
|
|
21
|
+
hasImage: !0,
|
|
22
|
+
href: "#",
|
|
23
|
+
children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("div", {
|
|
24
|
+
className: "text-b2 font-semibold",
|
|
25
|
+
children: "Ski Resort"
|
|
26
|
+
}), /* @__PURE__ */ i("div", {
|
|
27
|
+
className: "text-b3",
|
|
28
|
+
children: "Alpine"
|
|
29
|
+
})] }), /* @__PURE__ */ i(e, {
|
|
30
|
+
"aria-label": "Explore Ski Resort",
|
|
31
|
+
className: "pointer-events-auto shrink-0",
|
|
32
|
+
color: "white",
|
|
33
|
+
icon: "ArrowDefaultRight",
|
|
34
|
+
theme: "outline",
|
|
35
|
+
variant: "circle"
|
|
36
|
+
})]
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { o as default };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=frame-vertical-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-vertical-demo.js","names":[],"sources":["../../lib/examples/frame-vertical-demo.tsx"],"sourcesContent":["'use client';\n\nimport { Button } from '@/ui/buttons/Button';\nimport { Frame } from '@/ui/frame/Frame';\nimport { FrameLabelsWrapper } from '@/ui/frame/FrameLabelsWrapper';\nimport { FrameTitle } from '@/ui/frame/FrameTitle';\n\nexport default function FrameVerticalDemo() {\n return (\n <Frame\n format=\"vertical\"\n className=\"max-w-280\"\n image={{\n alt: 'Mountain landscape',\n src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4',\n }}\n >\n <FrameLabelsWrapper hasImage>\n <FrameTitle className=\"w-full justify-between\" coverLink hasImage href=\"#\">\n <div>\n <div className=\"text-b2 font-semibold\">Ski Resort</div>\n <div className=\"text-b3\">Alpine</div>\n </div>\n <Button\n aria-label=\"Explore Ski Resort\"\n className=\"pointer-events-auto shrink-0\"\n color=\"white\"\n icon=\"ArrowDefaultRight\"\n theme=\"outline\"\n variant=\"circle\"\n />\n </FrameTitle>\n </FrameLabelsWrapper>\n </Frame>\n );\n}\n"],"mappings":";;;;;;;AAOA,SAAwB,IAAoB;AAC1C,QACE,kBAAC,GAAD;EACE,QAAO;EACP,WAAU;EACV,OAAO;GACL,KAAK;GACL,KAAK;GACN;YAED,kBAAC,GAAD;GAAoB,UAAA;aAClB,kBAAC,GAAD;IAAY,WAAU;IAAyB,WAAA;IAAU,UAAA;IAAS,MAAK;cAAvE,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eAAwB;KAAgB,CAAA,EACvD,kBAAC,OAAD;KAAK,WAAU;eAAU;KAAY,CAAA,CACjC,EAAA,CAAA,EACN,kBAAC,GAAD;KACE,cAAW;KACX,WAAU;KACV,OAAM;KACN,MAAK;KACL,OAAM;KACN,SAAQ;KACR,CAAA,CAAA;;GAEe,CAAA;EACf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FrameWithTagDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Button as e } from "../ui/buttons/Button.js";
|
|
3
|
+
import { Tag as t } from "../ui/Tag.js";
|
|
4
|
+
import { Frame as n } from "../ui/frame/Frame.js";
|
|
5
|
+
import { FrameLabelsWrapper as r } from "../ui/frame/FrameLabelsWrapper.js";
|
|
6
|
+
import { FrameTitle as i } from "../ui/frame/FrameTitle.js";
|
|
7
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
+
//#region lib/examples/frame-with-tag-demo.tsx
|
|
9
|
+
function s() {
|
|
10
|
+
return /* @__PURE__ */ a(n, {
|
|
11
|
+
format: "horizontal",
|
|
12
|
+
className: "max-w-380",
|
|
13
|
+
image: {
|
|
14
|
+
alt: "Mountain landscape",
|
|
15
|
+
src: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4"
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ o(r, {
|
|
18
|
+
hasImage: !0,
|
|
19
|
+
children: [/* @__PURE__ */ a(t, {
|
|
20
|
+
label: "Best seller",
|
|
21
|
+
className: "mx-12 mt-12 self-start px-8 sm:mx-24 sm:mt-24 sm:px-16"
|
|
22
|
+
}), /* @__PURE__ */ o(i, {
|
|
23
|
+
className: "w-full justify-between",
|
|
24
|
+
coverLink: !0,
|
|
25
|
+
hasImage: !0,
|
|
26
|
+
href: "#",
|
|
27
|
+
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("div", {
|
|
28
|
+
className: "text-b2 font-semibold",
|
|
29
|
+
children: "Mountain Resort"
|
|
30
|
+
}), /* @__PURE__ */ a("div", {
|
|
31
|
+
className: "text-b3",
|
|
32
|
+
children: "Winter"
|
|
33
|
+
})] }), /* @__PURE__ */ a(e, {
|
|
34
|
+
"aria-label": "Explore Mountain Resort",
|
|
35
|
+
className: "pointer-events-auto shrink-0",
|
|
36
|
+
color: "white",
|
|
37
|
+
icon: "ArrowDefaultRight",
|
|
38
|
+
theme: "outline",
|
|
39
|
+
variant: "circle"
|
|
40
|
+
})]
|
|
41
|
+
})]
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { s as default };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=frame-with-tag-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frame-with-tag-demo.js","names":[],"sources":["../../lib/examples/frame-with-tag-demo.tsx"],"sourcesContent":["'use client';\n\nimport { Button } from '@/ui/buttons/Button';\nimport { Tag } from '@/ui/Tag';\nimport { Frame } from '@/ui/frame/Frame';\nimport { FrameLabelsWrapper } from '@/ui/frame/FrameLabelsWrapper';\nimport { FrameTitle } from '@/ui/frame/FrameTitle';\n\nexport default function FrameWithTagDemo() {\n return (\n <Frame\n format=\"horizontal\"\n className=\"max-w-380\"\n image={{\n alt: 'Mountain landscape',\n src: 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4',\n }}\n >\n <FrameLabelsWrapper hasImage>\n <Tag\n label=\"Best seller\"\n className=\"mx-12 mt-12 self-start px-8 sm:mx-24 sm:mt-24 sm:px-16\"\n />\n <FrameTitle className=\"w-full justify-between\" coverLink hasImage href=\"#\">\n <div>\n <div className=\"text-b2 font-semibold\">Mountain Resort</div>\n <div className=\"text-b3\">Winter</div>\n </div>\n <Button\n aria-label=\"Explore Mountain Resort\"\n className=\"pointer-events-auto shrink-0\"\n color=\"white\"\n icon=\"ArrowDefaultRight\"\n theme=\"outline\"\n variant=\"circle\"\n />\n </FrameTitle>\n </FrameLabelsWrapper>\n </Frame>\n );\n}\n"],"mappings":";;;;;;;;AAQA,SAAwB,IAAmB;AACzC,QACE,kBAAC,GAAD;EACE,QAAO;EACP,WAAU;EACV,OAAO;GACL,KAAK;GACL,KAAK;GACN;YAED,kBAAC,GAAD;GAAoB,UAAA;aAApB,CACE,kBAAC,GAAD;IACE,OAAM;IACN,WAAU;IACV,CAAA,EACF,kBAAC,GAAD;IAAY,WAAU;IAAyB,WAAA;IAAU,UAAA;IAAS,MAAK;cAAvE,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;eAAwB;KAAqB,CAAA,EAC5D,kBAAC,OAAD;KAAK,WAAU;eAAU;KAAY,CAAA,CACjC,EAAA,CAAA,EACN,kBAAC,GAAD;KACE,cAAW;KACX,WAAU;KACV,OAAM;KACN,MAAK;KACL,OAAM;KACN,SAAQ;KACR,CAAA,CAAA;;;EAGA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function JourneyCardCompactDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { JourneyCard as e } from "../ui/journey-card/JourneyCard.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/examples/journey-card-compact-demo.tsx
|
|
5
|
+
var n = {
|
|
6
|
+
direction: "Outbound",
|
|
7
|
+
directionType: "Outbound",
|
|
8
|
+
departureDate: "10 Apr. 2026",
|
|
9
|
+
departureTime: "11:55",
|
|
10
|
+
arrivalDate: "11 Apr. 2026",
|
|
11
|
+
arrivalTime: "15:25",
|
|
12
|
+
duration: "9h30mn",
|
|
13
|
+
departureAirport: {
|
|
14
|
+
name: "Paris-Orly",
|
|
15
|
+
terminal: "Terminal 2"
|
|
16
|
+
},
|
|
17
|
+
arrivalAirport: {
|
|
18
|
+
name: "Punta Cana",
|
|
19
|
+
terminal: "Terminal 2E"
|
|
20
|
+
},
|
|
21
|
+
stopLabel: "Direct",
|
|
22
|
+
airlineLogoSrc: "https://dummyimage.com/100x28/ccc/555.png&text=Airline",
|
|
23
|
+
airlineLogoAlt: "Transavia logo",
|
|
24
|
+
operatedBy: "Transavia",
|
|
25
|
+
characteristics: "Economy class, (x1) checked luggage per person — Boeing 777-300e",
|
|
26
|
+
carbonEmission: "A total of 750 kg CO₂ emitted.",
|
|
27
|
+
carbonEmissionLearnMoreLabel: "Learn more",
|
|
28
|
+
plusDaysLabel: "day",
|
|
29
|
+
localTimeLabel: "(local time)"
|
|
30
|
+
}, r = {
|
|
31
|
+
direction: "Inbound",
|
|
32
|
+
directionType: "Inbound",
|
|
33
|
+
departureDate: "16 Apr. 2026",
|
|
34
|
+
departureTime: "17:50",
|
|
35
|
+
arrivalDate: "17 Apr. 2026",
|
|
36
|
+
arrivalTime: "08:20",
|
|
37
|
+
duration: "8h40mn",
|
|
38
|
+
departureAirport: {
|
|
39
|
+
name: "Punta Cana",
|
|
40
|
+
terminal: "Terminal 2E"
|
|
41
|
+
},
|
|
42
|
+
arrivalAirport: {
|
|
43
|
+
name: "Paris-Orly",
|
|
44
|
+
terminal: "Terminal 2"
|
|
45
|
+
},
|
|
46
|
+
stopLabel: "1 Stop over",
|
|
47
|
+
nbStopovers: 1,
|
|
48
|
+
airlineLogoSrc: "https://dummyimage.com/100x28/ccc/555.png&text=Airline",
|
|
49
|
+
airlineLogoAlt: "Transavia logo",
|
|
50
|
+
operatedBy: "Transavia",
|
|
51
|
+
characteristics: "Economy class, (x1) checked luggage per person — Boeing 777-300e",
|
|
52
|
+
carbonEmission: "A total of 750 kg CO₂ emitted.",
|
|
53
|
+
carbonEmissionLearnMoreLabel: "Learn more",
|
|
54
|
+
plusDays: 1,
|
|
55
|
+
plusDaysLabel: "day",
|
|
56
|
+
localTimeLabel: "(local time)"
|
|
57
|
+
};
|
|
58
|
+
function i() {
|
|
59
|
+
return /* @__PURE__ */ t("div", {
|
|
60
|
+
className: "w-full",
|
|
61
|
+
children: /* @__PURE__ */ t(e, {
|
|
62
|
+
compact: !0,
|
|
63
|
+
flight1Journey: n,
|
|
64
|
+
flight2Journey: r
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { i as default };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=journey-card-compact-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journey-card-compact-demo.js","names":[],"sources":["../../lib/examples/journey-card-compact-demo.tsx"],"sourcesContent":["'use client';\n\nimport { JourneyCard } from '@/ui/journey-card/JourneyCard';\nimport type { JourneyDetailsProps } from '@/ui/journey-card/JourneyDetails';\n\nconst outbound: JourneyDetailsProps = {\n direction: 'Outbound',\n directionType: 'Outbound',\n departureDate: '10 Apr. 2026',\n departureTime: '11:55',\n arrivalDate: '11 Apr. 2026',\n arrivalTime: '15:25',\n duration: '9h30mn',\n departureAirport: { name: 'Paris-Orly', terminal: 'Terminal 2' },\n arrivalAirport: { name: 'Punta Cana', terminal: 'Terminal 2E' },\n stopLabel: 'Direct',\n airlineLogoSrc: 'https://dummyimage.com/100x28/ccc/555.png&text=Airline',\n airlineLogoAlt: 'Transavia logo',\n operatedBy: 'Transavia',\n characteristics: 'Economy class, (x1) checked luggage per person — Boeing 777-300e',\n carbonEmission: 'A total of 750 kg CO₂ emitted.',\n carbonEmissionLearnMoreLabel: 'Learn more',\n plusDaysLabel: 'day',\n localTimeLabel: '(local time)',\n};\n\nconst inbound: JourneyDetailsProps = {\n direction: 'Inbound',\n directionType: 'Inbound',\n departureDate: '16 Apr. 2026',\n departureTime: '17:50',\n arrivalDate: '17 Apr. 2026',\n arrivalTime: '08:20',\n duration: '8h40mn',\n departureAirport: { name: 'Punta Cana', terminal: 'Terminal 2E' },\n arrivalAirport: { name: 'Paris-Orly', terminal: 'Terminal 2' },\n stopLabel: '1 Stop over',\n nbStopovers: 1,\n airlineLogoSrc: 'https://dummyimage.com/100x28/ccc/555.png&text=Airline',\n airlineLogoAlt: 'Transavia logo',\n operatedBy: 'Transavia',\n characteristics: 'Economy class, (x1) checked luggage per person — Boeing 777-300e',\n carbonEmission: 'A total of 750 kg CO₂ emitted.',\n carbonEmissionLearnMoreLabel: 'Learn more',\n plusDays: 1,\n plusDaysLabel: 'day',\n localTimeLabel: '(local time)',\n};\n\nexport default function JourneyCardCompactDemo() {\n return (\n <div className=\"w-full\">\n <JourneyCard compact flight1Journey={outbound} flight2Journey={inbound} />\n </div>\n );\n}\n"],"mappings":";;;;AAKA,IAAM,IAAgC;CACpC,WAAW;CACX,eAAe;CACf,eAAe;CACf,eAAe;CACf,aAAa;CACb,aAAa;CACb,UAAU;CACV,kBAAkB;EAAE,MAAM;EAAc,UAAU;EAAc;CAChE,gBAAgB;EAAE,MAAM;EAAc,UAAU;EAAe;CAC/D,WAAW;CACX,gBAAgB;CAChB,gBAAgB;CAChB,YAAY;CACZ,iBAAiB;CACjB,gBAAgB;CAChB,8BAA8B;CAC9B,eAAe;CACf,gBAAgB;CACjB,EAEK,IAA+B;CACnC,WAAW;CACX,eAAe;CACf,eAAe;CACf,eAAe;CACf,aAAa;CACb,aAAa;CACb,UAAU;CACV,kBAAkB;EAAE,MAAM;EAAc,UAAU;EAAe;CACjE,gBAAgB;EAAE,MAAM;EAAc,UAAU;EAAc;CAC9D,WAAW;CACX,aAAa;CACb,gBAAgB;CAChB,gBAAgB;CAChB,YAAY;CACZ,iBAAiB;CACjB,gBAAgB;CAChB,8BAA8B;CAC9B,UAAU;CACV,eAAe;CACf,gBAAgB;CACjB;AAED,SAAwB,IAAyB;AAC/C,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GAAa,SAAA;GAAQ,gBAAgB;GAAU,gBAAgB;GAAW,CAAA;EACtE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function JourneyCardDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { JourneyCard as e } from "../ui/journey-card/JourneyCard.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/examples/journey-card-demo.tsx
|
|
5
|
+
var n = {
|
|
6
|
+
direction: "Outbound",
|
|
7
|
+
directionType: "Outbound",
|
|
8
|
+
departureDate: "10 Apr. 2026",
|
|
9
|
+
departureTime: "11:55",
|
|
10
|
+
arrivalDate: "11 Apr. 2026",
|
|
11
|
+
arrivalTime: "15:25",
|
|
12
|
+
duration: "9h30mn",
|
|
13
|
+
departureAirport: {
|
|
14
|
+
name: "Paris-Orly",
|
|
15
|
+
terminal: "Terminal 2"
|
|
16
|
+
},
|
|
17
|
+
arrivalAirport: {
|
|
18
|
+
name: "Punta Cana",
|
|
19
|
+
terminal: "Terminal 2E"
|
|
20
|
+
},
|
|
21
|
+
stopLabel: "Direct",
|
|
22
|
+
airlineLogoSrc: "https://dummyimage.com/100x28/ccc/555.png&text=Airline",
|
|
23
|
+
airlineLogoAlt: "Transavia logo",
|
|
24
|
+
operatedBy: "Transavia",
|
|
25
|
+
companyName: "Operated by Hop",
|
|
26
|
+
characteristics: "Economy class, (x1) checked luggage per person — Boeing 777-300e",
|
|
27
|
+
carbonEmission: "A total of 750 kg CO₂ emitted.",
|
|
28
|
+
carbonEmissionLearnMoreUrl: "#",
|
|
29
|
+
carbonEmissionLearnMoreLabel: "Learn more",
|
|
30
|
+
plusDays: 1,
|
|
31
|
+
plusDaysLabel: "day",
|
|
32
|
+
localTimeLabel: "(local time)",
|
|
33
|
+
itinerary: {
|
|
34
|
+
segments: [{
|
|
35
|
+
flightNumber: "LX 633 Transavia",
|
|
36
|
+
departureTime: "09:45",
|
|
37
|
+
arrivalTime: "11:05",
|
|
38
|
+
departureAirport: {
|
|
39
|
+
name: "Paris-Roissy CDG",
|
|
40
|
+
terminal: "Terminal 2"
|
|
41
|
+
},
|
|
42
|
+
arrivalAirport: {
|
|
43
|
+
name: "Zurich",
|
|
44
|
+
terminal: "Terminal 2E"
|
|
45
|
+
},
|
|
46
|
+
arrivalDate: "Arrival: 11 Apr. 2026"
|
|
47
|
+
}],
|
|
48
|
+
flexibleOption: "Flexible flight option\n• Cancellation fees limited to €300\n• Baggage included"
|
|
49
|
+
}
|
|
50
|
+
}, r = {
|
|
51
|
+
direction: "Inbound",
|
|
52
|
+
directionType: "Inbound",
|
|
53
|
+
departureDate: "16 Apr. 2026",
|
|
54
|
+
departureTime: "17:50",
|
|
55
|
+
arrivalDate: "17 Apr. 2026",
|
|
56
|
+
arrivalTime: "08:20",
|
|
57
|
+
duration: "8h40mn",
|
|
58
|
+
departureAirport: {
|
|
59
|
+
name: "Punta Cana",
|
|
60
|
+
terminal: "Terminal 2E"
|
|
61
|
+
},
|
|
62
|
+
arrivalAirport: {
|
|
63
|
+
name: "Paris-Orly",
|
|
64
|
+
terminal: "Terminal 2"
|
|
65
|
+
},
|
|
66
|
+
stopLabel: "1 Stop over",
|
|
67
|
+
nbStopovers: 1,
|
|
68
|
+
airlineLogoSrc: "https://dummyimage.com/100x28/ccc/555.png&text=Airline",
|
|
69
|
+
airlineLogoAlt: "Transavia logo",
|
|
70
|
+
operatedBy: "Transavia",
|
|
71
|
+
companyName: "Operated by Hop",
|
|
72
|
+
characteristics: "Economy class, (x1) checked luggage per person — Boeing 777-300e",
|
|
73
|
+
carbonEmission: "A total of 750 kg CO₂ emitted.",
|
|
74
|
+
carbonEmissionLearnMoreUrl: "#",
|
|
75
|
+
carbonEmissionLearnMoreLabel: "Learn more",
|
|
76
|
+
plusDays: 1,
|
|
77
|
+
plusDaysLabel: "day",
|
|
78
|
+
localTimeLabel: "(local time)",
|
|
79
|
+
itinerary: {
|
|
80
|
+
segments: [{
|
|
81
|
+
flightNumber: "LX 630 Transavia",
|
|
82
|
+
departureTime: "09:45",
|
|
83
|
+
arrivalTime: "11:05",
|
|
84
|
+
departureAirport: {
|
|
85
|
+
name: "Punta Cana",
|
|
86
|
+
terminal: "Terminal 2E"
|
|
87
|
+
},
|
|
88
|
+
arrivalAirport: {
|
|
89
|
+
name: "Zurich",
|
|
90
|
+
terminal: "Terminal 2E"
|
|
91
|
+
},
|
|
92
|
+
arrivalDate: "Arrival: 16 Apr. 2026"
|
|
93
|
+
}, {
|
|
94
|
+
flightNumber: "LX 654 Transavia",
|
|
95
|
+
departureTime: "12:30",
|
|
96
|
+
arrivalTime: "08:20",
|
|
97
|
+
departureAirport: {
|
|
98
|
+
name: "Zurich",
|
|
99
|
+
terminal: "Terminal 2E"
|
|
100
|
+
},
|
|
101
|
+
arrivalAirport: {
|
|
102
|
+
name: "Paris-Orly",
|
|
103
|
+
terminal: "Terminal 2"
|
|
104
|
+
},
|
|
105
|
+
arrivalDate: "Arrival: 17 Apr. 2026"
|
|
106
|
+
}],
|
|
107
|
+
connectionTime: "1h10min : Airport connection",
|
|
108
|
+
flexibleOption: "Flexible flight option\n• Cancellation fees limited to €300\n• Baggage included"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
function i() {
|
|
112
|
+
return /* @__PURE__ */ t("div", {
|
|
113
|
+
className: "w-full",
|
|
114
|
+
children: /* @__PURE__ */ t(e, {
|
|
115
|
+
flight1Journey: n,
|
|
116
|
+
flight2Journey: r
|
|
117
|
+
})
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
export { i as default };
|
|
122
|
+
|
|
123
|
+
//# sourceMappingURL=journey-card-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journey-card-demo.js","names":[],"sources":["../../lib/examples/journey-card-demo.tsx"],"sourcesContent":["'use client';\n\nimport { JourneyCard } from '@/ui/journey-card/JourneyCard';\nimport type { JourneyDetailsProps } from '@/ui/journey-card/JourneyDetails';\n\nconst outbound: JourneyDetailsProps = {\n direction: 'Outbound',\n directionType: 'Outbound',\n departureDate: '10 Apr. 2026',\n departureTime: '11:55',\n arrivalDate: '11 Apr. 2026',\n arrivalTime: '15:25',\n duration: '9h30mn',\n departureAirport: { name: 'Paris-Orly', terminal: 'Terminal 2' },\n arrivalAirport: { name: 'Punta Cana', terminal: 'Terminal 2E' },\n stopLabel: 'Direct',\n airlineLogoSrc: 'https://dummyimage.com/100x28/ccc/555.png&text=Airline',\n airlineLogoAlt: 'Transavia logo',\n operatedBy: 'Transavia',\n companyName: 'Operated by Hop',\n characteristics: 'Economy class, (x1) checked luggage per person — Boeing 777-300e',\n carbonEmission: 'A total of 750 kg CO₂ emitted.',\n carbonEmissionLearnMoreUrl: '#',\n carbonEmissionLearnMoreLabel: 'Learn more',\n plusDays: 1,\n plusDaysLabel: 'day',\n localTimeLabel: '(local time)',\n itinerary: {\n segments: [\n {\n flightNumber: 'LX 633 Transavia',\n departureTime: '09:45',\n arrivalTime: '11:05',\n departureAirport: { name: 'Paris-Roissy CDG', terminal: 'Terminal 2' },\n arrivalAirport: { name: 'Zurich', terminal: 'Terminal 2E' },\n arrivalDate: 'Arrival: 11 Apr. 2026',\n },\n ],\n flexibleOption:\n 'Flexible flight option\\n• Cancellation fees limited to €300\\n• Baggage included',\n },\n};\n\nconst inbound: JourneyDetailsProps = {\n direction: 'Inbound',\n directionType: 'Inbound',\n departureDate: '16 Apr. 2026',\n departureTime: '17:50',\n arrivalDate: '17 Apr. 2026',\n arrivalTime: '08:20',\n duration: '8h40mn',\n departureAirport: { name: 'Punta Cana', terminal: 'Terminal 2E' },\n arrivalAirport: { name: 'Paris-Orly', terminal: 'Terminal 2' },\n stopLabel: '1 Stop over',\n nbStopovers: 1,\n airlineLogoSrc: 'https://dummyimage.com/100x28/ccc/555.png&text=Airline',\n airlineLogoAlt: 'Transavia logo',\n operatedBy: 'Transavia',\n companyName: 'Operated by Hop',\n characteristics: 'Economy class, (x1) checked luggage per person — Boeing 777-300e',\n carbonEmission: 'A total of 750 kg CO₂ emitted.',\n carbonEmissionLearnMoreUrl: '#',\n carbonEmissionLearnMoreLabel: 'Learn more',\n plusDays: 1,\n plusDaysLabel: 'day',\n localTimeLabel: '(local time)',\n itinerary: {\n segments: [\n {\n flightNumber: 'LX 630 Transavia',\n departureTime: '09:45',\n arrivalTime: '11:05',\n departureAirport: { name: 'Punta Cana', terminal: 'Terminal 2E' },\n arrivalAirport: { name: 'Zurich', terminal: 'Terminal 2E' },\n arrivalDate: 'Arrival: 16 Apr. 2026',\n },\n {\n flightNumber: 'LX 654 Transavia',\n departureTime: '12:30',\n arrivalTime: '08:20',\n departureAirport: { name: 'Zurich', terminal: 'Terminal 2E' },\n arrivalAirport: { name: 'Paris-Orly', terminal: 'Terminal 2' },\n arrivalDate: 'Arrival: 17 Apr. 2026',\n },\n ],\n connectionTime: '1h10min : Airport connection',\n flexibleOption:\n 'Flexible flight option\\n• Cancellation fees limited to €300\\n• Baggage included',\n },\n};\n\nexport default function JourneyCardDemo() {\n return (\n <div className=\"w-full\">\n <JourneyCard flight1Journey={outbound} flight2Journey={inbound} />\n </div>\n );\n}\n"],"mappings":";;;;AAKA,IAAM,IAAgC;CACpC,WAAW;CACX,eAAe;CACf,eAAe;CACf,eAAe;CACf,aAAa;CACb,aAAa;CACb,UAAU;CACV,kBAAkB;EAAE,MAAM;EAAc,UAAU;EAAc;CAChE,gBAAgB;EAAE,MAAM;EAAc,UAAU;EAAe;CAC/D,WAAW;CACX,gBAAgB;CAChB,gBAAgB;CAChB,YAAY;CACZ,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,4BAA4B;CAC5B,8BAA8B;CAC9B,UAAU;CACV,eAAe;CACf,gBAAgB;CAChB,WAAW;EACT,UAAU,CACR;GACE,cAAc;GACd,eAAe;GACf,aAAa;GACb,kBAAkB;IAAE,MAAM;IAAoB,UAAU;IAAc;GACtE,gBAAgB;IAAE,MAAM;IAAU,UAAU;IAAe;GAC3D,aAAa;GACd,CACF;EACD,gBACE;;CAEL,EAEK,IAA+B;CACnC,WAAW;CACX,eAAe;CACf,eAAe;CACf,eAAe;CACf,aAAa;CACb,aAAa;CACb,UAAU;CACV,kBAAkB;EAAE,MAAM;EAAc,UAAU;EAAe;CACjE,gBAAgB;EAAE,MAAM;EAAc,UAAU;EAAc;CAC9D,WAAW;CACX,aAAa;CACb,gBAAgB;CAChB,gBAAgB;CAChB,YAAY;CACZ,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,4BAA4B;CAC5B,8BAA8B;CAC9B,UAAU;CACV,eAAe;CACf,gBAAgB;CAChB,WAAW;EACT,UAAU,CACR;GACE,cAAc;GACd,eAAe;GACf,aAAa;GACb,kBAAkB;IAAE,MAAM;IAAc,UAAU;IAAe;GACjE,gBAAgB;IAAE,MAAM;IAAU,UAAU;IAAe;GAC3D,aAAa;GACd,EACD;GACE,cAAc;GACd,eAAe;GACf,aAAa;GACb,kBAAkB;IAAE,MAAM;IAAU,UAAU;IAAe;GAC7D,gBAAgB;IAAE,MAAM;IAAc,UAAU;IAAc;GAC9D,aAAa;GACd,CACF;EACD,gBAAgB;EAChB,gBACE;;CAEL;AAED,SAAwB,IAAkB;AACxC,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GAAa,gBAAgB;GAAU,gBAAgB;GAAW,CAAA;EAC9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function PageNavigationDemo(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { PageNavigation as e } from "../ui/PageNavigation.js";
|
|
3
|
+
import { useState as t } from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region lib/examples/page-navigation-demo.tsx
|
|
6
|
+
var r = [
|
|
7
|
+
{
|
|
8
|
+
id: "accommodation",
|
|
9
|
+
label: "Accommodation",
|
|
10
|
+
href: "#accommodation",
|
|
11
|
+
icon: "Home"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "transport",
|
|
15
|
+
label: "Transport",
|
|
16
|
+
href: "#transport",
|
|
17
|
+
icon: "PlaneDefault"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "people",
|
|
21
|
+
label: "People",
|
|
22
|
+
href: "#people",
|
|
23
|
+
icon: "PeopleSingle"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "activities",
|
|
27
|
+
label: "Activities",
|
|
28
|
+
href: "#activities",
|
|
29
|
+
icon: "Multisports"
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
function i() {
|
|
33
|
+
let [i, a] = t("accommodation");
|
|
34
|
+
return /* @__PURE__ */ n("nav", {
|
|
35
|
+
"aria-label": "Demo wrapper",
|
|
36
|
+
onClick: (e) => {
|
|
37
|
+
let t = e.target.closest("a");
|
|
38
|
+
if (t) {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
let n = t.getAttribute("href")?.replace("#", "");
|
|
41
|
+
n && a(n);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
children: /* @__PURE__ */ n(e, {
|
|
45
|
+
items: r,
|
|
46
|
+
activeItem: i
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { i as default };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=page-navigation-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-navigation-demo.js","names":[],"sources":["../../lib/examples/page-navigation-demo.tsx"],"sourcesContent":["'use client';\n\nimport { useState } from 'react';\nimport { PageNavigation } from '@/ui/PageNavigation';\n\nconst items = [\n { id: 'accommodation', label: 'Accommodation', href: '#accommodation', icon: 'Home' as const },\n { id: 'transport', label: 'Transport', href: '#transport', icon: 'PlaneDefault' as const },\n { id: 'people', label: 'People', href: '#people', icon: 'PeopleSingle' as const },\n { id: 'activities', label: 'Activities', href: '#activities', icon: 'Multisports' as const },\n];\n\nexport default function PageNavigationDemo() {\n const [active, setActive] = useState('accommodation');\n\n return (\n <nav\n aria-label=\"Demo wrapper\"\n onClick={(e) => {\n const anchor = (e.target as HTMLElement).closest('a');\n if (anchor) {\n e.preventDefault();\n const id = anchor.getAttribute('href')?.replace('#', '');\n if (id) setActive(id);\n }\n }}\n >\n <PageNavigation items={items} activeItem={active} />\n </nav>\n );\n}\n"],"mappings":";;;;;AAKA,IAAM,IAAQ;CACZ;EAAE,IAAI;EAAiB,OAAO;EAAiB,MAAM;EAAkB,MAAM;EAAiB;CAC9F;EAAE,IAAI;EAAa,OAAO;EAAa,MAAM;EAAc,MAAM;EAAyB;CAC1F;EAAE,IAAI;EAAU,OAAO;EAAU,MAAM;EAAW,MAAM;EAAyB;CACjF;EAAE,IAAI;EAAc,OAAO;EAAc,MAAM;EAAe,MAAM;;CACrE;AAED,SAAwB,IAAqB;CAC3C,IAAM,CAAC,GAAQ,KAAa,EAAS,gBAAgB;AAErD,QACE,kBAAC,OAAD;EACE,cAAW;EACX,UAAU,MAAM;GACd,IAAM,IAAU,EAAE,OAAuB,QAAQ,IAAI;AACrD,OAAI,GAAQ;AACV,MAAE,gBAAgB;IAClB,IAAM,IAAK,EAAO,aAAa,OAAO,EAAE,QAAQ,KAAK,GAAG;AACxD,IAAI,KAAI,EAAU,EAAG;;;YAIzB,kBAAC,GAAD;GAAuB;GAAO,YAAY;GAAU,CAAA;EAChD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-demo.js","names":[],"sources":["../../lib/examples/password-demo.tsx"],"sourcesContent":["'use client';\n\nimport { Password } from '@/ui/forms/password/Password';\n\nexport default function PasswordDemo() {\n return (\n <Password\n label=\"Password\"\n description=\"Enter your password\"\n placeholder=\"Enter password\"\n validationMessages={[\n {\n label: 'At least 12 characters',\n status: 'success',\n },\n {\n label: 'At least one lowercase',\n status: 'success',\n },\n {\n label: 'At least one uppercase',\n status: 'error',\n },\n {\n label: \"At least one special character #$%&'()*\",\n status: 'error',\n },\n {\n label: 'At least one number',\n status: 'error',\n },\n ]}\n />\n );\n}\n"],"mappings":";;;;AAIA,SAAwB,IAAe;AACrC,QACE,kBAAC,GAAD;EACE,OAAM;EACN,aAAY;EACZ,aAAY;EACZ,oBAAoB;GAClB;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;;;EAGZ,CAAA"}
|
|
1
|
+
{"version":3,"file":"password-demo.js","names":[],"sources":["../../lib/examples/password-demo.tsx"],"sourcesContent":["'use client';\n\nimport { Password } from '@/ui/forms/password/Password';\n\nexport default function PasswordDemo() {\n return (\n <Password\n name=\"password\"\n label=\"Password\"\n description=\"Enter your password\"\n placeholder=\"Enter password\"\n validationMessages={[\n {\n label: 'At least 12 characters',\n status: 'success',\n },\n {\n label: 'At least one lowercase',\n status: 'success',\n },\n {\n label: 'At least one uppercase',\n status: 'error',\n },\n {\n label: \"At least one special character #$%&'()*\",\n status: 'error',\n },\n {\n label: 'At least one number',\n status: 'error',\n },\n ]}\n />\n );\n}\n"],"mappings":";;;;AAIA,SAAwB,IAAe;AACrC,QACE,kBAAC,GAAD;EACE,MAAK;EACL,OAAM;EACN,aAAY;EACZ,aAAY;EACZ,oBAAoB;GAClB;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;IACT;GACD;IACE,OAAO;IACP,QAAQ;;;EAGZ,CAAA"}
|
|
@@ -11,14 +11,18 @@ function r() {
|
|
|
11
11
|
placeholder: "+33 1 23 45 67 89",
|
|
12
12
|
mode: "full",
|
|
13
13
|
className: "max-w-sm",
|
|
14
|
-
pattern: "+33 # ## ## ## ##"
|
|
14
|
+
pattern: "+33 # ## ## ## ##",
|
|
15
|
+
id: "phonefield-full",
|
|
16
|
+
name: "Demo for the full version of the PhoneField component"
|
|
15
17
|
}), /* @__PURE__ */ t(e, {
|
|
16
18
|
label: "Phone Number",
|
|
17
19
|
description: "Select your code and number",
|
|
18
20
|
placeholder: "1 23 45 67 89",
|
|
19
21
|
mode: "split",
|
|
20
22
|
className: "max-w-sm",
|
|
21
|
-
pattern: "# ## ## ## ##"
|
|
23
|
+
pattern: "# ## ## ## ##",
|
|
24
|
+
id: "phonefield-split",
|
|
25
|
+
name: "Demo for the split version of the PhoneField component"
|
|
22
26
|
})]
|
|
23
27
|
});
|
|
24
28
|
}
|