@fremtind/jokul 0.1.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/LICENSE +21 -0
- package/build/build-stats.html +4842 -0
- package/build/cjs/components/ScreenReaderOnly.js +2 -0
- package/build/cjs/components/ScreenReaderOnly.js.map +1 -0
- package/build/cjs/components/SlotComponent.js +2 -0
- package/build/cjs/components/SlotComponent.js.map +1 -0
- package/build/cjs/components/index.js +2 -0
- package/build/cjs/components/index.js.map +1 -0
- package/build/cjs/components/navigation/Link.js +2 -0
- package/build/cjs/components/navigation/Link.js.map +1 -0
- package/build/cjs/components/navigation/NavLink.js +2 -0
- package/build/cjs/components/navigation/NavLink.js.map +1 -0
- package/build/cjs/components/navigation/index.js +2 -0
- package/build/cjs/components/navigation/index.js.map +1 -0
- package/build/cjs/core/as-child.js +2 -0
- package/build/cjs/core/as-child.js.map +1 -0
- package/build/cjs/core/index.js +2 -0
- package/build/cjs/core/index.js.map +1 -0
- package/build/cjs/core/polymorphism.js +2 -0
- package/build/cjs/core/polymorphism.js.map +1 -0
- package/build/cjs/core/tokens.js +2 -0
- package/build/cjs/core/tokens.js.map +1 -0
- package/build/cjs/core/types.js +2 -0
- package/build/cjs/core/types.js.map +1 -0
- package/build/cjs/core/utils/breakpoints.js +2 -0
- package/build/cjs/core/utils/breakpoints.js.map +1 -0
- package/build/cjs/core/utils/density.js +2 -0
- package/build/cjs/core/utils/density.js.map +1 -0
- package/build/cjs/core/utils/getValuePair.js +2 -0
- package/build/cjs/core/utils/getValuePair.js.map +1 -0
- package/build/cjs/core/utils/index.js +2 -0
- package/build/cjs/core/utils/index.js.map +1 -0
- package/build/cjs/core/utils/mergeProps.js +2 -0
- package/build/cjs/core/utils/mergeProps.js.map +1 -0
- package/build/cjs/core/utils/mergeRefs.js +2 -0
- package/build/cjs/core/utils/mergeRefs.js.map +1 -0
- package/build/cjs/core/utils/motion.js +2 -0
- package/build/cjs/core/utils/motion.js.map +1 -0
- package/build/cjs/core/utils/tabListener.js +2 -0
- package/build/cjs/core/utils/tabListener.js.map +1 -0
- package/build/cjs/hooks/index.js +2 -0
- package/build/cjs/hooks/index.js.map +1 -0
- package/build/cjs/hooks/mediaQueryUtils.js +2 -0
- package/build/cjs/hooks/mediaQueryUtils.js.map +1 -0
- package/build/cjs/hooks/useAnimatedDetails/index.js +2 -0
- package/build/cjs/hooks/useAnimatedDetails/index.js.map +1 -0
- package/build/cjs/hooks/useAnimatedDetails/useAnimatedDetails.js +2 -0
- package/build/cjs/hooks/useAnimatedDetails/useAnimatedDetails.js.map +1 -0
- package/build/cjs/hooks/useAnimatedHeight/index.js +2 -0
- package/build/cjs/hooks/useAnimatedHeight/index.js.map +1 -0
- package/build/cjs/hooks/useAnimatedHeight/types.js +2 -0
- package/build/cjs/hooks/useAnimatedHeight/types.js.map +1 -0
- package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeight.js +2 -0
- package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeight.js.map +1 -0
- package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeightBetween.js +2 -0
- package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeightBetween.js.map +1 -0
- package/build/cjs/hooks/useAnimatedHeight/useAutoAnimateHeight.js +2 -0
- package/build/cjs/hooks/useAnimatedHeight/useAutoAnimateHeight.js.map +1 -0
- package/build/cjs/hooks/useAriaLiveRegion/index.js +2 -0
- package/build/cjs/hooks/useAriaLiveRegion/index.js.map +1 -0
- package/build/cjs/hooks/useAriaLiveRegion/useAriaLiveRegion.js +2 -0
- package/build/cjs/hooks/useAriaLiveRegion/useAriaLiveRegion.js.map +1 -0
- package/build/cjs/hooks/useBrowserPreferences/index.js +2 -0
- package/build/cjs/hooks/useBrowserPreferences/index.js.map +1 -0
- package/build/cjs/hooks/useBrowserPreferences/useBrowserPreferences.js +2 -0
- package/build/cjs/hooks/useBrowserPreferences/useBrowserPreferences.js.map +1 -0
- package/build/cjs/hooks/useClickOutside/index.js +2 -0
- package/build/cjs/hooks/useClickOutside/index.js.map +1 -0
- package/build/cjs/hooks/useClickOutside/useClickOutside.js +2 -0
- package/build/cjs/hooks/useClickOutside/useClickOutside.js.map +1 -0
- package/build/cjs/hooks/useElementDimensions/index.js +2 -0
- package/build/cjs/hooks/useElementDimensions/index.js.map +1 -0
- package/build/cjs/hooks/useElementDimensions/useElementDimensions.js +2 -0
- package/build/cjs/hooks/useElementDimensions/useElementDimensions.js.map +1 -0
- package/build/cjs/hooks/useFocusOutside/index.js +2 -0
- package/build/cjs/hooks/useFocusOutside/index.js.map +1 -0
- package/build/cjs/hooks/useFocusOutside/useFocusOutside.js +2 -0
- package/build/cjs/hooks/useFocusOutside/useFocusOutside.js.map +1 -0
- package/build/cjs/hooks/useId/index.js +2 -0
- package/build/cjs/hooks/useId/index.js.map +1 -0
- package/build/cjs/hooks/useId/useId.js +2 -0
- package/build/cjs/hooks/useId/useId.js.map +1 -0
- package/build/cjs/hooks/useIntersectionObserver/index.js +2 -0
- package/build/cjs/hooks/useIntersectionObserver/index.js.map +1 -0
- package/build/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -0
- package/build/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -0
- package/build/cjs/hooks/useKeyListener/index.js +2 -0
- package/build/cjs/hooks/useKeyListener/index.js.map +1 -0
- package/build/cjs/hooks/useKeyListener/useKeyListener.js +2 -0
- package/build/cjs/hooks/useKeyListener/useKeyListener.js.map +1 -0
- package/build/cjs/hooks/useListNavigation/index.js +2 -0
- package/build/cjs/hooks/useListNavigation/index.js.map +1 -0
- package/build/cjs/hooks/useListNavigation/useListNavigation.js +2 -0
- package/build/cjs/hooks/useListNavigation/useListNavigation.js.map +1 -0
- package/build/cjs/hooks/useLocalStorage/index.js +2 -0
- package/build/cjs/hooks/useLocalStorage/index.js.map +1 -0
- package/build/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -0
- package/build/cjs/hooks/useLocalStorage/useLocalStorage.js.map +1 -0
- package/build/cjs/hooks/useMutationObserver/index.js +2 -0
- package/build/cjs/hooks/useMutationObserver/index.js.map +1 -0
- package/build/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -0
- package/build/cjs/hooks/useMutationObserver/useMutationObserver.js.map +1 -0
- package/build/cjs/hooks/usePreviousValue/index.js +2 -0
- package/build/cjs/hooks/usePreviousValue/index.js.map +1 -0
- package/build/cjs/hooks/usePreviousValue/usePreviousValue.js +2 -0
- package/build/cjs/hooks/usePreviousValue/usePreviousValue.js.map +1 -0
- package/build/cjs/hooks/useProgressiveImg/index.js +2 -0
- package/build/cjs/hooks/useProgressiveImg/index.js.map +1 -0
- package/build/cjs/hooks/useProgressiveImg/useProgressiveImg.js +2 -0
- package/build/cjs/hooks/useProgressiveImg/useProgressiveImg.js.map +1 -0
- package/build/cjs/hooks/useScreen/index.js +2 -0
- package/build/cjs/hooks/useScreen/index.js.map +1 -0
- package/build/cjs/hooks/useScreen/state.js +2 -0
- package/build/cjs/hooks/useScreen/state.js.map +1 -0
- package/build/cjs/hooks/useScreen/useScreen.js +2 -0
- package/build/cjs/hooks/useScreen/useScreen.js.map +1 -0
- package/build/cjs/hooks/useScrollIntoView/index.js +2 -0
- package/build/cjs/hooks/useScrollIntoView/index.js.map +1 -0
- package/build/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -0
- package/build/cjs/hooks/useScrollIntoView/useScrollIntoView.js.map +1 -0
- package/build/cjs/hooks/useSwipeGesture/index.js +2 -0
- package/build/cjs/hooks/useSwipeGesture/index.js.map +1 -0
- package/build/cjs/hooks/useSwipeGesture/useSwipeGesture.js +2 -0
- package/build/cjs/hooks/useSwipeGesture/useSwipeGesture.js.map +1 -0
- package/build/clsx-BeLtu-UY.js +2 -0
- package/build/clsx-BeLtu-UY.js.map +1 -0
- package/build/clsx-E3yX_9sL.cjs +2 -0
- package/build/clsx-E3yX_9sL.cjs.map +1 -0
- package/build/components/ScreenReaderOnly.d.ts +6 -0
- package/build/components/SlotComponent.d.ts +7 -0
- package/build/components/index.d.ts +2 -0
- package/build/components/navigation/Link.d.ts +5 -0
- package/build/components/navigation/NavLink.d.ts +6 -0
- package/build/components/navigation/index.d.ts +2 -0
- package/build/core/as-child.d.ts +39 -0
- package/build/core/index.d.ts +7 -0
- package/build/core/polymorphism.d.ts +11 -0
- package/build/core/tokens.d.ts +351 -0
- package/build/core/types.d.ts +42 -0
- package/build/core/utils/breakpoints.d.ts +6 -0
- package/build/core/utils/density.d.ts +1 -0
- package/build/core/utils/getValuePair.d.ts +2 -0
- package/build/core/utils/index.d.ts +8 -0
- package/build/core/utils/mergeProps.d.ts +3 -0
- package/build/core/utils/mergeRefs.d.ts +3 -0
- package/build/core/utils/motion.d.ts +16 -0
- package/build/core/utils/tabListener.d.ts +1 -0
- package/build/es/components/ScreenReaderOnly.js +2 -0
- package/build/es/components/ScreenReaderOnly.js.map +1 -0
- package/build/es/components/SlotComponent.js +2 -0
- package/build/es/components/SlotComponent.js.map +1 -0
- package/build/es/components/index.js +2 -0
- package/build/es/components/index.js.map +1 -0
- package/build/es/components/navigation/Link.js +2 -0
- package/build/es/components/navigation/Link.js.map +1 -0
- package/build/es/components/navigation/NavLink.js +2 -0
- package/build/es/components/navigation/NavLink.js.map +1 -0
- package/build/es/components/navigation/index.js +2 -0
- package/build/es/components/navigation/index.js.map +1 -0
- package/build/es/core/as-child.js +2 -0
- package/build/es/core/as-child.js.map +1 -0
- package/build/es/core/index.js +2 -0
- package/build/es/core/index.js.map +1 -0
- package/build/es/core/polymorphism.js +2 -0
- package/build/es/core/polymorphism.js.map +1 -0
- package/build/es/core/tokens.js +2 -0
- package/build/es/core/tokens.js.map +1 -0
- package/build/es/core/types.js +2 -0
- package/build/es/core/types.js.map +1 -0
- package/build/es/core/utils/breakpoints.js +2 -0
- package/build/es/core/utils/breakpoints.js.map +1 -0
- package/build/es/core/utils/density.js +2 -0
- package/build/es/core/utils/density.js.map +1 -0
- package/build/es/core/utils/getValuePair.js +2 -0
- package/build/es/core/utils/getValuePair.js.map +1 -0
- package/build/es/core/utils/index.js +2 -0
- package/build/es/core/utils/index.js.map +1 -0
- package/build/es/core/utils/mergeProps.js +2 -0
- package/build/es/core/utils/mergeProps.js.map +1 -0
- package/build/es/core/utils/mergeRefs.js +2 -0
- package/build/es/core/utils/mergeRefs.js.map +1 -0
- package/build/es/core/utils/motion.js +2 -0
- package/build/es/core/utils/motion.js.map +1 -0
- package/build/es/core/utils/tabListener.js +2 -0
- package/build/es/core/utils/tabListener.js.map +1 -0
- package/build/es/hooks/index.js +2 -0
- package/build/es/hooks/index.js.map +1 -0
- package/build/es/hooks/mediaQueryUtils.js +2 -0
- package/build/es/hooks/mediaQueryUtils.js.map +1 -0
- package/build/es/hooks/useAnimatedDetails/index.js +2 -0
- package/build/es/hooks/useAnimatedDetails/index.js.map +1 -0
- package/build/es/hooks/useAnimatedDetails/useAnimatedDetails.js +2 -0
- package/build/es/hooks/useAnimatedDetails/useAnimatedDetails.js.map +1 -0
- package/build/es/hooks/useAnimatedHeight/index.js +2 -0
- package/build/es/hooks/useAnimatedHeight/index.js.map +1 -0
- package/build/es/hooks/useAnimatedHeight/types.js +2 -0
- package/build/es/hooks/useAnimatedHeight/types.js.map +1 -0
- package/build/es/hooks/useAnimatedHeight/useAnimatedHeight.js +2 -0
- package/build/es/hooks/useAnimatedHeight/useAnimatedHeight.js.map +1 -0
- package/build/es/hooks/useAnimatedHeight/useAnimatedHeightBetween.js +2 -0
- package/build/es/hooks/useAnimatedHeight/useAnimatedHeightBetween.js.map +1 -0
- package/build/es/hooks/useAnimatedHeight/useAutoAnimateHeight.js +2 -0
- package/build/es/hooks/useAnimatedHeight/useAutoAnimateHeight.js.map +1 -0
- package/build/es/hooks/useAriaLiveRegion/index.js +2 -0
- package/build/es/hooks/useAriaLiveRegion/index.js.map +1 -0
- package/build/es/hooks/useAriaLiveRegion/useAriaLiveRegion.js +2 -0
- package/build/es/hooks/useAriaLiveRegion/useAriaLiveRegion.js.map +1 -0
- package/build/es/hooks/useBrowserPreferences/index.js +2 -0
- package/build/es/hooks/useBrowserPreferences/index.js.map +1 -0
- package/build/es/hooks/useBrowserPreferences/useBrowserPreferences.js +2 -0
- package/build/es/hooks/useBrowserPreferences/useBrowserPreferences.js.map +1 -0
- package/build/es/hooks/useClickOutside/index.js +2 -0
- package/build/es/hooks/useClickOutside/index.js.map +1 -0
- package/build/es/hooks/useClickOutside/useClickOutside.js +2 -0
- package/build/es/hooks/useClickOutside/useClickOutside.js.map +1 -0
- package/build/es/hooks/useElementDimensions/index.js +2 -0
- package/build/es/hooks/useElementDimensions/index.js.map +1 -0
- package/build/es/hooks/useElementDimensions/useElementDimensions.js +2 -0
- package/build/es/hooks/useElementDimensions/useElementDimensions.js.map +1 -0
- package/build/es/hooks/useFocusOutside/index.js +2 -0
- package/build/es/hooks/useFocusOutside/index.js.map +1 -0
- package/build/es/hooks/useFocusOutside/useFocusOutside.js +2 -0
- package/build/es/hooks/useFocusOutside/useFocusOutside.js.map +1 -0
- package/build/es/hooks/useId/index.js +2 -0
- package/build/es/hooks/useId/index.js.map +1 -0
- package/build/es/hooks/useId/useId.js +2 -0
- package/build/es/hooks/useId/useId.js.map +1 -0
- package/build/es/hooks/useIntersectionObserver/index.js +2 -0
- package/build/es/hooks/useIntersectionObserver/index.js.map +1 -0
- package/build/es/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -0
- package/build/es/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -0
- package/build/es/hooks/useKeyListener/index.js +2 -0
- package/build/es/hooks/useKeyListener/index.js.map +1 -0
- package/build/es/hooks/useKeyListener/useKeyListener.js +2 -0
- package/build/es/hooks/useKeyListener/useKeyListener.js.map +1 -0
- package/build/es/hooks/useListNavigation/index.js +2 -0
- package/build/es/hooks/useListNavigation/index.js.map +1 -0
- package/build/es/hooks/useListNavigation/useListNavigation.js +2 -0
- package/build/es/hooks/useListNavigation/useListNavigation.js.map +1 -0
- package/build/es/hooks/useLocalStorage/index.js +2 -0
- package/build/es/hooks/useLocalStorage/index.js.map +1 -0
- package/build/es/hooks/useLocalStorage/useLocalStorage.js +2 -0
- package/build/es/hooks/useLocalStorage/useLocalStorage.js.map +1 -0
- package/build/es/hooks/useMutationObserver/index.js +2 -0
- package/build/es/hooks/useMutationObserver/index.js.map +1 -0
- package/build/es/hooks/useMutationObserver/useMutationObserver.js +2 -0
- package/build/es/hooks/useMutationObserver/useMutationObserver.js.map +1 -0
- package/build/es/hooks/usePreviousValue/index.js +2 -0
- package/build/es/hooks/usePreviousValue/index.js.map +1 -0
- package/build/es/hooks/usePreviousValue/usePreviousValue.js +2 -0
- package/build/es/hooks/usePreviousValue/usePreviousValue.js.map +1 -0
- package/build/es/hooks/useProgressiveImg/index.js +2 -0
- package/build/es/hooks/useProgressiveImg/index.js.map +1 -0
- package/build/es/hooks/useProgressiveImg/useProgressiveImg.js +2 -0
- package/build/es/hooks/useProgressiveImg/useProgressiveImg.js.map +1 -0
- package/build/es/hooks/useScreen/index.js +2 -0
- package/build/es/hooks/useScreen/index.js.map +1 -0
- package/build/es/hooks/useScreen/state.js +2 -0
- package/build/es/hooks/useScreen/state.js.map +1 -0
- package/build/es/hooks/useScreen/useScreen.js +2 -0
- package/build/es/hooks/useScreen/useScreen.js.map +1 -0
- package/build/es/hooks/useScrollIntoView/index.js +2 -0
- package/build/es/hooks/useScrollIntoView/index.js.map +1 -0
- package/build/es/hooks/useScrollIntoView/useScrollIntoView.js +2 -0
- package/build/es/hooks/useScrollIntoView/useScrollIntoView.js.map +1 -0
- package/build/es/hooks/useSwipeGesture/index.js +2 -0
- package/build/es/hooks/useSwipeGesture/index.js.map +1 -0
- package/build/es/hooks/useSwipeGesture/useSwipeGesture.js +2 -0
- package/build/es/hooks/useSwipeGesture/useSwipeGesture.js.map +1 -0
- package/build/hooks/index.d.ts +18 -0
- package/build/hooks/mediaQueryUtils.d.ts +21 -0
- package/build/hooks/useAnimatedDetails/index.d.ts +1 -0
- package/build/hooks/useAnimatedDetails/useAnimatedDetails.d.ts +20 -0
- package/build/hooks/useAnimatedHeight/index.d.ts +4 -0
- package/build/hooks/useAnimatedHeight/types.d.ts +26 -0
- package/build/hooks/useAnimatedHeight/useAnimatedHeight.d.ts +10 -0
- package/build/hooks/useAnimatedHeight/useAnimatedHeightBetween.d.ts +10 -0
- package/build/hooks/useAnimatedHeight/useAutoAnimateHeight.d.ts +20 -0
- package/build/hooks/useAriaLiveRegion/index.d.ts +1 -0
- package/build/hooks/useAriaLiveRegion/useAriaLiveRegion.d.ts +15 -0
- package/build/hooks/useBrowserPreferences/index.d.ts +1 -0
- package/build/hooks/useBrowserPreferences/useBrowserPreferences.d.ts +12 -0
- package/build/hooks/useClickOutside/index.d.ts +1 -0
- package/build/hooks/useClickOutside/useClickOutside.d.ts +7 -0
- package/build/hooks/useElementDimensions/index.d.ts +1 -0
- package/build/hooks/useElementDimensions/useElementDimensions.d.ts +11 -0
- package/build/hooks/useFocusOutside/index.d.ts +1 -0
- package/build/hooks/useFocusOutside/useFocusOutside.d.ts +7 -0
- package/build/hooks/useId/index.d.ts +1 -0
- package/build/hooks/useId/useId.d.ts +11 -0
- package/build/hooks/useIntersectionObserver/index.d.ts +1 -0
- package/build/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +13 -0
- package/build/hooks/useKeyListener/index.d.ts +1 -0
- package/build/hooks/useKeyListener/useKeyListener.d.ts +8 -0
- package/build/hooks/useListNavigation/index.d.ts +1 -0
- package/build/hooks/useListNavigation/useListNavigation.d.ts +7 -0
- package/build/hooks/useLocalStorage/index.d.ts +1 -0
- package/build/hooks/useLocalStorage/useLocalStorage.d.ts +1 -0
- package/build/hooks/useMutationObserver/index.d.ts +1 -0
- package/build/hooks/useMutationObserver/useMutationObserver.d.ts +9 -0
- package/build/hooks/usePreviousValue/index.d.ts +1 -0
- package/build/hooks/usePreviousValue/usePreviousValue.d.ts +6 -0
- package/build/hooks/useProgressiveImg/index.d.ts +1 -0
- package/build/hooks/useProgressiveImg/useProgressiveImg.d.ts +10 -0
- package/build/hooks/useScreen/index.d.ts +2 -0
- package/build/hooks/useScreen/state.d.ts +17 -0
- package/build/hooks/useScreen/useScreen.d.ts +6 -0
- package/build/hooks/useScrollIntoView/index.d.ts +1 -0
- package/build/hooks/useScrollIntoView/useScrollIntoView.d.ts +11 -0
- package/build/hooks/useSwipeGesture/index.d.ts +1 -0
- package/build/hooks/useSwipeGesture/useSwipeGesture.d.ts +27 -0
- package/package.json +83 -0
- package/src/components/navigation/styles/link.css +152 -0
- package/src/components/navigation/styles/link.min.css +1 -0
- package/src/components/navigation/styles/link.scss +138 -0
- package/src/core/jkl/_colors.scss +26 -0
- package/src/core/jkl/_convert.scss +96 -0
- package/src/core/jkl/_helpers.scss +20 -0
- package/src/core/jkl/_index.scss +18 -0
- package/src/core/jkl/_legacy-tokens.scss +22 -0
- package/src/core/jkl/_motion.scss +62 -0
- package/src/core/jkl/_navigation.scss +9 -0
- package/src/core/jkl/_ornaments.scss +26 -0
- package/src/core/jkl/_reset.scss +43 -0
- package/src/core/jkl/_responsive-units.scss +30 -0
- package/src/core/jkl/_screenreader.scss +59 -0
- package/src/core/jkl/_screens.scss +135 -0
- package/src/core/jkl/_shadows.scss +25 -0
- package/src/core/jkl/_spacing.scss +210 -0
- package/src/core/jkl/_theme.scss +144 -0
- package/src/core/jkl/_tokens.scss +148 -0
- package/src/core/jkl/_typography.scss +327 -0
- package/src/core/jkl/_underline.scss +16 -0
- package/src/core/jkl/_z-index.scss +23 -0
- package/src/core/styles/_color-tokens.scss +75 -0
- package/src/core/styles/_headings.scss +29 -0
- package/src/core/styles/_index.scss +10 -0
- package/src/core/styles/_legacy-tokens.scss +26 -0
- package/src/core/styles/_normalize.scss +250 -0
- package/src/core/styles/_paragraphs.scss +16 -0
- package/src/core/styles/_reset.scss +66 -0
- package/src/core/styles/_screen-reader.scss +9 -0
- package/src/core/styles/_spacing.scss +75 -0
- package/src/core/styles/_tokens.scss +114 -0
- package/src/core/styles/core.css +1614 -0
- package/src/core/styles/core.min.css +1 -0
- package/src/core/styles/core.scss +71 -0
- package/src/core/styles/vind/_flex.scss +113 -0
- package/src/core/styles/vind/_font.scss +19 -0
- package/src/core/styles/vind/_margin.scss +43 -0
- package/src/core/styles/vind/_padding.scss +43 -0
- package/src/core/styles/vind/_space-between.scss +13 -0
- package/src/core/styles/vind/_typography.scss +47 -0
- package/src/core/styles/vind/_vind.scss +6 -0
- package/src/core/styles/vind.css +1742 -0
- package/src/core/styles/vind.min.css +1 -0
- package/src/core/styles/vind.scss +3 -0
- package/src/core/tokens.less +196 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Tue, 10 Sep 2024 05:21:22 GMT
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: {
|
|
6
|
+
color: {
|
|
7
|
+
brand: {
|
|
8
|
+
snohvit: string;
|
|
9
|
+
varde: string;
|
|
10
|
+
granitt: string;
|
|
11
|
+
hvit: string;
|
|
12
|
+
svart: string;
|
|
13
|
+
skifer: string;
|
|
14
|
+
fjellgra: string;
|
|
15
|
+
stein: string;
|
|
16
|
+
svaberg: string;
|
|
17
|
+
dis: string;
|
|
18
|
+
sand: string;
|
|
19
|
+
};
|
|
20
|
+
functional: {
|
|
21
|
+
info: string;
|
|
22
|
+
infoDark: string;
|
|
23
|
+
success: string;
|
|
24
|
+
successDark: string;
|
|
25
|
+
warning: string;
|
|
26
|
+
warningDark: string;
|
|
27
|
+
error: string;
|
|
28
|
+
errorDark: string;
|
|
29
|
+
};
|
|
30
|
+
background: {
|
|
31
|
+
page: {
|
|
32
|
+
light: string;
|
|
33
|
+
dark: string;
|
|
34
|
+
};
|
|
35
|
+
pageVariant: {
|
|
36
|
+
light: string;
|
|
37
|
+
dark: string;
|
|
38
|
+
};
|
|
39
|
+
container: {
|
|
40
|
+
light: string;
|
|
41
|
+
dark: string;
|
|
42
|
+
};
|
|
43
|
+
containerLow: {
|
|
44
|
+
light: string;
|
|
45
|
+
dark: string;
|
|
46
|
+
};
|
|
47
|
+
containerHigh: {
|
|
48
|
+
light: string;
|
|
49
|
+
dark: string;
|
|
50
|
+
};
|
|
51
|
+
containerInverted: {
|
|
52
|
+
light: string;
|
|
53
|
+
dark: string;
|
|
54
|
+
};
|
|
55
|
+
containerSubdued: {
|
|
56
|
+
light: string;
|
|
57
|
+
dark: string;
|
|
58
|
+
};
|
|
59
|
+
input: {
|
|
60
|
+
base: {
|
|
61
|
+
light: string;
|
|
62
|
+
dark: string;
|
|
63
|
+
};
|
|
64
|
+
focus: {
|
|
65
|
+
light: string;
|
|
66
|
+
dark: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
action: {
|
|
70
|
+
light: string;
|
|
71
|
+
dark: string;
|
|
72
|
+
};
|
|
73
|
+
interactive: {
|
|
74
|
+
light: string;
|
|
75
|
+
dark: string;
|
|
76
|
+
};
|
|
77
|
+
interactiveHover: {
|
|
78
|
+
light: string;
|
|
79
|
+
dark: string;
|
|
80
|
+
};
|
|
81
|
+
interactiveSelected: {
|
|
82
|
+
light: string;
|
|
83
|
+
dark: string;
|
|
84
|
+
};
|
|
85
|
+
alert: {
|
|
86
|
+
neutral: {
|
|
87
|
+
light: string;
|
|
88
|
+
dark: string;
|
|
89
|
+
};
|
|
90
|
+
info: {
|
|
91
|
+
light: string;
|
|
92
|
+
dark: string;
|
|
93
|
+
};
|
|
94
|
+
success: {
|
|
95
|
+
light: string;
|
|
96
|
+
dark: string;
|
|
97
|
+
};
|
|
98
|
+
warning: {
|
|
99
|
+
light: string;
|
|
100
|
+
dark: string;
|
|
101
|
+
};
|
|
102
|
+
error: {
|
|
103
|
+
light: string;
|
|
104
|
+
dark: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
text: {
|
|
109
|
+
default: {
|
|
110
|
+
light: string;
|
|
111
|
+
dark: string;
|
|
112
|
+
};
|
|
113
|
+
subdued: {
|
|
114
|
+
light: string;
|
|
115
|
+
dark: string;
|
|
116
|
+
};
|
|
117
|
+
inverted: {
|
|
118
|
+
light: string;
|
|
119
|
+
dark: string;
|
|
120
|
+
};
|
|
121
|
+
onAction: {
|
|
122
|
+
light: string;
|
|
123
|
+
dark: string;
|
|
124
|
+
};
|
|
125
|
+
interactive: {
|
|
126
|
+
light: string;
|
|
127
|
+
dark: string;
|
|
128
|
+
};
|
|
129
|
+
interactiveHover: {
|
|
130
|
+
light: string;
|
|
131
|
+
dark: string;
|
|
132
|
+
};
|
|
133
|
+
onAlert: {
|
|
134
|
+
light: string;
|
|
135
|
+
dark: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
border: {
|
|
139
|
+
action: {
|
|
140
|
+
light: string;
|
|
141
|
+
dark: string;
|
|
142
|
+
};
|
|
143
|
+
input: {
|
|
144
|
+
light: string;
|
|
145
|
+
dark: string;
|
|
146
|
+
};
|
|
147
|
+
inputFocus: {
|
|
148
|
+
light: string;
|
|
149
|
+
dark: string;
|
|
150
|
+
};
|
|
151
|
+
separator: {
|
|
152
|
+
light: string;
|
|
153
|
+
dark: string;
|
|
154
|
+
};
|
|
155
|
+
separatorStrong: {
|
|
156
|
+
light: string;
|
|
157
|
+
dark: string;
|
|
158
|
+
};
|
|
159
|
+
separatorHover: {
|
|
160
|
+
light: string;
|
|
161
|
+
dark: string;
|
|
162
|
+
};
|
|
163
|
+
subdued: {
|
|
164
|
+
light: string;
|
|
165
|
+
dark: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
svart: string;
|
|
169
|
+
granitt: string;
|
|
170
|
+
skifer: string;
|
|
171
|
+
fjellgra: string;
|
|
172
|
+
stein: string;
|
|
173
|
+
svaberg: string;
|
|
174
|
+
varde: string;
|
|
175
|
+
dis: string;
|
|
176
|
+
sand: string;
|
|
177
|
+
snohvit: string;
|
|
178
|
+
hvit: string;
|
|
179
|
+
suksess: string;
|
|
180
|
+
suksessDark: string;
|
|
181
|
+
feil: string;
|
|
182
|
+
feilDark: string;
|
|
183
|
+
info: string;
|
|
184
|
+
infoDark: string;
|
|
185
|
+
advarsel: string;
|
|
186
|
+
advarselDark: string;
|
|
187
|
+
};
|
|
188
|
+
spacing: {
|
|
189
|
+
0: string;
|
|
190
|
+
2: string;
|
|
191
|
+
4: string;
|
|
192
|
+
8: string;
|
|
193
|
+
12: string;
|
|
194
|
+
16: string;
|
|
195
|
+
24: string;
|
|
196
|
+
32: string;
|
|
197
|
+
40: string;
|
|
198
|
+
64: string;
|
|
199
|
+
104: string;
|
|
200
|
+
168: string;
|
|
201
|
+
};
|
|
202
|
+
icon: {
|
|
203
|
+
weight: {
|
|
204
|
+
normal: string;
|
|
205
|
+
bold: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
typography: {
|
|
209
|
+
weight: {
|
|
210
|
+
normal: string;
|
|
211
|
+
bold: string;
|
|
212
|
+
};
|
|
213
|
+
font: {
|
|
214
|
+
size: {
|
|
215
|
+
16: string;
|
|
216
|
+
18: string;
|
|
217
|
+
20: string;
|
|
218
|
+
21: string;
|
|
219
|
+
23: string;
|
|
220
|
+
25: string;
|
|
221
|
+
26: string;
|
|
222
|
+
28: string;
|
|
223
|
+
30: string;
|
|
224
|
+
36: string;
|
|
225
|
+
44: string;
|
|
226
|
+
56: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
line: {
|
|
230
|
+
height: {
|
|
231
|
+
24: string;
|
|
232
|
+
28: string;
|
|
233
|
+
32: string;
|
|
234
|
+
36: string;
|
|
235
|
+
40: string;
|
|
236
|
+
44: string;
|
|
237
|
+
52: string;
|
|
238
|
+
64: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
title: {
|
|
242
|
+
small: {
|
|
243
|
+
fontSize: string;
|
|
244
|
+
lineHeight: string;
|
|
245
|
+
fontWeight: string;
|
|
246
|
+
};
|
|
247
|
+
base: {
|
|
248
|
+
fontSize: string;
|
|
249
|
+
lineHeight: string;
|
|
250
|
+
fontWeight: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
titleSmall: {
|
|
254
|
+
small: {
|
|
255
|
+
fontSize: string;
|
|
256
|
+
lineHeight: string;
|
|
257
|
+
fontWeight: string;
|
|
258
|
+
};
|
|
259
|
+
base: {
|
|
260
|
+
fontSize: string;
|
|
261
|
+
lineHeight: string;
|
|
262
|
+
fontWeight: string;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
heading_1: {
|
|
266
|
+
small: {
|
|
267
|
+
fontSize: string;
|
|
268
|
+
lineHeight: string;
|
|
269
|
+
fontWeight: string;
|
|
270
|
+
};
|
|
271
|
+
base: {
|
|
272
|
+
fontSize: string;
|
|
273
|
+
lineHeight: string;
|
|
274
|
+
fontWeight: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
heading_2: {
|
|
278
|
+
small: {
|
|
279
|
+
fontSize: string;
|
|
280
|
+
lineHeight: string;
|
|
281
|
+
fontWeight: string;
|
|
282
|
+
};
|
|
283
|
+
base: {
|
|
284
|
+
fontSize: string;
|
|
285
|
+
lineHeight: string;
|
|
286
|
+
fontWeight: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
heading_3: {
|
|
290
|
+
small: {
|
|
291
|
+
fontSize: string;
|
|
292
|
+
lineHeight: string;
|
|
293
|
+
fontWeight: string;
|
|
294
|
+
};
|
|
295
|
+
base: {
|
|
296
|
+
fontSize: string;
|
|
297
|
+
lineHeight: string;
|
|
298
|
+
fontWeight: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
heading_4: {
|
|
302
|
+
small: {
|
|
303
|
+
fontSize: string;
|
|
304
|
+
lineHeight: string;
|
|
305
|
+
fontWeight: string;
|
|
306
|
+
};
|
|
307
|
+
base: {
|
|
308
|
+
fontSize: string;
|
|
309
|
+
lineHeight: string;
|
|
310
|
+
fontWeight: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
heading_5: {
|
|
314
|
+
small: {
|
|
315
|
+
fontSize: string;
|
|
316
|
+
lineHeight: string;
|
|
317
|
+
fontWeight: string;
|
|
318
|
+
};
|
|
319
|
+
base: {
|
|
320
|
+
fontSize: string;
|
|
321
|
+
lineHeight: string;
|
|
322
|
+
fontWeight: string;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
body: {
|
|
326
|
+
small: {
|
|
327
|
+
fontSize: string;
|
|
328
|
+
lineHeight: string;
|
|
329
|
+
fontWeight: string;
|
|
330
|
+
};
|
|
331
|
+
base: {
|
|
332
|
+
fontSize: string;
|
|
333
|
+
lineHeight: string;
|
|
334
|
+
fontWeight: string;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
small: {
|
|
338
|
+
small: {
|
|
339
|
+
fontSize: string;
|
|
340
|
+
lineHeight: string;
|
|
341
|
+
fontWeight: string;
|
|
342
|
+
};
|
|
343
|
+
base: {
|
|
344
|
+
fontSize: string;
|
|
345
|
+
lineHeight: string;
|
|
346
|
+
fontWeight: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface DataTestAutoId {
|
|
3
|
+
"data-testautoid"?: string;
|
|
4
|
+
}
|
|
5
|
+
export type ColorScheme = "light" | "dark";
|
|
6
|
+
export type ValuePair = {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Etter React 18 er ikke children lenger en _implicit type_. Tanken er at
|
|
13
|
+
* TypeScript skal kunne oppdage når komponenten forventer children og ikke
|
|
14
|
+
* får det, eller at komponenten blir _gitt_ children men ikke forventer det.
|
|
15
|
+
*
|
|
16
|
+
* Om komponenten din ikke tar i mot children er det i prinsippet ikke noe du
|
|
17
|
+
* trenger å gjøre. Om den derimot tar i mot children bør du spesifisere det.
|
|
18
|
+
* Dersom de er valgfrie (for eksempel om du har en standardverdi) bruker du
|
|
19
|
+
* WithOptionalChildren.
|
|
20
|
+
*
|
|
21
|
+
* @see WithOptionalChildren
|
|
22
|
+
* @see https://solverfox.dev/writing/no-implicit-children/
|
|
23
|
+
*/
|
|
24
|
+
export interface WithChildren {
|
|
25
|
+
children: ReactNode | ReactNode[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Etter React 18 er ikke children lenger en _implicit type_. Tanken er at
|
|
29
|
+
* TypeScript skal kunne oppdage når komponenten forventer children og ikke
|
|
30
|
+
* får det, eller at komponenten blir _gitt_ children men ikke forventer det.
|
|
31
|
+
*
|
|
32
|
+
* Om komponenten din ikke tar i mot children er det i prinsippet ikke noe du
|
|
33
|
+
* trenger å gjøre. Om den derimot tar i mot children bør du spesifisere det.
|
|
34
|
+
*
|
|
35
|
+
* Om du alltid forventer å få children, bruk WithChildren.
|
|
36
|
+
*
|
|
37
|
+
* @see WithChildren
|
|
38
|
+
* @see https://solverfox.dev/writing/no-implicit-children/
|
|
39
|
+
*/
|
|
40
|
+
export interface WithOptionalChildren {
|
|
41
|
+
children?: ReactNode | ReactNode[];
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Density = "comfortable" | "compact";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { initTabListener } from './tabListener';
|
|
2
|
+
export { getValuePair } from './getValuePair';
|
|
3
|
+
export { breakpoints } from './breakpoints';
|
|
4
|
+
export type { Density } from './density';
|
|
5
|
+
export type { Timing, Easing } from './motion';
|
|
6
|
+
export { timings, easings } from './motion';
|
|
7
|
+
export { type PossibleRef, mergeRefs } from './mergeRefs';
|
|
8
|
+
export { mergeProps } from './mergeProps';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type Easing = keyof typeof easings;
|
|
2
|
+
export declare const easings: Readonly<{
|
|
3
|
+
standard: "ease";
|
|
4
|
+
entrance: "ease-out";
|
|
5
|
+
exit: "ease-in";
|
|
6
|
+
easeInBounceOut: "cubic-bezier(0, 0, 0.375, 1.17)";
|
|
7
|
+
focus: "cubic-bezier(0.6, 0.2, 0.35, 1)";
|
|
8
|
+
}>;
|
|
9
|
+
export type Timing = keyof typeof timings;
|
|
10
|
+
export declare const timings: Readonly<{
|
|
11
|
+
energetic: "75ms";
|
|
12
|
+
snappy: "100ms";
|
|
13
|
+
productive: "150ms";
|
|
14
|
+
expressive: "250ms";
|
|
15
|
+
lazy: "400ms";
|
|
16
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initTabListener(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenReaderOnly.js","sources":["../../../src/components/ScreenReaderOnly.tsx"],"sourcesContent":["import React, { FC } from \"react\";\nimport type { WithChildren } from \"../core\";\n\nexport interface ScreenReaderOnlyProps extends WithChildren {\n showOnFocus?: boolean;\n}\n\nexport const ScreenReaderOnly: FC<ScreenReaderOnlyProps> = ({ children, showOnFocus, ...rest }) => (\n <span {...rest} className={`jkl-sr-only${showOnFocus ? \" jkl-sr-only--focusable\" : \"\"}`}>\n {children}\n </span>\n);\n"],"names":["ScreenReaderOnly","children","showOnFocus","rest","jsx","className"],"mappings":"wCAOO,MAAMA,EAA8C,EAAGC,SAAAA,EAAUC,YAAAA,KAAgBC,KACpFC,EAAC,OAAM,IAAGD,EAAME,UAAW,eAAcH,EAAc,0BAA4B,IAC9ED,SAAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";import{mergeRefs as r}from"../core/utils/mergeRefs.js";import{mergeProps as o}from"../core/utils/mergeProps.js";const n=e.forwardRef((function({children:n,...t},m){if(e.isValidElement(n))return e.cloneElement(n,{...o(t,n.props),ref:r(m,n.ref)});if(e.Children.count(n)>1)throw new Error("Du kan kun bruke ett enkelt React-element som children i en komponent med asChild");return null}));export{n as SlotComponent};
|
|
2
|
+
//# sourceMappingURL=SlotComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlotComponent.js","sources":["../../../src/components/SlotComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { mergeRefs, mergeProps } from \"../core/utils\";\n\nexport type SlotComponentProps = React.HTMLAttributes<HTMLElement> & {\n children: React.ReactElement | false | null;\n};\n\nexport const SlotComponent = React.forwardRef<HTMLElement, SlotComponentProps>(function SlotComponent(\n { children, ...slotProps },\n forwardedRef,\n) {\n if (React.isValidElement(children)) {\n return React.cloneElement(children as React.ReactElement, {\n ...mergeProps(slotProps, children.props),\n ref: mergeRefs(forwardedRef, (children as any).ref),\n });\n }\n\n if (React.Children.count(children) > 1) {\n throw new Error(\"Du kan kun bruke ett enkelt React-element som children i en komponent med asChild\");\n }\n\n return null;\n});\n"],"names":["SlotComponent","React","forwardRef","children","slotProps","forwardedRef","isValidElement","cloneElement","mergeProps","props","ref","mergeRefs","Children","count","Error"],"mappings":"qIAOa,MAAAA,EAAgBC,EAAMC,YAA4C,UACzEC,SAAAA,KAAaC,GACfC,GAEIJ,GAAAA,EAAMK,eAAeH,GACdF,OAAAA,EAAMM,aAAaJ,EAAgC,IACnDK,EAAWJ,EAAWD,EAASM,OAClCC,IAAKC,EAAUN,EAAeF,EAAiBO,OAIvD,GAAIT,EAAMW,SAASC,MAAMV,GAAY,EAC3B,MAAA,IAAIW,MAAM,qFAGb,OAAA,IACX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.js","sources":["../../../../src/components/navigation/Link.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport React, { AnchorHTMLAttributes, FC } from \"react\";\n\nexport interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n external?: boolean;\n}\n\nexport const Link: FC<LinkProps> = ({ external = false, className = \"\", children, ...rest }) => (\n <a\n className={clsx(\"jkl-link\", className, {\n \"jkl-link--external\": external,\n })}\n {...rest}\n >\n {children}\n </a>\n);\n"],"names":["Link","external","className","children","rest","jsx","clsx"],"mappings":"sFAOa,MAAAA,EAAsB,EAAGC,SAAAA,GAAW,EAAOC,UAAAA,EAAY,GAAIC,SAAAA,KAAaC,KACjFC,EAAC,IAAA,CACGH,UAAWI,EAAK,WAAYJ,EAAW,CACnC,qBAAsBD,OAEtBG,EAEHD,SAAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{c}from"../../../clsx-BeLtu-UY.js";const i=({active:i=!1,back:l=!1,className:n,children:s,...e})=>a("a",{className:c("jkl-nav-link",{"jkl-nav-link--active":i,"jkl-nav-link--back":l},n),...e,children:s});export{i as NavLink};
|
|
2
|
+
//# sourceMappingURL=NavLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavLink.js","sources":["../../../../src/components/navigation/NavLink.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport React, { AnchorHTMLAttributes, FC } from \"react\";\n\nexport interface NavLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n active?: boolean;\n back?: boolean;\n}\n\nexport const NavLink: FC<NavLinkProps> = ({ active = false, back = false, className, children, ...rest }) => (\n <a\n className={clsx(\n \"jkl-nav-link\",\n {\n \"jkl-nav-link--active\": active,\n \"jkl-nav-link--back\": back,\n },\n className,\n )}\n {...rest}\n >\n {children}\n </a>\n);\n"],"names":["NavLink","active","back","className","children","rest","jsx","clsx"],"mappings":"iFAQa,MAAAA,EAA4B,EAAGC,OAAAA,GAAS,EAAOC,KAAAA,GAAO,EAAOC,UAAAA,EAAWC,SAAAA,KAAaC,KAC9FC,EAAC,IAAA,CACGH,UAAWI,EACP,eACA,CACI,uBAAwBN,EACxB,qBAAsBC,GAE1BC,MAEAE,EAEHD,SAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"as-child.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{initTabListener as s}from"./utils/tabListener.js";import{getValuePair as e}from"./utils/getValuePair.js";import{breakpoints as i}from"./utils/breakpoints.js";import{easings as r,timings as t}from"./utils/motion.js";import{mergeRefs as a}from"./utils/mergeRefs.js";import{mergeProps as o}from"./utils/mergeProps.js";import{default as m}from"./tokens.js";export{i as breakpoints,r as easings,e as getValuePair,s as initTabListener,o as mergeProps,a as mergeRefs,t as timings,m as tokens};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polymorphism.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e={color:{brand:{snohvit:"#F9F9F9",varde:"#E0DBD4",granitt:"#1B1917",hvit:"#FFFFFF",svart:"#000000",skifer:"#313030",fjellgra:"#444141",stein:"#636060",svaberg:"#C8C5C3",dis:"#ECE9E5",sand:"#F4F2EF"},functional:{info:"#D3D3F6",infoDark:"#A9A9CA",success:"#ACD3B5",successDark:"#94B79B",warning:"#EFDD9E",warningDark:"#DECC8D",error:"#F6B3B3",errorDark:"#DE9E9E"},background:{page:{light:"#F4F2EF",dark:"#1B1917"},pageVariant:{light:"#F9F9F9",dark:"#1B1917"},container:{light:"#F9F9F9",dark:"#313030"},containerLow:{light:"#ECE9E5",dark:"#000000"},containerHigh:{light:"#FFFFFF",dark:"#313030"},containerInverted:{light:"#1B1917",dark:"#F9F9F9"},containerSubdued:{light:"#C8C5C3",dark:"#636060"},input:{base:{light:"transparent",dark:"transparent"},focus:{light:"#FFFFFF",dark:"#313030"}},action:{light:"#1B1917",dark:"#F9F9F9"},interactive:{light:"transparent",dark:"transparent"},interactiveHover:{light:"#ECE9E5",dark:"#444141"},interactiveSelected:{light:"#E0DBD4",dark:"#636060"},alert:{neutral:{light:"#E0DBD4",dark:"#E0DBD4"},info:{light:"#D3D3F6",dark:"#A9A9CA"},success:{light:"#ACD3B5",dark:"#94B79B"},warning:{light:"#EFDD9E",dark:"#DECC8D"},error:{light:"#F6B3B3",dark:"#DE9E9E"}}},text:{default:{light:"#1B1917",dark:"#F9F9F9"},subdued:{light:"#636060",dark:"#C8C5C3"},inverted:{light:"#F9F9F9",dark:"#1B1917"},onAction:{light:"#F9F9F9",dark:"#1B1917"},interactive:{light:"#1B1917",dark:"#F9F9F9"},interactiveHover:{light:"#636060",dark:"#C8C5C3"},onAlert:{light:"#1B1917",dark:"#1B1917"}},border:{action:{light:"#1B1917",dark:"#F9F9F9"},input:{light:"#636060",dark:"#C8C5C3"},inputFocus:{light:"#1B1917",dark:"#F9F9F9"},separator:{light:"#C8C5C3",dark:"#636060"},separatorStrong:{light:"#636060",dark:"#C8C5C3"},separatorHover:{light:"#1B1917",dark:"#F9F9F9"},subdued:{light:"#C8C5C3",dark:"#636060"}},svart:"#000",granitt:"#1b1917",skifer:"#313030",fjellgra:"#444141",stein:"#636060",svaberg:"#c8c5c3",varde:"#e0dbd4",dis:"#ece9e5",sand:"#f4f2ef",snohvit:"#f9f9f9",hvit:"#fff",suksess:"#acd3b5",suksessDark:"#94b79b",feil:"#f6b3b3",feilDark:"#de9e9e",info:"#d3d3f6",infoDark:"#a9a9ca",advarsel:"#efdd9e",advarselDark:"#decc8d"},spacing:{0:"0",2:"0.125rem",4:"0.25rem",8:"0.5rem",12:"0.75rem",16:"1rem",24:"1.5rem",32:"2rem",40:"2.5rem",64:"4rem",104:"6.5rem",168:"10.5rem"},icon:{weight:{normal:"300",bold:"500"}},typography:{weight:{normal:"400",bold:"700"},font:{size:{16:"1rem",18:"1.125rem",20:"1.25rem",21:"1.3125rem",23:"1.4375rem",25:"1.5625rem",26:"1.625rem",28:"1.75rem",30:"1.875rem",36:"2.25rem",44:"2.75rem",56:"3.5rem"}},line:{height:{24:"1.5rem",28:"1.75rem",32:"2rem",36:"2.25rem",40:"2.5rem",44:"2.75rem",52:"3.25rem",64:"4rem"}},title:{small:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"},base:{fontSize:"3.5rem",lineHeight:"4rem",fontWeight:"400"}},titleSmall:{small:{fontSize:"1.875rem",lineHeight:"2.25rem",fontWeight:"400"},base:{fontSize:"2.75rem",lineHeight:"3.25rem",fontWeight:"400"}},heading_1:{small:{fontSize:"1.625rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"2.25rem",lineHeight:"2.75rem",fontWeight:"400"}},heading_2:{small:{fontSize:"1.4375rem",lineHeight:"2rem",fontWeight:"400"},base:{fontSize:"1.75rem",lineHeight:"2.5rem",fontWeight:"400"}},heading_3:{small:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"},base:{fontSize:"1.5625rem",lineHeight:"2rem",fontWeight:"700"}},heading_4:{small:{fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1.3125rem",lineHeight:"1.75rem",fontWeight:"700"}},heading_5:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"}},body:{small:{fontSize:"1.125rem",lineHeight:"1.75rem",fontWeight:"400"},base:{fontSize:"1.25rem",lineHeight:"2rem",fontWeight:"400"}},small:{small:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"},base:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"400"}}}};export{e as default};
|
|
2
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sources":["../../../src/core/tokens.ts"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Tue, 10 Sep 2024 05:21:22 GMT\n */\n\nexport default {\n color: {\n brand: {\n snohvit: \"#F9F9F9\",\n varde: \"#E0DBD4\",\n granitt: \"#1B1917\",\n hvit: \"#FFFFFF\",\n svart: \"#000000\",\n skifer: \"#313030\",\n fjellgra: \"#444141\",\n stein: \"#636060\",\n svaberg: \"#C8C5C3\",\n dis: \"#ECE9E5\",\n sand: \"#F4F2EF\",\n },\n functional: {\n info: \"#D3D3F6\",\n infoDark: \"#A9A9CA\",\n success: \"#ACD3B5\",\n successDark: \"#94B79B\",\n warning: \"#EFDD9E\",\n warningDark: \"#DECC8D\",\n error: \"#F6B3B3\",\n errorDark: \"#DE9E9E\",\n },\n background: {\n page: {\n light: \"#F4F2EF\",\n dark: \"#1B1917\",\n },\n pageVariant: {\n light: \"#F9F9F9\",\n dark: \"#1B1917\",\n },\n container: {\n light: \"#F9F9F9\",\n dark: \"#313030\",\n },\n containerLow: {\n light: \"#ECE9E5\",\n dark: \"#000000\",\n },\n containerHigh: {\n light: \"#FFFFFF\",\n dark: \"#313030\",\n },\n containerInverted: {\n light: \"#1B1917\",\n dark: \"#F9F9F9\",\n },\n containerSubdued: {\n light: \"#C8C5C3\",\n dark: \"#636060\",\n },\n input: {\n base: {\n light: \"transparent\",\n dark: \"transparent\",\n },\n focus: {\n light: \"#FFFFFF\",\n dark: \"#313030\",\n },\n },\n action: {\n light: \"#1B1917\",\n dark: \"#F9F9F9\",\n },\n interactive: {\n light: \"transparent\",\n dark: \"transparent\",\n },\n interactiveHover: {\n light: \"#ECE9E5\",\n dark: \"#444141\",\n },\n interactiveSelected: {\n light: \"#E0DBD4\",\n dark: \"#636060\",\n },\n alert: {\n neutral: {\n light: \"#E0DBD4\",\n dark: \"#E0DBD4\",\n },\n info: {\n light: \"#D3D3F6\",\n dark: \"#A9A9CA\",\n },\n success: {\n light: \"#ACD3B5\",\n dark: \"#94B79B\",\n },\n warning: {\n light: \"#EFDD9E\",\n dark: \"#DECC8D\",\n },\n error: {\n light: \"#F6B3B3\",\n dark: \"#DE9E9E\",\n },\n },\n },\n text: {\n default: {\n light: \"#1B1917\",\n dark: \"#F9F9F9\",\n },\n subdued: {\n light: \"#636060\",\n dark: \"#C8C5C3\",\n },\n inverted: {\n light: \"#F9F9F9\",\n dark: \"#1B1917\",\n },\n onAction: {\n light: \"#F9F9F9\",\n dark: \"#1B1917\",\n },\n interactive: {\n light: \"#1B1917\",\n dark: \"#F9F9F9\",\n },\n interactiveHover: {\n light: \"#636060\",\n dark: \"#C8C5C3\",\n },\n onAlert: {\n light: \"#1B1917\",\n dark: \"#1B1917\",\n },\n },\n border: {\n action: {\n light: \"#1B1917\",\n dark: \"#F9F9F9\",\n },\n input: {\n light: \"#636060\",\n dark: \"#C8C5C3\",\n },\n inputFocus: {\n light: \"#1B1917\",\n dark: \"#F9F9F9\",\n },\n separator: {\n light: \"#C8C5C3\",\n dark: \"#636060\",\n },\n separatorStrong: {\n light: \"#636060\",\n dark: \"#C8C5C3\",\n },\n separatorHover: {\n light: \"#1B1917\",\n dark: \"#F9F9F9\",\n },\n subdued: {\n light: \"#C8C5C3\",\n dark: \"#636060\",\n },\n },\n svart: \"#000\",\n granitt: \"#1b1917\",\n skifer: \"#313030\",\n fjellgra: \"#444141\",\n stein: \"#636060\",\n svaberg: \"#c8c5c3\",\n varde: \"#e0dbd4\",\n dis: \"#ece9e5\",\n sand: \"#f4f2ef\",\n snohvit: \"#f9f9f9\",\n hvit: \"#fff\",\n suksess: \"#acd3b5\",\n suksessDark: \"#94b79b\",\n feil: \"#f6b3b3\",\n feilDark: \"#de9e9e\",\n info: \"#d3d3f6\",\n infoDark: \"#a9a9ca\",\n advarsel: \"#efdd9e\",\n advarselDark: \"#decc8d\",\n },\n spacing: {\n 0: \"0\",\n 2: \"0.125rem\",\n 4: \"0.25rem\",\n 8: \"0.5rem\",\n 12: \"0.75rem\",\n 16: \"1rem\",\n 24: \"1.5rem\",\n 32: \"2rem\",\n 40: \"2.5rem\",\n 64: \"4rem\",\n 104: \"6.5rem\",\n 168: \"10.5rem\",\n },\n icon: {\n weight: {\n normal: \"300\",\n bold: \"500\",\n },\n },\n typography: {\n weight: {\n normal: \"400\",\n bold: \"700\",\n },\n font: {\n size: {\n 16: \"1rem\",\n 18: \"1.125rem\",\n 20: \"1.25rem\",\n 21: \"1.3125rem\",\n 23: \"1.4375rem\",\n 25: \"1.5625rem\",\n 26: \"1.625rem\",\n 28: \"1.75rem\",\n 30: \"1.875rem\",\n 36: \"2.25rem\",\n 44: \"2.75rem\",\n 56: \"3.5rem\",\n },\n },\n line: {\n height: {\n 24: \"1.5rem\",\n 28: \"1.75rem\",\n 32: \"2rem\",\n 36: \"2.25rem\",\n 40: \"2.5rem\",\n 44: \"2.75rem\",\n 52: \"3.25rem\",\n 64: \"4rem\",\n },\n },\n title: {\n small: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"3.5rem\",\n lineHeight: \"4rem\",\n fontWeight: \"400\",\n },\n },\n titleSmall: {\n small: {\n fontSize: \"1.875rem\",\n lineHeight: \"2.25rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.75rem\",\n lineHeight: \"3.25rem\",\n fontWeight: \"400\",\n },\n },\n heading_1: {\n small: {\n fontSize: \"1.625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"2.25rem\",\n lineHeight: \"2.75rem\",\n fontWeight: \"400\",\n },\n },\n heading_2: {\n small: {\n fontSize: \"1.4375rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.75rem\",\n lineHeight: \"2.5rem\",\n fontWeight: \"400\",\n },\n },\n heading_3: {\n small: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.5625rem\",\n lineHeight: \"2rem\",\n fontWeight: \"700\",\n },\n },\n heading_4: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1.3125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"700\",\n },\n },\n heading_5: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n base: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"700\",\n },\n },\n body: {\n small: {\n fontSize: \"1.125rem\",\n lineHeight: \"1.75rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1.25rem\",\n lineHeight: \"2rem\",\n fontWeight: \"400\",\n },\n },\n small: {\n small: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"400\",\n },\n base: {\n fontSize: \"1rem\",\n lineHeight: \"1.5rem\",\n fontWeight: \"400\",\n },\n },\n },\n};\n"],"names":["tokens","color","brand","snohvit","varde","granitt","hvit","svart","skifer","fjellgra","stein","svaberg","dis","sand","functional","info","infoDark","success","successDark","warning","warningDark","error","errorDark","background","page","light","dark","pageVariant","container","containerLow","containerHigh","containerInverted","containerSubdued","input","base","focus","action","interactive","interactiveHover","interactiveSelected","alert","neutral","text","default","subdued","inverted","onAction","onAlert","border","inputFocus","separator","separatorStrong","separatorHover","suksess","suksessDark","feil","feilDark","advarsel","advarselDark","spacing","icon","weight","normal","bold","typography","font","size","line","height","title","small","fontSize","lineHeight","fontWeight","titleSmall","heading_1","heading_2","heading_3","heading_4","heading_5","body"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints.js","sources":["../../../../src/core/utils/breakpoints.ts"],"sourcesContent":["export type Breakpoint = keyof typeof breakpoints;\n\nexport const breakpoints = {\n medium: 680,\n large: 1200,\n xl: 1600,\n};\n"],"names":["breakpoints","medium","large","xl"],"mappings":"AAEO,MAAMA,EAAc,CACvBC,OAAQ,IACRC,MAAO,KACPC,GAAI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"density.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getValuePair.js","sources":["../../../../src/core/utils/getValuePair.ts"],"sourcesContent":["import { ValuePair } from \"../index\";\n\nexport function getValuePair(item: string | ValuePair): ValuePair {\n return typeof item === \"string\" ? { value: item, label: item } : item;\n}\n"],"names":["getValuePair","item","value","label"],"mappings":"AAEO,SAASA,EAAaC,GAClB,MAAgB,iBAATA,EAAoB,CAAEC,MAAOD,EAAME,MAAOF,GAASA,CACrE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{initTabListener as s}from"./tabListener.js";import{getValuePair as e}from"./getValuePair.js";import{breakpoints as r}from"./breakpoints.js";import{easings as a,timings as i}from"./motion.js";import{mergeRefs as t}from"./mergeRefs.js";import{mergeProps as m}from"./mergeProps.js";export{r as breakpoints,a as easings,e as getValuePair,s as initTabListener,m as mergeProps,t as mergeRefs,i as timings};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function o(o,n){const t={...n};for(const e in n){const s=o[e],r=n[e];/^on[A-Z]/.test(e)&&(s&&r?t[e]=(...o)=>{r(...o),s(...o)}:s&&(t[e]=s)),"style"===e&&(t[e]={...s,...r}),"className"===e&&(t[e]=[s,r].filter(Boolean).join(" "))}return{...o,...t}}export{o as mergeProps};
|
|
2
|
+
//# sourceMappingURL=mergeProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeProps.js","sources":["../../../../src/core/utils/mergeProps.ts"],"sourcesContent":["export function mergeProps(baseProps: Record<string, any>, addedProps: Record<string, any>) {\n const overrides = { ...addedProps };\n\n for (const prop in addedProps) {\n const basePropValue = baseProps[prop];\n const addedPropValue = addedProps[prop];\n\n if (/^on[A-Z]/.test(prop)) {\n // Propen er en event handler. Slå sammen hvis\n // den finnes på både base og added\n if (basePropValue && addedPropValue) {\n overrides[prop] = (...args: unknown[]) => {\n addedPropValue(...args);\n basePropValue(...args);\n };\n } else if (basePropValue) {\n overrides[prop] = basePropValue;\n }\n }\n\n if (prop === \"style\") {\n overrides[prop] = { ...basePropValue, ...addedPropValue };\n }\n\n if (prop === \"className\") {\n overrides[prop] = [basePropValue, addedPropValue].filter(Boolean).join(\" \");\n }\n }\n\n return { ...baseProps, ...overrides };\n}\n"],"names":["mergeProps","baseProps","addedProps","overrides","prop","basePropValue","addedPropValue","test","args","filter","Boolean","join"],"mappings":"AAAgB,SAAAA,EAAWC,EAAgCC,GACjDC,MAAAA,EAAY,IAAKD,GAEvB,IAAA,MAAWE,KAAQF,EAAY,CACrB,MAAAG,EAAgBJ,EAAUG,GAC1BE,EAAiBJ,EAAWE,GAE9B,WAAWG,KAAKH,KAGZC,GAAiBC,EACPH,EAAAC,GAAQ,IAAII,KAClBF,KAAkBE,GAClBH,KAAiBG,EAAI,EAElBH,IACPF,EAAUC,GAAQC,IAIb,UAATD,IACAD,EAAUC,GAAQ,IAAKC,KAAkBC,IAGhC,cAATF,IACUD,EAAAC,GAAQ,CAACC,EAAeC,GAAgBG,OAAOC,SAASC,KAAK,KAE/E,CAEA,MAAO,IAAKV,KAAcE,EAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeRefs.js","sources":["../../../../src/core/utils/mergeRefs.ts"],"sourcesContent":["import React from \"react\";\n\nexport type PossibleRef<T> = React.LegacyRef<T> | undefined;\n\nexport function mergeRefs<T>(...possibleRefs: PossibleRef<T>[]): React.RefCallback<T> {\n return (instance) =>\n possibleRefs.forEach((ref) => {\n if (typeof ref === \"function\") {\n ref(instance);\n } else if (ref !== null && ref !== undefined) {\n (ref as React.MutableRefObject<T | null>).current = instance;\n }\n });\n}\n"],"names":["mergeRefs","possibleRefs","instance","forEach","ref","current"],"mappings":"AAIO,SAASA,KAAgBC,GAC5B,OAAQC,GACJD,EAAaE,SAASC,IACC,mBAARA,EACPA,EAAIF,GACW,MAARE,IACNA,EAAyCC,QAAUH,EAAAA,GAGpE"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=Object.freeze({standard:"ease",entrance:"ease-out",exit:"ease-in",easeInBounceOut:"cubic-bezier(0, 0, 0.375, 1.17)",focus:"cubic-bezier(0.6, 0.2, 0.35, 1)"}),s=Object.freeze({energetic:"75ms",snappy:"100ms",productive:"150ms",expressive:"250ms",lazy:"400ms"});export{e as easings,s as timings};
|
|
2
|
+
//# sourceMappingURL=motion.js.map
|