Start organizational migration
This commit is contained in:
1 parent
69074b23f3
commit
db3c0274f6
161 files changed
+145
-145
No files matched your search
@@ -7,14 +7,14 @@ import {
|
|||||||
type BlogPost,
|
type BlogPost,
|
||||||
} from "../../../lib/content";
|
} from "../../../lib/content";
|
||||||
import { logger } from "../../../lib/logger";
|
import { logger } from "../../../lib/logger";
|
||||||
import ContentBanner from "../../components/ContentBanner";
|
import ContentBanner from "../../components/sections/ContentBanner";
|
||||||
import AskOrganizer from "../../components/AskOrganizer";
|
import AskOrganizer from "../../components/sections/AskOrganizer";
|
||||||
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
||||||
import "../blog.css";
|
import "../blog.css";
|
||||||
|
|
||||||
// Code split RelatedArticles - blog-specific, below the fold
|
// Code split RelatedArticles - blog-specific, below the fold
|
||||||
const RelatedArticles = dynamic(
|
const RelatedArticles = dynamic(
|
||||||
() => import("../../components/RelatedArticles"),
|
() => import("../../components/sections/RelatedArticles"),
|
||||||
{
|
{
|
||||||
loading: () => (
|
loading: () => (
|
||||||
<section className="py-[var(--spacing-scale-032)] min-h-[400px]" />
|
<section className="py-[var(--spacing-scale-032)] min-h-[400px]" />
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import RuleCard from "../components/RuleCard";
|
import RuleCard from "../components/cards/RuleCard";
|
||||||
import Chip from "../components/Chip";
|
import Chip from "../components/controls/Chip";
|
||||||
import MultiSelect from "../components/MultiSelect";
|
import MultiSelect from "../components/controls/MultiSelect";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { getAssetPath } from "../../lib/assetUtils";
|
import { getAssetPath } from "../../lib/assetUtils";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import HomeHeader from "../HomeHeader";
|
import HomeHeader from "../navigation/HomeHeader";
|
||||||
import Header from "../Header";
|
import Header from "../navigation/Header";
|
||||||
import type { ConditionalHeaderViewProps } from "./ConditionalHeader.types";
|
import type { ConditionalHeaderViewProps } from "./ConditionalHeader.types";
|
||||||
|
|
||||||
export function ConditionalHeaderView({
|
export function ConditionalHeaderView({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import type { VariantValue, SizeValue } from "../../lib/propNormalization";
|
import type { VariantValue, SizeValue } from "../../../lib/propNormalization";
|
||||||
import { normalizeVariant, normalizeSize } from "../../lib/propNormalization";
|
import { normalizeVariant, normalizeSize } from "../../../lib/propNormalization";
|
||||||
|
|
||||||
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,9 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import SectionNumber from "./SectionNumber";
|
import SectionNumber from "../sections/SectionNumber";
|
||||||
|
|
||||||
import { normalizeNumberCardSize } from "../../lib/propNormalization";
|
import { normalizeNumberCardSize } from "../../../lib/propNormalization";
|
||||||
|
|
||||||
export type NumberCardSizeValue =
|
export type NumberCardSizeValue =
|
||||||
| "Small"
|
| "Small"
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { RuleCardView } from "./RuleCard.view";
|
import { RuleCardView } from "./RuleCard.view";
|
||||||
import type { RuleCardProps } from "./RuleCard.types";
|
import type { RuleCardProps } from "./RuleCard.types";
|
||||||
import { normalizeRuleCardSize } from "../../../lib/propNormalization";
|
import { normalizeRuleCardSize } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { ChipOption } from "../MultiSelect/MultiSelect.types";
|
import type { ChipOption } from "../../controls/MultiSelect/MultiSelect.types";
|
||||||
|
|
||||||
export interface Category {
|
export interface Category {
|
||||||
name: string;
|
name: string;
|
||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { useTranslation } from "../../contexts/MessagesContext";
|
import { useTranslation } from "../../../contexts/MessagesContext";
|
||||||
import MultiSelect from "../MultiSelect";
|
import MultiSelect from "../../controls/MultiSelect";
|
||||||
import type { RuleCardViewProps } from "./RuleCard.types";
|
import type { RuleCardViewProps } from "./RuleCard.types";
|
||||||
|
|
||||||
export function RuleCardView({
|
export function RuleCardView({
|
||||||
File renamed without changes.
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { useComponentId } from "../../hooks";
|
import { useComponentId } from "../../../hooks";
|
||||||
import { CheckboxView } from "./Checkbox.view";
|
import { CheckboxView } from "./Checkbox.view";
|
||||||
import type { CheckboxProps } from "./Checkbox.types";
|
import type { CheckboxProps } from "./Checkbox.types";
|
||||||
import { normalizeMode, normalizeState } from "../../../lib/propNormalization";
|
import { normalizeMode, normalizeState } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const CheckboxContainer = memo<CheckboxProps>(
|
const CheckboxContainer = memo<CheckboxProps>(
|
||||||
({
|
({
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { ModeValue, StateValue } from "../../../lib/propNormalization";
|
import type { ModeValue, StateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface CheckboxProps {
|
export interface CheckboxProps {
|
||||||
checked?: boolean;
|
checked?: boolean;
|
||||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo, useCallback, useId, useState } from "react";
|
import { memo, useCallback, useId, useState } from "react";
|
||||||
import { CheckboxGroupView } from "./CheckboxGroup.view";
|
import { CheckboxGroupView } from "./CheckboxGroup.view";
|
||||||
import type { CheckboxGroupProps } from "./CheckboxGroup.types";
|
import type { CheckboxGroupProps } from "./CheckboxGroup.types";
|
||||||
import { normalizeMode } from "../../../lib/propNormalization";
|
import { normalizeMode } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const CheckboxGroupContainer = ({
|
const CheckboxGroupContainer = ({
|
||||||
name,
|
name,
|
||||||
+1
-1
@@ -5,7 +5,7 @@ export interface CheckboxOption {
|
|||||||
ariaLabel?: string;
|
ariaLabel?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
import type { ModeValue } from "../../../lib/propNormalization";
|
import type { ModeValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface CheckboxGroupProps {
|
export interface CheckboxGroupProps {
|
||||||
name?: string;
|
name?: string;
|
||||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -7,7 +7,7 @@ import {
|
|||||||
normalizeChipPalette,
|
normalizeChipPalette,
|
||||||
normalizeChipSize,
|
normalizeChipSize,
|
||||||
normalizeChipState,
|
normalizeChipState,
|
||||||
} from "../../../lib/propNormalization";
|
} from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const ChipContainer = memo<ChipProps>(
|
const ChipContainer = memo<ChipProps>(
|
||||||
({
|
({
|
||||||
@@ -2,7 +2,7 @@ import type {
|
|||||||
ChipPaletteValue,
|
ChipPaletteValue,
|
||||||
ChipSizeValue,
|
ChipSizeValue,
|
||||||
ChipStateValue,
|
ChipStateValue,
|
||||||
} from "../../../lib/propNormalization";
|
} from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface ChipProps {
|
export interface ChipProps {
|
||||||
label: string;
|
label: string;
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import MultiSelectView from "./MultiSelect.view";
|
import MultiSelectView from "./MultiSelect.view";
|
||||||
import type { MultiSelectProps } from "./MultiSelect.types";
|
import type { MultiSelectProps } from "./MultiSelect.types";
|
||||||
import { normalizeMultiSelectSize, normalizeChipPalette } from "../../../lib/propNormalization";
|
import { normalizeMultiSelectSize, normalizeChipPalette } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const MultiSelectContainer = memo<MultiSelectProps>(
|
const MultiSelectContainer = memo<MultiSelectProps>(
|
||||||
({
|
({
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { ChipStateValue, ChipPaletteValue } from "../../../lib/propNormalization";
|
import type { ChipStateValue, ChipPaletteValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface ChipOption {
|
export interface ChipOption {
|
||||||
id: string;
|
id: string;
|
||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import Chip from "../Chip";
|
import Chip from "../Chip";
|
||||||
import InputLabel from "../InputLabel";
|
import InputLabel from "../../InputLabel";
|
||||||
import type { MultiSelectViewProps } from "./MultiSelect.types";
|
import type { MultiSelectViewProps } from "./MultiSelect.types";
|
||||||
|
|
||||||
function MultiSelectView({
|
function MultiSelectView({
|
||||||
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo, useCallback, useId } from "react";
|
import { memo, useCallback, useId } from "react";
|
||||||
import { RadioButtonView } from "./RadioButton.view";
|
import { RadioButtonView } from "./RadioButton.view";
|
||||||
import type { RadioButtonProps } from "./RadioButton.types";
|
import type { RadioButtonProps } from "./RadioButton.types";
|
||||||
import { normalizeMode, normalizeState } from "../../../lib/propNormalization";
|
import { normalizeMode, normalizeState } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const RadioButtonContainer = ({
|
const RadioButtonContainer = ({
|
||||||
checked = false,
|
checked = false,
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { ModeValue, StateValue } from "../../../lib/propNormalization";
|
import type { ModeValue, StateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface RadioButtonProps {
|
export interface RadioButtonProps {
|
||||||
checked?: boolean;
|
checked?: boolean;
|
||||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo, useCallback, useId } from "react";
|
import { memo, useCallback, useId } from "react";
|
||||||
import { RadioGroupView } from "./RadioGroup.view";
|
import { RadioGroupView } from "./RadioGroup.view";
|
||||||
import type { RadioGroupProps } from "./RadioGroup.types";
|
import type { RadioGroupProps } from "./RadioGroup.types";
|
||||||
import { normalizeMode, normalizeState } from "../../../lib/propNormalization";
|
import { normalizeMode, normalizeState } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const RadioGroupContainer = ({
|
const RadioGroupContainer = ({
|
||||||
name,
|
name,
|
||||||
+1
-1
@@ -5,7 +5,7 @@ export interface RadioOption {
|
|||||||
ariaLabel?: string;
|
ariaLabel?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
import type { ModeValue, StateValue } from "../../../lib/propNormalization";
|
import type { ModeValue, StateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface RadioGroupProps {
|
export interface RadioGroupProps {
|
||||||
name?: string;
|
name?: string;
|
||||||
File renamed without changes.
File renamed without changes.
+2
-2
@@ -13,10 +13,10 @@ import React, {
|
|||||||
useImperativeHandle,
|
useImperativeHandle,
|
||||||
useEffect,
|
useEffect,
|
||||||
} from "react";
|
} from "react";
|
||||||
import { useClickOutside } from "../../hooks";
|
import { useClickOutside } from "../../../hooks";
|
||||||
import { SelectInputView } from "./SelectInput.view";
|
import { SelectInputView } from "./SelectInput.view";
|
||||||
import type { SelectInputProps } from "./SelectInput.types";
|
import type { SelectInputProps } from "./SelectInput.types";
|
||||||
import { normalizeState, normalizeSmallMediumLargeSize, normalizeLabelVariant } from "../../../lib/propNormalization";
|
import { normalizeState, normalizeSmallMediumLargeSize, normalizeLabelVariant } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const SelectInputContainer = forwardRef<HTMLButtonElement, SelectInputProps>(
|
const SelectInputContainer = forwardRef<HTMLButtonElement, SelectInputProps>(
|
||||||
(
|
(
|
||||||
+1
-1
@@ -5,7 +5,7 @@ export interface SelectOptionData {
|
|||||||
label: string;
|
label: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
import type { StateValue } from "../../../lib/propNormalization";
|
import type { StateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export type SelectInputLabelVariantValue = "default" | "horizontal" | "Default" | "Horizontal";
|
export type SelectInputLabelVariantValue = "default" | "horizontal" | "Default" | "Horizontal";
|
||||||
export type SelectInputSizeValue = "small" | "medium" | "large" | "Small" | "Medium" | "Large";
|
export type SelectInputSizeValue = "small" | "medium" | "large" | "Small" | "Medium" | "Large";
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
import React, { Children, type ReactNode } from "react";
|
import React, { Children, type ReactNode } from "react";
|
||||||
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
import { getAssetPath, ASSETS } from "../../../../lib/assetUtils";
|
||||||
import SelectDropdown from "../SelectDropdown";
|
import SelectDropdown from "../../SelectDropdown";
|
||||||
import SelectOption from "../SelectOption";
|
import SelectOption from "../../SelectOption";
|
||||||
import type { SelectOptionData } from "./SelectInput.types";
|
import type { SelectOptionData } from "./SelectInput.types";
|
||||||
|
|
||||||
export interface SelectInputViewProps {
|
export interface SelectInputViewProps {
|
||||||
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo, useCallback, useId, forwardRef } from "react";
|
import { memo, useCallback, useId, forwardRef } from "react";
|
||||||
import { SwitchView } from "./Switch.view";
|
import { SwitchView } from "./Switch.view";
|
||||||
import type { SwitchProps } from "./Switch.types";
|
import type { SwitchProps } from "./Switch.types";
|
||||||
import { normalizeState } from "../../../lib/propNormalization";
|
import { normalizeState } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const SwitchContainer = memo(
|
const SwitchContainer = memo(
|
||||||
forwardRef<HTMLButtonElement, SwitchProps>((props, ref) => {
|
forwardRef<HTMLButtonElement, SwitchProps>((props, ref) => {
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { StateValue } from "../../../lib/propNormalization";
|
import type { StateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface SwitchProps extends Omit<
|
export interface SwitchProps extends Omit<
|
||||||
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
||||||
File renamed without changes.
File renamed without changes.
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { memo, forwardRef } from "react";
|
import { memo, forwardRef } from "react";
|
||||||
import { useComponentId, useFormField } from "../../hooks";
|
import { useComponentId, useFormField } from "../../../hooks";
|
||||||
import { TextAreaView } from "./TextArea.view";
|
import { TextAreaView } from "./TextArea.view";
|
||||||
import type { TextAreaProps } from "./TextArea.types";
|
import type { TextAreaProps } from "./TextArea.types";
|
||||||
import { normalizeInputState, normalizeSmallMediumLargeSize, normalizeLabelVariant } from "../../../lib/propNormalization";
|
import { normalizeInputState, normalizeSmallMediumLargeSize, normalizeLabelVariant } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const TextAreaContainer = forwardRef<HTMLTextAreaElement, TextAreaProps>(
|
const TextAreaContainer = forwardRef<HTMLTextAreaElement, TextAreaProps>(
|
||||||
(
|
(
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { InputStateValue } from "../../../lib/propNormalization";
|
import type { InputStateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export type TextAreaSizeValue = "small" | "medium" | "large" | "Small" | "Medium" | "Large";
|
export type TextAreaSizeValue = "small" | "medium" | "large" | "Small" | "Medium" | "Large";
|
||||||
export type TextAreaLabelVariantValue = "default" | "horizontal" | "Default" | "Horizontal";
|
export type TextAreaLabelVariantValue = "default" | "horizontal" | "Default" | "Horizontal";
|
||||||
File renamed without changes.
File renamed without changes.
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { memo, forwardRef, useState, useRef } from "react";
|
import { memo, forwardRef, useState, useRef } from "react";
|
||||||
import { useComponentId, useFormField } from "../../hooks";
|
import { useComponentId, useFormField } from "../../../hooks";
|
||||||
import { TextInputView } from "./TextInput.view";
|
import { TextInputView } from "./TextInput.view";
|
||||||
import type { TextInputProps } from "./TextInput.types";
|
import type { TextInputProps } from "./TextInput.types";
|
||||||
import { normalizeInputState } from "../../../lib/propNormalization";
|
import { normalizeInputState } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const TextInputContainer = forwardRef<HTMLInputElement, TextInputProps>(
|
const TextInputContainer = forwardRef<HTMLInputElement, TextInputProps>(
|
||||||
(
|
(
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { InputStateValue } from "../../../lib/propNormalization";
|
import type { InputStateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface TextInputProps extends Omit<
|
export interface TextInputProps extends Omit<
|
||||||
React.InputHTMLAttributes<HTMLInputElement>,
|
React.InputHTMLAttributes<HTMLInputElement>,
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import { forwardRef } from "react";
|
import { forwardRef } from "react";
|
||||||
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
import { getAssetPath, ASSETS } from "../../../../lib/assetUtils";
|
||||||
import type { TextInputViewProps } from "./TextInput.types";
|
import type { TextInputViewProps } from "./TextInput.types";
|
||||||
|
|
||||||
export const TextInputView = forwardRef<HTMLInputElement, TextInputViewProps>(
|
export const TextInputView = forwardRef<HTMLInputElement, TextInputViewProps>(
|
||||||
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo, useCallback, useId, forwardRef } from "react";
|
import { memo, useCallback, useId, forwardRef } from "react";
|
||||||
import { ToggleView } from "./Toggle.view";
|
import { ToggleView } from "./Toggle.view";
|
||||||
import type { ToggleProps } from "./Toggle.types";
|
import type { ToggleProps } from "./Toggle.types";
|
||||||
import { normalizeState } from "../../../lib/propNormalization";
|
import { normalizeState } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const ToggleContainer = forwardRef<HTMLButtonElement, ToggleProps>(
|
const ToggleContainer = forwardRef<HTMLButtonElement, ToggleProps>(
|
||||||
(
|
(
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { StateValue } from "../../../lib/propNormalization";
|
import type { StateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export interface ToggleProps extends Omit<
|
export interface ToggleProps extends Omit<
|
||||||
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
||||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo, useCallback, useId, forwardRef } from "react";
|
import { memo, useCallback, useId, forwardRef } from "react";
|
||||||
import { ToggleGroupView } from "./ToggleGroup.view";
|
import { ToggleGroupView } from "./ToggleGroup.view";
|
||||||
import type { ToggleGroupProps } from "./ToggleGroup.types";
|
import type { ToggleGroupProps } from "./ToggleGroup.types";
|
||||||
import { normalizeToggleState, normalizeToggleGroupPosition } from "../../../lib/propNormalization";
|
import { normalizeToggleState, normalizeToggleGroupPosition } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const ToggleGroupContainer = memo(
|
const ToggleGroupContainer = memo(
|
||||||
forwardRef<HTMLButtonElement, ToggleGroupProps>((props, _ref) => {
|
forwardRef<HTMLButtonElement, ToggleGroupProps>((props, _ref) => {
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import type { StateValue } from "../../../lib/propNormalization";
|
import type { StateValue } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
export type ToggleGroupPositionValue = "left" | "middle" | "right" | "Left" | "Middle" | "Right";
|
export type ToggleGroupPositionValue = "left" | "middle" | "right" | "Left" | "Middle" | "Right";
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { normalizeSize } from "../../lib/propNormalization";
|
import { normalizeSize } from "../../../lib/propNormalization";
|
||||||
|
|
||||||
export type AvatarSizeValue = "small" | "medium" | "large" | "xlarge" | "Small" | "Medium" | "Large" | "XLarge";
|
export type AvatarSizeValue = "small" | "medium" | "large" | "xlarge" | "Small" | "Medium" | "Large" | "XLarge";
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { getAssetPath, ASSETS } from "../../lib/assetUtils";
|
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
||||||
|
|
||||||
interface LogoProps {
|
interface LogoProps {
|
||||||
size?:
|
size?:
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { AlertView } from "./Alert.view";
|
import { AlertView } from "./Alert.view";
|
||||||
import type { AlertProps } from "./Alert.types";
|
import type { AlertProps } from "./Alert.types";
|
||||||
import { normalizeAlertStatus, normalizeAlertType } from "../../../lib/propNormalization";
|
import { normalizeAlertStatus, normalizeAlertType } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const AlertContainer = memo<AlertProps>(
|
const AlertContainer = memo<AlertProps>(
|
||||||
({
|
({
|
||||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
|||||||
import type { AlertViewProps } from "./Alert.types";
|
import type { AlertViewProps } from "./Alert.types";
|
||||||
import Button from "../Button";
|
import Button from "../../buttons/Button";
|
||||||
|
|
||||||
export function AlertView({
|
export function AlertView({
|
||||||
title,
|
title,
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { createPortal } from "react-dom";
|
import { createPortal } from "react-dom";
|
||||||
import ContentLockup from "../ContentLockup";
|
import ContentLockup from "../../type/ContentLockup";
|
||||||
import ModalFooter from "../ModalFooter";
|
import ModalFooter from "../../utility/ModalFooter";
|
||||||
import ModalHeader from "../ModalHeader";
|
import ModalHeader from "../../utility/ModalHeader";
|
||||||
import type { CreateViewProps } from "./Create.types";
|
import type { CreateViewProps } from "./Create.types";
|
||||||
|
|
||||||
export function CreateView({
|
export function CreateView({
|
||||||
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo, useState } from "react";
|
import { memo, useState } from "react";
|
||||||
import { TooltipView } from "./Tooltip.view";
|
import { TooltipView } from "./Tooltip.view";
|
||||||
import type { TooltipProps } from "./Tooltip.types";
|
import type { TooltipProps } from "./Tooltip.types";
|
||||||
import { normalizeTooltipPosition } from "../../../lib/propNormalization";
|
import { normalizeTooltipPosition } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const TooltipContainer = memo<TooltipProps>(
|
const TooltipContainer = memo<TooltipProps>(
|
||||||
({ children, text, position: positionProp = "top", className = "", disabled = false }) => {
|
({ children, text, position: positionProp = "top", className = "", disabled = false }) => {
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,11 +1,11 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { useTranslation } from "../contexts/MessagesContext";
|
import { useTranslation } from "../../contexts/MessagesContext";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Logo from "./Logo";
|
import Logo from "../icons/Logo";
|
||||||
import Separator from "./Separator";
|
import Separator from "../utility/Separator";
|
||||||
import { getAssetPath, ASSETS } from "../../lib/assetUtils";
|
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
||||||
|
|
||||||
const Footer = memo(() => {
|
const Footer = memo(() => {
|
||||||
const t = useTranslation("footer");
|
const t = useTranslation("footer");
|
||||||
+6
-6
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import { useTranslation } from "../../contexts/MessagesContext";
|
import { useTranslation } from "../../../contexts/MessagesContext";
|
||||||
import MenuBarItem from "../MenuBarItem";
|
import MenuBarItem from "../MenuBarItem";
|
||||||
import Button from "../Button";
|
import Button from "../../buttons/Button";
|
||||||
import AvatarContainer from "../AvatarContainer";
|
import AvatarContainer from "../../utility/AvatarContainer";
|
||||||
import Avatar from "../Avatar";
|
import Avatar from "../../icons/Avatar";
|
||||||
import Logo from "../Logo";
|
import Logo from "../../icons/Logo";
|
||||||
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
import { getAssetPath, ASSETS } from "../../../../lib/assetUtils";
|
||||||
import { HeaderView } from "./Header.view";
|
import { HeaderView } from "./Header.view";
|
||||||
import type { HeaderProps, NavSize } from "./Header.types";
|
import type { HeaderProps, NavSize } from "./Header.types";
|
||||||
|
|
||||||
File renamed without changes.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useTranslation } from "../../contexts/MessagesContext";
|
import { useTranslation } from "../../../contexts/MessagesContext";
|
||||||
import MenuBar from "../MenuBar";
|
import MenuBar from "../MenuBar";
|
||||||
import type { HeaderViewProps } from "./Header.types";
|
import type { HeaderViewProps } from "./Header.types";
|
||||||
|
|
||||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { getAssetPath } from "../../lib/assetUtils";
|
import { getAssetPath } from "../../../lib/assetUtils";
|
||||||
|
|
||||||
interface HeaderTabProps extends React.HTMLAttributes<HTMLDivElement> {
|
interface HeaderTabProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
+6
-6
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import { useTranslation } from "../../contexts/MessagesContext";
|
import { useTranslation } from "../../../contexts/MessagesContext";
|
||||||
import MenuBarItem from "../MenuBarItem";
|
import MenuBarItem from "../MenuBarItem";
|
||||||
import Button from "../Button";
|
import Button from "../../buttons/Button";
|
||||||
import AvatarContainer from "../AvatarContainer";
|
import AvatarContainer from "../../utility/AvatarContainer";
|
||||||
import Avatar from "../Avatar";
|
import Avatar from "../../icons/Avatar";
|
||||||
import Logo from "../Logo";
|
import Logo from "../../icons/Logo";
|
||||||
import { getAssetPath, ASSETS } from "../../../lib/assetUtils";
|
import { getAssetPath, ASSETS } from "../../../../lib/assetUtils";
|
||||||
import HomeHeaderView from "./HomeHeader.view";
|
import HomeHeaderView from "./HomeHeader.view";
|
||||||
import type { HomeHeaderProps, NavSize } from "./HomeHeader.types";
|
import type { HomeHeaderProps, NavSize } from "./HomeHeader.types";
|
||||||
|
|
||||||
File renamed without changes.
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import Script from "next/script";
|
import Script from "next/script";
|
||||||
import { useTranslation } from "../../contexts/MessagesContext";
|
import { useTranslation } from "../../../contexts/MessagesContext";
|
||||||
import HeaderTab from "../HeaderTab";
|
import HeaderTab from "../HeaderTab";
|
||||||
import MenuBar from "../MenuBar";
|
import MenuBar from "../MenuBar";
|
||||||
import type { HomeHeaderViewProps } from "./HomeHeader.types";
|
import type { HomeHeaderViewProps } from "./HomeHeader.types";
|
||||||
File renamed without changes.
@@ -1,8 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import { useTranslation } from "../contexts/MessagesContext";
|
import { useTranslation } from "../../contexts/MessagesContext";
|
||||||
import { normalizeMenuBarSize } from "../../lib/propNormalization";
|
import { normalizeMenuBarSize } from "../../../lib/propNormalization";
|
||||||
|
|
||||||
export type MenuBarSizeValue =
|
export type MenuBarSizeValue =
|
||||||
| "xsmall"
|
| "xsmall"
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import MenuBarItemView from "./MenuBarItem.view";
|
import MenuBarItemView from "./MenuBarItem.view";
|
||||||
import type { MenuBarItemProps } from "./MenuBarItem.types";
|
import type { MenuBarItemProps } from "./MenuBarItem.types";
|
||||||
import { normalizeMenuBarItemVariant } from "../../../lib/propNormalization";
|
import { normalizeMenuBarItemVariant } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const MenuBarItemContainer = memo<MenuBarItemProps>(
|
const MenuBarItemContainer = memo<MenuBarItemProps>(
|
||||||
({
|
({
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
import { memo } from "react";
|
import { memo } from "react";
|
||||||
import NavigationItemView from "./NavigationItem.view";
|
import NavigationItemView from "./NavigationItem.view";
|
||||||
import type { NavigationItemProps } from "./NavigationItem.types";
|
import type { NavigationItemProps } from "./NavigationItem.types";
|
||||||
import { normalizeNavigationItemVariant, normalizeNavigationItemSize } from "../../../lib/propNormalization";
|
import { normalizeNavigationItemVariant, normalizeNavigationItemSize } from "../../../../lib/propNormalization";
|
||||||
|
|
||||||
const NavigationItemContainer = memo<NavigationItemProps>(
|
const NavigationItemContainer = memo<NavigationItemProps>(
|
||||||
({
|
({
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 161 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user