@rocket.chat/fuselage 0.94.0 → 0.96.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 (60) hide show
  1. package/dist/Theme.d.ts.map +1 -1
  2. package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -18
  3. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  4. package/dist/components/Item/Item.d.ts +32 -0
  5. package/dist/components/Item/Item.d.ts.map +1 -0
  6. package/dist/components/Item/ItemActions.d.ts +16 -0
  7. package/dist/components/Item/ItemActions.d.ts.map +1 -0
  8. package/dist/components/Item/ItemContent.d.ts +10 -0
  9. package/dist/components/Item/ItemContent.d.ts.map +1 -0
  10. package/dist/components/Item/ItemContext.d.ts +7 -0
  11. package/dist/components/Item/ItemContext.d.ts.map +1 -0
  12. package/dist/components/Item/ItemDescription.d.ts +15 -0
  13. package/dist/components/Item/ItemDescription.d.ts.map +1 -0
  14. package/dist/components/Item/ItemDivider.d.ts +19 -0
  15. package/dist/components/Item/ItemDivider.d.ts.map +1 -0
  16. package/dist/components/Item/ItemGroup.d.ts +13 -0
  17. package/dist/components/Item/ItemGroup.d.ts.map +1 -0
  18. package/dist/components/Item/ItemGroupContext.d.ts +6 -0
  19. package/dist/components/Item/ItemGroupContext.d.ts.map +1 -0
  20. package/dist/components/Item/ItemGroupHeader.d.ts +24 -0
  21. package/dist/components/Item/ItemGroupHeader.d.ts.map +1 -0
  22. package/dist/components/Item/ItemGroupTitle.d.ts +13 -0
  23. package/dist/components/Item/ItemGroupTitle.d.ts.map +1 -0
  24. package/dist/components/Item/ItemIcon.d.ts +15 -0
  25. package/dist/components/Item/ItemIcon.d.ts.map +1 -0
  26. package/dist/components/Item/ItemLink.d.ts +15 -0
  27. package/dist/components/Item/ItemLink.d.ts.map +1 -0
  28. package/dist/components/Item/ItemMedia.d.ts +14 -0
  29. package/dist/components/Item/ItemMedia.d.ts.map +1 -0
  30. package/dist/components/Item/ItemMeta.d.ts +10 -0
  31. package/dist/components/Item/ItemMeta.d.ts.map +1 -0
  32. package/dist/components/Item/ItemRow.d.ts +10 -0
  33. package/dist/components/Item/ItemRow.d.ts.map +1 -0
  34. package/dist/components/Item/ItemSkeleton.d.ts +18 -0
  35. package/dist/components/Item/ItemSkeleton.d.ts.map +1 -0
  36. package/dist/components/Item/ItemTitle.d.ts +10 -0
  37. package/dist/components/Item/ItemTitle.d.ts.map +1 -0
  38. package/dist/components/Item/index.d.ts +17 -0
  39. package/dist/components/Item/index.d.ts.map +1 -0
  40. package/dist/components/Item/types.d.ts +2 -0
  41. package/dist/components/Item/types.d.ts.map +1 -0
  42. package/dist/components/Item/useIdRegistry.d.ts +6 -0
  43. package/dist/components/Item/useIdRegistry.d.ts.map +1 -0
  44. package/dist/components/PaletteStyleTag/helpers/getPalette.d.ts +4 -4
  45. package/dist/components/SplitButton/SplitButton.d.ts +19 -0
  46. package/dist/components/SplitButton/SplitButton.d.ts.map +1 -0
  47. package/dist/components/SplitButton/SplitButtonTrigger.d.ts +9 -0
  48. package/dist/components/SplitButton/SplitButtonTrigger.d.ts.map +1 -0
  49. package/dist/components/SplitButton/index.d.ts +3 -0
  50. package/dist/components/SplitButton/index.d.ts.map +1 -0
  51. package/dist/components/Tag/Tag.d.ts +5 -1
  52. package/dist/components/Tag/Tag.d.ts.map +1 -1
  53. package/dist/components/index.d.ts +2 -0
  54. package/dist/components/index.d.ts.map +1 -1
  55. package/dist/fuselage.css +1 -1
  56. package/dist/fuselage.development.css +492 -85
  57. package/dist/fuselage.development.js +315 -8
  58. package/dist/fuselage.development.js.map +1 -1
  59. package/dist/fuselage.production.js +52 -52
  60. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../src/Theme.ts"],"names":[],"mappings":"AAUA,qBAAa,GAAG;IACd,OAAO,CAAC,IAAI,CAAS;IAErB,OAAO,CAAC,KAAK,CAAS;gBAEV,IAAI,EAAE,MA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,CAAC;AAI9C,eAAO,MAAM,qBAAqB;;;;;;CAqBjC,CAAC;AAEF,KAAK,qBAAqB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAIhE,eAAO,MAAM,YAAY;;;;;;;CAmBxB,CAAC;AAEF,KAAK,YAAY,GAAG,MAAM,OAAO,YAAY,CAAC;AAE9C,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,aACJ,CAAC;AAEtD,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,WACJ,CAAC;AAErD,eAAO,MAAM,eAAe,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,cACJ,CAAC;AAEvD,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,qBACM,CAAC;AAE9D,eAAO,MAAM,uBAAuB,GAClC,OAAO,OAAO,KACb,KAAK,IAAI,sBACkD,CAAC;AAE/D,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,YACJ,CAAC;AAErD,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,YACJ,CAAC;AAErD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnB,CAAC"}
