@techsio/ui-kit 0.41.1 → 0.42.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 (151) hide show
  1. package/README.md +2 -1
  2. package/dist/atoms/numeric-input.js +3 -3
  3. package/dist/atoms/rating.js +3 -3
  4. package/dist/atoms/tooltip.js +3 -3
  5. package/dist/internal/molecules/drawer.context.js +133 -0
  6. package/dist/internal/molecules/drawer.styles.js +107 -0
  7. package/dist/internal/organisms/sidebar.context.js +223 -0
  8. package/dist/internal/organisms/sidebar.focus.js +169 -0
  9. package/dist/internal/organisms/sidebar.styles.js +146 -0
  10. package/dist/molecules/accordion.js +3 -3
  11. package/dist/molecules/carousel.js +3 -3
  12. package/dist/molecules/chart.js +1 -1
  13. package/dist/molecules/dialog.js +3 -3
  14. package/dist/molecules/drawer.js +262 -0
  15. package/dist/molecules/menu.js +5 -5
  16. package/dist/molecules/radio-group.js +3 -3
  17. package/dist/molecules/select.js +4 -4
  18. package/dist/molecules/slider.js +3 -3
  19. package/dist/molecules/switch.js +3 -3
  20. package/dist/molecules/tabs.js +3 -3
  21. package/dist/molecules/toast.js +6 -6
  22. package/dist/molecules/tree-view.js +4 -4
  23. package/dist/organisms/data-table.fields.js +1 -1
  24. package/dist/organisms/data-table.js +7 -7
  25. package/dist/organisms/sidebar.js +448 -0
  26. package/dist/src/atoms/action-icon.d.ts +1 -1
  27. package/dist/src/atoms/button.d.ts +1 -1
  28. package/dist/src/atoms/link-button.d.ts +1 -1
  29. package/dist/src/atoms/numeric-input.d.ts +1 -1
  30. package/dist/src/atoms/status-text.d.ts +1 -1
  31. package/dist/src/internal/molecules/drawer.context.d.ts +53 -0
  32. package/dist/src/internal/molecules/drawer.context.d.ts.map +1 -0
  33. package/dist/src/internal/molecules/drawer.styles.d.ts +115 -0
  34. package/dist/src/internal/molecules/drawer.styles.d.ts.map +1 -0
  35. package/dist/src/internal/organisms/sidebar.context.d.ts +83 -0
  36. package/dist/src/internal/organisms/sidebar.context.d.ts.map +1 -0
  37. package/dist/src/internal/organisms/sidebar.focus.d.ts +16 -0
  38. package/dist/src/internal/organisms/sidebar.focus.d.ts.map +1 -0
  39. package/dist/src/internal/organisms/sidebar.styles.d.ts +149 -0
  40. package/dist/src/internal/organisms/sidebar.styles.d.ts.map +1 -0
  41. package/dist/src/molecules/accordion.d.ts +1 -1
  42. package/dist/src/molecules/breadcrumb.d.ts +2 -2
  43. package/dist/src/molecules/carousel.d.ts +2 -2
  44. package/dist/src/molecules/combobox.d.ts +1 -1
  45. package/dist/src/molecules/drawer.d.ts +112 -0
  46. package/dist/src/molecules/drawer.d.ts.map +1 -0
  47. package/dist/src/molecules/form-input.d.ts +1 -1
  48. package/dist/src/molecules/form-numeric-input.d.ts +1 -1
  49. package/dist/src/molecules/form-textarea.d.ts +1 -1
  50. package/dist/src/molecules/menu.d.ts +1 -1
  51. package/dist/src/molecules/pagination.d.ts +1 -1
  52. package/dist/src/molecules/phone-input.d.ts +3 -3
  53. package/dist/src/molecules/popover.d.ts +1 -1
  54. package/dist/src/molecules/product-card.d.ts +4 -4
  55. package/dist/src/molecules/radio-card.d.ts +2 -2
  56. package/dist/src/molecules/radio-group.d.ts +2 -2
  57. package/dist/src/molecules/search-form.d.ts +5 -5
  58. package/dist/src/molecules/select.d.ts +1 -1
  59. package/dist/src/molecules/steps.d.ts +1 -1
  60. package/dist/src/molecules/switch.d.ts +3 -3
  61. package/dist/src/molecules/tabs.d.ts +1 -1
  62. package/dist/src/molecules/toast.d.ts +6 -6
  63. package/dist/src/molecules/tree-view.d.ts +1 -1
  64. package/dist/src/organisms/data-table.d.ts +8 -8
  65. package/dist/src/organisms/data-table.fields.d.ts +2 -2
  66. package/dist/src/organisms/data-table.helpers.d.ts +1 -1
  67. package/dist/src/organisms/gallery.d.ts +2 -2
  68. package/dist/src/organisms/sidebar.d.ts +93 -0
  69. package/dist/src/organisms/sidebar.d.ts.map +1 -0
  70. package/dist/src/templates/accordion.d.ts +2 -2
  71. package/dist/src/templates/breadcrumb.d.ts +2 -2
  72. package/dist/src/templates/carousel.d.ts +2 -2
  73. package/dist/src/templates/gallery.d.ts +3 -3
  74. package/dist/src/templates/numeric-input.d.ts +2 -2
  75. package/dist/src/templates/popover.d.ts +1 -1
  76. package/dist/src/templates/product-card.d.ts +2 -2
  77. package/dist/src/templates/select.d.ts +1 -1
  78. package/dist/src/templates/tabs.d.ts +1 -1
  79. package/dist/src/theme/theme-provider.d.ts +1 -1
  80. package/dist/src/types/zag.d.ts +1 -0
  81. package/dist/src/types/zag.d.ts.map +1 -1
  82. package/dist/stories/atoms/badge.stories.d.ts +1 -1
  83. package/dist/stories/atoms/button.stories.d.ts +1 -1
  84. package/dist/stories/atoms/checkbox.stories.d.ts +1 -1
  85. package/dist/stories/atoms/icon.stories.d.ts +1 -1
  86. package/dist/stories/atoms/image.stories.d.ts +1 -1
  87. package/dist/stories/atoms/input.stories.d.ts +1 -1
  88. package/dist/stories/atoms/numeric-input.stories.d.ts +1 -1
  89. package/dist/stories/atoms/rating.stories.d.ts +1 -1
  90. package/dist/stories/atoms/skeleton.stories.d.ts +1 -1
  91. package/dist/stories/atoms/status-text.stories.d.ts +1 -1
  92. package/dist/stories/atoms/textarea.stories.d.ts +1 -1
  93. package/dist/stories/atoms/tooltip.stories.d.ts +2 -2
  94. package/dist/stories/changelog/changelog.stories.d.ts.map +1 -1
  95. package/dist/stories/helpers/icon-options.d.ts +1 -1
  96. package/dist/stories/molecules/accordion.stories.d.ts +1 -1
  97. package/dist/stories/molecules/breadcrumb.stories.d.ts +1 -1
  98. package/dist/stories/molecules/carousel.stories.d.ts +1 -1
  99. package/dist/stories/molecules/chart.stories.d.ts +1 -1
  100. package/dist/stories/molecules/color-select.stories.d.ts +1 -1
  101. package/dist/stories/molecules/combobox.stories.d.ts +1 -1
  102. package/dist/stories/molecules/dialog.stories.d.ts +1 -1
  103. package/dist/stories/molecules/drawer.stories.d.ts +158 -0
  104. package/dist/stories/molecules/drawer.stories.d.ts.map +1 -0
  105. package/dist/stories/molecules/form-checkbox.stories.d.ts +1 -1
  106. package/dist/stories/molecules/form-input.stories.d.ts +1 -1
  107. package/dist/stories/molecules/form-numeric-input.stories.d.ts +1 -1
  108. package/dist/stories/molecules/form-textarea.stories.d.ts +1 -1
  109. package/dist/stories/molecules/menu.stories.d.ts +1 -1
  110. package/dist/stories/molecules/pagination.stories.d.ts +1 -1
  111. package/dist/stories/molecules/phone-input.stories.d.ts +1 -1
  112. package/dist/stories/molecules/popover.stories.d.ts +1 -1
  113. package/dist/stories/molecules/product-card.stories.d.ts +1 -1
  114. package/dist/stories/molecules/radio-card.stories.d.ts +1 -1
  115. package/dist/stories/molecules/radio-group.stories.d.ts +1 -1
  116. package/dist/stories/molecules/search-form.stories.d.ts +1 -1
  117. package/dist/stories/molecules/select.stories.d.ts +1 -1
  118. package/dist/stories/molecules/slider.stories.d.ts +1 -1
  119. package/dist/stories/molecules/steps.stories.d.ts +1 -1
  120. package/dist/stories/molecules/switch.stories.d.ts +1 -1
  121. package/dist/stories/molecules/tabs.stories.d.ts +1 -1
  122. package/dist/stories/molecules/tree-view.stories.d.ts +1 -1
  123. package/dist/stories/organisms/data-table.stories.d.ts +1 -1
  124. package/dist/stories/organisms/footer.stories.d.ts +1 -1
  125. package/dist/stories/organisms/gallery.stories.d.ts +2 -2
  126. package/dist/stories/organisms/header.stories.d.ts +1 -1
  127. package/dist/stories/organisms/sidebar.stories.d.ts +66 -0
  128. package/dist/stories/organisms/sidebar.stories.d.ts.map +1 -0
  129. package/dist/stories/organisms/table.stories.d.ts +1 -1
  130. package/dist/stories/templates/accordion.stories.d.ts +1 -1
  131. package/dist/stories/templates/breadcrumb.stories.d.ts +1 -1
  132. package/dist/stories/templates/carousel.stories.d.ts +1 -1
  133. package/dist/stories/templates/gallery.stories.d.ts +1 -1
  134. package/dist/stories/templates/numeric-input.stories.d.ts +1 -1
  135. package/dist/stories/templates/popover.stories.d.ts +1 -1
  136. package/dist/stories/templates/product-card.stories.d.ts +1 -1
  137. package/dist/stories/templates/select.stories.d.ts +1 -1
  138. package/dist/stories/templates/tabs.stories.d.ts +1 -1
  139. package/dist/test/drawer.behavior.spec.d.ts +2 -0
  140. package/dist/test/drawer.behavior.spec.d.ts.map +1 -0
  141. package/dist/test/sidebar.behavior.spec.d.ts +2 -0
  142. package/dist/test/sidebar.behavior.spec.d.ts.map +1 -0
  143. package/dist/test/sidebar.ssr.bun.d.ts +2 -0
  144. package/dist/test/sidebar.ssr.bun.d.ts.map +1 -0
  145. package/dist/theme/theme-provider.js +4 -4
  146. package/dist/theme/theme-toggle.js +1 -1
  147. package/package.json +43 -33
  148. package/src/tokens/components/components.css +2 -0
  149. package/src/tokens/components/molecules/_drawer.css +369 -0
  150. package/src/tokens/components/organisms/_sidebar.css +93 -0
  151. package/src/tokens/styles.d.ts +3 -0
