@delightui/components 0.1.18 → 0.1.20

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.
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { CheckboxProps } from './types';
2
- declare const Checkbox: (props: CheckboxProps) => import("react").JSX.Element;
3
+ declare const Checkbox: (props: CheckboxProps) => React.JSX.Element;
3
4
  export default Checkbox;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { ListItemType, ListProps } from './List.types';
2
3
  /**
3
4
  * A wrapper component that manages the rendering of either a sortable or regular list based on the provided props.
@@ -6,5 +7,5 @@ import type { ListItemType, ListProps } from './List.types';
6
7
  * @param {ListProps<T>} props - The properties for the list wrapper.
7
8
  * @returns {JSX.Element} The rendered list component.
8
9
  */
9
- declare const List: <T extends ListItemType>(props: ListProps<T>) => import("react").JSX.Element;
10
+ declare const List: <T extends ListItemType>(props: ListProps<T>) => React.JSX.Element;
10
11
  export default List;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ListItemProps, ListItemType } from "../List.types";
2
3
  /**
3
4
  * A list item component that renders a single item.
@@ -6,4 +7,4 @@ import { ListItemProps, ListItemType } from "../List.types";
6
7
  * @param {ListItemProps<T>} props - The properties for the list item.
7
8
  * @returns {JSX.Element} The rendered list item.
8
9
  */
9
- export declare const ListItem: <T extends ListItemType>(props: ListItemProps<T>) => import("react").JSX.Element;
10
+ export declare const ListItem: <T extends ListItemType>(props: ListItemProps<T>) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ListItemType, RootListProps } from "../List.types";
2
3
  /**
3
4
  * A root list component that provides layout and styling for list items.
@@ -6,4 +7,4 @@ import { ListItemType, RootListProps } from "../List.types";
6
7
  * @param {RootListProps<T>} props - The properties for the root list.
7
8
  * @returns {JSX.Element} The rendered root list.
8
9
  */
9
- export declare const RootList: <T extends ListItemType>(props: RootListProps<T>) => import("react").JSX.Element;
10
+ export declare const RootList: <T extends ListItemType>(props: RootListProps<T>) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { SortableListProps } from "../List.types";
2
3
  /**
3
4
  * A sortable list component that allows drag-and-drop reordering of items.
@@ -8,4 +9,4 @@ import { SortableListProps } from "../List.types";
8
9
  */
9
10
  export declare const SortableList: <T extends {
10
11
  id: string | number;
11
- }>(props: SortableListProps<T>) => import("react").JSX.Element;
12
+ }>(props: SortableListProps<T>) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ListItemProps, ListItemType } from "../List.types";
2
3
  /**
3
4
  * A sortable item component that integrates with the dnd-kit library for drag-and-drop functionality.
@@ -6,4 +7,4 @@ import { ListItemProps, ListItemType } from "../List.types";
6
7
  * @param {ListItemProps<T>} props - The properties for the sortable item.
7
8
  * @returns {JSX.Element} The rendered sortable item.
8
9
  */
9
- export declare const SortableItem: <T extends ListItemType>(props: ListItemProps<T>) => import("react").JSX.Element;
10
+ export declare const SortableItem: <T extends ListItemType>(props: ListItemProps<T>) => React.JSX.Element;
@@ -1623,7 +1623,7 @@ span.flatpickr-weekday {
1623
1623
  -webkit-text-decoration: none;
1624
1624
  text-decoration: none;
1625
1625
  }
