@norwegian/core-components 6.59.0 → 7.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/assets/fonts/NorwegianDisplay-Bold.ttf +0 -0
- package/assets/fonts/NorwegianDisplay-Regular.ttf +0 -0
- package/assets/fonts/NorwegianDisplayPro-Bold.otf +0 -0
- package/assets/fonts/NorwegianDisplayPro-Bold.woff +0 -0
- package/assets/fonts/NorwegianDisplayPro-Bold.woff2 +0 -0
- package/assets/fonts/NorwegianDisplayPro-Regular.otf +0 -0
- package/assets/fonts/NorwegianDisplayPro-Regular.woff +0 -0
- package/assets/fonts/NorwegianDisplayPro-Regular.woff2 +0 -0
- package/assets/fonts/NorwegianText-Bold.ttf +0 -0
- package/assets/fonts/NorwegianText-BoldItalic.ttf +0 -0
- package/assets/fonts/NorwegianText-Regular.ttf +0 -0
- package/assets/fonts/NorwegianText-RegularItalic.ttf +0 -0
- package/assets/fonts/NorwegianTextPro-Bold.otf +0 -0
- package/assets/fonts/NorwegianTextPro-Bold.woff +0 -0
- package/assets/fonts/NorwegianTextPro-Bold.woff2 +0 -0
- package/assets/fonts/NorwegianTextPro-BoldItalic.otf +0 -0
- package/assets/fonts/NorwegianTextPro-BoldItalic.woff +0 -0
- package/assets/fonts/NorwegianTextPro-BoldItalic.woff2 +0 -0
- package/assets/fonts/NorwegianTextPro-Regular.otf +0 -0
- package/assets/fonts/NorwegianTextPro-Regular.woff +0 -0
- package/assets/fonts/NorwegianTextPro-Regular.woff2 +0 -0
- package/assets/fonts/NorwegianTextPro-RegularItalic.otf +0 -0
- package/assets/fonts/NorwegianTextPro-RegularItalic.woff +0 -0
- package/assets/fonts/NorwegianTextPro-RegularItalic.woff2 +0 -0
- package/esm2022/lib/components/accordion/accordion.component.mjs +3 -3
- package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +10 -7
- package/esm2022/lib/components/airport-select/airport-select.component.mjs +43 -12
- package/esm2022/lib/components/airport-select/airport-select.module.mjs +4 -4
- package/esm2022/lib/components/airport-select/index.mjs +1 -2
- package/esm2022/lib/components/airport-select/models/results-labels.model.mjs +1 -1
- package/esm2022/lib/components/airport-select/services/airport-select-dropdown.service.mjs +2 -2
- package/esm2022/lib/components/airport-select/services/airport-select.service.mjs +3 -3
- package/esm2022/lib/components/alert/alert.component.mjs +5 -5
- package/esm2022/lib/components/alert/alert.module.mjs +4 -4
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +25 -5
- package/esm2022/lib/components/autocomplete/autocomplete.module.mjs +4 -4
- package/esm2022/lib/components/autocomplete/index.mjs +1 -2
- package/esm2022/lib/components/box/box.component.mjs +2 -2
- package/esm2022/lib/components/button/button.component.mjs +16 -11
- package/esm2022/lib/components/button/button.module.mjs +1 -1
- package/esm2022/lib/components/campaign-header/campaign-header.component.mjs +2 -2
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/lib/components/checkbox/checkbox.module.mjs +1 -1
- package/esm2022/lib/components/continue/continue.component.mjs +2 -2
- package/esm2022/lib/components/continue/continue.module.mjs +1 -1
- package/esm2022/lib/components/cover/cover.component.mjs +2 -2
- package/esm2022/lib/components/cover/cover.module.mjs +1 -1
- package/esm2022/lib/components/datepicker/calendar/calendar.component.mjs +29 -5
- package/esm2022/lib/components/datepicker/calendar/models/day.model.mjs +1 -1
- package/esm2022/lib/components/datepicker/calendar/models/select-option.model.mjs +1 -1
- package/esm2022/lib/components/datepicker/calendar/models/week.model.mjs +1 -1
- package/esm2022/lib/components/datepicker/datepicker.component.mjs +25 -11
- package/esm2022/lib/components/datepicker/datepicker.module.mjs +4 -4
- package/esm2022/lib/components/datepicker/index.mjs +2 -1
- package/esm2022/lib/components/datepicker/services/calendar.service.mjs +7 -5
- package/esm2022/lib/components/datepicker-combo/datepicker-combo.component.mjs +38 -11
- package/esm2022/lib/components/datepicker-combo/datepicker-combo.module.mjs +14 -6
- package/esm2022/lib/components/divider/divider.component.mjs +4 -4
- package/esm2022/lib/components/divider/divider.module.mjs +6 -6
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +2 -2
- package/esm2022/lib/components/filter/filter.component.mjs +139 -72
- package/esm2022/lib/components/filter/filter.module.mjs +23 -11
- package/esm2022/lib/components/filter/index.mjs +2 -1
- package/esm2022/lib/components/icon-list/icon-list.component.mjs +2 -2
- package/esm2022/lib/components/index.mjs +13 -15
- package/esm2022/lib/components/info/info.component.mjs +2 -2
- package/esm2022/lib/components/input/input.component.mjs +61 -14
- package/esm2022/lib/components/input/input.module.mjs +2 -2
- package/esm2022/lib/components/journey/journey.component.mjs +2 -2
- package/esm2022/lib/components/journey-availability/journey-availability.component.mjs +2 -2
- package/esm2022/lib/components/journey-availability-list/journey-availability-list.component.mjs +2 -2
- package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +2 -2
- package/esm2022/lib/components/journey-stopover/journey-stopover.component.mjs +2 -2
- package/esm2022/lib/components/list/list.component.mjs +3 -3
- package/esm2022/lib/components/micro-button/micro-button.component.mjs +2 -2
- package/esm2022/lib/components/modal/modal.component.mjs +2 -2
- package/esm2022/lib/components/number-field/number-field.component.mjs +11 -4
- package/esm2022/lib/components/number-field/number-field.module.mjs +1 -1
- package/esm2022/lib/components/page-footer/page-footer.component.mjs +2 -2
- package/esm2022/lib/components/page-header/page-header.component.mjs +2 -2
- package/esm2022/lib/components/page-header/page-header.module.mjs +2 -6
- package/esm2022/lib/components/page-header/search/search.component.mjs +2 -2
- package/esm2022/lib/components/page-header/wallet/wallet.component.mjs +9 -6
- package/esm2022/lib/components/passenger-select/index.mjs +3 -1
- package/esm2022/lib/components/passenger-select/models/passengers.model.mjs +1 -1
- package/esm2022/lib/components/passenger-select/passenger-select.component.mjs +12 -6
- package/esm2022/lib/components/passenger-select/passenger-select.module.mjs +14 -6
- package/esm2022/lib/components/phone-number/phone-number.component.mjs +2 -2
- package/esm2022/lib/components/radio/radio.component.mjs +4 -4
- package/esm2022/lib/components/ribbon-banner/ribbon-banner.component.mjs +2 -2
- package/esm2022/lib/components/select/select.component.mjs +2 -2
- package/esm2022/lib/components/simple-list/simple-list.component.mjs +2 -2
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +14 -14
- package/esm2022/lib/components/slide-toggle/slide-toggle.module.mjs +1 -1
- package/esm2022/lib/components/slider/slider.component.mjs +4 -4
- package/esm2022/lib/components/sort/sort.component.mjs +2 -2
- package/esm2022/lib/components/sort/sort.module.mjs +1 -1
- package/esm2022/lib/components/spinner/spinner.component.mjs +2 -2
- package/esm2022/lib/components/status-box/status-box.component.mjs +5 -6
- package/esm2022/lib/components/status-box/status-box.module.mjs +5 -5
- package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +2 -2
- package/esm2022/lib/components/suggestions/suggestions.component.mjs +3 -3
- package/esm2022/lib/components/tab-group/tab/tab.component.mjs +2 -2
- package/esm2022/lib/components/table/table.component.mjs +2 -2
- package/esm2022/lib/components/tag/tag.component.mjs +2 -2
- package/esm2022/lib/components/textarea/textarea.component.mjs +2 -2
- package/esm2022/lib/components/toggle/models/options.model.mjs +1 -1
- package/esm2022/lib/components/toggle/toggle.component.mjs +11 -3
- package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +2 -2
- package/esm2022/lib/core/directives/nas-class/nas-class.module.mjs +1 -1
- package/fesm2022/norwegian-core-components.mjs +4614 -10814
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.d.ts +3 -2
- package/lib/components/airport-select/airport-select.component.d.ts +21 -6
- package/lib/components/airport-select/index.d.ts +0 -1
- package/lib/components/alert/alert.module.d.ts +4 -4
- package/lib/components/autocomplete/autocomplete.component.d.ts +8 -4
- package/lib/components/autocomplete/index.d.ts +0 -1
- package/lib/components/button/button.component.d.ts +35 -26
- package/lib/components/checkbox/checkbox.component.d.ts +1 -1
- package/lib/components/datepicker/calendar/calendar.component.d.ts +11 -1
- package/lib/components/datepicker/calendar/models/day.model.d.ts +1 -0
- package/lib/components/datepicker/datepicker.component.d.ts +20 -2
- package/lib/components/datepicker/index.d.ts +1 -0
- package/lib/components/datepicker-combo/datepicker-combo.component.d.ts +26 -3
- package/lib/components/divider/divider.module.d.ts +3 -3
- package/lib/components/filter/filter.component.d.ts +80 -24
- package/lib/components/filter/filter.module.d.ts +10 -7
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/index.d.ts +12 -14
- package/lib/components/input/input.component.d.ts +21 -17
- package/lib/components/list/list.component.d.ts +1 -1
- package/lib/components/number-field/number-field.component.d.ts +10 -2
- package/lib/components/page-header/page-header.module.d.ts +2 -3
- package/lib/components/page-header/wallet/wallet.component.d.ts +1 -0
- package/lib/components/passenger-select/index.d.ts +2 -0
- package/lib/components/passenger-select/models/passengers.model.d.ts +1 -0
- package/lib/components/passenger-select/passenger-select.component.d.ts +2 -2
- package/lib/components/radio/radio.component.d.ts +1 -1
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +9 -9
- package/lib/components/slider/slider.component.d.ts +3 -3
- package/lib/components/status-box/status-box.component.d.ts +3 -3
- package/lib/components/status-box/status-box.module.d.ts +2 -2
- package/lib/components/toggle/models/options.model.d.ts +1 -0
- package/lib/components/toggle/toggle.component.d.ts +1 -0
- package/package.json +1 -1
- package/styles/1__settings/_colors.scss +107 -53
- package/styles/1__settings/_mixins.scss +78 -30
- package/styles/1__settings/_type.scss +17 -43
- package/styles/2__generic/_fonts.scss +16 -28
- package/styles/3__base/_body.scss +3 -3
- package/styles/3__base/_heading.scss +28 -20
- package/styles/3__base/_hr.scss +4 -4
- package/styles/3__base/_input.scss +3 -3
- package/styles/3__base/_link.scss +17 -17
- package/styles/3__base/_table.scss +9 -5
- package/styles/3__base/_type.scss +4 -4
- package/assets/documentation/autocomplete-new/autocomplete-new.md +0 -1
- package/assets/documentation/datepicker/calendar/calendar.md +0 -3
- package/assets/documentation/filter-new/filter-new.md +0 -0
- package/assets/documentation/number-field-new/number-field-new.md +0 -1
- package/assets/documentation/page-header-old/page-header-old.md +0 -1
- package/assets/documentation/weather-icon/weather-icon.md +0 -1
- package/assets/fonts/apercu_bold_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_bold_italic_pro-web.svg +0 -12420
- package/assets/fonts/apercu_bold_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_bold_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_bold_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_bold_italic_pro.otf +0 -0
- package/assets/fonts/apercu_bold_pro-web.eot +0 -0
- package/assets/fonts/apercu_bold_pro-web.svg +0 -10193
- package/assets/fonts/apercu_bold_pro-web.ttf +0 -0
- package/assets/fonts/apercu_bold_pro-web.woff +0 -0
- package/assets/fonts/apercu_bold_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_bold_pro.otf +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.svg +0 -12831
- package/assets/fonts/apercu_light_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_light_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_light_pro-web.eot +0 -0
- package/assets/fonts/apercu_light_pro-web.svg +0 -9704
- package/assets/fonts/apercu_light_pro-web.ttf +0 -0
- package/assets/fonts/apercu_light_pro-web.woff +0 -0
- package/assets/fonts/apercu_light_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.svg +0 -12354
- package/assets/fonts/apercu_medium_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_medium_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_medium_italic_pro.otf +0 -0
- package/assets/fonts/apercu_medium_pro-web.eot +0 -0
- package/assets/fonts/apercu_medium_pro-web.svg +0 -12254
- package/assets/fonts/apercu_medium_pro-web.ttf +0 -0
- package/assets/fonts/apercu_medium_pro-web.woff +0 -0
- package/assets/fonts/apercu_medium_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_medium_pro.otf +0 -0
- package/assets/fonts/apercu_mono_pro-web.eot +0 -0
- package/assets/fonts/apercu_mono_pro-web.svg +0 -538
- package/assets/fonts/apercu_mono_pro-web.ttf +0 -0
- package/assets/fonts/apercu_mono_pro-web.woff +0 -0
- package/assets/fonts/apercu_mono_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.eot +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.svg +0 -13059
- package/assets/fonts/apercu_regular_italic_pro-web.ttf +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.woff +0 -0
- package/assets/fonts/apercu_regular_italic_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_regular_italic_pro.otf +0 -0
- package/assets/fonts/apercu_regular_pro-web.eot +0 -0
- package/assets/fonts/apercu_regular_pro-web.svg +0 -11356
- package/assets/fonts/apercu_regular_pro-web.ttf +0 -0
- package/assets/fonts/apercu_regular_pro-web.woff +0 -0
- package/assets/fonts/apercu_regular_pro-web.woff2 +0 -0
- package/assets/fonts/apercu_regular_pro.otf +0 -0
- package/esm2022/lib/components/airport-select-new/airport-select-dropdown/airport-select-dropdown.component.mjs +0 -611
- package/esm2022/lib/components/airport-select-new/airport-select-new.component.mjs +0 -477
- package/esm2022/lib/components/airport-select-new/airport-select-new.module.mjs +0 -42
- package/esm2022/lib/components/airport-select-new/index.mjs +0 -4
- package/esm2022/lib/components/airport-select-new/models/airport.model.mjs +0 -2
- package/esm2022/lib/components/airport-select-new/models/results-labels.model.mjs +0 -3
- package/esm2022/lib/components/airport-select-new/services/airport-select-dropdown.service.mjs +0 -35
- package/esm2022/lib/components/airport-select-new/services/airport-select.service.mjs +0 -38
- package/esm2022/lib/components/autocomplete-new/autocomplete-new.component.mjs +0 -309
- package/esm2022/lib/components/autocomplete-new/autocomplete-new.module.mjs +0 -43
- package/esm2022/lib/components/autocomplete-new/index.mjs +0 -3
- package/esm2022/lib/components/autocomplete-new/models/autocomplete-new.model.mjs +0 -2
- package/esm2022/lib/components/button-new/button-new.component.mjs +0 -176
- package/esm2022/lib/components/button-new/button-new.module.mjs +0 -21
- package/esm2022/lib/components/button-new/index.mjs +0 -3
- package/esm2022/lib/components/checkbox-new/checkbox-new.component.mjs +0 -150
- package/esm2022/lib/components/checkbox-new/checkbox-new.module.mjs +0 -20
- package/esm2022/lib/components/checkbox-new/index.mjs +0 -3
- package/esm2022/lib/components/datepicker-combo-new/datepicker-combo-new.component.mjs +0 -397
- package/esm2022/lib/components/datepicker-combo-new/datepicker-combo-new.module.mjs +0 -31
- package/esm2022/lib/components/datepicker-combo-new/index.mjs +0 -3
- package/esm2022/lib/components/datepicker-new/calendar-new/calendar-date.model.mjs +0 -2
- package/esm2022/lib/components/datepicker-new/calendar-new/calendar-new.component.mjs +0 -594
- package/esm2022/lib/components/datepicker-new/calendar-new/enums/week-start.enum.mjs +0 -6
- package/esm2022/lib/components/datepicker-new/calendar-new/models/day.model.mjs +0 -2
- package/esm2022/lib/components/datepicker-new/calendar-new/models/select-option.model.mjs +0 -2
- package/esm2022/lib/components/datepicker-new/calendar-new/models/week.model.mjs +0 -2
- package/esm2022/lib/components/datepicker-new/datepicker-new.component.mjs +0 -572
- package/esm2022/lib/components/datepicker-new/datepicker-new.module.mjs +0 -55
- package/esm2022/lib/components/datepicker-new/index.mjs +0 -5
- package/esm2022/lib/components/datepicker-new/services/calendar.service.mjs +0 -215
- package/esm2022/lib/components/filter-new/enums/trip-type.enum.mjs +0 -8
- package/esm2022/lib/components/filter-new/filter-new.component.mjs +0 -1349
- package/esm2022/lib/components/filter-new/filter-new.module.mjs +0 -105
- package/esm2022/lib/components/filter-new/index.mjs +0 -4
- package/esm2022/lib/components/input-text/index.mjs +0 -3
- package/esm2022/lib/components/input-text/input-text.component.mjs +0 -231
- package/esm2022/lib/components/input-text/input-text.module.mjs +0 -35
- package/esm2022/lib/components/number-field-new/index.mjs +0 -3
- package/esm2022/lib/components/number-field-new/models/number-field-new.model.mjs +0 -2
- package/esm2022/lib/components/number-field-new/number-field-new.component.mjs +0 -155
- package/esm2022/lib/components/number-field-new/number-field-new.module.mjs +0 -39
- package/esm2022/lib/components/page-header-old/index.mjs +0 -5
- package/esm2022/lib/components/page-header-old/old-hamburger/old-hamburger.component.mjs +0 -22
- package/esm2022/lib/components/page-header-old/old-search/old-search.component.mjs +0 -49
- package/esm2022/lib/components/page-header-old/page-header-old.component.mjs +0 -160
- package/esm2022/lib/components/page-header-old/page-header-old.module.mjs +0 -44
- package/esm2022/lib/components/passenger-select-new/enums/passenger-type.enum.mjs +0 -9
- package/esm2022/lib/components/passenger-select-new/index.mjs +0 -5
- package/esm2022/lib/components/passenger-select-new/models/passengers.model.mjs +0 -2
- package/esm2022/lib/components/passenger-select-new/passenger-select-new.component.mjs +0 -417
- package/esm2022/lib/components/passenger-select-new/passenger-select-new.module.mjs +0 -28
- package/esm2022/lib/components/radio-new/index.mjs +0 -3
- package/esm2022/lib/components/radio-new/radio-new.component.mjs +0 -100
- package/esm2022/lib/components/radio-new/radio-new.module.mjs +0 -20
- package/esm2022/lib/components/slide-toggle-new/index.mjs +0 -3
- package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.component.mjs +0 -115
- package/esm2022/lib/components/slide-toggle-new/slide-toggle-new.module.mjs +0 -20
- package/esm2022/lib/components/weather-icon/index.mjs +0 -3
- package/esm2022/lib/components/weather-icon/weather-icon.component.mjs +0 -61
- package/esm2022/lib/components/weather-icon/weather-icon.module.mjs +0 -19
- package/lib/components/airport-select-new/airport-select-dropdown/airport-select-dropdown.component.d.ts +0 -97
- package/lib/components/airport-select-new/airport-select-new.component.d.ts +0 -302
- package/lib/components/airport-select-new/airport-select-new.module.d.ts +0 -13
- package/lib/components/airport-select-new/index.d.ts +0 -2
- package/lib/components/airport-select-new/models/airport.model.d.ts +0 -11
- package/lib/components/airport-select-new/models/results-labels.model.d.ts +0 -7
- package/lib/components/airport-select-new/services/airport-select-dropdown.service.d.ts +0 -10
- package/lib/components/airport-select-new/services/airport-select.service.d.ts +0 -8
- package/lib/components/autocomplete-new/autocomplete-new.component.d.ts +0 -135
- package/lib/components/autocomplete-new/autocomplete-new.module.d.ts +0 -13
- package/lib/components/autocomplete-new/index.d.ts +0 -2
- package/lib/components/autocomplete-new/models/autocomplete-new.model.d.ts +0 -5
- package/lib/components/button-new/button-new.component.d.ts +0 -276
- package/lib/components/button-new/button-new.module.d.ts +0 -11
- package/lib/components/button-new/index.d.ts +0 -2
- package/lib/components/checkbox-new/checkbox-new.component.d.ts +0 -138
- package/lib/components/checkbox-new/checkbox-new.module.d.ts +0 -10
- package/lib/components/checkbox-new/index.d.ts +0 -2
- package/lib/components/datepicker-combo-new/datepicker-combo-new.component.d.ts +0 -309
- package/lib/components/datepicker-combo-new/datepicker-combo-new.module.d.ts +0 -10
- package/lib/components/datepicker-combo-new/index.d.ts +0 -2
- package/lib/components/datepicker-new/calendar-new/calendar-date.model.d.ts +0 -5
- package/lib/components/datepicker-new/calendar-new/calendar-new.component.d.ts +0 -159
- package/lib/components/datepicker-new/calendar-new/enums/week-start.enum.d.ts +0 -4
- package/lib/components/datepicker-new/calendar-new/models/day.model.d.ts +0 -10
- package/lib/components/datepicker-new/calendar-new/models/select-option.model.d.ts +0 -4
- package/lib/components/datepicker-new/calendar-new/models/week.model.d.ts +0 -5
- package/lib/components/datepicker-new/datepicker-new.component.d.ts +0 -278
- package/lib/components/datepicker-new/datepicker-new.module.d.ts +0 -16
- package/lib/components/datepicker-new/index.d.ts +0 -4
- package/lib/components/datepicker-new/services/calendar.service.d.ts +0 -27
- package/lib/components/filter-new/enums/trip-type.enum.d.ts +0 -6
- package/lib/components/filter-new/filter-new.component.d.ts +0 -838
- package/lib/components/filter-new/filter-new.module.d.ts +0 -28
- package/lib/components/filter-new/index.d.ts +0 -3
- package/lib/components/input-text/index.d.ts +0 -2
- package/lib/components/input-text/input-text.component.d.ts +0 -203
- package/lib/components/input-text/input-text.module.d.ts +0 -11
- package/lib/components/number-field-new/index.d.ts +0 -2
- package/lib/components/number-field-new/models/number-field-new.model.d.ts +0 -5
- package/lib/components/number-field-new/number-field-new.component.d.ts +0 -116
- package/lib/components/number-field-new/number-field-new.module.d.ts +0 -12
- package/lib/components/page-header-old/index.d.ts +0 -4
- package/lib/components/page-header-old/old-hamburger/old-hamburger.component.d.ts +0 -12
- package/lib/components/page-header-old/old-search/old-search.component.d.ts +0 -26
- package/lib/components/page-header-old/page-header-old.component.d.ts +0 -112
- package/lib/components/page-header-old/page-header-old.module.d.ts +0 -14
- package/lib/components/passenger-select-new/enums/passenger-type.enum.d.ts +0 -7
- package/lib/components/passenger-select-new/index.d.ts +0 -4
- package/lib/components/passenger-select-new/models/passengers.model.d.ts +0 -10
- package/lib/components/passenger-select-new/passenger-select-new.component.d.ts +0 -141
- package/lib/components/passenger-select-new/passenger-select-new.module.d.ts +0 -10
- package/lib/components/radio-new/index.d.ts +0 -2
- package/lib/components/radio-new/radio-new.component.d.ts +0 -135
- package/lib/components/radio-new/radio-new.module.d.ts +0 -10
- package/lib/components/slide-toggle-new/index.d.ts +0 -2
- package/lib/components/slide-toggle-new/slide-toggle-new.component.d.ts +0 -70
- package/lib/components/slide-toggle-new/slide-toggle-new.module.d.ts +0 -10
- package/lib/components/weather-icon/index.d.ts +0 -2
- package/lib/components/weather-icon/weather-icon.component.d.ts +0 -60
- package/lib/components/weather-icon/weather-icon.module.d.ts +0 -9
|
@@ -178,6 +178,7 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
|
|
|
178
178
|
bubbleValue: string | number;
|
|
179
179
|
isIEOrEdge: boolean;
|
|
180
180
|
showBubbleSuffix: boolean;
|
|
181
|
+
isViewInit: boolean;
|
|
181
182
|
get sliderId(): string;
|
|
182
183
|
get isBubbleActive(): boolean;
|
|
183
184
|
set isBubbleActive(value: boolean);
|
|
@@ -194,7 +195,6 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
|
|
|
194
195
|
private stepValue;
|
|
195
196
|
private disabledValue;
|
|
196
197
|
private componentId;
|
|
197
|
-
private isViewInit;
|
|
198
198
|
private minLabelValue;
|
|
199
199
|
private maxLabelValue;
|
|
200
200
|
private suffixLabelValue;
|
|
@@ -209,8 +209,8 @@ export declare class SliderComponent extends NasComponentBase implements OnInit,
|
|
|
209
209
|
private setBubbleStyle;
|
|
210
210
|
onDisplayBubble(event?: any, type?: string): void;
|
|
211
211
|
private validateRangerSlider;
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
activateBubble(value: number, type: string): void;
|
|
213
|
+
setBubbleValue(value: number): string | number;
|
|
214
214
|
static ɵfac: i0.ɵɵFactoryDeclaration<SliderComponent, never>;
|
|
215
215
|
static ɵcmp: i0.ɵɵComponentDeclaration<SliderComponent, "nas-slider", never, { "id": { "alias": "id"; "required": false; }; "range": { "alias": "range"; "required": false; }; "name": { "alias": "name"; "required": false; }; "title": { "alias": "title"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectedMinValue": { "alias": "selectedMinValue"; "required": false; }; "selectedMaxValue": { "alias": "selectedMaxValue"; "required": false; }; "minDiffRange": { "alias": "minDiffRange"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "isPrefix": { "alias": "isPrefix"; "required": false; }; "min": { "alias": "min"; "required": false; }; "minLabel": { "alias": "minLabel"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxLabel": { "alias": "maxLabel"; "required": false; }; "step": { "alias": "step"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormControlMin": { "alias": "nasFormControlMin"; "required": false; }; "nasFormControlMax": { "alias": "nasFormControlMax"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; }, { "valueChange": "valueChange"; "selectedMinValueChange": "selectedMinValueChange"; "selectedMaxValueChange": "selectedMaxValueChange"; }, never, never, false, never>;
|
|
216
216
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { NasComponentBase } from '../../core/base/nas-component.base';
|
|
3
3
|
import { StatusBoxModel } from './models/status-box.model';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* @license
|
|
@@ -11,9 +12,6 @@ import * as i0 from "@angular/core";
|
|
|
11
12
|
* Norwegian Status Box Component | Dialogs and Modals
|
|
12
13
|
*/
|
|
13
14
|
export declare class StatusBoxComponent extends NasComponentBase {
|
|
14
|
-
private statusBoxModel;
|
|
15
|
-
private trackingEventSource;
|
|
16
|
-
trackingEvent$: import("rxjs").Observable<string>;
|
|
17
15
|
/**
|
|
18
16
|
* @property Input
|
|
19
17
|
* @description
|
|
@@ -82,6 +80,8 @@ export declare class StatusBoxComponent extends NasComponentBase {
|
|
|
82
80
|
* <nas-button (clickChange)="myFunction()">Click on me!</nas-button>
|
|
83
81
|
*/
|
|
84
82
|
clickChange: EventEmitter<Event>;
|
|
83
|
+
trackingEventSource: Subject<string>;
|
|
84
|
+
private statusBoxModel;
|
|
85
85
|
constructor();
|
|
86
86
|
get modifiers(): Array<string>;
|
|
87
87
|
getIcon(): string;
|
|
@@ -2,10 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./status-box.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../../core/directives/nas-class/nas-class.module";
|
|
5
|
-
import * as i4 from "../button
|
|
5
|
+
import * as i4 from "../button/button.module";
|
|
6
6
|
import * as i5 from "../icon/icon.module";
|
|
7
7
|
export declare class StatusBoxModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<StatusBoxModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StatusBoxModule, [typeof i1.StatusBoxComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StatusBoxModule, [typeof i1.StatusBoxComponent], [typeof i2.CommonModule, typeof i3.NasClassModule, typeof i4.ButtonModule, typeof i5.IconModule], [typeof i1.StatusBoxComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<StatusBoxModule>;
|
|
11
11
|
}
|
|
@@ -164,6 +164,7 @@ export declare class ToggleComponent extends NasComponentBase implements OnInit
|
|
|
164
164
|
getOptionId(option: OptionModel): string;
|
|
165
165
|
onChange(option: OptionModel): void;
|
|
166
166
|
mainClasses(): import("@norwegian/core-components").ClassModel;
|
|
167
|
+
onClickHref(event: MouseEvent, option: OptionModel): void;
|
|
167
168
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleComponent, never>;
|
|
168
169
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToggleComponent, "nas-toggle", never, { "options": { "alias": "options"; "required": false; }; "large": { "alias": "large"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "light": { "alias": "light"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "small": { "alias": "small"; "required": false; }; "big": { "alias": "big"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "group": { "alias": "group"; "required": false; }; "nasFormControlName": { "alias": "nasFormControlName"; "required": false; }; "nasFormGroup": { "alias": "nasFormGroup"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; }, { "handleChange": "handleChange"; }, never, never, false, never>;
|
|
169
170
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Colors
|
|
2
2
|
@function color($color-name, $color-variant: 'base') {
|
|
3
|
-
@return map-get(map-get($colors, $color-name), $color-variant);
|
|
3
|
+
@return map-get(map-get($base-colors, $color-name), $color-variant);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
// Find the contrast color to any color hex
|
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
$light-color: round((red(#fff) * 299) + (green(#fff) * 587) + (blue(#fff) * 114) / 1000);
|
|
10
10
|
|
|
11
11
|
@if abs($color-brightness) < ($light-color / 2) {
|
|
12
|
-
@return
|
|
13
|
-
}
|
|
14
|
-
|
|
12
|
+
@return color(white-color, base);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@else {
|
|
16
|
+
@return color(blue-color, 90);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
19
|
+
|
|
17
20
|
// Add percentage of white to a color
|
|
18
21
|
@function tint($color, $percent) {
|
|
19
22
|
@return mix(white, $color, $percent);
|
|
@@ -24,59 +27,110 @@
|
|
|
24
27
|
@return mix(black, $color, $percent);
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
$colors: (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
30
|
+
$base-colors: (
|
|
31
|
+
blue-color: (10: #EBF4FF,
|
|
32
|
+
20: #DAEBFF,
|
|
33
|
+
30: #C2DEFF,
|
|
34
|
+
40: #9BBEE5,
|
|
35
|
+
50: #7CA4CD,
|
|
36
|
+
60: #648FBB,
|
|
37
|
+
70: #2A5980,
|
|
38
|
+
80: #15273F,
|
|
39
|
+
90: #0A2033,
|
|
40
|
+
100: #071622,
|
|
41
|
+
base: #15273F),
|
|
42
|
+
dark-red-color: (10: #FEECE9,
|
|
43
|
+
20: #FCD7CF,
|
|
44
|
+
60: #CC3A19,
|
|
45
|
+
80: #B12A0B,
|
|
46
|
+
base: #CC3A19),
|
|
47
|
+
green-color: (10: #F4FAF2,
|
|
48
|
+
20: #DAEFD3,
|
|
49
|
+
60: #2EB004,
|
|
50
|
+
80: #238E00,
|
|
51
|
+
base: #2EB004),
|
|
52
|
+
grey-color: (100: #1C1C1C,
|
|
53
|
+
90: #3C3C3C,
|
|
54
|
+
80: #5B5B5B,
|
|
55
|
+
70: #6F6F6F,
|
|
56
|
+
60: #909090,
|
|
57
|
+
50: #C3C3C3,
|
|
58
|
+
40: #E9E7E4,
|
|
59
|
+
30: #EAEAEA,
|
|
60
|
+
20: #F1F1F1,
|
|
61
|
+
10: #F8F8F8,
|
|
62
|
+
base: #C3C3C3),
|
|
63
|
+
orange-color: (10: #FFF6EC,
|
|
64
|
+
20: #FFE8CC,
|
|
65
|
+
60: #FFC266,
|
|
66
|
+
80: #FC9E12,
|
|
67
|
+
base: #FC9E12),
|
|
68
|
+
red-color: (10: #FFF5F3,
|
|
69
|
+
20: #FAD1D2,
|
|
70
|
+
30: #F4A4AA,
|
|
71
|
+
40: #EF7678,
|
|
72
|
+
50: #EA4850,
|
|
73
|
+
60: #E5212D,
|
|
74
|
+
70: #B71530,
|
|
75
|
+
80: #891024,
|
|
76
|
+
90: #5B0B18,
|
|
77
|
+
100: #2E050C,
|
|
78
|
+
base: #E5212D),
|
|
79
|
+
white-color: (base: #FFFFFF),
|
|
80
|
+
yellow-color: (10: #FFFBD5,
|
|
81
|
+
20: #FFF9C1,
|
|
82
|
+
60: #FFE87E,
|
|
83
|
+
80: #FFDA2C,
|
|
84
|
+
base: #FFDA2C)
|
|
45
85
|
);
|
|
46
86
|
|
|
47
|
-
//
|
|
48
|
-
|
|
49
|
-
$
|
|
50
|
-
$
|
|
51
|
-
$
|
|
87
|
+
// Alerts
|
|
88
|
+
$alert-error: color(dark-red-color, base);
|
|
89
|
+
$alert-error-background: color(red-color, 10);
|
|
90
|
+
$alert-info: color(blue-color, base);
|
|
91
|
+
$alert-info-background: color(blue-color, 10);
|
|
92
|
+
$alert-success: color(green-color, base);
|
|
93
|
+
$alert-success-background: color(green-color, 10);
|
|
94
|
+
$alert-warning: color(orange-color, base);
|
|
95
|
+
$alert-warning-background: color(orange-color, 10);
|
|
52
96
|
|
|
53
|
-
|
|
54
|
-
$
|
|
55
|
-
$
|
|
56
|
-
$
|
|
57
|
-
$
|
|
58
|
-
$
|
|
59
|
-
$
|
|
60
|
-
$
|
|
61
|
-
$color-backdrop: rgba(shade(color(secondary), 50%), 0.17);
|
|
62
|
-
$color-backdrop--strong: rgba(shade(color(secondary), 70%), 0.7);
|
|
97
|
+
// Backgrounds
|
|
98
|
+
$background-canvas: color(grey-color, 10);
|
|
99
|
+
$background-important: color(blue-color, base);
|
|
100
|
+
$background-promotion: color(red-color, base);
|
|
101
|
+
$background-surface-contrast: color(grey-color, 10);
|
|
102
|
+
$background-surface-dark: color(grey-color, 70);
|
|
103
|
+
$background-surface-default: color(white-color, base);
|
|
104
|
+
$background-surface-muted: color(grey-color, 40);
|
|
63
105
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
$
|
|
67
|
-
$
|
|
68
|
-
$
|
|
69
|
-
$
|
|
70
|
-
$
|
|
71
|
-
$color-success-background: #F4FAF2;
|
|
72
|
-
$color-info-background: #EBF4FF;
|
|
73
|
-
$color-neutral: #eaeaea;
|
|
74
|
-
$color-neutral-background: #F9F9F9;
|
|
106
|
+
// Borders
|
|
107
|
+
$border-default: color(grey-color, 70);
|
|
108
|
+
$border-heavy: color(blue-color, base);
|
|
109
|
+
$border-inverted: color(white-color, base);
|
|
110
|
+
$border-muted: color(grey-color, 40);
|
|
111
|
+
$border-primary: color(red-color, base);
|
|
112
|
+
$border-success: color(green-color, 80);
|
|
75
113
|
|
|
76
|
-
//
|
|
77
|
-
$
|
|
114
|
+
// CTAs
|
|
115
|
+
$cta-primary: color(red-color, base);
|
|
116
|
+
$cta-primary-hover: color(red-color, 70);
|
|
117
|
+
$cta-primary-press: color(red-color, 80);
|
|
118
|
+
$cta-secondary: color(blue-color, base);
|
|
119
|
+
$cta-secondary-hover: color(blue-color, 90);
|
|
120
|
+
$cta-secondary-press: color(blue-color, 100);
|
|
121
|
+
$cta-tertiary: color(white-color, base);
|
|
122
|
+
$cta-tertiary-hover: color(grey-color, 10);
|
|
123
|
+
$cta-tertiary-press: color(blue-color, 10);
|
|
78
124
|
|
|
79
|
-
|
|
80
|
-
$
|
|
81
|
-
$
|
|
125
|
+
// Interactive elements
|
|
126
|
+
$interactive-element-default: color(white-color, base);
|
|
127
|
+
$interactive-element-disabled: color(grey-color, 40);
|
|
128
|
+
$interactive-element-hover: color(grey-color, 10);
|
|
129
|
+
$interactive-element-selected: color(blue-color, 10);
|
|
82
130
|
|
|
131
|
+
// Typography
|
|
132
|
+
$typography-text-default: color(blue-color, base);
|
|
133
|
+
$typography-text-disabled: color(grey-color, 40);
|
|
134
|
+
$typography-text-inverted: color(white-color, base);
|
|
135
|
+
$typography-text-link: color(dark-red-color, 80);
|
|
136
|
+
$typography-text-muted: color(grey-color, 70);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// Font family and weights
|
|
4
4
|
@mixin font($font-family: base, $weight: null) {
|
|
5
5
|
$family: map-get($fonts, $font-family);
|
|
6
|
+
|
|
6
7
|
@if $weight {
|
|
7
8
|
@if map-has-key($family, $weight) {
|
|
8
9
|
$f-weight: map-get($family, $weight);
|
|
@@ -10,48 +11,82 @@
|
|
|
10
11
|
@if (length($f-weight) > 1) {
|
|
11
12
|
font-family: nth($f-weight, 2), map-get($family, fallback);
|
|
12
13
|
font-weight: nth($f-weight, 1);
|
|
13
|
-
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@else {
|
|
14
17
|
font-family: map-get($family, font), map-get($family, fallback);
|
|
15
18
|
font-weight: $f-weight;
|
|
16
19
|
}
|
|
17
|
-
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@else {
|
|
18
23
|
font-family: map-get($family, font), map-get($family, fallback);
|
|
19
24
|
}
|
|
20
|
-
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@else {
|
|
21
28
|
font-family: map-get($family, font), map-get($family, fallback);
|
|
22
29
|
}
|
|
23
30
|
}
|
|
24
31
|
|
|
25
|
-
@mixin font-size($size
|
|
32
|
+
// @mixin font-size($size, $skip-line-height: false, $size-variant: 'base') {
|
|
33
|
+
// // @mixin font-size($size: base, $skip-line-height: false) {
|
|
34
|
+
// $fs-breakpoints: $breakpoints;
|
|
35
|
+
// // $fs-map: map-get($font-size, $size);
|
|
36
|
+
// $fs-map: map-get(map-get($font-size, $size), $size-variant);
|
|
37
|
+
|
|
38
|
+
// @each $fs-breakpoint, $fs-font-size in $fs-map {
|
|
39
|
+
// @if $fs-breakpoint ==base {
|
|
40
|
+
// @include make-font-size($fs-font-size, $skip-line-height);
|
|
41
|
+
// }
|
|
42
|
+
|
|
43
|
+
// @else {
|
|
44
|
+
// @if map-has-key($fs-breakpoints, $fs-breakpoint) {
|
|
45
|
+
// $fs-breakpoint: map-get($fs-breakpoints, $fs-breakpoint);
|
|
46
|
+
// }
|
|
47
|
+
|
|
48
|
+
// @media screen and (min-width: $fs-breakpoint) {
|
|
49
|
+
// @include make-font-size($fs-font-size, $skip-line-height);
|
|
50
|
+
// }
|
|
51
|
+
// }
|
|
52
|
+
// }
|
|
53
|
+
// }
|
|
54
|
+
|
|
55
|
+
@mixin font-size($size, $skip-line-height: false, $size-variant: 'base') {
|
|
26
56
|
$fs-breakpoints: $breakpoints;
|
|
27
57
|
$fs-map: map-get($font-size, $size);
|
|
28
58
|
|
|
29
59
|
@each $fs-breakpoint, $fs-font-size in $fs-map {
|
|
30
|
-
@if $fs-breakpoint ==
|
|
60
|
+
@if $fs-breakpoint == $size-variant {
|
|
31
61
|
@include make-font-size($fs-font-size, $skip-line-height);
|
|
32
|
-
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@else {
|
|
33
65
|
@if map-has-key($fs-breakpoints, $fs-breakpoint) {
|
|
34
|
-
$fs-breakpoint: map-get($fs-breakpoints, $fs-breakpoint);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
66
|
+
$fs-breakpoint-value: map-get($fs-breakpoints, $fs-breakpoint);
|
|
67
|
+
@media screen and (min-width: $fs-breakpoint-value) {
|
|
68
|
+
@include make-font-size($fs-font-size, $skip-line-height);
|
|
69
|
+
}
|
|
38
70
|
}
|
|
39
71
|
}
|
|
40
72
|
}
|
|
41
73
|
}
|
|
42
74
|
|
|
75
|
+
|
|
43
76
|
@mixin make-font-size($fs-font-size, $skip-line-height: false) {
|
|
44
|
-
@if (type-of($fs-font-size)
|
|
77
|
+
@if (type-of($fs-font-size)=="list") {
|
|
45
78
|
font-size: nth($fs-font-size, 1);
|
|
46
79
|
|
|
47
|
-
@if ($skip-line-height !=
|
|
80
|
+
@if ($skip-line-height !=true and length($fs-font-size) > 1) {
|
|
48
81
|
line-height: nth($fs-font-size, 2);
|
|
49
82
|
}
|
|
50
|
-
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@else {
|
|
51
86
|
font-size: $fs-font-size;
|
|
52
87
|
|
|
53
|
-
@if ($skip-line-height !=
|
|
54
|
-
line-height: nth($fs-font-size,
|
|
88
|
+
@if ($skip-line-height !=true) {
|
|
89
|
+
line-height: nth($fs-font-size, 1);
|
|
55
90
|
}
|
|
56
91
|
}
|
|
57
92
|
}
|
|
@@ -61,12 +96,15 @@
|
|
|
61
96
|
&:-moz-placeholder {
|
|
62
97
|
@content;
|
|
63
98
|
}
|
|
99
|
+
|
|
64
100
|
&::-moz-placeholder {
|
|
65
101
|
@content;
|
|
66
102
|
}
|
|
103
|
+
|
|
67
104
|
&:-ms-input-placeholder {
|
|
68
105
|
@content;
|
|
69
106
|
}
|
|
107
|
+
|
|
70
108
|
&::-webkit-input-placeholder {
|
|
71
109
|
@content;
|
|
72
110
|
}
|
|
@@ -78,7 +116,9 @@
|
|
|
78
116
|
@media (min-width: $name) {
|
|
79
117
|
@content;
|
|
80
118
|
}
|
|
81
|
-
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@else {
|
|
82
122
|
@media (min-width: map-get($breakpoints, $name)) {
|
|
83
123
|
@content;
|
|
84
124
|
}
|
|
@@ -91,8 +131,10 @@
|
|
|
91
131
|
@media (min-width: $min) and (max-width: $max) {
|
|
92
132
|
@content;
|
|
93
133
|
}
|
|
94
|
-
}
|
|
95
|
-
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@else {
|
|
137
|
+
@media (min-width: map-get($breakpoints, $min)) and (max-width: (map-get($breakpoints, $max) - 1)) {
|
|
96
138
|
@content;
|
|
97
139
|
}
|
|
98
140
|
}
|
|
@@ -121,7 +163,7 @@
|
|
|
121
163
|
}
|
|
122
164
|
|
|
123
165
|
// Flip in animation. Rember to put perspective: 1000px on parent
|
|
124
|
-
@mixin flip-in($time: 550ms, $pos-y: top, $pos-x: center) {
|
|
166
|
+
@mixin flip-in($time: 550ms, $pos-y: top, $pos-x: center) {
|
|
125
167
|
transform-origin: $pos-x $pos-y;
|
|
126
168
|
transform-style: preserve-3d;
|
|
127
169
|
backface-visibility: hidden;
|
|
@@ -129,7 +171,7 @@
|
|
|
129
171
|
}
|
|
130
172
|
|
|
131
173
|
// Flip in animation. Rember to put perspective: 1000px on parent
|
|
132
|
-
@mixin flip-out($time: 200ms, $pos-y: top, $pos-x: center) {
|
|
174
|
+
@mixin flip-out($time: 200ms, $pos-y: top, $pos-x: center) {
|
|
133
175
|
transform-origin: $pos-x $pos-y;
|
|
134
176
|
transform-style: preserve-3d;
|
|
135
177
|
backface-visibility: hidden;
|
|
@@ -138,6 +180,7 @@
|
|
|
138
180
|
|
|
139
181
|
// Flip in and out animation. Dependent on ReactCSSTransitionGroup. Rember to put perspective: 1000px on parent
|
|
140
182
|
@mixin flip-in-out($time-in: 550ms, $time-out: 200ms) {
|
|
183
|
+
|
|
141
184
|
&-enter,
|
|
142
185
|
&-leave-active {
|
|
143
186
|
transform-origin: center top;
|
|
@@ -183,14 +226,16 @@
|
|
|
183
226
|
|
|
184
227
|
// Screenreaders only
|
|
185
228
|
@mixin screenreaders-only($breakpoint: null) {
|
|
186
|
-
@if ($breakpoint !=
|
|
229
|
+
@if ($breakpoint !=null) {
|
|
187
230
|
@include min-width($breakpoint) {
|
|
188
231
|
position: absolute;
|
|
189
232
|
overflow: hidden;
|
|
190
233
|
width: 1px;
|
|
191
234
|
height: 1px;
|
|
192
235
|
}
|
|
193
|
-
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@else {
|
|
194
239
|
position: absolute;
|
|
195
240
|
overflow: hidden;
|
|
196
241
|
width: 1px;
|
|
@@ -215,12 +260,15 @@
|
|
|
215
260
|
|
|
216
261
|
// Text stroke...
|
|
217
262
|
@mixin text-stroke($width, $color) {
|
|
218
|
-
$shadow: (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
|
|
263
|
+
$shadow: (
|
|
264
|
+
);
|
|
265
|
+
|
|
266
|
+
@for $i from -$width through $width {
|
|
267
|
+
$shadow: append($shadow, #{$width}px #{$i}px $color, comma);
|
|
268
|
+
$shadow: append($shadow, #{-$width}px #{$i}px $color, comma);
|
|
269
|
+
$shadow: append($shadow, #{$i}px #{$width}px $color, comma);
|
|
270
|
+
$shadow: append($shadow, #{$i}px #{-$width}px $color, comma);
|
|
226
271
|
}
|
|
272
|
+
|
|
273
|
+
text-shadow: $shadow;
|
|
274
|
+
}
|
|
@@ -1,49 +1,23 @@
|
|
|
1
|
-
$
|
|
1
|
+
$fallback: 'Apercu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
2
2
|
|
|
3
3
|
$fonts: (
|
|
4
|
-
base: (
|
|
5
|
-
|
|
6
|
-
fallback: $sans-fallback,
|
|
7
|
-
light: 300,
|
|
4
|
+
base: (font: 'NorwegianTextPro',
|
|
5
|
+
fallback: $fallback,
|
|
8
6
|
normal: normal,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
font: 'ApercuMono',
|
|
14
|
-
fallback: $sans-fallback,
|
|
15
|
-
normal: normal,
|
|
16
|
-
bold: normal
|
|
17
|
-
)
|
|
7
|
+
bold: 700),
|
|
8
|
+
heading: (font: 'NorwegianDisplayPro',
|
|
9
|
+
fallback: $fallback,
|
|
10
|
+
bold: 700)
|
|
18
11
|
);
|
|
19
12
|
|
|
20
13
|
$font-size: (
|
|
21
|
-
xsmall: (
|
|
22
|
-
|
|
23
|
-
),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
),
|
|
30
|
-
|
|
31
|
-
base: (22px, 28px)
|
|
32
|
-
),
|
|
33
|
-
medium: (
|
|
34
|
-
base: (24px, 30px)
|
|
35
|
-
),
|
|
36
|
-
large: (
|
|
37
|
-
base: (28px, 34px),
|
|
38
|
-
md: (32px, 38px)
|
|
39
|
-
),
|
|
40
|
-
xlarge: (
|
|
41
|
-
base: (42px, 42px)
|
|
42
|
-
),
|
|
43
|
-
xxlarge: (
|
|
44
|
-
base: (50px, 56px)
|
|
45
|
-
),
|
|
46
|
-
xxxlarge: (
|
|
47
|
-
base: (72px, 80px)
|
|
48
|
-
)
|
|
49
|
-
);
|
|
14
|
+
xsmall: (base: (14px, 20px)), // compact
|
|
15
|
+
small: (base: (16px, 24px)), // default
|
|
16
|
+
xregular: (base: (18px, 24px)), // subheading
|
|
17
|
+
regular: (base: (24px, 32px), mobile: (20px, 28px)), // subtitle
|
|
18
|
+
medium: (base: (24px, 32px), mobile: (20px, 28px)), // size_d
|
|
19
|
+
large: (base: (32px, 40px), mobile: (24px, 32px)), // size_c
|
|
20
|
+
xlarge: (base: (40px, 48px), mobile: (32px, 40px)), // size_b
|
|
21
|
+
xxlarge: (base: (48px, 56px), mobile: (40px, 48px)), // size_a
|
|
22
|
+
xxxlarge: (base: (56px, 64px), mobile: (48px, 56px)) // display
|
|
23
|
+
);
|
|
@@ -1,40 +1,28 @@
|
|
|
1
1
|
$import-fonts: (
|
|
2
|
-
|
|
3
|
-
'
|
|
2
|
+
NorwegianDisplayPro-Regular: ('NorwegianDisplayPro',
|
|
3
|
+
'NorwegianDisplayPro-Regular',
|
|
4
4
|
normal,
|
|
5
5
|
normal),
|
|
6
|
-
|
|
7
|
-
'
|
|
8
|
-
|
|
9
|
-
italic),
|
|
10
|
-
ApercuProLight: ('Apercu',
|
|
11
|
-
'apercu_light_pro-web',
|
|
12
|
-
300,
|
|
6
|
+
NorwegianDisplayPro-Bold: ('NorwegianDisplayPro',
|
|
7
|
+
'NorwegianDisplayPro-Bold',
|
|
8
|
+
bold,
|
|
13
9
|
normal),
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
italic),
|
|
18
|
-
ApercuProMedium: ('Apercu',
|
|
19
|
-
'apercu_medium_pro-web',
|
|
20
|
-
600,
|
|
10
|
+
NorwegianTextPro-Regular: ('NorwegianTextPro',
|
|
11
|
+
'NorwegianTextPro-Regular',
|
|
12
|
+
normal,
|
|
21
13
|
normal),
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
14
|
+
NorwegianTextPro-Italic: ('NorwegianTextPro',
|
|
15
|
+
'NorwegianTextPro-RegularItalic',
|
|
16
|
+
normal,
|
|
25
17
|
italic),
|
|
26
|
-
|
|
27
|
-
'
|
|
18
|
+
NorwegianTextPro-Bold: ('NorwegianTextPro',
|
|
19
|
+
'NorwegianTextPro-Bold',
|
|
28
20
|
bold,
|
|
29
21
|
normal),
|
|
30
|
-
|
|
31
|
-
'
|
|
22
|
+
NorwegianTextPro-BoldItalic: ('NorwegianTextPro',
|
|
23
|
+
'NorwegianTextPro-BoldItalic',
|
|
32
24
|
bold,
|
|
33
|
-
italic)
|
|
34
|
-
ApercuProMono: ('ApercuMono',
|
|
35
|
-
'apercu_mono_pro-web',
|
|
36
|
-
normal,
|
|
37
|
-
normal),
|
|
25
|
+
italic)
|
|
38
26
|
);
|
|
39
27
|
|
|
40
28
|
@each $key,
|
|
@@ -4,7 +4,7 @@ body {
|
|
|
4
4
|
// Type
|
|
5
5
|
@include font(base, normal);
|
|
6
6
|
@include font-size(small, true);
|
|
7
|
-
color: $
|
|
7
|
+
color: $typography-text-default;
|
|
8
8
|
font-style: normal;
|
|
9
9
|
line-height: 1.4;
|
|
10
10
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -12,7 +12,7 @@ body {
|
|
|
12
12
|
text-rendering: optimizeLegibility;
|
|
13
13
|
|
|
14
14
|
overflow-x: hidden;
|
|
15
|
-
background-color: $
|
|
15
|
+
background-color: $background-surface-contrast;
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
&.block-scrolling {
|
|
@@ -24,4 +24,4 @@ body {
|
|
|
24
24
|
position: fixed;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
}
|
|
27
|
+
}
|