@@ -0,0 +1,83 @@
1
+ import type { ReactNode, RefCallback } from "react";
2
+ import { type DrawerApi } from "../../molecules/drawer.js";
3
+ export type SidebarSide = "start" | "end";
4
+ export type SidebarMode = "desktop" | "mobile";
5
+ export type SidebarCollapsible = "icon" | "offcanvas" | "none";
6
+ export type SidebarCollapsiblePolicy = Readonly<Partial<Record<SidebarSide, SidebarCollapsible>>>;
7
+ export type SidebarExpandedChangeDetails = {
8
+ expanded: readonly SidebarSide[];
9
+ };
10
+ export type SidebarMobileOpenChangeDetails = {
11
+ open: SidebarSide | null;
12
+ };
13
+ export type SidebarStateProps = {
14
+ collapsible?: SidebarCollapsiblePolicy;
15
+ defaultExpanded?: readonly SidebarSide[];
16
+ defaultMobileOpen?: SidebarSide | null;
17
+ dir?: "ltr" | "rtl";
18
+ expanded?: readonly SidebarSide[];
19
+ id?: string;
20
+ mobileOpen?: SidebarSide | null;
21
+ onExpandedChange?: (details: SidebarExpandedChangeDetails) => void;
22
+ onMobileOpenChange?: (details: SidebarMobileOpenChangeDetails) => void;
23
+ };
24
+ export type SidebarApi = {
25
+ closeMobile: () => void;
26
+ dir: "ltr" | "rtl";
27
+ expanded: readonly SidebarSide[];
28
+ isDesktop: boolean;
29
+ isExpanded: (side: SidebarSide) => boolean;
30
+ mobileOpen: SidebarSide | null;
31
+ openMobile: (side: SidebarSide) => void;
32
+ setExpanded: (side: SidebarSide, expanded: boolean) => void;
33
+ toggle: (side: SidebarSide) => void;
34
+ };
35
+ export type SidebarFocusOrigin = {
36
+ document: Document;
37
+ mode: SidebarMode;
38
+ node: HTMLElement;
39
+ revision: number;
40
+ side: SidebarSide;
41
+ triggerValue: string | null;
42
+ };
43
+ type SidebarFocusCapture = Omit<SidebarFocusOrigin, "document" | "revision">;
44
+ export type SidebarFocusRegistry = {
45
+ blur: (details: {
46
+ mode: SidebarMode;
47
+ node: HTMLElement;
48
+ relatedTarget: Node | null;
49
+ side: SidebarSide;
50
+ }) => void;
51
+ capture: (details: SidebarFocusCapture) => void;
52
+ claim: (side: SidebarSide, fromMode: SidebarMode) => SidebarFocusOrigin | null;
53
+ clear: (side: SidebarSide, revision?: number) => void;
54
+ getRevision: (side: SidebarSide) => number;
55
+ peek: (side: SidebarSide) => SidebarFocusOrigin | null;
56
+ };
57
+ type SidebarContextValue = SidebarApi & {
58
+ breakpointRef: RefCallback<HTMLSpanElement>;
59
+ drawer: Record<SidebarSide, DrawerApi>;
60
+ focus: SidebarFocusRegistry;
61
+ getCollapsible: (side: SidebarSide) => SidebarCollapsible;
62
+ getPanelId: (side: SidebarSide) => string;
63
+ isFixed: (side: SidebarSide) => boolean;
64
+ rootId: string;
65
+ };
66
+ type SidebarPanelContextValue = {
67
+ collapsible: SidebarCollapsible;
68
+ expanded: boolean;
69
+ side: SidebarSide;
70
+ };
71
+ export declare function useSidebarState({ collapsible: collapsiblePolicy, defaultExpanded, defaultMobileOpen, dir, expanded: controlledExpanded, id, mobileOpen: controlledMobileOpen, onExpandedChange, onMobileOpenChange, }?: SidebarStateProps): SidebarContextValue;
72
+ export declare function SidebarProvider({ children, value, }: {
73
+ children?: ReactNode;
74
+ value: SidebarContextValue;
75
+ }): import("react/jsx-runtime").JSX.Element;
76
+ export declare function SidebarPanelProvider({ children, value, }: {
77
+ children?: ReactNode;
78
+ value: SidebarPanelContextValue;
79
+ }): import("react/jsx-runtime").JSX.Element;
80
+ export declare function useSidebarContext(): SidebarContextValue;
81
+ export declare function useSidebarPanelContext(): SidebarPanelContextValue;
82
+ export {};
83
+ //# sourceMappingURL=sidebar.context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.context.d.ts","sourceRoot":"","sources":["../../../../src/internal/organisms/sidebar.context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAUnD,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,wBAAwB,CAAA;AAElE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,CAAA;AACzC,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;AAC9C,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAA;AAC9D,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAC7C,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC,CACjD,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,CAAC,EAAE,wBAAwB,CAAA;IACtC,eAAe,CAAC,EAAE,SAAS,WAAW,EAAE,CAAA;IACxC,iBAAiB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IACtC,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,WAAW,EAAE,CAAA;IAC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;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,mBAAmB,CAAA;CAC3B,2CAIA;AAED,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,wBAAwB,CAAA;CAChC,2CAMA;AAED,wBAAgB,iBAAiB,wBAMhC;AAED,wBAAgB,sBAAsB,6BAMrC"}
@@ -0,0 +1,16 @@
1
+ import type { FocusEvent } from "react";
2
+ import type { SidebarFocusRegistry, SidebarSide } from "./sidebar.context.js";
3
+ type UseSidebarPanelFocusTransferProps = {
4
+ focus: SidebarFocusRegistry;
5
+ isDesktop: boolean;
6
+ panelId: string;
7
+ rootId: string;
8
+ side: SidebarSide;
9
+ triggerValue: string | null;
10
+ };
11
+ export declare function useSidebarPanelFocusTransfer({ focus, isDesktop, panelId, rootId, side, triggerValue, }: UseSidebarPanelFocusTransferProps): {
12
+ onBlurCapture: (event: FocusEvent<HTMLElement>) => void;
13
+ onFocusCapture: (event: FocusEvent<HTMLElement>) => void;
14
+ };
15
+ export {};
16
+ //# sourceMappingURL=sidebar.focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.focus.d.ts","sourceRoot":"","sources":["../../../../src/internal/organisms/sidebar.focus.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAEV,oBAAoB,EAEpB,WAAW,EACZ,MAAM,mBAAmB,CAAA;AA2O1B,KAAK,iCAAiC,GAAG;IACvC,KAAK,EAAE,oBAAoB,CAAA;IAC3B,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,WAAW,CAAA;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B,CAAA;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,KAAK,EACL,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,YAAY,GACb,EAAE,iCAAiC;2BAgFJ,UAAU,CAAC,WAAW,CAAC;4BATtB,UAAU,CAAC,WAAW,CAAC;EAmBvD"}
@@ -0,0 +1,149 @@
1
+ export declare const sidebarVariants: import("tailwind-variants").TVReturnType<{
2
+ collapsible: {
3
+ icon: {};
4
+ offcanvas: {};
5
+ none: {};
6
+ };
7
+ expanded: {
8
+ true: {};
9
+ false: {};
10
+ };
11
+ paneSize: {
12
+ rail: {
13
+ pane: string;
14
+ };
15
+ content: {
16
+ pane: string[];
17
+ };
18
+ auto: {
19
+ pane: string;
20
+ };
21
+ };
22
+ collapsed: {
23
+ true: {
24
+ label: string;
25
+ };
26
+ false: {};
27
+ };
28
+ }, {
29
+ root: string[];
30
+ breakpoint: string;
31
+ desktopPanel: string[];
32
+ mobilePanel: string[];
33
+ mobileAside: string;
34
+ trigger: string[];
35
+ inset: string[];
36
+ header: string[];
37
+ content: string[];
38
+ footer: string[];
39
+ group: string;
40
+ groupLabel: string[];
41
+ groupContent: string;
42
+ menu: string;
43
+ item: string;
44
+ separator: string[];
45
+ expanded: string;
46
+ label: string;
47
+ paneGroup: string;
48
+ pane: string;
49
+ rail: string[];
50
+ }, undefined, {
51
+ collapsible: {
52
+ icon: {};
53
+ offcanvas: {};
54
+ none: {};
55
+ };
56
+ expanded: {
57
+ true: {};
58
+ false: {};
59
+ };
60
+ paneSize: {
61
+ rail: {
62
+ pane: string;
63
+ };
64
+ content: {
65
+ pane: string[];
66
+ };
67
+ auto: {
68
+ pane: string;
69
+ };
70
+ };
71
+ collapsed: {
72
+ true: {
73
+ label: string;
74
+ };
75
+ false: {};
76
+ };
77
+ }, {
78
+ root: string[];
79
+ breakpoint: string;
80
+ desktopPanel: string[];
81
+ mobilePanel: string[];
82
+ mobileAside: string;
83
+ trigger: string[];
84
+ inset: string[];
85
+ header: string[];
86
+ content: string[];
87
+ footer: string[];
88
+ group: string;
89
+ groupLabel: string[];
90
+ groupContent: string;
91
+ menu: string;
92
+ item: string;
93
+ separator: string[];
94
+ expanded: string;
95
+ label: string;
96
+ paneGroup: string;
97
+ pane: string;
98
+ rail: string[];
99
+ }, import("tailwind-variants").TVReturnType<{
100
+ collapsible: {
101
+ icon: {};
102
+ offcanvas: {};
103
+ none: {};
104
+ };
105
+ expanded: {
106
+ true: {};
107
+ false: {};
108
+ };
109
+ paneSize: {
110
+ rail: {
111
+ pane: string;
112
+ };
113
+ content: {
114
+ pane: string[];
115
+ };
116
+ auto: {
117
+ pane: string;
118
+ };
119
+ };
120
+ collapsed: {
121
+ true: {
122
+ label: string;
123
+ };
124
+ false: {};
125
+ };
126
+ }, {
127
+ root: string[];
128
+ breakpoint: string;
129
+ desktopPanel: string[];
130
+ mobilePanel: string[];
131
+ mobileAside: string;
132
+ trigger: string[];
133
+ inset: string[];
134
+ header: string[];
135
+ content: string[];
136
+ footer: string[];
137
+ group: string;
138
+ groupLabel: string[];
139
+ groupContent: string;
140
+ menu: string;
141
+ item: string;
142
+ separator: string[];
143
+ expanded: string;
144
+ label: string;
145
+ paneGroup: string;
146
+ pane: string;
147
+ rail: string[];
148
+ }, undefined, unknown, unknown, undefined>>;
149
+ //# sourceMappingURL=sidebar.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.styles.d.ts","sourceRoot":"","sources":["../../../../src/internal/organisms/sidebar.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAiJ1B,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { type ComponentPropsWithoutRef, type Ref } from "react";
2
2
  import type { VariantProps } from "tailwind-variants";