@@ -1,30 +1,15 @@
1
1
  import type { HTMLAttributes, RefAttributes } from 'react';
2
- export type ButtonGroupProps = RefAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
2
+ export type ButtonGroupProps = RefAttributes<HTMLDivElement> & {
3
3
  align?: 'start' | 'center' | 'end';
4
4
  stretch?: boolean;
5
5
  wrap?: boolean;
6
6
  vertical?: boolean;
7
7
  small?: boolean;
8
8
  large?: boolean;
9
- } & ({
10
- /**
11
- * Fuses the buttons into a single segmented control. Takes precedence
12
- * over `small`/`large` spacing.
13
- */
14
- joined: true;
15
- /**
16
- * Renders the first (`start`) or last (`end`) segment of the joined
17
- * group as a transparent "ghost" segment, letting the group's
18
- * translucent background show through.
19
- */
20
- ghostPosition?: 'start' | 'end';
21
- } | {
22
- joined?: false;
23
- ghostPosition?: never;
24
- });
9
+ } & HTMLAttributes<HTMLDivElement>;
25
10
  /**
26
11
  * A container for grouping buttons that semantically share a common action context.
27
12
  */
28
- declare function ButtonGroup({ align, children, stretch, vertical, wrap, small, large, joined, ghostPosition, className, ...props }: ButtonGroupProps): import("react").JSX.Element;
13
+ declare function ButtonGroup({ align, children, stretch, vertical, wrap, small, large, className, ...props }: ButtonGroupProps): import("react").JSX.Element;
29
14
  export default ButtonGroup;
30
15
  //# sourceMappingURL=ButtonGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,cAAc,CAAC,GAC1D,cAAc,CAAC,cAAc,CAAC,GAAG;IAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,CACA;IACE;;;OAGG;IACH,MAAM,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CACjC,GACD;IACE,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,CACJ,CAAC;AAEJ;;GAEG;AACH,iBAAS,WAAW,CAAC,EACnB,KAAe,EACf,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,EACN,aAAa,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,+BAuBlB;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonGroup/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC;;GAEG;AACH,iBAAS,WAAW,CAAC,EACnB,KAAe,EACf,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,+BAqBlB;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ import type { ItemInset } from './types';
