@frontify/fondue-components 25.0.0 → 26.0.2

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 (59) hide show
  1. package/dist/fondue-components100.js +9 -0
  2. package/dist/fondue-components100.js.map +1 -0
  3. package/dist/fondue-components101.js +15 -0
  4. package/dist/fondue-components101.js.map +1 -0
  5. package/dist/fondue-components102.js +74 -0
  6. package/dist/fondue-components102.js.map +1 -0
  7. package/dist/fondue-components103.js +18 -0
  8. package/dist/fondue-components103.js.map +1 -0
  9. package/dist/fondue-components104.js +10 -0
  10. package/dist/fondue-components104.js.map +1 -0
  11. package/dist/fondue-components105.js +92 -0
  12. package/dist/fondue-components105.js.map +1 -0
  13. package/dist/fondue-components106.js +84 -0
  14. package/dist/fondue-components106.js.map +1 -0
  15. package/dist/fondue-components107.js +34 -0
  16. package/dist/fondue-components107.js.map +1 -0
  17. package/dist/fondue-components108.js +24 -0
  18. package/dist/fondue-components108.js.map +1 -0
  19. package/dist/fondue-components109.js +43 -0
  20. package/dist/fondue-components109.js.map +1 -0
  21. package/dist/fondue-components26.js +23 -143
  22. package/dist/fondue-components26.js.map +1 -1
  23. package/dist/fondue-components4.js.map +1 -1
  24. package/dist/fondue-components40.js +2 -2
  25. package/dist/fondue-components47.js +1 -1
  26. package/dist/fondue-components48.js.map +1 -1
  27. package/dist/fondue-components71.js +20 -154
  28. package/dist/fondue-components71.js.map +1 -1
  29. package/dist/fondue-components72.js +20 -19
  30. package/dist/fondue-components72.js.map +1 -1
  31. package/dist/fondue-components73.js +18 -79
  32. package/dist/fondue-components73.js.map +1 -1
  33. package/dist/fondue-components74.js +20 -8
  34. package/dist/fondue-components74.js.map +1 -1
  35. package/dist/fondue-components75.js +19 -37
  36. package/dist/fondue-components75.js.map +1 -1
  37. package/dist/fondue-components76.js +8 -71
  38. package/dist/fondue-components76.js.map +1 -1
  39. package/dist/fondue-components90.js +5 -0
  40. package/dist/fondue-components90.js.map +1 -1
  41. package/dist/fondue-components92.js +3 -15
  42. package/dist/fondue-components92.js.map +1 -1
  43. package/dist/fondue-components93.js +4 -4
  44. package/dist/fondue-components93.js.map +1 -1
  45. package/dist/fondue-components94.js +16 -4
  46. package/dist/fondue-components94.js.map +1 -1
  47. package/dist/fondue-components95.js +209 -38
  48. package/dist/fondue-components95.js.map +1 -1
  49. package/dist/fondue-components96.js +17 -19
  50. package/dist/fondue-components96.js.map +1 -1
  51. package/dist/fondue-components97.js +23 -0
  52. package/dist/fondue-components97.js.map +1 -0
  53. package/dist/fondue-components98.js +154 -0
  54. package/dist/fondue-components98.js.map +1 -0
  55. package/dist/fondue-components99.js +48 -0
  56. package/dist/fondue-components99.js.map +1 -0
  57. package/dist/index.d.ts +122 -136
  58. package/dist/style.css +1 -1
  59. package/package.json +5 -5
@@ -0,0 +1,48 @@
1
+ const c = "_root_13ciu_7", e = "_selectedValue_13ciu_63", _ = "_input_13ciu_80", o = "_slot_13ciu_106", t = "_clear_13ciu_156", n = "_clearIcon_13ciu_163", u = "_icons_13ciu_167", i = "_caret_13ciu_173", r = "_iconSuccess_13ciu_201", s = "_iconError_13ciu_207", a = "_menu_13ciu_213", l = "_portal_13ciu_236", p = "_item_13ciu_252", g = "_checkmarkIcon_13ciu_281", m = "_itemValue_13ciu_287", d = "_group_13ciu_301", I = "_groupHeading_13ciu_312", b = "_badgesContainer_13ciu_324", k = "_badgeWrapper_13ciu_336", S = "_srOnly_13ciu_345", V = "_multiSelectInput_13ciu_357", y = {
2
+ root: c,
3
+ selectedValue: e,
4
+ input: _,
5
+ slot: o,
6
+ clear: t,
7
+ clearIcon: n,
8
+ icons: u,
9
+ caret: i,
10
+ iconSuccess: r,
11
+ iconError: s,
12
+ menu: a,
13
+ portal: l,
14
+ item: p,
15
+ checkmarkIcon: g,
16
+ itemValue: m,
17
+ group: d,
18
+ groupHeading: I,
19
+ badgesContainer: b,
20
+ badgeWrapper: k,
21
+ srOnly: S,
22
+ multiSelectInput: V
23
+ };
24
+ export {
25
+ k as badgeWrapper,
26
+ b as badgesContainer,
27
+ i as caret,
28
+ g as checkmarkIcon,
29
+ t as clear,
30
+ n as clearIcon,
31
+ y as default,
32
+ d as group,
33
+ I as groupHeading,
34
+ s as iconError,
35
+ r as iconSuccess,
36
+ u as icons,
37
+ _ as input,
38
+ p as item,
39
+ m as itemValue,
40
+ a as menu,
41
+ V as multiSelectInput,
42
+ l as portal,
43
+ c as root,
44
+ e as selectedValue,
45
+ o as slot,
46
+ S as srOnly
47
+ };
48
+ //# sourceMappingURL=fondue-components99.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fondue-components99.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -188,11 +188,11 @@ declare type BadgeProps = {
188
188
  /**
189
189
  * Click handler
190
190
  */