3
- import { type IconProps, type IconType } from "../atoms/icon";
3
+ import { type IconProps, type IconType } from "../atoms/icon.js";
4
4
  declare const accordionVariants: import("tailwind-variants").TVReturnType<{
5
5
  variant: {
6
6
  default: {
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import { type ComponentPropsWithoutRef, type ElementType, type Ref } from "react";
13
13
  import type { VariantProps } from "tailwind-variants";
14
- import { type IconProps, type IconType } from "../atoms/icon";
15
- import { type LinkProps } from "../atoms/link";
14
+ import { type IconProps, type IconType } from "../atoms/icon.js";
15
+ import { type LinkProps } from "../atoms/link.js";
16
16
  declare const BreadcrumbVariants: import("tailwind-variants").TVReturnType<{
17
17
  variant: {
18
18
  plain: {};
@@ -12,8 +12,8 @@
12
12
  import * as carousel from "@zag-js/carousel";
13
13
  import { type CSSProperties, type ComponentPropsWithoutRef, type ElementType, type ReactNode } from "react";
14
14
  import { type VariantProps } from "tailwind-variants";
15
- import type { IconType } from "../atoms/icon";
16
- import { Image } from "../atoms/image";
15
+ import type { IconType } from "../atoms/icon.js";
16
+ import { Image } from "../atoms/image.js";
17
17
  type CarouselImageComponent<T extends ElementType = typeof Image> = T extends typeof Image ? typeof Image : T extends ElementType ? "src" extends keyof ComponentPropsWithoutRef<T> ? "alt" extends keyof ComponentPropsWithoutRef<T> ? T : never : never : never;
18
18
  declare const carouselVariants: import("tailwind-variants").TVReturnType<{
19
19
  objectFit: {
@@ -1,5 +1,5 @@
1
1
  import type { VariantProps } from "tailwind-variants";
2
- import { type IconProps, type IconType } from "../atoms/icon";
2
+ import { type IconProps, type IconType } from "../atoms/icon.js";
3
3
  declare const comboboxVariants: import("tailwind-variants").TVReturnType<{
4
4
  size: {
5
5
  sm: {
@@ -0,0 +1,112 @@
1
+ import type * as drawer from "@zag-js/drawer";
2
+ import { type PortalProps } from "@zag-js/react";
3
+ import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
4
+ import { type ActionIconProps } from "../atoms/action-icon.js";
5
+ import { type ButtonProps } from "../atoms/button.js";
6
+ import type { IconType } from "../atoms/icon.js";
7
+ import { type DrawerApi, type DrawerPresenceProps, DrawerStackProvider, type DrawerStackProviderProps, type UseDrawerProps, useDrawer as useDrawerMachine } from "../internal/molecules/drawer.context.js";
8
+ import { type DrawerSize } from "../internal/molecules/drawer.styles.js";
9
+ export type { DrawerApi, DrawerPresenceProps, DrawerStackApi, UseDrawerProps, } from "../internal/molecules/drawer.context.js";
10
+ export type { DrawerSize } from "../internal/molecules/drawer.styles.js";
11
+ export declare const useDrawer: typeof useDrawerMachine;
12
+ export type DrawerPlacement = "bottom" | "end" | "start" | "top";
13
+ export type DrawerRootProps = Omit<UseDrawerProps, "swipeDirection"> & DrawerPresenceProps & {
14
+ children?: ReactNode;
15
+ placement?: DrawerPlacement;
16
+ size?: DrawerSize;
17
+ };
18
+ export declare function Drawer({ children, immediate, lazyMount, onEnterComplete, onExitComplete, placement, size, skipAnimationOnMount, unmountOnExit, ...machineProps }: DrawerRootProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare namespace Drawer {
20
+ var Root: typeof Drawer;
21
+ var RootProvider: ({ children, immediate, lazyMount, onEnterComplete, onExitComplete, size, skipAnimationOnMount, unmountOnExit, value, }: DrawerRootProviderProps) => import("react/jsx-runtime").JSX.Element;
22
+ var Trigger: ({ className, ref, value, ...props }: DrawerTriggerProps) => import("react/jsx-runtime").JSX.Element;
23
+ var Portal: (props: DrawerPortalProps) => import("react/jsx-runtime").JSX.Element;
24
+ var Backdrop: ({ className, ref, ...props }: DrawerBackdropProps) => import("react/jsx-runtime").JSX.Element | null;
25
+ var Positioner: ({ className, ref, ...props }: DrawerPositionerProps) => import("react/jsx-runtime").JSX.Element | null;
26
+ var Content: ({ className, draggable, ref, ...props }: DrawerContentProps) => import("react/jsx-runtime").JSX.Element | null;
27
+ var Header: ({ className, ref, ...props }: DrawerHeaderProps) => import("react/jsx-runtime").JSX.Element;
28
+ var Body: ({ className, ref, ...props }: DrawerBodyProps) => import("react/jsx-runtime").JSX.Element;
29
+ var Footer: ({ className, ref, ...props }: DrawerFooterProps) => import("react/jsx-runtime").JSX.Element;
30
+ var Title: ({ className, ref, ...props }: DrawerTitleProps) => import("react/jsx-runtime").JSX.Element;
31
+ var Description: ({ className, ref, ...props }: DrawerDescriptionProps) => import("react/jsx-runtime").JSX.Element;
32
+ var CloseTrigger: (props: DrawerCloseTriggerProps) => import("react/jsx-runtime").JSX.Element;
33
+ var Grabber: ({ className, ref, ...props }: DrawerGrabberProps) => import("react/jsx-runtime").JSX.Element;
34
+ var GrabberIndicator: ({ className, ref, ...props }: DrawerGrabberIndicatorProps) => import("react/jsx-runtime").JSX.Element;
35
+ var SwipeArea: ({ className, disabled, ref, swipeDirection, ...props }: DrawerSwipeAreaProps) => import("react/jsx-runtime").JSX.Element;
36
+ var Context: ({ children }: DrawerContextProps) => ReactNode;
37
+ var Stack: typeof DrawerStackProvider;
38
+ var Indent: ({ className, ref, ...props }: DrawerIndentProps) => import("react/jsx-runtime").JSX.Element;
39
+ var IndentBackground: ({ className, ref, ...props }: DrawerIndentBackgroundProps) => import("react/jsx-runtime").JSX.Element;
40
+ var displayName: string;
41
+ }
42
+ export type DrawerRootProviderProps = DrawerPresenceProps & {
43
+ children?: ReactNode;
44
+ size?: DrawerSize;
45
+ value: DrawerApi;
46
+ };
47
+ export type DrawerTriggerProps = Omit<ButtonProps, "value"> & drawer.TriggerProps & {
48
+ ref?: Ref<HTMLButtonElement>;
49
+ };
50
+ export type DrawerPortalProps = PortalProps & {
51
+ children?: ReactNode;
52
+ };
53
+ export type DrawerBackdropProps = ComponentPropsWithoutRef<"div"> & {
54
+ ref?: Ref<HTMLDivElement>;
55
+ };
56
+ export type DrawerPositionerProps = ComponentPropsWithoutRef<"div"> & {
57
+ ref?: Ref<HTMLDivElement>;
58
+ };
59
+ export type DrawerContentProps = Omit<ComponentPropsWithoutRef<"div">, "draggable"> & drawer.ContentProps & {
60
+ ref?: Ref<HTMLDivElement>;
61
+ };
62
+ export type DrawerSectionProps = ComponentPropsWithoutRef<"div"> & {
63
+ ref?: Ref<HTMLDivElement>;
64
+ };
65
+ export type DrawerHeaderProps = DrawerSectionProps;
66
+ export type DrawerBodyProps = DrawerSectionProps;
67
+ export type DrawerFooterProps = DrawerSectionProps;
68
+ export type DrawerTitleProps = ComponentPropsWithoutRef<"h2"> & {
69
+ ref?: Ref<HTMLHeadingElement>;
70
+ };
71
+ export type DrawerDescriptionProps = ComponentPropsWithoutRef<"p"> & {
72
+ ref?: Ref<HTMLParagraphElement>;
73
+ };
74
+ type DrawerIconCloseTriggerProps = Omit<ActionIconProps, "icon"> & {
75
+ children?: undefined;
76
+ icon?: IconType;
77
+ };
78
+ type DrawerTextCloseTriggerProps = ButtonProps & {
79
+ children: NonNullable<ReactNode>;
80
+ ref?: Ref<HTMLButtonElement>;
81
+ };
82
+ export type DrawerCloseTriggerProps = DrawerIconCloseTriggerProps | DrawerTextCloseTriggerProps;
83
+ export type DrawerGrabberProps = ComponentPropsWithoutRef<"div"> & {
84
+ ref?: Ref<HTMLDivElement>;
85
+ };
86
+ export type DrawerGrabberIndicatorProps = ComponentPropsWithoutRef<"div"> & {
87
+ ref?: Ref<HTMLDivElement>;
88
+ };
89
+ export type DrawerSwipeAreaProps = ComponentPropsWithoutRef<"div"> & drawer.SwipeAreaProps & {
90
+ ref?: Ref<HTMLDivElement>;
91
+ };
92
+ export type DrawerContextProps = {
93
+ children: (api: DrawerApi) => ReactNode;
94
+ };
95
+ export type DrawerStackProps = DrawerStackProviderProps;
96
+ export type DrawerIndentProps = ComponentPropsWithoutRef<"div"> & {
97
+ ref?: Ref<HTMLDivElement>;
98
+ };
99
+ export type DrawerIndentBackgroundProps = DrawerIndentProps;
100
+ export type DrawerElementIds = drawer.ElementIds;
101
+ export type DrawerFocusOutsideEvent = drawer.FocusOutsideEvent;
102
+ export type DrawerInteractOutsideEvent = drawer.InteractOutsideEvent;
103
+ export type DrawerOpenChangeDetails = drawer.OpenChangeDetails;
104
+ export type DrawerPointerDownOutsideEvent = drawer.PointerDownOutsideEvent;
105
+ export type DrawerResolvedSnapPoint = drawer.ResolvedSnapPoint;
106
+ export type DrawerSnapPoint = drawer.SnapPoint;
107
+ export type DrawerSnapPointChangeDetails = drawer.SnapPointChangeDetails;
108
+ export type DrawerStack = drawer.DrawerStack;
109
+ export type DrawerStackSnapshot = drawer.DrawerStackSnapshot;
110
+ export type DrawerSwipeDirection = drawer.SwipeDirection;
111
+ export type DrawerTriggerValueChangeDetails = drawer.TriggerValueChangeDetails;
112
+ //# sourceMappingURL=drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/molecules/drawer.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EACL,KAAK,SAAS,EACd,KAAK,mBAAmB,EAExB,mBAAmB,EACnB,KAAK,wBAAwB,EAE7B,KAAK,cAAc,EAGnB,SAAS,IAAI,gBAAgB,EAG9B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,qCAAqC,CAAA;AAE5C,YAAY,EACV,SAAS,EACT,mBAAmB,EACnB,cAAc,EACd,cAAc,GACf,MAAM,sCAAsC,CAAA;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAA;AAErE,eAAO,MAAM,SAA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AC1E,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,iBAAiB,CAAA;AAC9D,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,SAAS,CAAA;AAC9C,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,sBAAsB,CAAA;AACxE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;AAC5C,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAA;AAC5D,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,cAAc,CAAA;AACxD,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,yBAAyB,CAAA"}
@@ -10,7 +10,7 @@
10
10
  * the form-input-usage skill's component_version and a changelog entry. Bump all three together.
11
11
  */
12
12
  import type { ReactNode } from "react";
13
- import { type InputProps } from "../atoms/input";
13
+ import { type InputProps } from "../atoms/input.js";
14
14
  type ValidateStatus = "default" | "error" | "success" | "warning";
15
15
  interface FormInputRawProps extends InputProps {
16
16
  id: string;
@@ -10,7 +10,7 @@
10
10
  * the form-numeric-input-usage skill's component_version and a changelog entry. Bump all three together.
11
11
  */
12
12
  import type { ReactNode } from "react";
13
- import { type NumericInputProps } from "../atoms/numeric-input";
13
+ import { type NumericInputProps } from "../atoms/numeric-input.js";
14
14
  type ValidateStatus = "default" | "error" | "success" | "warning";
15
15
  interface FormNumericInputProps extends Omit<NumericInputProps, "children"> {
16
16
  id: string;
@@ -10,7 +10,7 @@
10
10
  * the form-textarea-usage skill's component_version and a changelog entry. Bump all three together.
11
11
  */
12
12
  import type { ReactNode } from "react";
13
- import { type TextareaProps } from "../atoms/textarea";
13
+ import { type TextareaProps } from "../atoms/textarea.js";
14
14
  type ValidateStatus = "default" | "error" | "success" | "warning";
15
15
  interface FormTextareaRawProps extends TextareaProps {
16
16
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from "react";
2
2
  import { type VariantProps } from "tailwind-variants";
3
- import { type IconType } from "../atoms/icon";
3
+ import { type IconType } from "../atoms/icon.js";
4
4
  type ActionMenuItem = {
5
5
  type: "action";
6
6
  value: string;
@@ -12,7 +12,7 @@
12
12
  import { type IntlTranslations as PaginationIntlTranslations, type PageUrlDetails as PaginationPageUrlDetails } from "@zag-js/pagination";
13
13
  import { type ElementType, type HTMLAttributes, type ReactNode } from "react";
14
14
  import type { VariantProps } from "tailwind-variants";
15
- import { type LinkButtonProps } from "../atoms/link-button";
15
+ import { type LinkButtonProps } from "../atoms/link-button.js";
16
16
  export declare const paginationVariants: import("tailwind-variants").TVReturnType<{
17
17
  variant: {
18
18
  filled: {
@@ -12,9 +12,9 @@
12
12
  import { type CountryCode, type E164Number } from "libphonenumber-js/max";
13
13
  import { type ChangeEventHandler, type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
14
14
  import type { VariantProps } from "tailwind-variants";
15
- import type { IconProps } from "../atoms/icon";
16
- import { type InputProps } from "../atoms/input";
17
- import { type LabelProps } from "../atoms/label";
15
+ import type { IconProps } from "../atoms/icon.js";
16
+ import { type InputProps } from "../atoms/input.js";
17
+ import { type LabelProps } from "../atoms/label.js";
18
18
  export type PhoneInputSize = "sm" | "md" | "lg";
19
19
  export type PhoneInputValidateStatus = "default" | "error" | "success" | "warning";
20
20
  export type PhoneInputCountry = {
@@ -12,7 +12,7 @@
12
12
  import { type Api as PopoverApi, type Props as PopoverMachineProps, type Placement as PopoverPlacement, type PositioningOptions as PopoverPositioningOptions } from "@zag-js/popover";
13
13
  import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
14
14
  import type { VariantProps } from "tailwind-variants";
15
- import { type ButtonProps } from "../atoms/button";
15
+ import { type ButtonProps } from "../atoms/button.js";
16
16
  declare const popoverVariants: import("tailwind-variants").TVReturnType<{
17
17
  shadow: {
18
18
  true: {
@@ -11,9 +11,9 @@
11
11
  */
12
12
  import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ElementType, type HTMLAttributes, type ReactNode, type Ref } from "react";
13
13
  import type { VariantProps } from "tailwind-variants";
14
- import type { IconProps, IconType } from "../atoms/icon";
15
- import { Image } from "../atoms/image";
16
- import { type RatingProps } from "../atoms/rating";
14
+ import type { IconProps, IconType } from "../atoms/icon.js";
15
+ import { Image } from "../atoms/image.js";
16
+ import { type RatingProps } from "../atoms/rating.js";
17
17
  declare const productCardVariants: import("tailwind-variants").TVReturnType<{
18
18
  buttonVariant: {
19
19
  cart: {
@@ -159,7 +159,7 @@ interface ProductCardButtonProps extends HTMLAttributes<HTMLButtonElement> {
159
159
  }
160
160
  export declare function ProductCard({ children, layout, className, ref, ...props }: ProductCardProps): import("react/jsx-runtime").JSX.Element;
161
161
  export declare namespace ProductCard {
162
- var Image: <T extends ElementType = typeof import("../atoms/image").Image>({ as, className, ref, ...props }: ProductCardImageProps<T>) => import("react/jsx-runtime").JSX.Element;
162
+ var Image: <T extends ElementType = typeof import("../atoms/image.js").Image>({ as, className, ref, ...props }: ProductCardImageProps<T>) => import("react/jsx-runtime").JSX.Element;
163
163
  var Name: ({ children, className, ref, ...props }: ProductCardNameProps) => import("react/jsx-runtime").JSX.Element;
164
164
  var Price: ({ children, className, ref, ...props }: ProductCardPriceProps) => import("react/jsx-runtime").JSX.Element;
165
165
  var Stock: ({ children, className, ref, status, ...props }: ProductCardStockProps) => import("react/jsx-runtime").JSX.Element;
@@ -12,8 +12,8 @@
12
12
  import { connect, type ItemProps, type Props as ZagRadioGroupProps } from "@zag-js/radio-group";
13
13
  import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
14
14
  import type { VariantProps } from "tailwind-variants";
15
- import { Label } from "../atoms/label";
16
- import { StatusText } from "../atoms/status-text";
15
+ import { Label } from "../atoms/label.js";
16
+ import { StatusText } from "../atoms/status-text.js";
17
17
  declare const radioCardVariants: import("tailwind-variants").TVReturnType<{
18
18
  variant: {
19
19
  outline: {
@@ -12,8 +12,8 @@
12
12
  import * as zagRadioGroup from "@zag-js/radio-group";
13
13
  import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
14
14
  import type { VariantProps } from "tailwind-variants";
15
- import { Label } from "../atoms/label";
16
- import { StatusText } from "../atoms/status-text";
15
+ import { Label } from "../atoms/label.js";
16
+ import { StatusText } from "../atoms/status-text.js";
17
17
  declare const radioGroupVariants: import("tailwind-variants").TVReturnType<{
18
18
  variant: {
19
19
  outline: {
@@ -11,11 +11,11 @@
11
11
  */
12
12
  import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
13
13
  import type { VariantProps } from "tailwind-variants";
14
- import { type ActionIconProps } from "../atoms/action-icon";
15
- import { type ButtonProps } from "../atoms/button";
16
- import type { IconType } from "../atoms/icon";
17
- import { type InputProps } from "../atoms/input";
18
- import { type LabelProps } from "../atoms/label";
14
+ import { type ActionIconProps } from "../atoms/action-icon.js";
15
+ import { type ButtonProps } from "../atoms/button.js";
16
+ import type { IconType } from "../atoms/icon.js";
17
+ import { type InputProps } from "../atoms/input.js";
18
+ import { type LabelProps } from "../atoms/label.js";
19
19
  declare const searchFormVariants: import("tailwind-variants").TVReturnType<{
20
20
  size: {
21
21
  sm: {
@@ -1,7 +1,7 @@
1
1
  import * as select from "@zag-js/select";
2
2
  import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
3
3
  import { type VariantProps } from "tailwind-variants";
4
- import { type IconProps } from "../atoms/icon";
4
+ import { type IconProps } from "../atoms/icon.js";
5
5
  export type SelectSize = "xs" | "sm" | "md" | "lg";
6
6
  export type SelectItem = {
7
7
  label: ReactNode;
@@ -1,7 +1,7 @@
1
1
  import { type Props as StepsMachineProps, type Api as ZagStepsApi } from "@zag-js/steps";
2
2
  import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
3
3
  import type { VariantProps } from "tailwind-variants";
4
- import { type ButtonProps } from "../atoms/button";
4
+ import { type ButtonProps } from "../atoms/button.js";
5
5
  declare const stepsVariants: import("tailwind-variants").TVReturnType<{
6
6
  variant: {
7
7
  subtle: {};
@@ -3,8 +3,8 @@ import type { VariantProps } from "tailwind-variants";
3
3
  declare const switchVariants: import("tailwind-variants").TVReturnType<{
4
4
  [key: string]: {
5
5
  [key: string]: import("tailwind-merge").ClassNameValue | {
6
- root?: import("tailwind-merge").ClassNameValue;
7
6
  label?: import("tailwind-merge").ClassNameValue;
7
+ root?: import("tailwind-merge").ClassNameValue;
8
8
  control?: import("tailwind-merge").ClassNameValue;
9
9
  hiddenInput?: import("tailwind-merge").ClassNameValue;
10
10
  thumb?: import("tailwind-merge").ClassNameValue;
@@ -13,8 +13,8 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
13
13
  } | {
14
14
  [x: string]: {
15
15
  [x: string]: import("tailwind-merge").ClassNameValue | {
16
- root?: import("tailwind-merge").ClassNameValue;
17
16
  label?: import("tailwind-merge").ClassNameValue;
17
+ root?: import("tailwind-merge").ClassNameValue;
18
18
  control?: import("tailwind-merge").ClassNameValue;
19
19
  hiddenInput?: import("tailwind-merge").ClassNameValue;
20
20
  thumb?: import("tailwind-merge").ClassNameValue;
@@ -29,8 +29,8 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
29
29
  }, undefined, {
30
30
  [key: string]: {
31
31
  [key: string]: import("tailwind-merge").ClassNameValue | {
32
- root?: import("tailwind-merge").ClassNameValue;
33
32
  label?: import("tailwind-merge").ClassNameValue;
33
+ root?: import("tailwind-merge").ClassNameValue;
34
34
  control?: import("tailwind-merge").ClassNameValue;
35
35
  hiddenInput?: import("tailwind-merge").ClassNameValue;
36
36
  thumb?: import("tailwind-merge").ClassNameValue;
@@ -1,6 +1,6 @@
1
1
  import { type ComponentPropsWithoutRef, type Ref } from "react";
2
2
  import type { VariantProps } from "tailwind-variants";
3
- import { type ButtonProps } from "../atoms/button";
3
+ import { type ButtonProps } from "../atoms/button.js";
4
4
  declare const tabsVariants: import("tailwind-variants").TVReturnType<{
5
5
  variant: {
6
6
  default: {