3
+ export type ItemProps = {
4
+ /**
5
+ * The element to render. Use `li` inside a list; set `role` for listbox options or menu items.
6
+ */
7
+ is?: ElementType;
8
+ /**
9
+ * Adds space between the row edge and its first and last slots.
10
+ */
11
+ inset?: ItemInset;
12
+ selected?: boolean;
13
+ /**
14
+ * Emphasizes the title, icon, description and meta, as for unread rooms.
15
+ */
16
+ highlighted?: boolean;
17
+ /**
18
+ * Shows the hover surface for a virtual cursor, such as a listbox's active descendant.
19
+ */
20
+ focused?: boolean;
21
+ /**
22
+ * Dims the row and ignores clicks. Set the matching ARIA state through props.
23
+ */
24
+ disabled?: boolean;
25
+ variant?: 'danger';
26
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is' | 'selected' | 'disabled'> & RefAttributes<HTMLElement>;
27
+ /**
28
+ * A list row composed from slots: media, icon, content and actions.
29
+ */
30
+ declare const Item: ({ is: Tag, inset, selected, highlighted, focused, disabled, variant, className, onClick, children, ...props }: ItemProps) => import("react").JSX.Element;
31
+ export default Item;
32
+ //# sourceMappingURL=Item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/components/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EAEX,aAAa,EACd,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,GACtE,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,IAAI,GAAI,+GAYX,SAAS,gCAuCX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemActionsProps = {
3
+ is?: ElementType;
4
+ /**
5
+ * `hover` hides the actions until the row is hovered, holds focus or has an expanded menu.
6
+ * They stay in the tab order, and touch screens always show them.
7
+ */
8
+ reveal?: 'always' | 'hover';
9
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
10
+ /**
11
+ * The trailing buttons, icon buttons or menu trigger of an `Item` or `ItemGroupHeader`.
12
+ * Placed as a direct child it spans every row; placed inside an `ItemRow` it only takes space from that row.
13
+ */
14
+ declare const ItemActions: ({ is: Tag, reveal, className, children, ...props }: ItemActionsProps) => import("react").JSX.Element;
15
+ export default ItemActions;
16
+ //# sourceMappingURL=ItemActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemActions.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC7B,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;;GAGG;AACH,QAAA,MAAM,WAAW,GAAI,oDAMlB,gBAAgB,gCAclB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemContentProps = {
3
+ is?: ElementType;
4
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
5
+ /**
6
+ * The flexible, truncating column that holds the title and description, or one `ItemRow` per line.
7
+ */
8
+ declare const ItemContent: ({ is: Tag, className, ...props }: ItemContentProps) => import("react").JSX.Element;
9
+ export default ItemContent;
10
+ //# sourceMappingURL=ItemContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemContent.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,kCAIlB,gBAAgB,gCAElB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type ItemContextValue = {
2
+ descriptionIds: string[];
3
+ registerDescription: (id: string) => () => void;
4
+ };
5
+ export declare const ItemContext: import("react").Context<ItemContextValue>;
6
+ export declare const useItemContext: () => ItemContextValue;
7
+ //# sourceMappingURL=ItemContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemContext.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,WAAW,2CAGtB,CAAC;AAEH,eAAO,MAAM,cAAc,wBAAgC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemDescriptionProps = {
3
+ is?: ElementType;
4
+ /**
5
+ * Places the description right after the title, as with a username after a name.
6
+ * In narrow lists it moves to its own line.
7
+ */
8
+ inline?: boolean;
9
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
10
+ /**
11
+ * The secondary line of an `Item`, such as a last message preview or a username.
12
+ */
13
+ declare const ItemDescription: ({ is, inline, className, ...props }: ItemDescriptionProps) => import("react").JSX.Element;
14
+ export default ItemDescription;
15
+ //# sourceMappingURL=ItemDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemDescription.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,eAAe,GAAI,qCAKtB,oBAAoB,gCAYtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ import type { ItemInset } from './types';
3
+ export type ItemDividerProps = {
4
+ /**
5
+ * The element to render. Inside an `ItemGroup` rendered as `ul`, pass `li` with `aria-hidden`.
6
+ * Add `role='separator'` where the divider should be announced, as between menu sections.
7
+ */
8
+ is?: ElementType;
9
+ /**
10
+ * Aligns the line with the content of the rows. Without it, the line spans the full width.
11
+ */
12
+ inset?: ItemInset;
13
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
14
+ /**
15
+ * The divider between groups, menu sections, or a header and its rows.
16
+ */
17
+ declare const ItemDivider: ({ is: Tag, inset, className, ...props }: ItemDividerProps) => import("react").JSX.Element;
18
+ export default ItemDivider;
19
+ //# sourceMappingURL=ItemDivider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemDivider.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,WAAW,GAAI,yCAKlB,gBAAgB,gCAUlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemGroupProps = {
3
+ /**
4
+ * The element to render. Use `ul` for a list, or set `role` for a listbox, group or menu.
5
+ */
6
+ is?: ElementType;
7
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
8
+ /**
9
+ * A list of `Item` rows. An `ItemGroupTitle` inside it labels the group, and its width drives the narrow layout.
10
+ */
11
+ declare const ItemGroup: ({ is: Tag, className, children, ...props }: ItemGroupProps) => import("react").JSX.Element;
12
+ export default ItemGroup;
13
+ //# sourceMappingURL=ItemGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAQ3E,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,4CAKhB,cAAc,gCAoBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type ItemGroupContextValue = {
2
+ registerTitle: (id: string) => () => void;
3
+ };
4
+ export declare const ItemGroupContext: import("react").Context<ItemGroupContextValue>;
5
+ export declare const useItemGroupContext: () => ItemGroupContextValue;
6
+ //# sourceMappingURL=ItemGroupContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemGroupContext.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemGroupContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,gBAAgB,gDAE3B,CAAC;AAEH,eAAO,MAAM,mBAAmB,6BAAqC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ import type { ItemInset } from './types';
3
+ export type ItemGroupHeaderProps = {
4
+ /**
5
+ * The element to render. Inside an `ItemGroup` rendered as `ul`, pass `li` with `aria-hidden`:
6
+ * the title still names the list, and the list reports only its rows.
7
+ * A header with interactive content, such as a collapse button, goes outside the list.
8
+ */
9
+ is?: ElementType;
10
+ /**
11
+ * Aligns the header with the rows below it. Use the same value as their `Item`.
12
+ */
13
+ inset?: ItemInset;
14
+ /**
15
+ * Pins the header to the top of its scroll container.
16
+ */
17
+ sticky?: boolean;
18
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
19
+ /**
20
+ * The label row of a group, such as Favorites, Recent or Moderators. It holds an `ItemGroupTitle` and optional trailing content.
21
+ */
22
+ declare const ItemGroupHeader: ({ is: Tag, inset, sticky, className, ...props }: ItemGroupHeaderProps) => import("react").JSX.Element;
23
+ export default ItemGroupHeader;
24
+ //# sourceMappingURL=ItemGroupHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemGroupHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemGroupHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,eAAe,GAAI,iDAMtB,oBAAoB,gCAWtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemGroupTitleProps = {
3
+ /**
4
+ * The element to render. Use a heading level, or `button` when the owner makes the group collapsible.
5
+ */
6
+ is?: ElementType;
7
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
8
+ /**
9
+ * The text of an `ItemGroupHeader`. Inside an `ItemGroup`, it becomes the group's accessible name.
10
+ */
11
+ declare const ItemGroupTitle: ({ is: Tag, id: propId, className, type, ...props }: ItemGroupTitleProps) => import("react").JSX.Element;
12
+ export default ItemGroupTitle;
13
+ //# sourceMappingURL=ItemGroupTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemGroupTitle.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemGroupTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,cAAc,GAAI,oDAMrB,mBAAmB,gCAerB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemIconProps = {
3
+ is?: ElementType;
4
+ /**
5
+ * Names what the icon conveys, such as "Private channel" or "Away".
6
+ * The label also describes the row's `ItemLink`. Without it, the icon is decorative.
7
+ */
8
+ label?: string;
9
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is' | 'label'> & RefAttributes<HTMLElement>;
10
+ /**
11
+ * A 20px slot for the room type icon or a user status, placed before the title.
12
+ */
13
+ declare const ItemIcon: ({ is: Tag, label, id: propId, className, ...props }: ItemIconProps) => import("react").JSX.Element;
14
+ export default ItemIcon;
15
+ //# sourceMappingURL=ItemIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO3E,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,GACtD,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,qDAMf,aAAa,gCAyBf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { AnchorHTMLAttributes, ButtonHTMLAttributes, RefAttributes } from 'react';
2
+ type ItemLinkAnchorProps = {
3
+ is?: 'a';
4
+ href: string;
5
+ } & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & RefAttributes<HTMLAnchorElement>;
6
+ type ItemLinkButtonProps = {
7
+ is: 'button';
8
+ } & ButtonHTMLAttributes<HTMLButtonElement> & RefAttributes<HTMLButtonElement>;
9
+ export type ItemLinkProps = ItemLinkAnchorProps | ItemLinkButtonProps;
10
+ /**
11
+ * The primary target of an `Item`. It covers the whole row, so actions sit beside it instead of inside it.
12
+ */
13
+ declare const ItemLink: (props: ItemLinkProps) => import("react").JSX.Element;
14
+ export default ItemLink;
15
+ //# sourceMappingURL=ItemLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemLink.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,OAAO,CAAC;AAMf,KAAK,mBAAmB,GAAG;IACzB,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,GACvD,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAEnC,KAAK,mBAAmB,GAAG;IACzB,EAAE,EAAE,QAAQ,CAAC;CACd,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GACzC,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAEnC,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAEtE;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,OAAO,aAAa,gCA+BrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemMediaProps = {
3
+ is?: ElementType;
4
+ /**
5
+ * `icon` centers its child in a 20px box, for icons and status bullets.
6
+ */
7
+ variant?: 'default' | 'icon';
8
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
9
+ /**
10
+ * The leading avatar, icon or thumbnail of an `Item`. Its box fits its child, so the child's size sets the row height.
11
+ */
12
+ declare const ItemMedia: ({ is: Tag, variant, className, ...props }: ItemMediaProps) => import("react").JSX.Element;
13
+ export default ItemMedia;
14
+ //# sourceMappingURL=ItemMedia.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemMedia.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemMedia.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,2CAKhB,cAAc,gCAQhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemMetaProps = {
3
+ is?: ElementType;
4
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
5
+ /**
6
+ * Short trailing text that never truncates, such as a timestamp, count or file size.
7
+ */
8
+ declare const ItemMeta: ({ is: Tag, className, ...props }: ItemMetaProps) => import("react").JSX.Element;
9
+ export default ItemMeta;
10
+ //# sourceMappingURL=ItemMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemMeta.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemMeta.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,QAAQ,GAAI,kCAA0C,aAAa,gCAExE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemRowProps = {
3
+ is?: ElementType;
4
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
5
+ /**
6
+ * A horizontal line inside `ItemContent`, such as a title with a timestamp or a description with a badge.
7
+ */
8
+ declare const ItemRow: ({ is: Tag, className, ...props }: ItemRowProps) => import("react").JSX.Element;
9
+ export default ItemRow;
10
+ //# sourceMappingURL=ItemRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemRow.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,OAAO,GAAI,kCAA0C,YAAY,gCAEtE,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { AvatarProps } from '../Avatar';
2
+ import type { ItemProps } from './Item';
3
+ export type ItemSkeletonProps = Pick<ItemProps, 'is' | 'inset'> & {
4
+ /**
5
+ * The size of the avatar the loaded row shows.
6
+ */
7
+ mediaSize?: AvatarProps['size'];
8
+ /**
9
+ * Adds a second text line.
10
+ */
11
+ description?: boolean;
12
+ };
13
+ /**
14
+ * A loading placeholder with the same height as an `Item` with the same media and lines.
15
+ */
16
+ declare const ItemSkeleton: ({ is, inset, mediaSize, description, }: ItemSkeletonProps) => import("react").JSX.Element;
17
+ export default ItemSkeleton;
18
+ //# sourceMappingURL=ItemSkeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAOxC,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG;IAChE;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,YAAY,GAAI,wCAKnB,iBAAiB,gCAgBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { AllHTMLAttributes, ElementType, RefAttributes } from 'react';
2
+ export type ItemTitleProps = {
3
+ is?: ElementType;
4
+ } & Omit<AllHTMLAttributes<HTMLElement>, 'is'> & RefAttributes<HTMLElement>;
5
+ /**
6
+ * The main label of an `Item`. It truncates with an ellipsis.
7
+ */
8
+ declare const ItemTitle: ({ is: Tag, className, ...props }: ItemTitleProps) => import("react").JSX.Element;
9
+ export default ItemTitle;
10
+ //# sourceMappingURL=ItemTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemTitle.d.ts","sourceRoot":"","sources":["../../../src/components/Item/ItemTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3E,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,GAC5C,aAAa,CAAC,WAAW,CAAC,CAAC;AAE7B;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,kCAIhB,cAAc,gCAEhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,17 @@
1
+ export { default as Item, type ItemProps } from './Item';
2
+ export { default as ItemActions, type ItemActionsProps } from './ItemActions';
3
+ export { default as ItemContent, type ItemContentProps } from './ItemContent';
4
+ export { default as ItemDescription, type ItemDescriptionProps, } from './ItemDescription';
5
+ export { default as ItemDivider, type ItemDividerProps } from './ItemDivider';
6
+ export { default as ItemGroup, type ItemGroupProps } from './ItemGroup';
7
+ export { default as ItemGroupHeader, type ItemGroupHeaderProps, } from './ItemGroupHeader';
8
+ export { default as ItemGroupTitle, type ItemGroupTitleProps, } from './ItemGroupTitle';
9
+ export { default as ItemIcon, type ItemIconProps } from './ItemIcon';
10
+ export { default as ItemLink, type ItemLinkProps } from './ItemLink';
11
+ export { default as ItemMedia, type ItemMediaProps } from './ItemMedia';
12
+ export { default as ItemMeta, type ItemMetaProps } from './ItemMeta';
13
+ export { default as ItemRow, type ItemRowProps } from './ItemRow';
14
+ export { default as ItemSkeleton, type ItemSkeletonProps, } from './ItemSkeleton';
15
+ export { default as ItemTitle, type ItemTitleProps } from './ItemTitle';
16
+ export type { ItemInset } from './types';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,OAAO,IAAI,eAAe,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACL,OAAO,IAAI,eAAe,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,KAAK,mBAAmB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACxE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type ItemInset = 'none' | 'sm' | 'md' | 'lg';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Item/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Collects the ids that descendants announce, so a parent can reference them
3
+ * in ARIA relationships without the consumer wiring ids by hand.
4
+ */
5
+ export declare const useIdRegistry: () => readonly [string[], (id: string) => () => void];
6
+ //# sourceMappingURL=useIdRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIdRegistry.d.ts","sourceRoot":"","sources":["../../../src/components/Item/useIdRegistry.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,aAAa,iCAGU,MAAM,gBASzC,CAAC"}
@@ -210,7 +210,7 @@ export declare const getTokens: (theme: Themes) => {
210
210
  danger: "#ffc1c9";
211
211
  "font-on-danger": "#9b1325";
212
212
  warning: "#ffecad";
213
- "font-on-warning": "#8e6300";
213
+ "font-on-warning": "#895f00";
214
214
  "warning-2": "#fff8e0";
215
215
  "font-on-warning-2": "#2f343d";
216
216
  "service-1": "#fad1b0";
@@ -221,7 +221,7 @@ export declare const getTokens: (theme: Themes) => {
221
221
  "font-on-service-3": "#ffffff";
222
222
  } | {
223
223
  info: "#d1ebfe";
224
- "font-on-info": "#10529e";
224
+ "font-on-info": "#01336b";
225
225
  success: "#c0f6e4";
226
226
  "font-on-success": "#0d5940";
227
227
  danger: "#ffc1c9";
@@ -238,13 +238,13 @@ export declare const getTokens: (theme: Themes) => {
238
238
  "font-on-service-3": "#ffffff";
239
239
  } | {
240
240
  info: "#a8c3eb";
241
- "font-on-info": "#739ede";
241
+ "font-on-info": "#8db6fc";
242
242
  success: "#c1ebdd";
243
243
  "font-on-success": "#58ad90";
244
244
  danger: "#f7cfd4";
245
245
  "font-on-danger": "#d88892";
246
246
  warning: "#feefbe";
247
- "font-on-warning": "#c7aa66";
247
+ "font-on-warning": "#cfb26c";
248
248
  "warning-2": "#3c3625";
249
249
  "font-on-warning-2": "#ffffff";
250
250
  "service-1": "#fce3cf";
@@ -0,0 +1,19 @@
1
+ import type { HTMLAttributes, RefAttributes } from 'react';
2
+ export type SplitButtonProps = RefAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & {
3
+ danger?: boolean;
4
+ warning?: boolean;
5
+ success?: boolean;
6
+ primary?: boolean;
7
+ } & ({
8
+ 'aria-label': string;
9
+ } | {
10
+ 'aria-labelledby': string;
11
+ });
12
+ /**
13
+ * Fuses a menu trigger and its primary action into a single control, e.g. an
14
+ * audio device menu next to a microphone toggle. The menu trigger is a
15
+ * `SplitButtonTrigger`, rendered as a ghost segment wherever it sits.
16
+ */
17
+ declare function SplitButton({ className, danger, warning, success, primary, ...props }: SplitButtonProps): import("react").JSX.Element;
18
+ export default SplitButton;
19
+ //# sourceMappingURL=SplitButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitButton.d.ts","sourceRoot":"","sources":["../../../src/components/SplitButton/SplitButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,cAAc,CAAC,GAC1D,cAAc,CAAC,cAAc,CAAC,GAAG;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,CAAC;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEjE;;;;GAIG;AACH,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,+BAiBlB;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type IconButtonProps } from '../Button';
2
+ export type SplitButtonTriggerProps = IconButtonProps;
3
+ /**
4
+ * The ghost segment of a `SplitButton`: the menu trigger fused next to the
5
+ * primary action. Pass it as a `Menu`'s `button`.
6
+ */
7
+ declare function SplitButtonTrigger(props: SplitButtonTriggerProps): import("react").JSX.Element;
8
+ export default SplitButtonTrigger;
9
+ //# sourceMappingURL=SplitButtonTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitButtonTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/SplitButton/SplitButtonTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC;AAEtD;;;GAGG;AACH,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAEzD;AAED,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as SplitButton, type SplitButtonProps } from './SplitButton';
2
+ export { default as SplitButtonTrigger, type SplitButtonTriggerProps, } from './SplitButtonTrigger';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SplitButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,OAAO,IAAI,kBAAkB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC"}
@@ -3,6 +3,10 @@ import { type BoxProps } from '../Box';
3
3
  export type TagProps = {
4
4
  medium?: boolean;
5
5
  large?: boolean;
6
+ /**
7
+ * Fully rounded shape. Use for interactive tags such as filters
8
+ */
9
+ pill?: boolean;
6
10
  variant?: 'primary' | 'secondary' | 'danger' | 'warning' | 'secondary-danger' | 'secondary-warning' | 'secondary-info' | 'featured';
7
11
  disabled?: boolean;
8
12
  icon?: ReactNode;
@@ -10,6 +14,6 @@ export type TagProps = {
10
14
  /**
11
15
  * Used for mentions
12
16
  */
13
- declare const Tag: ({ large, medium, className, disabled, onClick, variant, children, icon, href, ...props }: TagProps) => import("react").JSX.Element;
17
+ declare const Tag: ({ large, medium, pill, className, disabled, onClick, variant, children, icon, href, ...props }: TagProps) => import("react").JSX.Element;
14
18
  export default Tag;
15
19
  //# sourceMappingURL=Tag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EACJ,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,UAAU,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAEzB;;GAEG;AACH,QAAA,MAAM,GAAG,GAAI,0FAWV,QAAQ,gCAyBV,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EACJ,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,UAAU,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAEzB;;GAEG;AACH,QAAA,MAAM,GAAG,GAAI,gGAYV,QAAQ,gCA0BV,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -28,6 +28,7 @@ export * from './FramedIcon';
28
28
  export * from './Grid';
29
29
  export * from './Icon';
30
30
  export * from './InputBox';
31
+ export * from './Item';
31
32
  export * from './Label';
32
33
  export * from './Margins';
33
34
  export * from './Menu';
@@ -53,6 +54,7 @@ export * from './Sidebar';
53
54
  export * from './Sidepanel';
54
55
  export * from './Skeleton';
55
56
  export * from './Slider';
57
+ export * from './SplitButton';
56
58
  export * from './States';
57
59
  export * from './StatusBullet';
58
60
  export * from './Table';
@@ -1 +1 @@
1
- {"version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