191
- onClick?: (event?: MouseEvent_2<HTMLButtonElement>) => void;
191
+ onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
192
192
  /**
193
193
  * Click handler on dismiss - providing this will show the dismiss button
194
194
  */
195
- onDismiss?: (event?: MouseEvent_2<HTMLButtonElement>) => void;
195
+ onDismiss?: (event: MouseEvent_2<HTMLButtonElement>) => void;
196
196
  /**
197
197
  * The color of the status dot
198
198
  */
@@ -422,6 +422,64 @@ declare type ColorPickerProps = {
422
422
  'data-test-id'?: string;
423
423
  };
424
424
 
425
+ declare type ComboboxComponent = typeof ComboboxSingle & {
426
+ Multiple: typeof ComboboxMultiple;
427
+ };
428
+
429
+ declare const ComboboxMultiple: ForwardRefExoticComponent< {
430
+ children?: ReactNode;
431
+ placeholder?: string;
432
+ status?: "neutral" | "success" | "error";
433
+ disabled?: boolean;
434
+ alignMenu?: "start" | "center" | "end";
435
+ side?: "left" | "right" | "bottom" | "top";
436
+ id?: string;
437
+ 'data-test-id'?: string;
438
+ viewportCollisionPadding?: SelectMenuViewportCollisionPadding;
439
+ getAsyncItems?: AsyncItemsFetcher;
440
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
441
+ } & CommonAriaProps & {
442
+ /**
443
+ * The active value in the combobox component. This is used to control the combobox externally
444
+ */
445
+ value?: string[] | null;
446
+ /**
447
+ * Callback function that is called when items are selected
448
+ */
449
+ onSelect?: (selectedValues: string[] | null) => void;
450
+ /**
451
+ * The default value of the combobox component. Used for uncontrolled usages
452
+ */
453
+ defaultValue?: string[];
454
+ } & RefAttributes<HTMLDivElement>>;
455
+
456
+ declare const ComboboxSingle: ForwardRefExoticComponent< {
457
+ children?: ReactNode;
458
+ placeholder?: string;
459
+ status?: "neutral" | "success" | "error";
460
+ disabled?: boolean;
461
+ alignMenu?: "start" | "center" | "end";
462
+ side?: "left" | "right" | "bottom" | "top";
463
+ id?: string;
464
+ 'data-test-id'?: string;
465
+ viewportCollisionPadding?: SelectMenuViewportCollisionPadding;
466
+ getAsyncItems?: AsyncItemsFetcher;
467
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
468
+ } & CommonAriaProps & {
469
+ /**
470
+ * The active value in the combobox component. This is used to control the combobox externally
471
+ */
472
+ value?: string | null;
473
+ /**
474
+ * Callback function that is called when an item is selected
475
+ */
476
+ onSelect?: (selectedValue: string | null) => void;
477
+ /**
478
+ * The default value of the combobox component. Used for uncontrolled usages
479
+ */
480
+ defaultValue?: string;
481
+ } & RefAttributes<HTMLDivElement>>;
482
+
425
483
  declare type CommonAriaAttrs = Pick<AriaAttributes, 'aria-describedby'> & AtLeastOneAriaLabelAttr;
426
484
 
