@dynamic-framework/ui-react 1.31.0 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/css/dynamic-ui-non-root.css +309 -126
  2. package/dist/css/dynamic-ui-non-root.min.css +2 -2
  3. package/dist/css/dynamic-ui-root.css +4 -1
  4. package/dist/css/dynamic-ui-root.min.css +2 -2
  5. package/dist/css/dynamic-ui.css +312 -126
  6. package/dist/css/dynamic-ui.min.css +2 -2
  7. package/dist/index.esm.js +191 -43
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +195 -43
  10. package/dist/index.js.map +1 -1
  11. package/dist/types/components/DAvatar/DAvatar.d.ts +5 -2
  12. package/dist/types/components/DDatePicker/DDatePicker.d.ts +7 -3
  13. package/dist/types/components/DInput/DInput.d.ts +2 -2
  14. package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
  15. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +1 -1
  16. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +1 -1
  17. package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
  18. package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
  19. package/dist/types/components/DInputSearch/DInputSearch.d.ts +1 -1
  20. package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
  21. package/dist/types/components/DList/DList.d.ts +3 -0
  22. package/dist/types/components/DList/components/DListItem.d.ts +3 -0
  23. package/dist/types/components/DListGroup/DListGroup.d.ts +14 -0
  24. package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +13 -0
  25. package/dist/types/components/DListGroup/index.d.ts +3 -0
  26. package/dist/types/components/DModal/components/DModalFooter.d.ts +1 -1
  27. package/dist/types/components/DOffcanvas/components/DOffcanvasFooter.d.ts +3 -3
  28. package/dist/types/components/DPaginator/DPaginator.d.ts +25 -8
  29. package/dist/types/components/DPopover/DPopover.d.ts +3 -0
  30. package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +3 -0
  31. package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +3 -0
  32. package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +3 -0
  33. package/dist/types/components/DSelect/DSelect.d.ts +3 -3
  34. package/dist/types/components/DTabs/DTabs.d.ts +1 -1
  35. package/dist/types/components/index.d.ts +5 -2
  36. package/dist/types/components/interface.d.ts +0 -4
  37. package/dist/types/contexts/index.d.ts +2 -1
  38. package/dist/types/hooks/index.d.ts +1 -0
  39. package/dist/types/hooks/useItemSelection.d.ts +16 -0
  40. package/dist/types/utils/changeQueryString.d.ts +4 -0
  41. package/dist/types/utils/getQueryString.d.ts +4 -0
  42. package/dist/types/utils/index.d.ts +3 -1
  43. package/package.json +17 -16
  44. package/src/style/abstracts/variables/_forms.scss +3 -2
  45. package/src/style/abstracts/variables/_list-group.scss +3 -3
  46. package/src/style/abstracts/variables/_navs.scss +14 -17
  47. package/src/style/abstracts/variables/_options.scss +1 -1
  48. package/src/style/base/_+import.scss +2 -1
  49. package/src/style/base/_alert.scss +20 -0
  50. package/src/style/base/_input-group.scss +4 -1
  51. package/src/style/base/_nav.scss +72 -0
  52. package/src/style/base/_pagination.scss +7 -5
  53. package/src/style/base/_placeholder.scss +3 -0
  54. package/src/style/components/_+import.scss +1 -1
  55. package/src/style/components/_d-avatar.scss +85 -0
  56. package/src/style/components/_d-input-pin.scss +11 -5
  57. package/src/style/components/_d-select.scss +15 -6
  58. package/src/style/root/_root.scss +7 -0
  59. package/src/style/base/_avatar.scss +0 -61
  60. package/src/style/components/_d-tabs.scss +0 -44
  61. /package/dist/types/utils/{format-currency.d.ts → formatCurrency.d.ts} +0 -0
@@ -3,7 +3,10 @@ type Props = BaseProps & {
3
3
  id?: string;
4
4
  size?: AvatarSize;
5
5
  image?: string;
6
- title?: string;
6
+ name?: string;
7
+ useNameAsInitials?: boolean;
8
+ theme?: string;
9
+ variant?: 'light' | 'dark';
7
10
  };
