@fremtind/jokul 5.2.3 → 6.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/build-stats.html +37 -36
- package/build/cjs/components/autosuggest/BaseAutosuggest.cjs +1 -1
- package/build/cjs/components/autosuggest/BaseAutosuggest.cjs.map +1 -1
- package/build/cjs/components/date-input/DateInput.cjs +2 -0
- package/build/cjs/components/date-input/DateInput.cjs.map +1 -0
- package/build/cjs/components/date-input/DateInput.d.cts +7 -0
- package/build/cjs/components/date-input/calendar/Calendar.cjs +2 -0
- package/build/cjs/components/date-input/calendar/Calendar.cjs.map +1 -0
- package/build/cjs/components/date-input/calendar/Calendar.d.cts +6 -0
- package/build/cjs/components/date-input/calendar/CalendarDay.cjs +2 -0
- package/build/cjs/components/date-input/calendar/CalendarDay.cjs.map +1 -0
- package/build/cjs/components/date-input/calendar/CalendarDay.d.cts +16 -0
- package/build/cjs/components/date-input/calendar/CalendarWeek.cjs +2 -0
- package/build/cjs/components/date-input/calendar/CalendarWeek.cjs.map +1 -0
- package/build/cjs/components/date-input/calendar/CalendarWeek.d.cts +8 -0
- package/build/cjs/components/date-input/calendar/types.d.cts +6 -0
- package/build/cjs/components/date-input/calendar/utils.cjs +2 -0
- package/build/cjs/components/date-input/calendar/utils.cjs.map +1 -0
- package/build/cjs/components/date-input/calendar/utils.d.cts +19 -0
- package/build/cjs/components/date-input/index.cjs +2 -0
- package/build/cjs/components/date-input/index.d.cts +3 -0
- package/build/cjs/components/date-input/types.d.cts +35 -0
- package/build/cjs/components/date-input/utils.cjs +2 -0
- package/build/cjs/components/date-input/utils.cjs.map +1 -0
- package/build/cjs/components/date-input/utils.d.cts +34 -0
- package/build/cjs/components/file/File.cjs +1 -1
- package/build/cjs/components/file/File.cjs.map +1 -1
- package/build/cjs/components/file/types.d.cts +10 -1
- package/build/cjs/components/search/Search.cjs +1 -1
- package/build/cjs/components/search/Search.cjs.map +1 -1
- package/build/cjs/components/select/Option.cjs +2 -0
- package/build/cjs/components/select/Option.cjs.map +1 -0
- package/build/cjs/components/select/Option.d.cts +12 -0
- package/build/cjs/components/select/Select.cjs +1 -1
- package/build/cjs/components/select/Select.cjs.map +1 -1
- package/build/cjs/components/select/Select.d.cts +18 -3
- package/build/cjs/components/select/index.cjs +1 -1
- package/build/cjs/components/select/index.d.cts +1 -5
- package/build/cjs/components/select/utils.cjs +2 -0
- package/build/cjs/components/select/utils.cjs.map +1 -0
- package/build/cjs/components/select/utils.d.cts +5 -0
- package/build/cjs/components/table/TablePagination.cjs +1 -1
- package/build/cjs/components/table/TablePagination.cjs.map +1 -1
- package/build/cjs/components/tabs/Tabs.cjs.map +1 -1
- package/build/cjs/hooks/index.cjs +1 -1
- package/build/cjs/hooks/index.d.cts +0 -1
- package/build/cjs/hooks/useListNavigation/useListNavigation.cjs +1 -1
- package/build/cjs/hooks/useListNavigation/useListNavigation.cjs.map +1 -1
- package/build/cjs/hooks/useListNavigation/useListNavigation.d.cts +4 -2
- package/build/cjs/utilities/formatters/index.cjs +1 -1
- package/build/cjs/utilities/formatters/index.d.cts +1 -1
- package/build/cjs/utilities/formatters/util/registerWithMask.cjs +1 -1
- package/build/cjs/utilities/formatters/util/registerWithMask.cjs.map +1 -1
- package/build/cjs/utilities/formatters/util/registerWithMask.d.cts +0 -8
- package/build/cjs/utilities/index.cjs +1 -1
- package/build/cjs/utilities/validators/index.cjs +1 -1
- package/build/cjs/utilities/validators/index.d.cts +0 -1
- package/build/cjs/utilities/valuePair.cjs.map +1 -1
- package/build/cjs/utilities/valuePair.d.cts +2 -0
- package/build/es/components/autosuggest/BaseAutosuggest.js +1 -1
- package/build/es/components/autosuggest/BaseAutosuggest.js.map +1 -1
- package/build/es/components/date-input/DateInput.d.ts +7 -0
- package/build/es/components/date-input/DateInput.js +2 -0
- package/build/es/components/date-input/DateInput.js.map +1 -0
- package/build/es/components/date-input/calendar/Calendar.d.ts +6 -0
- package/build/es/components/date-input/calendar/Calendar.js +2 -0
- package/build/es/components/date-input/calendar/Calendar.js.map +1 -0
- package/build/es/components/date-input/calendar/CalendarDay.d.ts +16 -0
- package/build/es/components/date-input/calendar/CalendarDay.js +2 -0
- package/build/es/components/date-input/calendar/CalendarDay.js.map +1 -0
- package/build/es/components/date-input/calendar/CalendarWeek.d.ts +8 -0
- package/build/es/components/date-input/calendar/CalendarWeek.js +2 -0
- package/build/es/components/date-input/calendar/CalendarWeek.js.map +1 -0
- package/build/es/components/date-input/calendar/types.d.ts +6 -0
- package/build/es/components/date-input/calendar/utils.d.ts +19 -0
- package/build/es/components/date-input/calendar/utils.js +2 -0
- package/build/es/components/date-input/calendar/utils.js.map +1 -0
- package/build/es/components/date-input/index.d.ts +3 -0
- package/build/es/components/date-input/index.js +2 -0
- package/build/es/components/date-input/types.d.ts +35 -0
- package/build/es/components/date-input/utils.d.ts +34 -0
- package/build/es/components/date-input/utils.js +2 -0
- package/build/es/components/date-input/utils.js.map +1 -0
- package/build/es/components/file/File.js +1 -1
- package/build/es/components/file/File.js.map +1 -1
- package/build/es/components/file/types.d.ts +10 -1
- package/build/es/components/search/Search.js +1 -1
- package/build/es/components/search/Search.js.map +1 -1
- package/build/es/components/select/Option.d.ts +12 -0
- package/build/es/components/select/Option.js +2 -0
- package/build/es/components/select/Option.js.map +1 -0
- package/build/es/components/select/Select.d.ts +18 -3
- package/build/es/components/select/Select.js +1 -1
- package/build/es/components/select/Select.js.map +1 -1
- package/build/es/components/select/index.d.ts +1 -5
- package/build/es/components/select/index.js +1 -1
- package/build/es/components/select/utils.d.ts +5 -0
- package/build/es/components/select/utils.js +2 -0
- package/build/es/components/select/utils.js.map +1 -0
- package/build/es/components/table/TablePagination.js +1 -1
- package/build/es/components/table/TablePagination.js.map +1 -1
- package/build/es/components/tabs/Tabs.js.map +1 -1
- package/build/es/hooks/index.d.ts +0 -1
- package/build/es/hooks/index.js +1 -1
- package/build/es/hooks/useListNavigation/useListNavigation.d.ts +4 -2
- package/build/es/hooks/useListNavigation/useListNavigation.js +1 -1
- package/build/es/hooks/useListNavigation/useListNavigation.js.map +1 -1
- package/build/es/utilities/formatters/index.d.ts +1 -1
- package/build/es/utilities/formatters/index.js +1 -1
- package/build/es/utilities/formatters/util/registerWithMask.d.ts +0 -8
- package/build/es/utilities/formatters/util/registerWithMask.js +1 -1
- package/build/es/utilities/formatters/util/registerWithMask.js.map +1 -1
- package/build/es/utilities/index.js +1 -1
- package/build/es/utilities/validators/index.d.ts +0 -1
- package/build/es/utilities/validators/index.js +1 -1
- package/build/es/utilities/valuePair.d.ts +2 -0
- package/build/es/utilities/valuePair.js.map +1 -1
- package/codemods/CODEMODS.md +55 -0
- package/codemods/__tests__/import-paths.test.mjs +155 -0
- package/codemods/import-paths.mjs +10 -2
- package/codemods/transforms/date-input.mjs +225 -0
- package/codemods/transforms/import-specifiers.mjs +26 -0
- package/codemods/transforms/register-with-mask.mjs +267 -0
- package/package.json +14 -13
- package/src/fonts/Jokul-Icons.woff2 +0 -0
- package/src/fonts/brands/fremtind/Jokul-Icons.woff2 +0 -0
- package/styles/base.css +8 -1
- package/styles/base.min.css +1 -1
- package/styles/components/autosuggest/autosuggest.min.css +1 -1
- package/styles/components/beta/description-list/description-list.min.css +1 -1
- package/styles/components/beta/nav-link/navlink.min.css +1 -1
- package/styles/components/breadcrumb/breadcrumb.min.css +1 -1
- package/styles/components/button/button.min.css +1 -1
- package/styles/components/card/card.min.css +1 -1
- package/styles/components/checkbox/checkbox.min.css +1 -1
- package/styles/components/checkbox-panel/checkbox-panel.min.css +1 -1
- package/styles/components/checkbox-panel/development/styles.min.css +1 -1
- package/styles/components/chip/chip.min.css +1 -1
- package/styles/components/combobox/combobox.min.css +1 -1
- package/styles/components/cookie-consent/cookie-consent.min.css +1 -1
- package/styles/components/countdown/countdown.css +2 -2
- package/styles/components/countdown/countdown.min.css +1 -1
- package/styles/components/date-input/_index.scss +8 -0
- package/styles/components/date-input/calendar/_index.scss +8 -0
- package/styles/components/date-input/calendar/calendar.css +60 -0
- package/styles/components/date-input/calendar/calendar.min.css +1 -0
- package/styles/components/date-input/calendar/calendar.scss +79 -0
- package/styles/components/date-input/date-input.css +187 -0
- package/styles/components/date-input/date-input.min.css +1 -0
- package/styles/components/date-input/date-input.scss +67 -0
- package/styles/components/description-list/description-list.min.css +1 -1
- package/styles/components/expander/accordion.min.css +1 -1
- package/styles/components/expander/expandable.min.css +1 -1
- package/styles/components/feedback/feedback.css +2 -2
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/file/file.css +50 -61
- package/styles/components/file/file.min.css +1 -1
- package/styles/components/file/file.scss +66 -79
- package/styles/components/file-input/file-input.css +59 -70
- package/styles/components/file-input/file-input.min.css +1 -1
- package/styles/components/flex/flex.min.css +1 -1
- package/styles/components/help/help.min.css +1 -1
- package/styles/components/icon/icon.css +1 -1
- package/styles/components/icon/icon.min.css +1 -1
- package/styles/components/icon/icon.scss +1 -0
- package/styles/components/icon-button/icon-button.min.css +1 -1
- package/styles/components/image/development/style.min.css +1 -1
- package/styles/components/image/image.min.css +1 -1
- package/styles/components/input-group/input-group.css +2 -2
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/input-panel/input-panel.min.css +1 -1
- package/styles/components/link/link.min.css +1 -1
- package/styles/components/link-list/link-list.min.css +1 -1
- package/styles/components/list/list.min.css +1 -1
- package/styles/components/loader/loader.css +6 -6
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.css +3 -3
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/logo/development/styles.min.css +1 -1
- package/styles/components/logo/logo.min.css +1 -1
- package/styles/components/menu/menu.min.css +1 -1
- package/styles/components/message/message.css +2 -2
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/modal/modal.min.css +1 -1
- package/styles/components/nav-link/nav-link.min.css +1 -1
- package/styles/components/number-input/number-input.min.css +1 -1
- package/styles/components/pagination/development/styles.min.css +1 -1
- package/styles/components/pagination/pagination.min.css +1 -1
- package/styles/components/popover/popover.min.css +1 -1
- package/styles/components/progress-bar/progress-bar.css +1 -1
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/radio-button/radio-button.min.css +1 -1
- package/styles/components/radio-panel/development/styles.min.css +1 -1
- package/styles/components/radio-panel/radio-panel.min.css +1 -1
- package/styles/components/search/search-with-submit-button.min.css +1 -1
- package/styles/components/search/search.min.css +1 -1
- package/styles/components/segmented-control/segmented-control.css +3 -3
- package/styles/components/segmented-control/segmented-control.min.css +1 -1
- package/styles/components/select/_index.scss +5 -0
- package/styles/components/select/option.css +73 -0
- package/styles/components/select/option.min.css +1 -0
- package/styles/components/select/option.scss +74 -0
- package/styles/components/select/select.css +84 -264
- package/styles/components/select/select.min.css +1 -1
- package/styles/components/select/select.scss +79 -328
- package/styles/components/summary-table/summary-table.min.css +1 -1
- package/styles/components/system-message/system-message.css +2 -2
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/table/table.min.css +3 -1
- package/styles/components/table-of-contents/table-of-contents.min.css +1 -1
- package/styles/components/tabs/tabs.min.css +1 -1
- package/styles/components/tag/tag.min.css +1 -1
- package/styles/components/text-area/text-area.min.css +1 -1
- package/styles/components/text-input/text-input.min.css +1 -1
- package/styles/components/toast/toast.css +4 -4
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/components/toggle-switch/toggle-switch.min.css +1 -1
- package/styles/components/tooltip/tooltip.min.css +1 -1
- package/styles/components/typography/title.min.css +1 -1
- package/styles/components.css +4391 -4612
- package/styles/components.min.css +3 -1
- package/styles/components.scss +2 -3
- package/styles/jkl/_shadows.scss +0 -12
- package/styles/theme/_fonts.scss +1 -1
- package/styles/utility/_index.scss +2 -1
- package/styles/utility/_lists.scss +7 -0
- package/build/_commonjsHelpers-C37NGDzP.cjs +0 -2
- package/build/_commonjsHelpers-C37NGDzP.cjs.map +0 -1
- package/build/_commonjsHelpers-CXUWDbkB.js +0 -2
- package/build/_commonjsHelpers-CXUWDbkB.js.map +0 -1
- package/build/cjs/components/beta/select/Select.cjs +0 -2
- package/build/cjs/components/beta/select/Select.cjs.map +0 -1
- package/build/cjs/components/beta/select/Select.d.cts +0 -3
- package/build/cjs/components/beta/select/index.cjs +0 -2
- package/build/cjs/components/beta/select/index.d.cts +0 -2
- package/build/cjs/components/beta/select/types.d.cts +0 -10
- package/build/cjs/components/datepicker/DatePicker.cjs +0 -2
- package/build/cjs/components/datepicker/DatePicker.cjs.map +0 -1
- package/build/cjs/components/datepicker/DatePicker.d.cts +0 -3
- package/build/cjs/components/datepicker/index.cjs +0 -2
- package/build/cjs/components/datepicker/index.cjs.map +0 -1
- package/build/cjs/components/datepicker/index.d.cts +0 -4
- package/build/cjs/components/datepicker/internal/Calendar.cjs +0 -2
- package/build/cjs/components/datepicker/internal/Calendar.cjs.map +0 -1
- package/build/cjs/components/datepicker/internal/Calendar.d.cts +0 -15
- package/build/cjs/components/datepicker/internal/calendarReducer.cjs +0 -2
- package/build/cjs/components/datepicker/internal/calendarReducer.cjs.map +0 -1
- package/build/cjs/components/datepicker/internal/calendarReducer.d.cts +0 -18
- package/build/cjs/components/datepicker/internal/useCalendar.cjs +0 -2
- package/build/cjs/components/datepicker/internal/useCalendar.cjs.map +0 -1
- package/build/cjs/components/datepicker/internal/useCalendar.d.cts +0 -59
- package/build/cjs/components/datepicker/internal/utils.cjs +0 -2
- package/build/cjs/components/datepicker/internal/utils.cjs.map +0 -1
- package/build/cjs/components/datepicker/internal/utils.d.cts +0 -167
- package/build/cjs/components/datepicker/types.d.cts +0 -280
- package/build/cjs/components/datepicker/utils.cjs +0 -2
- package/build/cjs/components/datepicker/utils.cjs.map +0 -1
- package/build/cjs/components/datepicker/utils.d.cts +0 -22
- package/build/cjs/components/datepicker/validation.cjs +0 -2
- package/build/cjs/components/datepicker/validation.cjs.map +0 -1
- package/build/cjs/components/datepicker/validation.d.cts +0 -4
- package/build/cjs/components/select/NativeSelect.cjs +0 -2
- package/build/cjs/components/select/NativeSelect.cjs.map +0 -1
- package/build/cjs/components/select/NativeSelect.d.cts +0 -3
- package/build/cjs/components/select/select-utils.cjs +0 -2
- package/build/cjs/components/select/select-utils.cjs.map +0 -1
- package/build/cjs/components/select/select-utils.d.cts +0 -2
- package/build/cjs/components/select/types.cjs +0 -2
- package/build/cjs/components/select/types.cjs.map +0 -1
- package/build/cjs/components/select/types.d.cts +0 -66
- package/build/cjs/hooks/useAnimatedDetails/index.cjs +0 -2
- package/build/cjs/hooks/useAnimatedDetails/index.cjs.map +0 -1
- package/build/cjs/hooks/useAnimatedDetails/index.d.cts +0 -1
- package/build/cjs/hooks/useAnimatedDetails/useAnimatedDetails.cjs +0 -2
- package/build/cjs/hooks/useAnimatedDetails/useAnimatedDetails.cjs.map +0 -1
- package/build/cjs/hooks/useAnimatedDetails/useAnimatedDetails.d.cts +0 -21
- package/build/cjs/utilities/validators/isValidDogId/isValidDogId.cjs +0 -2
- package/build/cjs/utilities/validators/isValidDogId/isValidDogId.cjs.map +0 -1
- package/build/cjs/utilities/validators/isValidDogId/isValidDogId.d.cts +0 -7
- package/build/es/components/beta/select/Select.d.ts +0 -3
- package/build/es/components/beta/select/Select.js +0 -2
- package/build/es/components/beta/select/Select.js.map +0 -1
- package/build/es/components/beta/select/index.d.ts +0 -2
- package/build/es/components/beta/select/index.js +0 -2
- package/build/es/components/beta/select/types.d.ts +0 -10
- package/build/es/components/datepicker/DatePicker.d.ts +0 -3
- package/build/es/components/datepicker/DatePicker.js +0 -2
- package/build/es/components/datepicker/DatePicker.js.map +0 -1
- package/build/es/components/datepicker/index.d.ts +0 -4
- package/build/es/components/datepicker/index.js +0 -2
- package/build/es/components/datepicker/index.js.map +0 -1
- package/build/es/components/datepicker/internal/Calendar.d.ts +0 -15
- package/build/es/components/datepicker/internal/Calendar.js +0 -2
- package/build/es/components/datepicker/internal/Calendar.js.map +0 -1
- package/build/es/components/datepicker/internal/calendarReducer.d.ts +0 -18
- package/build/es/components/datepicker/internal/calendarReducer.js +0 -2
- package/build/es/components/datepicker/internal/calendarReducer.js.map +0 -1
- package/build/es/components/datepicker/internal/useCalendar.d.ts +0 -59
- package/build/es/components/datepicker/internal/useCalendar.js +0 -2
- package/build/es/components/datepicker/internal/useCalendar.js.map +0 -1
- package/build/es/components/datepicker/internal/utils.d.ts +0 -167
- package/build/es/components/datepicker/internal/utils.js +0 -2
- package/build/es/components/datepicker/internal/utils.js.map +0 -1
- package/build/es/components/datepicker/types.d.ts +0 -280
- package/build/es/components/datepicker/utils.d.ts +0 -22
- package/build/es/components/datepicker/utils.js +0 -2
- package/build/es/components/datepicker/utils.js.map +0 -1
- package/build/es/components/datepicker/validation.d.ts +0 -4
- package/build/es/components/datepicker/validation.js +0 -2
- package/build/es/components/datepicker/validation.js.map +0 -1
- package/build/es/components/select/NativeSelect.d.ts +0 -3
- package/build/es/components/select/NativeSelect.js +0 -2
- package/build/es/components/select/NativeSelect.js.map +0 -1
- package/build/es/components/select/select-utils.d.ts +0 -2
- package/build/es/components/select/select-utils.js +0 -2
- package/build/es/components/select/select-utils.js.map +0 -1
- package/build/es/components/select/types.d.ts +0 -66
- package/build/es/components/select/types.js +0 -2
- package/build/es/components/select/types.js.map +0 -1
- package/build/es/hooks/useAnimatedDetails/index.d.ts +0 -1
- package/build/es/hooks/useAnimatedDetails/index.js +0 -2
- package/build/es/hooks/useAnimatedDetails/index.js.map +0 -1
- package/build/es/hooks/useAnimatedDetails/useAnimatedDetails.d.ts +0 -21
- package/build/es/hooks/useAnimatedDetails/useAnimatedDetails.js +0 -2
- package/build/es/hooks/useAnimatedDetails/useAnimatedDetails.js.map +0 -1
- package/build/es/utilities/validators/isValidDogId/isValidDogId.d.ts +0 -7
- package/build/es/utilities/validators/isValidDogId/isValidDogId.js +0 -2
- package/build/es/utilities/validators/isValidDogId/isValidDogId.js.map +0 -1
- package/build/utils-C5AH4j8B.js +0 -2
- package/build/utils-C5AH4j8B.js.map +0 -1
- package/build/utils-CD_aHC6R.cjs +0 -2
- package/build/utils-CD_aHC6R.cjs.map +0 -1
- package/src/fonts/Fremtind-Material-Symbols.woff2 +0 -0
- package/src/fonts/brands/fremtind/Fremtind-Material-Symbols.woff2 +0 -0
- package/styles/components/beta/select/_index.scss +0 -3
- package/styles/components/beta/select/select.css +0 -101
- package/styles/components/beta/select/select.min.css +0 -1
- package/styles/components/beta/select/select.scss +0 -99
- package/styles/components/datepicker/_calendar-date-button.scss +0 -72
- package/styles/components/datepicker/_calendar-navigation-dropdown.scss +0 -55
- package/styles/components/datepicker/_calendar-navigation.scss +0 -14
- package/styles/components/datepicker/_calendar-table.scss +0 -29
- package/styles/components/datepicker/_calendar.scss +0 -28
- package/styles/components/datepicker/_index.scss +0 -6
- package/styles/components/datepicker/datepicker.css +0 -246
- package/styles/components/datepicker/datepicker.min.css +0 -1
- package/styles/components/datepicker/datepicker.scss +0 -49
- /package/build/cjs/components/{beta/select → date-input/calendar}/types.cjs +0 -0
- /package/build/cjs/components/{beta/select → date-input/calendar}/types.cjs.map +0 -0
- /package/build/cjs/components/{beta/select → date-input}/index.cjs.map +0 -0
- /package/build/cjs/components/{datepicker → date-input}/types.cjs +0 -0
- /package/build/cjs/components/{datepicker → date-input}/types.cjs.map +0 -0
- /package/build/es/components/{beta/select → date-input/calendar}/types.js +0 -0
- /package/build/es/components/{beta/select → date-input/calendar}/types.js.map +0 -0
- /package/build/es/components/{beta/select → date-input}/index.js.map +0 -0
- /package/build/es/components/{datepicker → date-input}/types.js +0 -0
- /package/build/es/components/{datepicker → date-input}/types.js.map +0 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
@layer jokul.components {
|
|
5
|
+
.jkl-date-input {
|
|
6
|
+
anchor-scope: all;
|
|
7
|
+
}
|
|
8
|
+
.jkl-date-input__wrapper {
|
|
9
|
+
--jkl-text-input-padding: var(--jkl-text-input-vertical-padding) var(--jkl-text-input-horizontal-padding);
|
|
10
|
+
--jkl-text-input-vertical-padding: var(--jkl-unit-15);
|
|
11
|
+
--jkl-text-input-horizontal-padding: var(--jkl-unit-15);
|
|
12
|
+
--jkl-text-input-action-button-size: var(--jkl-unit-60);
|
|
13
|
+
--jkl-text-input-action-button-icon-size: var(--jkl-unit-30);
|
|
14
|
+
--jkl-text-input-action-button-padding: var(--jkl-unit-10) 0;
|
|
15
|
+
--jkl-text-input-action-button-focus-position: var(--jkl-unit-05);
|
|
16
|
+
--text-color: var(--jkl-color-text-default);
|
|
17
|
+
--background-color: transparent;
|
|
18
|
+
--border-color: var(--jkl-color-border-default);
|
|
19
|
+
--placeholder-color: var(--jkl-color-text-subdued);
|
|
20
|
+
border-radius: var(--jkl-border-radius-s);
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
max-width: 100%;
|
|
23
|
+
position: relative;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
font: var(--jkl-text-style-text-medium);
|
|
27
|
+
transition-timing-function: var(--jkl-motion-easing-standard);
|
|
28
|
+
transition-duration: var(--jkl-motion-timing-productive);
|
|
29
|
+
transition-property: color, box-shadow, background-color;
|
|
30
|
+
background-color: var(--background-color);
|
|
31
|
+
color: var(--text-color);
|
|
32
|
+
box-shadow: inset 0 0 0 0.0625rem var(--border-color), 0 0 0 0.0625rem transparent;
|
|
33
|
+
}
|
|
34
|
+
.jkl-date-input__wrapper:focus-within, .jkl-date-input__wrapper:has([data-focused=true]) {
|
|
35
|
+
--background-color: var(--jkl-color-background-container);
|
|
36
|
+
}
|
|
37
|
+
.jkl-date-input__wrapper[data-invalid=true]:not(:focus-within):not(:has([data-focused=true])) {
|
|
38
|
+
--text-color: var(--jkl-color-error-text-default);
|
|
39
|
+
--border-color: var(--jkl-color-error-border-default);
|
|
40
|
+
--placeholder-color: var(--jkl-color-error-text-subdued);
|
|
41
|
+
}
|
|
42
|
+
.jkl-date-input__wrapper:hover, .jkl-date-input__wrapper:focus-within, .jkl-date-input__wrapper:has([data-focused=true]) {
|
|
43
|
+
--border-color: var(--jkl-color-border-strong);
|
|
44
|
+
box-shadow: inset 0 0 0 0.0625rem var(--border-color), 0 0 0 0.0625rem var(--border-color);
|
|
45
|
+
}
|
|
46
|
+
@media screen and (forced-colors: active) {
|
|
47
|
+
.jkl-date-input__wrapper:hover, .jkl-date-input__wrapper:focus-within, .jkl-date-input__wrapper:has([data-focused=true]) {
|
|
48
|
+
border: 0.125rem solid ButtonText;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-date-input__wrapper:has(.jkl-text-input__input:focus-visible), html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-date-input__wrapper:has(.jkl-text-area__text-area:focus-visible) {
|
|
52
|
+
outline: 3px solid var(--jkl-color-border-strong);
|
|
53
|
+
outline-offset: 3px;
|
|
54
|
+
}
|
|
55
|
+
.jkl-date-input__wrapper > .jkl-icon-button:focus-visible {
|
|
56
|
+
outline: 3px solid var(--jkl-color-border-strong);
|
|
57
|
+
outline-offset: -8px;
|
|
58
|
+
}
|
|
59
|
+
@media screen and (forced-colors: active) {
|
|
60
|
+
.jkl-date-input__wrapper > .jkl-icon-button:focus-visible {
|
|
61
|
+
--border-color: ButtonText;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.jkl-date-input__wrapper > .jkl-text-input-action-button {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
display: flex;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
padding: var(--jkl-text-input-action-button-padding);
|
|
71
|
+
height: var(--jkl-text-input-action-button-size);
|
|
72
|
+
width: var(--jkl-text-input-action-button-size);
|
|
73
|
+
margin-inline-start: calc(var(--jkl-text-input-horizontal-padding) * -1);
|
|
74
|
+
}
|
|
75
|
+
.jkl-date-input__wrapper > .jkl-text-input-action-button .jkl-icon-button__icon {
|
|
76
|
+
height: var(--jkl-text-input-action-button-icon-size);
|
|
77
|
+
width: var(--jkl-text-input-action-button-icon-size);
|
|
78
|
+
}
|
|
79
|
+
.jkl-date-input__wrapper > .jkl-text-input-action-button:hover {
|
|
80
|
+
color: var(--jkl-color-text-subdued);
|
|
81
|
+
}
|
|
82
|
+
@media screen and (forced-colors: active) {
|
|
83
|
+
.jkl-date-input__wrapper > .jkl-text-input-action-button:hover {
|
|
84
|
+
border: 0.125rem inset ButtonText;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
@media screen and (forced-colors: active) {
|
|
88
|
+
.jkl-date-input__wrapper {
|
|
89
|
+
border: 0.125rem inset ButtonText;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.jkl-date-input__wrapper {
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: 1fr max-content;
|
|
95
|
+
max-width: 18ch;
|
|
96
|
+
anchor-name: --calendar-trigger;
|
|
97
|
+
}
|
|
98
|
+
.jkl-date-input input[type=date] {
|
|
99
|
+
background: none;
|
|
100
|
+
-webkit-appearance: none;
|
|
101
|
+
color: inherit;
|
|
102
|
+
font: var(--jkl-text-style-text-medium);
|
|
103
|
+
}
|
|
104
|
+
.jkl-date-input input[type=date] {
|
|
105
|
+
outline: 0;
|
|
106
|
+
border-style: none;
|
|
107
|
+
outline-style: none;
|
|
108
|
+
}
|
|
109
|
+
.jkl-date-input input[type=date]:active, .jkl-date-input input[type=date]:hover, .jkl-date-input input[type=date]:focus {
|
|
110
|
+
outline: 0;
|
|
111
|
+
outline-style: none;
|
|
112
|
+
}
|
|
113
|
+
@media screen and (forced-colors: active) {
|
|
114
|
+
.jkl-date-input input[type=date] {
|
|
115
|
+
outline: revert;
|
|
116
|
+
border-style: revert;
|
|
117
|
+
outline-style: revert;
|
|
118
|
+
}
|
|
119
|
+
.jkl-date-input input[type=date]:active, .jkl-date-input input[type=date]:hover, .jkl-date-input input[type=date]:focus {
|
|
120
|
+
outline: revert;
|
|
121
|
+
outline-style: revert;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.jkl-date-input input[type=date] input[type=number]::-webkit-outer-spin-button,
|
|
125
|
+
.jkl-date-input input[type=date] input[type=number]::-webkit-inner-spin-button {
|
|
126
|
+
-webkit-appearance: none;
|
|
127
|
+
}
|
|
128
|
+
.jkl-date-input input[type=date] input[type=number] {
|
|
129
|
+
-moz-appearance: textfield;
|
|
130
|
+
}
|
|
131
|
+
@media screen and (forced-colors: active) {
|
|
132
|
+
.jkl-date-input input[type=date] {
|
|
133
|
+
outline: none;
|
|
134
|
+
border: none;
|
|
135
|
+
}
|
|
136
|
+
.jkl-date-input input[type=date]:focus-visible {
|
|
137
|
+
outline: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.jkl-date-input input[type=date]::placeholder {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
color: var(--placeholder-color);
|
|
143
|
+
}
|
|
144
|
+
.jkl-date-input input[type=date] {
|
|
145
|
+
height: 100%;
|
|
146
|
+
width: 100%;
|
|
147
|
+
padding: var(--jkl-unit-15);
|
|
148
|
+
padding-inline-end: var(--jkl-unit-15);
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
}
|
|
151
|
+
.jkl-date-input input[type=date]::-webkit-calendar-picker-indicator, .jkl-date-input input[type=date]::-webkit-inner-spin-button {
|
|
152
|
+
display: none;
|
|
153
|
+
-webkit-appearance: none;
|
|
154
|
+
}
|
|
155
|
+
.jkl-date-input input[type=date][data-empty=true] {
|
|
156
|
+
color: var(--jkl-color-text-subdued);
|
|
157
|
+
}
|
|
158
|
+
.jkl-date-input .jkl-calendar {
|
|
159
|
+
border: none;
|
|
160
|
+
padding: var(--jkl-unit-40);
|
|
161
|
+
display: none;
|
|
162
|
+
position: fixed;
|
|
163
|
+
width: 80svw;
|
|
164
|
+
}
|
|
165
|
+
.jkl-date-input .jkl-calendar:popover-open {
|
|
166
|
+
display: block;
|
|
167
|
+
}
|
|
168
|
+
@media screen and (min-width: 600px) {
|
|
169
|
+
.jkl-date-input .jkl-calendar__labels {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
.jkl-date-input .jkl-calendar {
|
|
173
|
+
width: max-content;
|
|
174
|
+
margin-block: var(--jkl-unit-10);
|
|
175
|
+
margin-left: 0;
|
|
176
|
+
position-anchor: --calendar-trigger;
|
|
177
|
+
top: anchor(bottom);
|
|
178
|
+
left: anchor(left);
|
|
179
|
+
position-try-fallbacks: --fallback-calendar-position;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@position-try --fallback-calendar-position {
|
|
184
|
+
bottom: anchor(top);
|
|
185
|
+
top: unset;
|
|
186
|
+
margin-top: 10px;
|
|
187
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer jokul.components{.jkl-date-input{anchor-scope:all}.jkl-date-input__wrapper{--jkl-text-input-padding:var(--jkl-text-input-vertical-padding) var(--jkl-text-input-horizontal-padding);--jkl-text-input-vertical-padding:var(--jkl-unit-15);--jkl-text-input-horizontal-padding:var(--jkl-unit-15);--jkl-text-input-action-button-size:var(--jkl-unit-60);--jkl-text-input-action-button-icon-size:var(--jkl-unit-30);--jkl-text-input-action-button-padding:var(--jkl-unit-10) 0;--jkl-text-input-action-button-focus-position:var(--jkl-unit-05);--text-color:var(--jkl-color-text-default);--background-color:#0000;--border-color:var(--jkl-color-border-default);--placeholder-color:var(--jkl-color-text-subdued);border-radius:var(--jkl-border-radius-s);box-sizing:border-box;max-width:100%;position:relative;display:flex;align-items:center;font:var(--jkl-text-style-text-medium);transition-timing-function:var(--jkl-motion-easing-standard);transition-duration:var(--jkl-motion-timing-productive);transition-property:color,box-shadow,background-color;background-color:var(--background-color);color:var(--text-color);box-shadow:inset 0 0 0 .0625rem var(--border-color),0 0 0 .0625rem #0000}.jkl-date-input__wrapper:focus-within,.jkl-date-input__wrapper:has([data-focused=true]){--background-color:var(--jkl-color-background-container)}.jkl-date-input__wrapper[data-invalid=true]:not(:focus-within):not(:has([data-focused=true])){--text-color:var(--jkl-color-error-text-default);--border-color:var(--jkl-color-error-border-default);--placeholder-color:var(--jkl-color-error-text-subdued)}.jkl-date-input__wrapper:focus-within,.jkl-date-input__wrapper:has([data-focused=true]),.jkl-date-input__wrapper:hover{--border-color:var(--jkl-color-border-strong);box-shadow:inset 0 0 0 .0625rem var(--border-color),0 0 0 .0625rem var(--border-color)}@media screen and (forced-colors:active){.jkl-date-input__wrapper:focus-within,.jkl-date-input__wrapper:has([data-focused=true]),.jkl-date-input__wrapper:hover{border:.125rem solid ButtonText}}html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-date-input__wrapper:has(.jkl-text-area__text-area:focus-visible),html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-date-input__wrapper:has(.jkl-text-input__input:focus-visible){outline:3px solid var(--jkl-color-border-strong);outline-offset:3px}.jkl-date-input__wrapper>.jkl-icon-button:focus-visible{outline:3px solid var(--jkl-color-border-strong);outline-offset:-8px}@media screen and (forced-colors:active){.jkl-date-input__wrapper>.jkl-icon-button:focus-visible{--border-color:ButtonText}}.jkl-date-input__wrapper>.jkl-text-input-action-button{flex-shrink:0;display:flex;box-sizing:border-box;align-items:center;justify-content:center;padding:var(--jkl-text-input-action-button-padding);height:var(--jkl-text-input-action-button-size);width:var(--jkl-text-input-action-button-size);-webkit-margin-start:calc(var(--jkl-text-input-horizontal-padding)*-1);margin-inline-start:calc(var(--jkl-text-input-horizontal-padding)*-1)}.jkl-date-input__wrapper>.jkl-text-input-action-button .jkl-icon-button__icon{height:var(--jkl-text-input-action-button-icon-size);width:var(--jkl-text-input-action-button-icon-size)}.jkl-date-input__wrapper>.jkl-text-input-action-button:hover{color:var(--jkl-color-text-subdued)}@media screen and (forced-colors:active){.jkl-date-input__wrapper,.jkl-date-input__wrapper>.jkl-text-input-action-button:hover{border:.125rem inset ButtonText}}.jkl-date-input__wrapper{display:grid;grid-template-columns:1fr -webkit-max-content;grid-template-columns:1fr max-content;max-width:18ch;anchor-name:--calendar-trigger}.jkl-date-input input[type=date]{background:none;-webkit-appearance:none;color:inherit;font:var(--jkl-text-style-text-medium);outline:0;border-style:none;outline-style:none}.jkl-date-input input[type=date]:active,.jkl-date-input input[type=date]:focus,.jkl-date-input input[type=date]:hover{outline:0;outline-style:none}@media screen and (forced-colors:active){.jkl-date-input input[type=date]{border-style:revert}.jkl-date-input input[type=date],.jkl-date-input input[type=date]:active,.jkl-date-input input[type=date]:focus,.jkl-date-input input[type=date]:hover{outline:revert;outline-style:revert}}.jkl-date-input input[type=date] input[type=number]::-webkit-inner-spin-button,.jkl-date-input input[type=date] input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.jkl-date-input input[type=date] input[type=number]{-moz-appearance:textfield}@media screen and (forced-colors:active){.jkl-date-input input[type=date]{outline:none;border:none}.jkl-date-input input[type=date]:focus-visible{outline:none}}.jkl-date-input input[type=date]::placeholder{opacity:1;color:var(--placeholder-color)}.jkl-date-input input[type=date]{height:100%;width:100%;padding:var(--jkl-unit-15);-webkit-padding-end:var(--jkl-unit-15);padding-inline-end:var(--jkl-unit-15);box-sizing:border-box}.jkl-date-input input[type=date]::-webkit-calendar-picker-indicator,.jkl-date-input input[type=date]::-webkit-inner-spin-button{display:none;-webkit-appearance:none}.jkl-date-input input[type=date][data-empty=true]{color:var(--jkl-color-text-subdued)}.jkl-date-input .jkl-calendar{border:none;padding:var(--jkl-unit-40);display:none;position:fixed;width:80svw}.jkl-date-input .jkl-calendar:popover-open{display:block}@media screen and (min-width:600px){.jkl-date-input .jkl-calendar__labels{display:none}.jkl-date-input .jkl-calendar{width:-webkit-max-content;width:max-content;margin-block:var(--jkl-unit-10);margin-left:0;position-anchor:--calendar-trigger;top:anchor(bottom);left:anchor(left);position-try-fallbacks:--fallback-calendar-position}}}@position-try --fallback-calendar-position{bottom:anchor(top);top:unset;margin-top:10px}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@use "../../jkl";
|
|
2
|
+
@use "../../shared/input/shared-input-styles" as shared;
|
|
3
|
+
|
|
4
|
+
@layer jokul.components {
|
|
5
|
+
.jkl-date-input {
|
|
6
|
+
anchor-scope: all;
|
|
7
|
+
|
|
8
|
+
&__wrapper {
|
|
9
|
+
@include shared.wrapper-styles;
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: 1fr max-content;
|
|
12
|
+
max-width: 18ch;
|
|
13
|
+
anchor-name: --calendar-trigger;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
input[type="date"] {
|
|
17
|
+
@include shared.input-styles;
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
padding: var(--jkl-unit-15);
|
|
21
|
+
padding-inline-end: var(--jkl-unit-15);
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
|
|
24
|
+
&::-webkit-calendar-picker-indicator,
|
|
25
|
+
&::-webkit-inner-spin-button {
|
|
26
|
+
display: none;
|
|
27
|
+
-webkit-appearance: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[data-empty="true"] {
|
|
31
|
+
color: var(--jkl-color-text-subdued);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.jkl-calendar {
|
|
36
|
+
border: none;
|
|
37
|
+
padding: var(--jkl-unit-40);
|
|
38
|
+
display: none;
|
|
39
|
+
position: fixed;
|
|
40
|
+
width: 80svw;
|
|
41
|
+
|
|
42
|
+
&:popover-open {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media screen and (min-width: 600px) {
|
|
47
|
+
&__labels {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
width: max-content;
|
|
52
|
+
margin-block: var(--jkl-unit-10);
|
|
53
|
+
margin-left: 0;
|
|
54
|
+
position-anchor: --calendar-trigger;
|
|
55
|
+
top: anchor(bottom);
|
|
56
|
+
left: anchor(left);
|
|
57
|
+
position-try-fallbacks: --fallback-calendar-position;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@position-try --fallback-calendar-position {
|
|
64
|
+
bottom: anchor(top);
|
|
65
|
+
top: unset;
|
|
66
|
+
margin-top: 10px;
|
|
67
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-description-list{display:grid;grid-template-columns:1fr;row-gap:var(--jkl-unit-05)}.jkl-description-list .seperator{display:none}.jkl-description-list__detail+.seperator{border:0 solid #0000;
|
|
1
|
+
@layer jokul.components{.jkl-description-list{display:grid;grid-template-columns:1fr;row-gap:var(--jkl-unit-05)}.jkl-description-list .seperator{display:none}.jkl-description-list__detail+.seperator{grid-column:1/-1;width:100%;border:0 solid #0000;margin-block:var(--jkl-unit-05)}.jkl-description-list__detail+.seperator:not(:first-of-type){display:unset}.jkl-description-list__term{font-weight:var(--jkl-font-weight-bold)}.jkl-description-list__detail{margin-left:0}@media (min-width:60ch){.jkl-description-list[data-alignment=horizontal]{grid-template-columns:fit-content(40%) 1fr;grid-auto-flow:column;column-gap:1.5em}.jkl-description-list[data-alignment=horizontal] .jkl-description-list__term{grid-column-start:1;margin:0;overflow-wrap:break-word}.jkl-description-list[data-alignment=horizontal] .jkl-description-list__detail{grid-column-start:2}.jkl-description-list[data-alignment=justified]{grid-template-columns:1fr -webkit-max-content;grid-template-columns:1fr max-content;grid-auto-flow:column;column-gap:1.5em}.jkl-description-list[data-alignment=justified] .jkl-description-list__term{grid-column-start:1;margin:0;overflow-wrap:break-word}.jkl-description-list[data-alignment=justified] .jkl-description-list__detail{grid-column-start:2;text-align:end}}.jkl-description-list[data-separators=true] .seperator:not(:first-of-type){margin-block:var(--jkl-unit-15);border-top:1px solid var(--jkl-color-border-subdued)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-accordion{background-color:var(--jkl-color-background-container);border-radius:var(--jkl-border-radius-s);-webkit-padding-start:unset;list-style-type:unset;overflow:clip
|
|
1
|
+
@layer jokul.components{.jkl-accordion{background-color:var(--jkl-color-background-container);border-radius:var(--jkl-border-radius-s);-webkit-padding-start:unset;padding-inline-start:unset;list-style-type:unset;overflow:clip}.jkl-accordion .jkl-expandable-panel{border-radius:unset;border:unset;background-color:initial}.jkl-accordion .jkl-expandable-panel__wrapper:not(:last-of-type){-webkit-border-after:1px solid var(--jkl-color-border-subdued);border-block-end:1px solid var(--jkl-color-border-subdued)}.jkl-accordion[data-outlined=true]{border:1px solid var(--jkl-color-border-subdued);background-color:initial}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-expandable-panel{background-color:var(--jkl-color-background-container);border:1px solid #0000;border-radius:var(--jkl-border-radius-s);box-sizing:border-box;overflow:hidden
|
|
1
|
+
@layer jokul.components{.jkl-expandable-panel{background-color:var(--jkl-color-background-container);border:1px solid #0000;border-radius:var(--jkl-border-radius-s);box-sizing:border-box;width:100%;overflow:hidden}@media screen and (forced-colors:active){.jkl-expandable-panel{border:1px solid CanvasText}}.jkl-expandable-panel__content[data-expanded=true]{height:auto}.jkl-expandable-panel__content[data-expanded=false]{height:0}.jkl-expandable-panel[data-visible-content=true] .jkl-expander{border-bottom:1px solid #0000}.jkl-expandable-panel__content-wrapper{padding:var(--jkl-unit-20)}.jkl-expandable-panel--outlined{border-color:var(--jkl-color-border-subdued);background-color:initial}.jkl-expandable-panel__wrapper{--border-radius:var(--jkl-border-radius-m);--outline-offset:3px;--stroke-outline-offset:3px;position:relative}.jkl-expandable-panel__wrapper+.jkl-expandable-panel__wrapper{--border-top-left-radius:0;--border-top-right-radius:0;--stroke-outline-offset:-1px}.jkl-expandable-panel__wrapper:has(+.jkl-expandable-panel__wrapper){--border-bottom-left-radius:0;--border-bottom-right-radius:0;--stroke-outline-offset:-1px}.jkl-expandable-panel__wrapper:has(.jkl-expander:focus-visible):has(.jkl-expandable-panel--outlined){--outline-offset:var(--stroke-outline-offset)}.jkl-expandable-panel__wrapper:has(.jkl-expander:focus-visible) .jkl-expandable-panel__focus-container{outline:3px solid var(--jkl-color-border-strong);outline-offset:3px;outline-offset:var(--outline-offset)}.jkl-expandable-panel__wrapper .jkl-expander{padding:var(--jkl-unit-20);width:100%}.jkl-expandable-panel__wrapper .jkl-expander__label{flex-grow:1}@media (hover:hover){.jkl-expandable-panel__wrapper .jkl-expander:hover{background-color:var(--jkl-color-background-container-accent)}}.jkl-expandable-panel__focus-container{position:absolute;inset:0}.jkl-expander{box-sizing:border-box;background:none;-webkit-appearance:none;appearance:none;border:none;text-align:left;cursor:pointer;color:var(--jkl-color);-webkit-tap-highlight-color:transparent;display:flex;gap:.5rem;align-items:center;list-style:none}.jkl-expander::-webkit-details-marker{display:none}.jkl-expander__chevron{-webkit-user-select:none;user-select:none;transition-property:transform;transform:rotate(0turn);text-align:right}.jkl-expander--open .jkl-expander__label{--jkl-icon-weight:400;font-weight:var(--jkl-font-weight-bold);letter-spacing:-.014em}.jkl-expander--open .jkl-expander__chevron{transform:rotate(-.5turn);transition-timing-function:var(--jkl-motion-easing-standard);transition-duration:var(--jkl-motion-timing-snappy)}.jkl-expander{border-style:none}.jkl-expander,.jkl-expander:active,.jkl-expander:focus,.jkl-expander:hover{outline:0;outline-style:none}@media screen and (forced-colors:active){.jkl-expander{border-style:revert}.jkl-expander,.jkl-expander:active,.jkl-expander:focus,.jkl-expander:hover{outline:revert;outline-style:revert}}}
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
font: var(--jkl-text-style-paragraph-small);
|
|
21
21
|
}
|
|
22
22
|
.jkl-feedback__fade-in {
|
|
23
|
-
animation: jkl-show-
|
|
23
|
+
animation: jkl-show-u5638vc 0.25s ease-out;
|
|
24
24
|
}
|
|
25
25
|
.jkl-feedback__buttons {
|
|
26
26
|
display: flex;
|
|
27
27
|
}
|
|
28
|
-
@keyframes jkl-show-
|
|
28
|
+
@keyframes jkl-show-u5638vc {
|
|
29
29
|
from {
|
|
30
30
|
transform: translate3d(0, 0.5rem, 0);
|
|
31
31
|
opacity: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-feedback{max-width:34.375rem}.jkl-feedback__submit-wrapper{
|
|
1
|
+
@layer jokul.components{.jkl-feedback{max-width:34.375rem}.jkl-feedback__submit-wrapper{width:100%;transition-property:height;transition-timing-function:var(--jkl-motion-easing-standard);transition-duration:var(--jkl-motion-timing-expressive)}.jkl-feedback__submit-wrapper--hidden{display:none}.jkl-feedback__step-counter{color:var(--jkl-color-text-subdued);margin-bottom:var(--jkl-unit-20);font:var(--jkl-text-style-paragraph-small)}.jkl-feedback__fade-in{animation:jkl-show-u5638vc .25s ease-out}.jkl-feedback__buttons{display:flex}@keyframes jkl-show-u5638vc{0%{transform:translate3d(0,.5rem,0);opacity:0}}.jkl-feedback-smileys{margin-top:var(--jkl-unit-10);display:flex;justify-content:space-between;width:100%;max-width:22.5rem;flex-wrap:nowrap;gap:var(--jkl-spacing-12)}.jkl-feedback-smiley-option{display:inline-block;position:relative;cursor:pointer;height:2.5rem;width:2.5rem;color:var(--jkl-color-text-subdued);transform:translateZ(0);transition-timing-function:var(--jkl-motion-easing-standard);transition-duration:var(--jkl-motion-timing-productive);transition-property:transform,color}@media screen and (forced-colors:active){.jkl-feedback-smiley-option,.jkl-feedback-smiley-option path,.jkl-feedback-smiley-option svg{stroke:ButtonFace;fill:ButtonText}}.jkl-feedback-smiley-option:after,.jkl-feedback-smiley-option:before{content:"";position:absolute;border-radius:50%;opacity:0;transition-timing-function:var(--jkl-motion-easing-standard);transition-duration:var(--jkl-motion-timing-productive);transition-property:opacity}.jkl-feedback-smiley-option:before{inset:0;box-shadow:0 .125rem 1.875rem #0000001a}.jkl-feedback-smiley-option:hover{color:var(--jkl-color-text-default)}input:checked+.jkl-feedback-smiley-option{color:var(--jkl-color-text-default);transform:translate3d(0,-20%,0)}input:checked+.jkl-feedback-smiley-option:before{opacity:1}input:focus-visible+.jkl-feedback-smiley-option{border-radius:var(--jkl-border-radius-full);outline:3px solid var(--jkl-color-border-strong);outline-offset:3px}}
|
|
@@ -4,69 +4,37 @@
|
|
|
4
4
|
@layer jokul.components {
|
|
5
5
|
.jkl-file {
|
|
6
6
|
--jkl-file-padding: var(--jkl-unit-10);
|
|
7
|
-
--jkl-file-thumbnail-
|
|
8
|
-
--jkl-file-thumbnail-
|
|
7
|
+
--jkl-file-thumbnail-max-height: var(--jkl-unit-210);
|
|
8
|
+
--jkl-file-thumbnail-width: var(--jkl-unit-60);
|
|
9
9
|
--jkl-file-thumbnail-aspect-ratio: 1;
|
|
10
|
-
--jkl-file-gap: var(--jkl-unit-10)
|
|
10
|
+
--jkl-file-gap: var(--jkl-unit-10);
|
|
11
11
|
--jkl-file-button-width: var(--jkl-unit-50);
|
|
12
12
|
--text-color: var(--jkl-color-text-default);
|
|
13
13
|
--border: 1px solid var(--jkl-color-border-subdued);
|
|
14
|
-
--border-radius:
|
|
14
|
+
--border-radius: var(--jkl-border-radius-s);
|
|
15
15
|
--bg: transparent;
|
|
16
16
|
--transition-time: var(--jkl-motion-timing-expressive);
|
|
17
17
|
}
|
|
18
|
-
.jkl-
|
|
19
|
-
|
|
20
|
-
transition-duration: var(--jkl-motion-timing-snappy);
|
|
21
|
-
transition-property: background-color, border-color, color;
|
|
22
|
-
color: var(--text-color);
|
|
23
|
-
padding: var(--jkl-file-padding);
|
|
24
|
-
border: var(--border);
|
|
25
|
-
border-radius: var(--border-radius);
|
|
26
|
-
background: var(--bg);
|
|
27
|
-
display: grid;
|
|
28
|
-
grid-template-columns: var(--jkl-file-thumbnail-width) 1fr var(--jkl-file-button-width);
|
|
29
|
-
grid-template-areas: "image text button";
|
|
30
|
-
gap: var(--jkl-file-gap);
|
|
31
|
-
align-items: center;
|
|
32
|
-
height: fit-content;
|
|
33
|
-
}
|
|
34
|
-
.jkl-file__content__name {
|
|
35
|
-
font: var(--jkl-text-style-paragraph-small);
|
|
36
|
-
grid-area: text;
|
|
37
|
-
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
|
|
38
|
-
word-break: break-word;
|
|
39
|
-
}
|
|
40
|
-
.jkl-file__content__name__size {
|
|
41
|
-
word-break: keep-all;
|
|
42
|
-
}
|
|
43
|
-
.jkl-file__content__delete {
|
|
44
|
-
aspect-ratio: 1;
|
|
45
|
-
grid-area: button;
|
|
46
|
-
}
|
|
47
|
-
.jkl-file__content__thumbnail {
|
|
48
|
-
width: 100%;
|
|
18
|
+
.jkl-file__thumbnail {
|
|
19
|
+
flex-shrink: 0;
|
|
49
20
|
aspect-ratio: var(--jkl-file-thumbnail-aspect-ratio);
|
|
50
|
-
|
|
21
|
+
width: var(--jkl-file-thumbnail-width);
|
|
22
|
+
height: auto;
|
|
51
23
|
max-height: var(--jkl-file-thumbnail-max-height);
|
|
52
|
-
grid-area: image;
|
|
53
24
|
position: relative;
|
|
54
25
|
display: flex;
|
|
55
26
|
align-items: center;
|
|
56
27
|
justify-content: center;
|
|
57
28
|
background: var(--jkl-color-background-page);
|
|
58
|
-
border-radius:
|
|
29
|
+
border-radius: var(--jkl-border-radius-xs);
|
|
59
30
|
overflow: hidden;
|
|
60
|
-
container-type: inline-size;
|
|
61
31
|
anchor-name: --thumb;
|
|
62
32
|
anchor-scope: all;
|
|
63
33
|
outline: 1px solid color-mix(in srgb, currentColor 3%, transparent);
|
|
64
34
|
}
|
|
65
|
-
.jkl-
|
|
35
|
+
.jkl-file__thumbnail::after {
|
|
66
36
|
position: absolute;
|
|
67
37
|
z-index: 1;
|
|
68
|
-
}
|
|
69
|
-
.jkl-file__content__thumbnail::after {
|
|
70
38
|
content: ""/"Laster opp";
|
|
71
39
|
position-anchor: --thumb;
|
|
72
40
|
position-area: center;
|
|
@@ -79,50 +47,71 @@
|
|
|
79
47
|
transition: display var(--transition-time) allow-discrete ease-in, scale var(--transition-time) ease-in;
|
|
80
48
|
}
|
|
81
49
|
@starting-style {
|
|
82
|
-
.jkl-
|
|
50
|
+
.jkl-file__thumbnail::after {
|
|
83
51
|
scale: 0;
|
|
84
52
|
}
|
|
85
53
|
}
|
|
86
|
-
.jkl-
|
|
54
|
+
.jkl-file__thumbnail img {
|
|
87
55
|
opacity: 1;
|
|
88
56
|
transition: opacity var(--transition-time) ease-in-out;
|
|
89
57
|
}
|
|
90
|
-
.jkl-
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100%;
|
|
58
|
+
.jkl-file__thumbnail img[src] {
|
|
59
|
+
min-width: 100%;
|
|
60
|
+
min-height: 100%;
|
|
93
61
|
object-fit: cover;
|
|
62
|
+
object-position: center;
|
|
63
|
+
}
|
|
64
|
+
.jkl-file__content {
|
|
65
|
+
transition-timing-function: var(--jkl-motion-easing-standard);
|
|
66
|
+
transition-duration: var(--jkl-motion-timing-snappy);
|
|
67
|
+
transition-property: background-color, border-color, color;
|
|
68
|
+
color: var(--text-color);
|
|
69
|
+
padding: var(--jkl-file-padding);
|
|
70
|
+
border: var(--border);
|
|
71
|
+
border-radius: var(--border-radius);
|
|
72
|
+
background: var(--bg);
|
|
73
|
+
height: fit-content;
|
|
74
|
+
}
|
|
75
|
+
.jkl-file__content:not(:has(.jkl-file__thumbnail)):has(.jkl-file__button) {
|
|
76
|
+
--jkl-file-padding: 0 var(--jkl-unit-10);
|
|
77
|
+
}
|
|
78
|
+
.jkl-file__info {
|
|
79
|
+
flex-grow: 999;
|
|
80
|
+
}
|
|
81
|
+
.jkl-file__name {
|
|
82
|
+
/* stylelint-disable-next-line declaration-property-value-keyword-no-deprecated */
|
|
83
|
+
word-break: break-word;
|
|
84
|
+
}
|
|
85
|
+
.jkl-file__size {
|
|
86
|
+
word-break: keep-all;
|
|
87
|
+
}
|
|
88
|
+
.jkl-file__button {
|
|
89
|
+
aspect-ratio: 1;
|
|
90
|
+
flex-shrink: 0;
|
|
94
91
|
}
|
|
95
92
|
.jkl-file[class*=card] {
|
|
96
93
|
--jkl-file-thumbnail-width: 100%;
|
|
97
|
-
--jkl-file-thumbnail-aspect-ratio: 16/
|
|
98
|
-
}
|
|
99
|
-
.jkl-file[class*=card] .jkl-file__content {
|
|
100
|
-
grid-template-columns: 1fr var(--jkl-file-button-width);
|
|
101
|
-
grid-template-rows: var(--jkl-file-thumbnail-max-height) auto;
|
|
102
|
-
grid-template-areas: "image image" "text button";
|
|
94
|
+
--jkl-file-thumbnail-aspect-ratio: 16/10;
|
|
103
95
|
}
|
|
104
|
-
.jkl-file:not([data-state*=loading]) .jkl-
|
|
96
|
+
.jkl-file:not([data-state*=loading]) .jkl-file__thumbnail:not(:has(img[src]))::before {
|
|
105
97
|
font: var(--jkl-text-style-paragraph-small);
|
|
98
|
+
position: absolute;
|
|
99
|
+
z-index: 1;
|
|
106
100
|
content: attr(data-filetype);
|
|
107
101
|
}
|
|
108
|
-
.jkl-file[data-state=loading]:not(:has(.jkl-file__support-label)) .jkl-
|
|
102
|
+
.jkl-file[data-state=loading]:not(:has(.jkl-file__support-label)) .jkl-file__thumbnail img {
|
|
109
103
|
opacity: 0;
|
|
110
104
|
}
|
|
111
|
-
.jkl-file[data-state=loading]:not(:has(.jkl-file__support-label)) .jkl-
|
|
105
|
+
.jkl-file[data-state=loading]:not(:has(.jkl-file__support-label)) .jkl-file__thumbnail::after {
|
|
112
106
|
display: block;
|
|
113
107
|
scale: 1;
|
|
114
108
|
}
|
|
115
|
-
.jkl-file[data-state=error] {
|
|
116
|
-
--bg: var(--jkl-color-error-background-container);
|
|
117
|
-
}
|
|
118
109
|
.jkl-file[data-state=error],
|
|
119
110
|
.jkl-file[data-state=error] a,
|
|
120
111
|
.jkl-file[data-state=error] a:hover,
|
|
121
112
|
.jkl-file[data-state=error] button,
|
|
122
113
|
.jkl-file[data-state=error] span {
|
|
123
114
|
--text-color: var(--jkl-color-error-text-default);
|
|
124
|
-
--link-color: var(--text-color);
|
|
125
|
-
--jkl-color-border-strong: currentColor;
|
|
126
115
|
}
|
|
127
116
|
.jkl-file[data-state=error] .jkl-file__content {
|
|
128
117
|
border-color: var(--jkl-color-error-border-default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer jokul.components{.jkl-file{--jkl-file-padding:var(--jkl-unit-10);--jkl-file-thumbnail-
|
|
1
|
+
@layer jokul.components{.jkl-file{--jkl-file-padding:var(--jkl-unit-10);--jkl-file-thumbnail-max-height:var(--jkl-unit-210);--jkl-file-thumbnail-width:var(--jkl-unit-60);--jkl-file-thumbnail-aspect-ratio:1;--jkl-file-gap:var(--jkl-unit-10);--jkl-file-button-width:var(--jkl-unit-50);--text-color:var(--jkl-color-text-default);--border:1px solid var(--jkl-color-border-subdued);--border-radius:var(--jkl-border-radius-s);--bg:#0000;--transition-time:var(--jkl-motion-timing-expressive)}.jkl-file__thumbnail{flex-shrink:0;aspect-ratio:var(--jkl-file-thumbnail-aspect-ratio);width:var(--jkl-file-thumbnail-width);height:auto;max-height:var(--jkl-file-thumbnail-max-height);position:relative;display:flex;align-items:center;justify-content:center;background:var(--jkl-color-background-page);border-radius:var(--jkl-border-radius-xs);overflow:hidden;anchor-name:--thumb;anchor-scope:all;outline:1px solid color-mix(in srgb,currentColor 3%,#0000)}.jkl-file__thumbnail:after{position:absolute;z-index:1;content:""/"Laster opp";position-anchor:--thumb;position-area:center;height:25%;border-radius:1px;aspect-ratio:1;scale:0;background:var(--text-color);animation:spin 5s linear infinite forwards;transition:display var(--transition-time) allow-discrete ease-in,scale var(--transition-time) ease-in}@starting-style{.jkl-file__thumbnail:after{scale:0}}.jkl-file__thumbnail img{opacity:1;transition:opacity var(--transition-time) ease-in-out}.jkl-file__thumbnail img[src]{min-width:100%;min-height:100%;object-fit:cover;object-position:center}.jkl-file__content{transition-timing-function:var(--jkl-motion-easing-standard);transition-duration:var(--jkl-motion-timing-snappy);transition-property:background-color,border-color,color;color:var(--text-color);padding:var(--jkl-file-padding);border:var(--border);border-radius:var(--border-radius);background:var(--bg);height:-webkit-fit-content;height:fit-content}.jkl-file__content:not(:has(.jkl-file__thumbnail)):has(.jkl-file__button){--jkl-file-padding:0 var(--jkl-unit-10)}.jkl-file__info{flex-grow:999}.jkl-file__name{word-break:break-word}.jkl-file__size{word-break:keep-all}.jkl-file__button{aspect-ratio:1;flex-shrink:0}.jkl-file[class*=card]{--jkl-file-thumbnail-width:100%;--jkl-file-thumbnail-aspect-ratio:16/10}.jkl-file:not([data-state*=loading]) .jkl-file__thumbnail:not(:has(img[src])):before{font:var(--jkl-text-style-paragraph-small);position:absolute;z-index:1;content:attr(data-filetype)}.jkl-file[data-state=loading]:not(:has(.jkl-file__support-label)) .jkl-file__thumbnail img{opacity:0}.jkl-file[data-state=loading]:not(:has(.jkl-file__support-label)) .jkl-file__thumbnail:after{display:block;scale:1}.jkl-file[data-state=error],.jkl-file[data-state=error] a,.jkl-file[data-state=error] a:hover,.jkl-file[data-state=error] button,.jkl-file[data-state=error] span{--text-color:var(--jkl-color-error-text-default)}.jkl-file[data-state=error] .jkl-file__content{border-color:var(--jkl-color-error-border-default)}@keyframes spin{0%{transform:rotate(0turn)}to{transform:rotate(1turn)}}}
|