1626
- .NavLink-module_navLink__ZbL1G[component-variant^=button-] {
1626
+ .NavLink-module_navLink__ZbL1G.NavLink-module_button__fm4B7 {
1627
1627
  height: var(--button-height);
1628
1628
  min-height: var(--button-min-height);
1629
1629
  max-height: var(--button-max-height);
@@ -1657,6 +1657,40 @@ span.flatpickr-weekday {
1657
1657
  line-height: var(--button-line-height);
1658
1658
  color: var(--button-color);
1659
1659
  }
1660
+ .NavLink-module_navLink__ZbL1G.NavLink-module_link__FSAEq {
1661
+ height: var(--nav-link-height);
1662
+ min-height: var(--nav-link-min-height);
1663
+ max-height: var(--nav-link-max-height);
1664
+ width: var(--nav-link-width);
1665
+ min-width: var(--nav-link-min-width);
1666
+ max-width: var(--nav-link-max-width);
1667
+ padding-top: calc(var(--nav-link-padding-top) - var(--nav-link-border-top-width));
1668
+ padding-bottom: calc(var(--nav-link-padding-bottom) - var(--nav-link-border-bottom-width));
1669
+ padding-left: calc(var(--nav-link-padding-left) - var(--nav-link-border-left-width));
1670
+ padding-right: calc(var(--nav-link-padding-right) - var(--nav-link-border-right-width));
1671
+ row-gap: var(--nav-link-row-gap);
1672
+ -moz-column-gap: var(--nav-link-column-gap);
1673
+ column-gap: var(--nav-link-column-gap);
1674
+ border-bottom-width: var(--nav-link-border-bottom-width);
1675
+ border-left-width: var(--nav-link-border-left-width);
1676
+ border-right-width: var(--nav-link-border-right-width);
1677
+ border-top-width: var(--nav-link-border-top-width);
1678
+ border-style: var(--nav-link-border-style);
1679
+ border-color: var(--nav-link-border-color);
1680
+ border-top-left-radius: var(--nav-link-border-top-left-radius);
1681
+ border-top-right-radius: var(--nav-link-border-top-right-radius);
1682
+ border-bottom-right-radius: var(--nav-link-border-bottom-right-radius);
1683
+ border-bottom-left-radius: var(--nav-link-border-bottom-left-radius);
1684
+ outline-width: var(--nav-link-outline-width);
1685
+ outline-style: var(--nav-link-outline-style);
1686
+ outline-color: var(--nav-link-outline-color);
1687
+ background-color: var(--nav-link-background-color);
1688
+ font-family: var(--nav-link-font-family);
1689
+ font-size: var(--nav-link-font-size);
1690
+ font-weight: var(--nav-link-font-weight);
1691
+ line-height: var(--nav-link-line-height);
1692
+ color: var(--nav-link-color);
1693
+ }
1660
1694
  .NavLink-module_navLink__ZbL1G:disabled {
1661
1695
  cursor: not-allowed;
1662
1696
  }
@@ -12526,6 +12560,114 @@ span.flatpickr-weekday {
12526
12560
  --select-options-paragraph-indent: 0px
12527
12561
  }
12528
12562
 
12563
+ [component-variant^="nav-link-"] {
12564
+ --nav-link-opacity: 1;
12565
+ --nav-link-height: auto;
12566
+ --nav-link-min-height: auto;
12567
+ --nav-link-max-height: none;
12568
+ --nav-link-width: auto;
12569
+ --nav-link-min-width: auto;
12570
+ --nav-link-max-width: none;
12571
+ --nav-link-background-color: transparent;
12572
+ --nav-link-fill: currentcolor;
12573
+ --nav-link-border-top-left-radius: 0px;
12574
+ --nav-link-border-top-right-radius: 0px;
12575
+ --nav-link-border-bottom-left-radius: 0px;
12576
+ --nav-link-border-bottom-right-radius: 0px;
12577
+ --nav-link-border-color: transparent;
12578
+ --nav-link-border-style: solid;
12579
+ --nav-link-border-gap: normal;
12580
+ --nav-link-border-dash: none;
12581
+ --nav-link-border-top-width: 0px;
12582
+ --nav-link-border-right-width: 0px;
12583
+ --nav-link-border-bottom-width: 0px;
12584
+ --nav-link-border-left-width: 0px;
12585
+ --nav-link-outline-color: auto;
12586
+ --nav-link-outline-style: solid;
12587
+ --nav-link-outline-width: 0px;
12588
+ --nav-link-padding-left: 0px;
12589
+ --nav-link-padding-right: 0px;
12590
+ --nav-link-padding-top: 0px;
12591
+ --nav-link-padding-bottom: 0px;
12592
+ --nav-link-row-gap: 0px;
12593
+ --nav-link-column-gap: 0px;
12594
+ --nav-link-font-family: sans-serif;
12595
+ --nav-link-font-size: medium;
12596
+ --nav-link-color: currentcolor;
12597
+ --nav-link-letter-spacing: normal;
12598
+ --nav-link-line-height: normal;
12599
+ --nav-link-paragraph-spacing: ;
12600
+ --nav-link-paragraph-indent:
12601
+ }
12602
+
12603
+ [component-variant="nav-link-default"] {
12604
+ --nav-link-color: var(--colours-purple-400);
12605
+ --nav-link-padding-left: var(--spacing-extra-extra-small);
12606
+ --nav-link-padding-right: var(--spacing-extra-extra-small);
12607
+ --nav-link-font-family: var(--font-family-body);
12608
+ --nav-link-font-size: var(--font-size-body-small);
12609
+ --nav-link-font-weight: var(--font-weight-medium);
12610
+ --nav-link-line-height: var(--line-height-body-small);
12611
+ --nav-link-paragraph-spacing: 0px;
12612
+ --nav-link-paragraph-indent: 0px
12613
+ }
12614
+
12615
+ [component-variant="nav-link-default"]:hover:not(:disabled):not([disabled]) {
12616
+ --nav-link-color: var(--text-primary);
12617
+ --nav-link-padding-left: var(--spacing-extra-extra-small);
12618
+ --nav-link-padding-right: var(--spacing-extra-extra-small);
12619
+ --nav-link-font-family: var(--font-family-body);
12620
+ --nav-link-font-size: var(--font-size-body-small);
12621
+ --nav-link-font-weight: var(--font-weight-medium);
12622
+ --nav-link-line-height: var(--line-height-body-small);
12623
+ --nav-link-paragraph-spacing: 0px;
12624
+ --nav-link-paragraph-indent: 0px
12625
+ }
12626
+
12627
+ [component-variant="nav-link-default"][disabled],
12628
+ [component-variant="nav-link-default"]:disabled {
12629
+ --nav-link-color: var(--text-secondary);
12630
+ --nav-link-padding-left: var(--spacing-extra-extra-small);
12631
+ --nav-link-padding-right: var(--spacing-extra-extra-small);
12632
+ --nav-link-font-family: var(--font-family-body);
12633
+ --nav-link-font-size: var(--font-size-body-small);
12634
+ --nav-link-font-weight: var(--font-weight-medium);
12635
+ --nav-link-line-height: var(--line-height-body-small);
12636
+ --nav-link-paragraph-spacing: 0px;
12637
+ --nav-link-paragraph-indent: 0px
12638
+ }
12639
+
12640
+ [component-variant="nav-link-default"][active]:not(:disabled):not([disabled]),
12641
+ [component-variant="nav-link-default"]:active:not(:disabled):not([disabled]) {
12642
+ --nav-link-color: var(--text-primary);
12643
+ --nav-link-padding-left: var(--spacing-extra-extra-small);
12644
+ --nav-link-padding-right: var(--spacing-extra-extra-small);
12645
+ --nav-link-font-family: var(--font-family-body);
12646
+ --nav-link-font-size: var(--font-size-body-small);
12647
+ --nav-link-font-weight: var(--font-weight-medium);
12648
+ --nav-link-line-height: var(--line-height-body-small);
12649
+ --nav-link-paragraph-spacing: 0px;
12650
+ --nav-link-paragraph-indent: 0px
12651
+ }
12652
+
12653
+ [component-variant="nav-link-default"]:focus-within:not(:disabled):not([disabled]),
12654
+ [component-variant="nav-link-default"]:focus-visible:not(:disabled):not([disabled]) {
12655
+ --nav-link-color: var(--text-primary);
12656
+ --nav-link-border-color: var(--colours-grey-0);
12657
+ --nav-link-border-top-width: 1px;
12658
+ --nav-link-border-right-width: 1px;
12659
+ --nav-link-border-bottom-width: 1px;
12660
+ --nav-link-border-left-width: 1px;
12661
+ --nav-link-padding-left: var(--spacing-extra-extra-small);
12662
+ --nav-link-padding-right: var(--spacing-extra-extra-small);
12663
+ --nav-link-font-family: var(--font-family-body);
12664
+ --nav-link-font-size: var(--font-size-body-small);
12665
+ --nav-link-font-weight: var(--font-weight-medium);
12666
+ --nav-link-line-height: var(--line-height-body-small);
12667
+ --nav-link-paragraph-spacing: 0px;
12668
+ --nav-link-paragraph-indent: 0px
12669
+ }
12670
+
12529
12671
  [component-variant^="select-list-item-"] {
12530
12672
  --select-list-item-opacity: 1;
12531
12673
  --select-list-item-height: auto;