8
- export default function DAvatar({ id, size, image, title, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export default function DAvatar({ id, size, image, name: nameProp, useNameAsInitials, theme, variant, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
9
12
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Locale } from 'date-fns';
2
2
  import type { ReactDatePickerProps } from 'react-datepicker';
3
- import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps, StateIcons } from '../interface';
4
- type Props<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined> = BaseProps & FamilyIconProps & StateIcons & Pick<ReactDatePickerProps<CustomModifierNames, WithRange>, 'formatWeekDay' | 'onChange' | 'autoFocus' | 'inline' | 'withPortal' | 'minDate' | 'showTimeInput' | 'calendarStartDay' | 'dateFormat' | 'selectsStart' | 'selectsEnd' | 'startDate' | 'endDate' | 'fixedHeight' | 'renderCustomHeader'> & {
3
+ import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
4
+ type Props<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined> = BaseProps & FamilyIconProps & Pick<ReactDatePickerProps<CustomModifierNames, WithRange>, 'formatWeekDay' | 'onChange' | 'autoFocus' | 'inline' | 'withPortal' | 'minDate' | 'showTimeInput' | 'calendarStartDay' | 'dateFormat' | 'selectsStart' | 'selectsEnd' | 'startDate' | 'endDate' | 'fixedHeight' | 'renderCustomHeader'> & {
5
5
  date?: string | null;
6
6
  selectsRange?: boolean;
7
7
  inputLabel?: string;
@@ -24,6 +24,10 @@ type Props<CustomModifierNames extends string = never, WithRange extends boolean
24
24
  maxYearSelect?: number;
25
25
  invalid?: boolean;
26
26
  valid?: boolean;
27
+ placeholder?: string;
27
28
  };
28
- export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange, inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeLabel, iconInput: iconInputProp, iconHeaderPrevMonth: iconHeaderPrevMonthProp, iconHeaderNextMonth: iconHeaderNextMonthProp, iconMaterialStyle: iconMaterialStyleProp, iconFamilyClass, iconFamilyPrefix, minYearSelect, maxYearSelect, iconHeaderSize, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerButtonVariant, headerButtonTheme, invalid, valid, renderCustomHeader: renderCustomHeaderProp, validIcon, invalidIcon, locale, className, formatWeekDay: formatWeekDayProp, style, dataAttributes, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
29
+ /**
30
+ * @deprecated
31
+ */
32
+ export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange, inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeLabel, iconInput: iconInputProp, iconHeaderPrevMonth: iconHeaderPrevMonthProp, iconHeaderNextMonth: iconHeaderNextMonthProp, iconMaterialStyle: iconMaterialStyleProp, iconFamilyClass, iconFamilyPrefix, minYearSelect, maxYearSelect, iconHeaderSize, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerButtonVariant, headerButtonTheme, invalid, valid, renderCustomHeader: renderCustomHeaderProp, locale, className, formatWeekDay: formatWeekDayProp, style, dataAttributes, placeholder, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
29
33
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps, StateIcons } from '../interface';
3
- declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof BaseProps | keyof FamilyIconProps | keyof LabelIconProps | keyof StartIconProps | keyof EndIconProps | keyof StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & StateIcons & {
2
+ import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps } from '../interface';
3
+ declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof BaseProps | keyof FamilyIconProps | keyof LabelIconProps | keyof StartIconProps | keyof EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & {
4
4
  value?: string | undefined;
5
5
  label?: string | undefined;
6
6
  loading?: boolean | undefined;
@@ -5,7 +5,7 @@ type NonDInputProps = {
5
5
  maxValue: number;
6
6
  onChange?: (value?: number) => void;
7
7
  };
8
- declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
8
+ declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
9
9
  value?: string | undefined;
10
10
  label?: string | undefined;
11
11
  loading?: boolean | undefined;
@@ -19,5 +19,5 @@ declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<
19
19
  onChange?: ((value: string) => void) | undefined;
20
20
  onIconStartClick?: ((value?: string | undefined) => void) | undefined;
21
21
  onIconEndClick?: ((value?: string | undefined) => void) | undefined;
22
- } & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange" | "invalidIcon" | "validIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
22
+ } & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange" | "validIcon" | "invalidIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
23
23
  export default ForwardedDInputCounter;
@@ -6,7 +6,7 @@ type NonDInputProps = {
6
6
  currencyCode?: string;
7
7
  onChange?: (value?: number) => void;
8
8
  };
9
- declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
9
+ declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
10
10
  value?: string | undefined;
11
11
  label?: string | undefined;
12
12
  loading?: boolean | undefined;
@@ -8,7 +8,7 @@ type NonDInputProps = {
8
8
  currencyCode?: string;
9
9
  onChange?: (value?: number) => void;
10
10
  };
11
- declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
11
+ declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
12
12
  value?: string | undefined;
13
13
  label?: string | undefined;
14
14
  loading?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { MaskProps } from '@react-input/mask';
3
- declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
3
+ declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
4
4
  value?: string | undefined;
5
5
  label?: string | undefined;
6
6
  loading?: boolean | undefined;
@@ -1,5 +1,5 @@
1
- import type { BaseProps, FamilyIconProps, LabelIconProps, PinInputMode, PinInputType, StateIcons } from '../interface';
2
- type Props = BaseProps & LabelIconProps & FamilyIconProps & StateIcons & {
1
+ import type { BaseProps, FamilyIconProps, LabelIconProps, PinInputMode, PinInputType } from '../interface';
2
+ type Props = BaseProps & LabelIconProps & FamilyIconProps & {
3
3
  id?: string;
4
4
  label?: string;
5
5
  placeholder?: string;
@@ -15,5 +15,5 @@ type Props = BaseProps & LabelIconProps & FamilyIconProps & StateIcons & {
15
15
  valid?: boolean;
16
16
  onChange?: (value: string) => void;
17
17
  };
18
- export default function DInputPin({ id: idProp, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, placeholder, type, disabled, loading, secret, iconFamilyClass, iconFamilyPrefix, characters, invalidIcon: invalidIconProp, validIcon: validIconProp, innerInputMode, hint, invalid, valid, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
18
+ export default function DInputPin({ id: idProp, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, placeholder, type, disabled, loading, secret, characters, innerInputMode, hint, invalid, valid, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const ForwardedDInputSearch: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
2
+ declare const ForwardedDInputSearch: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "size" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
3
3
  value?: string | undefined;
4
4
  label?: string | undefined;
5
5
  loading?: boolean | undefined;
@@ -1,10 +1,10 @@
1
1
  import type { FocusEvent, MouseEvent } from 'react';
2
- import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps, StateIcons } from '../interface';
2
+ import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps } from '../interface';
3
3
  export type DefaultOption = {
4
4
  value: string | number;
5
5
  label: string;
6
6
  };
7
- export type Props<T> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & StateIcons & {
7
+ export type Props<T> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & {
8
8
  id?: string;
9
9
  name?: string;
10
10
  label?: string;
@@ -24,4 +24,4 @@ export type Props<T> = BaseProps & FamilyIconProps & LabelIconProps & StartIconP
24
24
  valueExtractor?: (item: T) => string | number;
25
25
  labelExtractor?: (item: T) => string;
26
26
  };
27
- export default function DInputSelect<T extends object = DefaultOption>({ id: idProp, name, label, className, style, options, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, disabled, loading, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, invalidIcon: invalidIconProp, validIcon: validIconProp, hint, value, size, floatingLabel, invalid, valid, dataAttributes, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
27
+ export default function DInputSelect<T extends object = DefaultOption>({ id: idProp, name, label, className, style, options, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, disabled, loading, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, hint, value, size, floatingLabel, invalid, valid, dataAttributes, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,9 @@ type Props = BaseProps & PropsWithChildren<{
7
7
  horizontal?: boolean;
8
8
  horizontalBreakpoint?: BreakpointSize;
9
9
  }>;
10
+ /**
11
+ * @deprecated Please use DListGroup instead
12
+ */
10
13
  declare function DList({ children, className, style, flush, numbered, horizontal, horizontalBreakpoint, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
11
14
  declare const _default: typeof DList & {
12
15
  Item: typeof DListItem;
@@ -6,5 +6,8 @@ type Props = BaseProps & PropsWithChildren<{
6
6
  theme?: string;
7
7
  onClick?: () => void;
8
8
  }>;
9
+ /**
10
+ * @deprecated Please use DListGroup.Item or DListGroupItem instead
11
+ */
9
12
  export default function DListItem({ children, className, style, active, disabled, theme, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
10
13
  export {};
@@ -0,0 +1,14 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import DListGroupItem from './components/DListGroupItem';
3
+ import type { BaseProps } from '../interface';
4
+ type Props = BaseProps & PropsWithChildren<{
5
+ as?: 'ul' | 'ol' | 'div';
6
+ numbered?: boolean;
7
+ flush?: boolean;
8
+ horizontal?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
9
+ }>;
10
+ declare function DListGroup({ as, numbered, flush, horizontal, children, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ declare const _default: typeof DListGroup & {
12
+ Item: typeof DListGroupItem;
13
+ };
14
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { BaseProps } from '../../interface';
3
+ type Props = BaseProps & PropsWithChildren<{
4
+ as?: 'li' | 'a' | 'button';
5
+ action?: boolean;
6
+ active?: boolean;
7
+ disabled?: boolean;
8
+ href?: string;
9
+ onClick?: () => void;
10
+ theme?: string;
11
+ }>;
12
+ export default function DListGroupItem({ as, action: actionProp, active, disabled, href, onClick, theme, children, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,3 @@
1
+ import DListGroup from './DListGroup';
2
+ export { default as DListGroupItem } from './components/DListGroupItem';
3
+ export default DListGroup;
@@ -1,4 +1,4 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import type { BaseProps } from '../../interface';
3
3
  type Props = BaseProps & PropsWithChildren<{
4
4
  actionPlacement?: 'start' | 'end' | 'fill' | 'center';
@@ -1,7 +1,7 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import type { BaseProps } from '../../interface';
3
3
  type Props = BaseProps & PropsWithChildren<{
4
- footerActionPlacement?: 'start' | 'end' | 'fill';
4
+ actionPlacement?: 'start' | 'end' | 'fill';
5
5
  }>;
6
- export default function DOffcanvasFooter({ footerActionPlacement, children, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export default function DOffcanvasFooter({ actionPlacement, children, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -1,14 +1,31 @@
1
1
  import type { ResponsivePaginationProps } from 'react-responsive-pagination';
2
2
  import { DataAttributes } from '../interface';
3
- export type Props = {
3
+ export type Props = Omit<ResponsivePaginationProps, 'current'> & {
4
+ current?: ResponsivePaginationProps['current'];
5
+ /**
6
+ * @deprecated its use is changing, use extraClassName instead, originally
7
+ * we set className prop to extraClassName from react-responsive-pagination API.
8
+ *
9
+ * now we are trying to expose the entire API of react-responsive-pagination and
10
+ * to ensure backward compatibility we are setting the className prop to
11
+ * extraClassName from react-responsive-pagination only if extraClassName is not present.
12
+ */
4
13
  className?: ResponsivePaginationProps['extraClassName'];
5
- page: ResponsivePaginationProps['current'];
6
- onPageChange: ResponsivePaginationProps['onPageChange'];
7
- total: ResponsivePaginationProps['total'];
8
- previousLabel?: ResponsivePaginationProps['previousLabel'];
9
- nextLabel?: ResponsivePaginationProps['nextLabel'];
14
+ /**
15
+ * @deprecated use current instead, react-responsive-pagination API.
16
+ */
17
+ page?: ResponsivePaginationProps['current'];
18
+ /**
19
+ * @deprecated use renderNav instead, react-responsive-pagination API.
20
+ */
10
21
  showArrows?: ResponsivePaginationProps['renderNav'];
11
- maxWidth?: ResponsivePaginationProps['maxWidth'];
12
22
  dataAttributes?: DataAttributes;
13
23
  };
14
- export default function DPaginator({ className, nextLabel, previousLabel, showArrows, page, onPageChange, ...props }: Props): import("react/jsx-runtime").JSX.Element;
24
+ export type ConditionalProps = Props | (Props & {
25
+ current: number;
26
+ page?: undefined;
27
+ }) | (Props & {
28
+ page: number;
29
+ current?: undefined;
30
+ });
31
+ export default function DPaginator({ className, page, current, showArrows, navClassName, ...props }: ConditionalProps): import("react/jsx-runtime").JSX.Element;
@@ -11,5 +11,8 @@ type Props = BaseProps & PropsWithChildren<{
11
11
  setOpen?: (open: boolean) => void;
12
12
  adjustContentToRender?: boolean;
13
13
  }>;
14
+ /**
15
+ * @deprecated
16
+ */
14
17
  export default function DPopover({ children, renderComponent, open, setOpen, adjustContentToRender, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
15
18
  export {};
@@ -18,5 +18,8 @@ type Props = BaseProps & {
18
18
  onClick?: () => void;
19
19
  onClickSecondary?: () => void;
20
20
  };
21
+ /**
22
+ * @deprecated
23
+ */
21
24
  export default function DQuickActionButton({ line1, line2, className, actionLinkText, actionLinkTheme, actionIcon, secondaryActionIcon, secondaryActionAriaLabel, actionIconFamilyClass, actionIconFamilyPrefix, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, onClickSecondary, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
22
25
  export {};
@@ -10,5 +10,8 @@ type Props = BaseProps & {
10
10
  checked?: boolean;
11
11
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
12
12
  };
13
+ /**
14
+ * @deprecated
15
+ */
13
16
  export default function DQuickActionCheck({ id: idProp, name, value, line1, line2, line3, className, style, checked, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
14
17
  export {};
@@ -8,5 +8,8 @@ type Props = BaseProps & {
8
8
  disabled?: boolean;
9
9
  onClick?: (isChecked: boolean | undefined) => void;
10
10
  };
11
+ /**
12
+ * @deprecated
13
+ */
11
14
  export default function DQuickActionSwitch({ id: idProp, name, label, hint, checked, disabled, className, style, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
12
15
  export {};
@@ -9,8 +9,8 @@ import DSelectLoadingIndicator from './components/DSelectLoadingIndicator';
9
9
  import DSelectOptionEmoji from './components/DSelectOptionEmoji';
10
10
  import DSelectSingleValueEmoji from './components/DSelectSingleValueEmoji';
11
11
  import DSelectSingleValueEmojiText from './components/DSelectSingleValueEmojiText';
12
- import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps, StateIcons } from '../interface';
13
- type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & StateIcons & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
12
+ import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps } from '../interface';
13
+ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
14
14
  label?: string;
15
15
  hint?: string;
16
16
  invalid?: boolean;
@@ -25,7 +25,7 @@ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = B
25
25
  searchable?: SelectProps<Option, IsMulti, Group>['isSearchable'];
26
26
  multi?: SelectProps<Option, IsMulti, Group>['isMulti'];
27
27
  };
28
- declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, className, style, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, invalidIcon: invalidIconProp, validIcon: validIconProp, menuWithMaxContent, disabled, clearable, loading, rtl, searchable, multi, components, defaultValue, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
28
+ declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, className, style, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, rtl, searchable, multi, components, defaultValue, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
29
29
  declare const _default: typeof DSelect & {
30
30
  OptionCheck: typeof DSelectOptionCheck;
31
31
  OptionIcon: typeof DSelectOptionIcon;
@@ -9,7 +9,7 @@ export type DTabOption = {
9
9
  export type TabVariant = 'tabs' | 'pills' | 'underline';
10
10
  type Props = BaseProps & PropsWithChildren<{
11
11
  classNameTab?: string;
12
- onChange: (option: DTabOption) => void;
12
+ onChange?: (option: DTabOption) => void;
13
13
  options: Array<DTabOption>;
14
14
  defaultSelected: string;
15
15
  vertical?: boolean;
@@ -21,11 +21,13 @@ export { default as DInputSearch } from './DInputSearch';
21
21
  export { default as DInputPassword } from './DInputPassword';
22
22
  export { default as DInputCheck } from './DInputCheck';
23
23
  export { default as DInputPin } from './DInputPin';
24
- export { default as DInputSelect, DInputSelectDefaultOption, DInputSelectProps } from './DInputSelect';
24
+ export { default as DInputSelect } from './DInputSelect';
25
+ export type { DInputSelectDefaultOption, DInputSelectProps } from './DInputSelect';
25
26
  export { default as DInputSwitch } from './DInputSwitch';
26
27
  export { default as DInputRange } from './DInputRange';
27
28
  export { default as DSelect } from './DSelect';
28
29
  export { default as DList, DListItem, } from './DList';
30
+ export { default as DListGroup, DListGroupItem, } from './DListGroup';
29
31
  export { default as DModal, DModalHeader, DModalBody, DModalFooter, } from './DModal';
30
32
  export { default as DOffcanvas, DOffcanvasHeader, DOffcanvasBody, DOffcanvasFooter, } from './DOffcanvas';
31
33
  export { default as DPaginator } from './DPaginator';
@@ -40,7 +42,8 @@ export { default as DStepper } from './DStepper';
40
42
  export { default as DStepperDesktop } from './DStepperDesktop';
41
43
  export { default as DStepperMobile } from './DStepperMobile';
42
44
  export { default as DTooltip } from './DTooltip';
43
- export { default as DTabs, useTabContext, DTabOption, DTabContent, } from './DTabs';
45
+ export { default as DTabs, useTabContext } from './DTabs';
46
+ export type { DTabOption, DTabContent } from './DTabs';
44
47
  export { default as DToast } from './DToast';
45
48
  export { default as DToastContainer, useDToast, } from './DToastContainer';
46
49
  export { default as DTableHead } from './DTableHead';
@@ -48,10 +48,6 @@ export type EndIconProps = {
48
48
  iconEndTabIndex?: number;
49
49
  iconEndMaterialStyle?: boolean;
50
50
  };
51
- export type StateIcons = {
52
- invalidIcon?: string;
53
- validIcon?: string;
54
- };
55
51
  export type AlertTheme = 'success' | 'info' | 'warning' | 'danger' | 'primary' | 'secondary';
56
52
  export type AlertThemeIconMap = {
57
53
  [state in AlertTheme]: string;
@@ -1,2 +1,3 @@
1
1
  export * from './DContext';
2
- export { useDPortalContext, PortalProps } from './DPortalContext';
2
+ export { useDPortalContext } from './DPortalContext';
3
+ export type { PortalProps } from './DPortalContext';
@@ -5,3 +5,4 @@ export { default as useProvidedRefOrCreate } from './useProvidedRefOrCreate';
5
5
  export { default as useStackState } from './useStackState';
6
6
  export { default as useDisableBodyScrollEffect } from './useDisableBodyScrollEffect';
7
7
  export { default as usePortal } from './usePortal';
8
+ export { default as useItemSelection } from './useItemSelection';
@@ -0,0 +1,16 @@
1
+ type Identifiable = {
2
+ id: string | number;
3
+ };
4
+ type ItemSelection<T extends Identifiable> = {
5
+ selectedItems: T[];
6
+ isSelectedItem: (item: T) => boolean;
7
+ toggleSelectedItem: (item: T) => void;
8
+ resetSelectedItems: () => void;
9
+ setSelectedItems: (items: T[]) => void;
10
+ };
11
+ type Props<T extends Identifiable> = {
12
+ getItemIdentifier?: (item: T) => string | number;
13
+ previousSelected?: T[];
14
+ };
15
+ export default function useItemSelection<T extends Identifiable>({ getItemIdentifier: getItemIdentifierProp, previousSelected, }?: Props<T>): ItemSelection<T>;
16
+ export {};
@@ -0,0 +1,4 @@
1
+ export default function changeQueryString(values: Record<string, string | number | null>, { useSearch, pushState, }?: {
2
+ useSearch?: boolean | undefined;
3
+ pushState?: boolean | undefined;
4
+ }): string;
@@ -0,0 +1,4 @@
1
+ export default function getQueryString(value: string, config?: {
2
+ default?: string;
3
+ useSearch?: boolean;
4
+ }): string | undefined;
@@ -1,2 +1,4 @@
1
- export { default as formatCurrency } from './format-currency';
1
+ export { default as formatCurrency } from './formatCurrency';
2
2
  export { default as configureI18n } from './configureI18n';
3
+ export { default as getQueryString } from './getQueryString';
4
+ export { default as changeQueryString } from './changeQueryString';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sideEffects": [
4
4
  "*.css"
5
5
  ],
6
- "version": "1.31.0",
6
+ "version": "1.32.0",
7
7
  "description": "React Dynamic Framework",
8
8
  "license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/libraries/dynamic-ui-react/LICENSE.md",
9
9
  "repository": {
@@ -47,8 +47,9 @@
47
47
  "build:react": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.mjs",
48
48
  "build:react:watch": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.mjs",
49
49
  "build:scss": "node scripts/build-scss.js",
50
- "cp": "pnpm cp:bootstrap && pnpm cp:popper",
50
+ "cp": "pnpm cp:bootstrap && pnpm cp:popper && pnpm cp:bootstrap-icons",
51
51
  "cp:bootstrap": "scripts/cp-boostrap.sh",
52
+ "cp:bootstrap-icons": "scripts/cp-boostrap-icons.sh",
52
53
  "cp:popper": "scripts/cp-popper.sh",
53
54
  "clean": "rimraf dist-transpiled && rimraf dist",
54
55
  "compile": "tsc -p . && rollup -c rollup.config.mjs",
@@ -99,18 +100,17 @@
99
100
  "@mdx-js/react": "^2.3.0",
100
101
  "@popperjs/core": "^2.11.8",
101
102
  "@rollup/plugin-node-resolve": "^15.2.3",
102
- "@storybook/addon-a11y": "^7.5.3",
103
- "@storybook/addon-actions": "^7.5.1",
104
- "@storybook/addon-essentials": "^7.5.1",
105
- "@storybook/addon-interactions": "^7.5.1",
106
- "@storybook/addon-links": "^7.5.1",
107
- "@storybook/addon-viewport": "^7.5.1",
108
- "@storybook/blocks": "^7.5.1",
109
- "@storybook/react": "^7.5.1",
110
- "@storybook/react-webpack5": "^7.5.1",
111
- "@storybook/test-runner": "^0.14.1",
112
- "@storybook/testing-library": "^0.2.2",
113
- "@storybook/theming": "^7.5.1",
103
+ "@storybook/addon-a11y": "^8.2.9",
104
+ "@storybook/addon-actions": "^8.2.9",
105
+ "@storybook/addon-essentials": "^8.2.9",
106
+ "@storybook/addon-interactions": "^8.2.9",
107
+ "@storybook/addon-links": "^8.2.9",
108
+ "@storybook/addon-viewport": "^8.2.9",
109
+ "@storybook/blocks": "^8.2.9",
110
+ "@storybook/react": "^8.2.9",
111
+ "@storybook/react-vite": "^8.2.9",
112
+ "@storybook/test": "^8.2.9",
113
+ "@storybook/theming": "^8.2.9",
114
114
  "@testing-library/jest-dom": "^6.1.4",
115
115
  "@testing-library/react": "^14.0.0",
116
116
  "@types/jest": "^29.5.12",
@@ -123,6 +123,7 @@
123
123
  "autoprefixer": "^10.4.16",
124
124
  "axe-playwright": "^1.2.3",
125
125
  "babel-loader": "^9.1.3",
126
+ "bootstrap-icons": "^1.11.3",
126
127
  "eslint": "^8.52.0",
127
128
  "eslint-config-airbnb": "^19.0.4",
128
129
  "eslint-config-airbnb-typescript": "^17.1.0",
@@ -145,7 +146,7 @@
145
146
  "rimraf": "^5.0.5",
146
147
  "rollup": "^4.1.4",
147
148
  "sass": "^1.69.4",
148
- "storybook": "^7.5.1",
149
+ "storybook": "^8.2.9",
149
150
  "stylelint": "^15.11.0",
150
151
  "stylelint-config-twbs-bootstrap": "^11.0.1",
151
152
  "ts-jest": "^29.2.3",
@@ -164,5 +165,5 @@
164
165
  "optional": true
165
166
  }
166
167
  },
167
- "gitHead": "215888b4375e8906c7a36f68c92754a4fa7ad53e"
168
+ "gitHead": "e4238e6e7ba2b467077cb9b1f41c11496007e92d"
168
169
  }
@@ -120,9 +120,10 @@ $form-feedback-valid-color: var(--#{$prefix}success) !default;
120
120
  $form-feedback-invalid-color: var(--#{$prefix}danger) !default;
121
121
 
122
122
  $form-feedback-icon-valid-color: $form-feedback-valid-color !default;
123
- $form-feedback-icon-valid: null !default;
123
+ $form-feedback-icon-valid: var(--#{$prefix}form-feedback-icon-valid) !default;
124
+
124
125
  $form-feedback-icon-invalid-color: $form-feedback-invalid-color !default;
125
- $form-feedback-icon-invalid: null !default;
126
+ $form-feedback-icon-invalid: var(--#{$prefix}form-feedback-icon-invalid) !default;
126
127
  // scss-docs-end form-feedback-variables
127
128
 
128
129
  // scss-docs-start form-validation-colors
@@ -14,14 +14,14 @@ $list-group-item-bg-scale: 0% !default;
14
14
  $list-group-item-color-scale: 40% !default;
15
15
  // fusv-enable
16
16
 
17
- $list-group-hover-bg: var(--#{$prefix}gray-100) !default;
17
+ $list-group-hover-bg: var(--#{$prefix}surface-primary) !default;
18
18
 
19
19
  $list-group-disabled-color: var(--#{$prefix}gray-600) !default;
20
20
 
21
- $list-group-action-color: var(--#{$prefix}gray-700) !default;
21
+ $list-group-action-color: var(--#{$prefix}gray-900) !default;
22
22
  $list-group-action-hover-color: $list-group-action-color !default;
23
23
 
24
- $list-group-action-active-bg: var(--#{$prefix}gray-200) !default;
24
+ $list-group-action-active-bg: var(--#{$prefix}primary-100) !default;
25
25
 
26
26
  // custom
27
27
  $list-group-item-border-radius: 0 !default;
@@ -1,35 +1,32 @@
1
1
  // Navs
2
2
 
3
3
  // scss-docs-start nav-variables
4
+ $nav-link-padding-y: $spacer-2 !default;
5
+ $nav-link-padding-x: $spacer-4 !default;
4
6
  $nav-link-font-size: var(--#{$prefix}body-font-size) !default;
5
7
  $nav-link-font-weight: var(--#{$prefix}fw-normal) !default;
6
- $nav-link-color: var(--#{$prefix}gray-500) !default;
7
- $nav-link-hover-color: var(--#{$prefix}secondary-600) !default;
8
- $nav-link-disabled-color: var(--#{$prefix}gray-200) !default;
8
+ $nav-link-color: var(--#{$prefix}gray-900) !default;
9
+ $nav-link-hover-color: var(--#{$prefix}primary-600) !default;
10
+ $nav-link-hover-bg: var(--#{$prefix}surface-primary) !default;
11
+ $nav-link-disabled-color: var(--#{$prefix}gray-300) !default;
9
12
 
10
13
  // custom
11
- $nav-link-border-height: 2px !default;
12
- $nav-link-line-height: var(--#{$prefix}ref-spacer-6) !default;
13
- $nav-link-border-border-radius: $border-radius-pill !default;
14
- $nav-link-border-active-color: var(--#{$prefix}secondary) !default;
15
14
  $nav-link-border-active-font-weight: var(--#{$prefix}fw-bold) !default;
16
- $nav-link-border-active-bg: var(--#{$prefix}secondary) !default;
17
15
  // end custom
18
16
 
19
17
  $nav-tabs-border-radius: var(--#{$prefix}border-radius-sm) !default;
20
- $nav-tabs-link-active-color: var(--#{$prefix}secondary) !default;
21
- $nav-tabs-link-active-bg: var(--#{$prefix}secondary-100) !default;
22
- $nav-tabs-link-active-border-color: var(--#{$prefix}secondary) !default;
18
+ $nav-tabs-link-active-color: var(--#{$prefix}primary) !default;
19
+ $nav-tabs-link-active-bg: var(--#{$prefix}white) !default;
20
+ $nav-tabs-link-active-border-color: var(--#{$prefix}gray-300) !default;
21
+ $nav-tabs-border-color: var(--#{$prefix}gray-300) !default;
23
22
 
24
23
  // custom
25
- $nav-nav-padding-x: var(--#{$prefix}ref-spacer-6) !default;
26
- $nav-nav-padding-y: var(--#{$prefix}ref-spacer-4) !default;
27
- $nav-nav-gap: var(--#{$prefix}ref-spacer-6) !default;
24
+ $nav-nav-gap: var(--#{$prefix}ref-spacer-0) !default;
28
25
  // end custom
29
26
 
30
- $nav-pills-border-radius: 100px !default;
27
+ $nav-pills-border-radius: var(--#{$prefix}border-radius-sm) !default;
31
28
  $nav-pills-link-active-color: var(--#{$prefix}white) !default;
32
- $nav-pills-link-active-bg: var(--#{$prefix}secondary) !default;
29
+ $nav-pills-link-active-bg: var(--#{$prefix}primary) !default;
33
30
  // scss-docs-end nav-variables
34
31
 
35
- $nav-underline-link-active-color: var(--#{$prefix}secondary) !default;
32
+ $nav-underline-link-active-color: var(--#{$prefix}primary) !default;