427
485
  declare type CommonAriaProps = {
@@ -809,6 +867,11 @@ declare const enUS: {
809
867
  Flyout_close: string;
810
868
  Select_clear: string;
811
869
  Select_toggleMenu: string;
870
+ Select_error: string;
871
+ Select_selectedCount: string;
872
+ Select_singleItemSelected: string;
873
+ Select_multipleItemsSelected: string;
874
+ Select_additionalItemsSelected: string;
812
875
  Switch_defaultLabel: string;
813
876
  Table_sortByDescending: string;
814
877
  Table_sortByAscending: string;
@@ -999,68 +1062,6 @@ declare type FlyoutTriggerProps = {
999
1062
 
1000
1063
  declare type FlyoutViewportCollisionPadding = 'compact' | 'spacious';
1001
1064
 
1002
- declare const ForwardedRefCombobox: ForwardRefExoticComponent< {
1003
- /**
1004
- * Children of the Combobox component. This can contain the `Select.Slot` components for the label, decorators, clear action and menu.
1005
- */
1006
- children?: ReactNode;
1007
- /**
1008
- * Callback function that is called when an item is selected.
1009
- */
1010
- onSelect?: (selectedValue: string | null) => void;
1011
- /**
1012
- * The active value in the combobox component. This is used to control the combobox externally.
1013
- */
1014
- value?: string | null;
1015
- /**
1016
- * The default value of the combobox component. Used for uncontrolled usages.
1017
- */
1018
- defaultValue?: string;
1019
- /**
1020
- * The placeholder in the combobox component.
1021
- */
1022
- placeholder?: string;
1023
- /**
1024
- * Status of the text input
1025
- * @default "neutral"
1026
- */
1027
- status?: "neutral" | "success" | "error";
1028
- /**
1029
- * Disables the combobox component.
1030
- */
1031
- disabled?: boolean;
1032
- /**
1033
- * The alignment of the menu.
1034
- * @default "start"
1035
- */
1036
- alignMenu?: "start" | "center" | "end" /**
1037
- * Defines the preferred side of the combobox. It will not be respected if there are collisions with the viewport.
1038
- * @default "bottom"
1039
- */;
1040
- side?: "left" | "right" | "bottom" | "top";
1041
- /**
1042
- * Id of the combobox component
1043
- */
1044
- id?: string;
1045
- /**
1046
- * The data test id of the combobox component.
1047
- */
1048
- 'data-test-id'?: string;
1049
- /**
1050
- * Define the minimum distance between the select menu and the viewport edge
1051
- * @default 'compact'
1052
- */
1053
- viewportCollisionPadding?: SelectMenuViewportCollisionPadding;
1054
- /**
1055
- * Function to fetch items asynchronously.
1056
- */
1057
- getAsyncItems?: AsyncItemsFetcher;
1058
- /**
1059
- * Event handler called when the escape key is pressed.
1060
- */
1061
- onEscapeKeyDown?: (event: KeyboardEvent) => void;
1062
- } & CommonAriaProps & RefAttributes<HTMLDivElement>>;
1063
-
1064
1065
  declare const ForwardedRefSelectItem: ForwardRefExoticComponent<SelectItemProps & RefAttributes<HTMLLIElement>>;
1065
1066
 
1066
1067
  declare const ForwardedRefSelectItemGroup: ForwardRefExoticComponent<SelectItemGroupProps & RefAttributes<HTMLDivElement>>;
@@ -1668,83 +1669,14 @@ declare type SegmentedControlRootProps<TValue extends string = string> = {
1668
1669
  hugWidth?: boolean;
1669
1670
  };
1670
1671
 
1671
- export declare const Select: typeof SelectInput & {
1672
- Combobox: typeof ForwardedRefCombobox;
1672
+ export declare const Select: typeof SelectSingle & {
1673
+ Multiple: typeof SelectMultiple;
1674
+ Combobox: ComboboxComponent;
1673
1675
  Item: typeof ForwardedRefSelectItem;
1674
1676
  Group: typeof ForwardedRefSelectItemGroup;
1675
1677
  Slot: typeof ForwardedRefSelectSlot;
1676
1678
  };
1677
1679
 
1678
- declare type SelectComponentProps = {
1679
- /**
1680
- * Children of the Select component. This can contain the `Select.Slot` components for the label, decorators, clear action and menu.
1681
- */
1682
- children?: ReactNode;
1683
- /**
1684
- * Callback function that is called when an item is selected.
1685
- */
1686
- onSelect?: (selectedValue: string | null) => void;
1687
- /**
1688
- * The active value in the select component. This is used to control the select externally.
1689
- */
1690
- value?: string | null;
1691
- /**
1692
- * The default value of the select component. Used for uncontrolled usages.
1693
- */
1694
- defaultValue?: string;
1695
- /**
1696
- * The placeholder in the select component.
1697
- */
1698
- placeholder?: string;
1699
- /**
1700
- * Status of the text input
1701
- * @default "neutral"
1702
- */
1703
- status?: 'neutral' | 'success' | 'error';
1704
- /**
1705
- * Disables the select component.
1706
- */
1707
- disabled?: boolean;
1708
- /**
1709
- * The alignment of the menu.
1710
- * @default "start"
1711
- */
1712
- alignMenu?: 'start' | 'center' | 'end';
1713
- /**
1714
- * Defines the preferred side of the select. It will not be respected if there are collisions with the viewport.
1715
- * @default "bottom"
1716
- */
1717
- side?: 'left' | 'right' | 'bottom' | 'top';
1718
- /**
1719
- * The data test id of the select component.
1720
- */
1721
- 'data-test-id'?: string;
1722
- /**
1723
- * Id of the select component
1724
- */
1725
- id?: string;
1726
- /**
1727
- * The value of the select is shown as plain text (from the label prop) when set to true.
1728
- * Items child components are used if set to false
1729
- * @default true
1730
- */
1731
- showStringValue?: boolean;
1732
- /**
1733
- * Define the minimum distance between the select menu and the viewport edge
1734
- * @default 'compact'
1735
- */
1736
- viewportCollisionPadding?: SelectMenuViewportCollisionPadding;
1737
- /**
1738
- * Event handler called when the escape key is pressed.
1739
- */
1740
- onEscapeKeyDown?: (event: KeyboardEvent) => void;
1741
- } & CommonAriaProps;
1742
-
1743
- declare const SelectInput: {
1744
- ({ children, onSelect, value, defaultValue, placeholder, status, disabled, alignMenu, side, id, showStringValue, "data-test-id": dataTestId, viewportCollisionPadding, onEscapeKeyDown, ...props }: SelectComponentProps, forwardedRef: ForwardedRef<HTMLDivElement>): JSX_2.Element;
1745
- displayName: string;
1746
- };
1747
-
1748
1680
  declare type SelectItemGroupProps = {
1749
1681
  /**
1750
1682
  * The children of the select item group. This can contain multiple `Select.Item` components.
@@ -1789,6 +1721,60 @@ declare type SelectItemProps = {
1789
1721
 
1790
1722
  declare type SelectMenuViewportCollisionPadding = 'compact' | 'spacious';
1791
1723
 
1724
+ declare const SelectMultiple: ForwardRefExoticComponent< {
1725
+ children?: ReactNode;
1726
+ placeholder?: string;
1727
+ status?: "neutral" | "success" | "error";
1728
+ disabled?: boolean;
1729
+ alignMenu?: "start" | "center" | "end";
1730
+ side?: "left" | "right" | "bottom" | "top";
1731
+ 'data-test-id'?: string;
1732
+ id?: string;
1733
+ showStringValue?: boolean;
1734
+ viewportCollisionPadding?: SelectMenuViewportCollisionPadding;
1735
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
1736
+ } & CommonAriaProps & {
1737
+ /**
1738
+ * The active value in the select component. This is used to control the select externally
1739
+ */
1740
+ value?: string[] | null;
1741
+ /**
1742
+ * Callback function that is called when items are selected
1743
+ */
1744
+ onSelect?: (selectedValues: string[] | null) => void;
1745
+ /**
1746
+ * The default value of the select component. Used for uncontrolled usages
1747
+ */
1748
+ defaultValue?: string[];
1749
+ } & RefAttributes<HTMLDivElement>>;
1750
+
1751
+ declare const SelectSingle: ForwardRefExoticComponent< {
1752
+ children?: ReactNode;
1753
+ placeholder?: string;
1754
+ status?: "neutral" | "success" | "error";
1755
+ disabled?: boolean;
1756
+ alignMenu?: "start" | "center" | "end";
1757
+ side?: "left" | "right" | "bottom" | "top";
1758
+ 'data-test-id'?: string;
1759
+ id?: string;
1760
+ showStringValue?: boolean;
1761
+ viewportCollisionPadding?: SelectMenuViewportCollisionPadding;
1762
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
1763
+ } & CommonAriaProps & {
1764
+ /**
1765
+ * The active value in the select component. This is used to control the select externally
1766
+ */
1767
+ value?: string | null;
1768
+ /**
1769
+ * Callback function that is called when an item is selected
1770
+ */
1771
+ onSelect?: (selectedValue: string | null) => void;
1772
+ /**
1773
+ * The default value of the select component. Used for uncontrolled usages
1774
+ */
1775
+ defaultValue?: string;
1776
+ } & RefAttributes<HTMLDivElement>>;
1777
+
1792
1778
  declare type SelectSlotProps = {
1793
1779
  /**
1794
1780
  * The children of the select slot. This can be a custom component.