@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,158 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import { type DrawerRootProps } from "../../src/molecules/drawer.js";
3
+ type DrawerStoryArgs = Omit<DrawerRootProps, "children"> & {
4
+ draggable: boolean;
5
+ triggerLabel: string;
6
+ };
7
+ declare function DrawerStory({ draggable, triggerLabel, ...rootProps }: DrawerStoryArgs): import("react/jsx-runtime").JSX.Element;
8
+ declare const meta: {
9
+ title: string;
10
+ component: typeof DrawerStory;
11
+ tags: string[];
12
+ parameters: {
13
+ layout: string;
14
+ docs: {
15
+ description: {
16
+ component: string;
17
+ };
18
+ };
19
+ };
20
+ argTypes: {
21
+ placement: {
22
+ control: "select";
23
+ options: string[];
24
+ description: string;
25
+ table: {
26
+ defaultValue: {
27
+ summary: string;
28
+ };
29
+ };
30
+ };
31
+ size: {
32
+ control: "select";
33
+ options: string[];
34
+ description: string;
35
+ table: {
36
+ defaultValue: {
37
+ summary: string;
38
+ };
39
+ };
40
+ };
41
+ modal: {
42
+ control: "boolean";
43
+ description: string;
44
+ table: {
45
+ defaultValue: {
46
+ summary: string;
47
+ };
48
+ };
49
+ };
50
+ draggable: {
51
+ control: "boolean";
52
+ description: string;
53
+ table: {
54
+ defaultValue: {
55
+ summary: string;
56
+ };
57
+ };
58
+ };
59
+ closeOnEscape: {
60
+ control: "boolean";
61
+ description: string;
62
+ table: {
63
+ defaultValue: {
64
+ summary: string;
65
+ };
66
+ };
67
+ };
68
+ closeOnInteractOutside: {
69
+ control: "boolean";
70
+ description: string;
71
+ table: {
72
+ defaultValue: {
73
+ summary: string;
74
+ };
75
+ };
76
+ };
77
+ preventScroll: {
78
+ control: "boolean";
79
+ description: string;
80
+ table: {
81
+ defaultValue: {
82
+ summary: string;
83
+ };
84
+ };
85
+ };
86
+ trapFocus: {
87
+ control: "boolean";
88
+ description: string;
89
+ table: {
90
+ defaultValue: {
91
+ summary: string;
92
+ };
93
+ };
94
+ };
95
+ triggerLabel: {
96
+ control: "text";
97
+ description: string;
98
+ };
99
+ ids: {
100
+ table: {
101
+ disable: true;
102
+ };
103
+ };
104
+ initialFocusEl: {
105
+ table: {
106
+ disable: true;
107
+ };
108
+ };
109
+ finalFocusEl: {
110
+ table: {
111
+ disable: true;
112
+ };
113
+ };
114
+ getRootNode: {
115
+ table: {
116
+ disable: true;
117
+ };
118
+ };
119
+ stack: {
120
+ table: {
121
+ disable: true;
122
+ };
123
+ };
124
+ onOpenChange: {
125
+ control: false;
126
+ };
127
+ onSnapPointChange: {
128
+ control: false;
129
+ };
130
+ onTriggerValueChange: {
131
+ control: false;
132
+ };
133
+ };
134
+ args: {
135
+ closeOnEscape: true;
136
+ closeOnInteractOutside: true;
137
+ draggable: true;
138
+ modal: true;
139
+ onOpenChange: import("storybook/test").Mock<(...args: any[]) => any>;
140
+ placement: "end";
141
+ preventScroll: true;
142
+ size: "md";
143
+ trapFocus: true;
144
+ triggerLabel: string;
145
+ };
146
+ };
147
+ export default meta;
148
+ type Story = StoryObj<typeof meta>;
149
+ export declare const Playground: Story;
150
+ export declare const Placements: Story;
151
+ export declare const Sizes: Story;
152
+ export declare const SnapPointsAndSwipe: Story;
153
+ export declare const Controlled: Story;
154
+ export declare const MultipleTriggers: Story;
155
+ export declare const CustomContainer: Story;
156
+ export declare const NonModal: Story;
157
+ export declare const Stack: Story;
158
+ //# sourceMappingURL=drawer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.stories.d.ts","sourceRoot":"","sources":["../../../stories/molecules/drawer.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAKtD,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,4BAA4B,CAAA;AA6DnC,KAAK,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IACzD,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,YAAY,EACZ,GAAG,SAAS,EACb,EAAE,eAAe,2CAejB;AAED,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF0B,CAAA;AAEpC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,UAAU,EAAE,KAAU,CAAA;AASnC,eAAO,MAAM,UAAU,EAAE,KAqBxB,CAAA;AAID,eAAO,MAAM,KAAK,EAAE,KAqBnB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAiDhC,CAAA;AAgCD,eAAO,MAAM,UAAU,EAAE,KAGxB,CAAA;AAyCD,eAAO,MAAM,gBAAgB,EAAE,KAG9B,CAAA;AAqCD,eAAO,MAAM,eAAe,EAAE,KAQ7B,CAAA;AAoCD,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAA;AAmCD,eAAO,MAAM,KAAK,EAAE,KAGnB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { FormCheckbox } from "../../src/molecules/form-checkbox";
2
+ import { FormCheckbox } from "../../src/molecules/form-checkbox.js";
3
3
  declare const meta: Meta<typeof FormCheckbox>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof FormCheckbox>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { FormInput } from '../../src/molecules/form-input';
2
+ import { FormInput } from '../../src/molecules/form-input.js';
3
3
  declare const meta: Meta<typeof FormInput>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof FormInput>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { FormNumericInput } from '../../src/molecules/form-numeric-input';
2
+ import { FormNumericInput } from '../../src/molecules/form-numeric-input.js';
3
3
  declare const meta: Meta<typeof FormNumericInput>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof FormNumericInput>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { FormTextarea } from '../../src/molecules/form-textarea';
2
+ import { FormTextarea } from '../../src/molecules/form-textarea.js';
3
3
  declare const meta: Meta<typeof FormTextarea>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof FormTextarea>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Menu } from '../../src/molecules/menu';
2
+ import { Menu } from '../../src/molecules/menu.js';
3
3
  declare const meta: Meta<typeof Menu>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { Pagination } from "../../src/molecules/pagination";
2
+ import { Pagination } from "../../src/molecules/pagination.js";
3
3
  declare const meta: Meta<typeof Pagination>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Pagination>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { PhoneInput } from "../../src/molecules/phone-input";
2
+ import { PhoneInput } from "../../src/molecules/phone-input.js";
3
3
  declare const meta: Meta<typeof PhoneInput>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof PhoneInput>;
@@ -1,5 +1,5 @@
1
1
  import type { StoryObj } from "@storybook/react";
2
- import { type PopoverTemplateProps } from "../../src/templates/popover";
2
+ import { type PopoverTemplateProps } from "../../src/templates/popover.js";
3
3
  type PopoverStoryArgs = PopoverTemplateProps;
4
4
  declare function PopoverStory(args: PopoverStoryArgs): import("react/jsx-runtime").JSX.Element;
5
5
  declare const meta: {
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { ProductCard } from '../../src/molecules/product-card';
2
+ import { ProductCard } from '../../src/molecules/product-card.js';
3
3
  declare const productImages: {
4
4
  tshirt: string;
5
5
  shoes: string;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { RadioCard } from "../../src/molecules/radio-card";
2
+ import { RadioCard } from "../../src/molecules/radio-card.js";
3
3
  declare const meta: Meta<typeof RadioCard>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { RadioGroup } from "../../src/molecules/radio-group";
2
+ import { RadioGroup } from "../../src/molecules/radio-group.js";
3
3
  declare const meta: Meta<typeof RadioGroup>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { SearchForm } from "../../src/molecules/search-form";
2
+ import { SearchForm } from "../../src/molecules/search-form.js";
3
3
  declare const meta: Meta<typeof SearchForm>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof SearchForm>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Select } from '../../src/molecules/select';
2
+ import { Select } from '../../src/molecules/select.js';
3
3
  declare const meta: Meta<typeof Select>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Slider } from '../../src/molecules/slider';
2
+ import { Slider } from '../../src/molecules/slider.js';
3
3
  declare const meta: Meta<typeof Slider>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Slider>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Steps } from '../../src/molecules/steps';
2
+ import { Steps } from '../../src/molecules/steps.js';
3
3
  declare const meta: Meta<typeof Steps>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Switch } from '../../src/molecules/switch';
2
+ import { Switch } from '../../src/molecules/switch.js';
3
3
  declare const meta: Meta<typeof Switch>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Switch>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Tabs } from '../../src/molecules/tabs';
2
+ import { Tabs } from '../../src/molecules/tabs.js';
3
3
  declare const meta: Meta<typeof Tabs>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Tabs>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { TreeView } from '../../src/molecules/tree-view';
2
+ import { TreeView } from '../../src/molecules/tree-view.js';
3
3
  declare const meta: Meta<typeof TreeView>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof TreeView>;
@@ -1,6 +1,6 @@
1
1
  import type { StoryObj } from "@storybook/react";
2
2
  import { type ComponentType } from "react";
3
- import { type DataTableProps } from "../../src/organisms/data-table";
3
+ import { type DataTableProps } from "../../src/organisms/data-table.js";
4
4
  type Person = {
5
5
  id: string;
6
6
  firstName: string;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Footer } from '../../src/organisms/footer';
2
+ import { Footer } from '../../src/organisms/footer.js';
3
3
  declare const meta: Meta<typeof Footer>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Footer>;
@@ -1,6 +1,6 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
- import { type GalleryItem } from '../../src/organisms/gallery';
3
- import { GalleryTemplate } from '../../src/templates/gallery';
2
+ import { type GalleryItem } from '../../src/organisms/gallery.js';
3
+ import { GalleryTemplate } from '../../src/templates/gallery.js';
4
4
  declare const meta: {
5
5
  title: string;
6
6
  component: typeof GalleryTemplate;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { Header } from '../../src/organisms/header';
2
+ import { Header } from '../../src/organisms/header.js';
3
3
  declare const meta: Meta<typeof Header>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Header>;
@@ -0,0 +1,66 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ import { Sidebar } from "../../src/organisms/sidebar.js";
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Sidebar;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ docs: {
10
+ description: {
11
+ component: string;
12
+ };
13
+ };
14
+ };
15
+ args: {
16
+ defaultExpanded: "start"[];
17
+ dir: "ltr";
18
+ onExpandedChange: import("storybook/test").Mock<(...args: any[]) => any>;
19
+ onMobileOpenChange: import("storybook/test").Mock<(...args: any[]) => any>;
20
+ };
21
+ argTypes: {
22
+ defaultExpanded: {
23
+ control: false;
24
+ };
25
+ dir: {
26
+ control: "inline-radio";
27
+ options: string[];
28
+ };
29
+ defaultMobileOpen: {
30
+ control: false;
31
+ };
32
+ collapsible: {
33
+ control: false;
34
+ };
35
+ expanded: {
36
+ control: false;
37
+ };
38
+ id: {
39
+ control: false;
40
+ };
41
+ mobileOpen: {
42
+ control: false;
43
+ };
44
+ onExpandedChange: {
45
+ control: false;
46
+ };
47
+ onMobileOpenChange: {
48
+ control: false;
49
+ };
50
+ ref: {
51
+ control: false;
52
+ };
53
+ };
54
+ };
55
+ export default meta;
56
+ type Story = StoryObj<typeof meta>;
57
+ export declare const Playground: Story;
58
+ export declare const ControlledOffcanvas: Story;
59
+ export declare const BreakpointFocusTransfer: Story;
60
+ export declare const IconCollapseSidebar07: Story;
61
+ export declare const TwoPaneSidebar09: Story;
62
+ export declare const RightSidebar14: Story;
63
+ export declare const LeftAndRightSidebar15: Story;
64
+ export declare const LogicalEdgesRtl: Story;
65
+ export declare const StickySiteHeaderSidebar16: Story;
66
+ //# sourceMappingURL=sidebar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.stories.d.ts","sourceRoot":"","sources":["../../../stories/organisms/sidebar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAUtD,OAAO,EACL,OAAO,EAER,MAAM,6BAA6B,CAAA;AAqPpC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCsB,CAAA;AAEhC,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,UAAU,EAAE,KA2BxB,CAAA;AAgCD,eAAO,MAAM,mBAAmB,EAAE,KAIjC,CAAA;AAkFD,eAAO,MAAM,uBAAuB,EAAE,KAYrC,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,KAWnC,CAAA;AA8HD,eAAO,MAAM,gBAAgB,EAAE,KAQ9B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAe5B,CAAA;AAsBD,eAAO,MAAM,qBAAqB,EAAE,KAmBnC,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAoB7B,CAAA;AAcD,eAAO,MAAM,yBAAyB,EAAE,KA0BvC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
- import { Table } from '../../src/organisms/table';
2
+ import { Table } from '../../src/organisms/table.js';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof Table;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { AccordionTemplate } from '../../src/templates/accordion';
2
+ import { AccordionTemplate } from '../../src/templates/accordion.js';
3
3
  declare const meta: Meta<typeof AccordionTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof AccordionTemplate>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { BreadcrumbTemplate } from '../../src/templates/breadcrumb';
2
+ import { BreadcrumbTemplate } from '../../src/templates/breadcrumb.js';
3
3
  declare const meta: Meta<typeof BreadcrumbTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof BreadcrumbTemplate>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { CarouselTemplate } from '../../src/templates/carousel';
2
+ import { CarouselTemplate } from '../../src/templates/carousel.js';
3
3
  declare const meta: Meta<typeof CarouselTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof CarouselTemplate>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { GalleryTemplate } from '../../src/templates/gallery';
2
+ import { GalleryTemplate } from '../../src/templates/gallery.js';
3
3
  declare const meta: Meta<typeof GalleryTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof GalleryTemplate>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { NumericInputTemplate } from '../../src/templates/numeric-input';
2
+ import { NumericInputTemplate } from '../../src/templates/numeric-input.js';
3
3
  declare const meta: Meta<typeof NumericInputTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof NumericInputTemplate>;
@@ -1,5 +1,5 @@
1
1
  import type { StoryObj } from "@storybook/react";
2
- import { PopoverTemplate } from "../../src/templates/popover";
2
+ import { PopoverTemplate } from "../../src/templates/popover.js";
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof PopoverTemplate;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { ProductCardTemplate } from '../../src/templates/product-card';
2
+ import { ProductCardTemplate } from '../../src/templates/product-card.js';
3
3
  declare const meta: Meta<typeof ProductCardTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof ProductCardTemplate>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { SelectTemplate } from '../../src/templates/select';
2
+ import { SelectTemplate } from '../../src/templates/select.js';
3
3
  declare const meta: Meta<typeof SelectTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof SelectTemplate>;
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/react';
2
- import { TabsTemplate } from '../../src/templates/tabs';
2
+ import { TabsTemplate } from '../../src/templates/tabs.js';
3
3
  declare const meta: Meta<typeof TabsTemplate>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof TabsTemplate>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=drawer.behavior.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.behavior.spec.d.ts","sourceRoot":"","sources":["../../test/drawer.behavior.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sidebar.behavior.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.behavior.spec.d.ts","sourceRoot":"","sources":["../../test/sidebar.behavior.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sidebar.ssr.bun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.ssr.bun.d.ts","sourceRoot":"","sources":["../../test/sidebar.ssr.bun.tsx"],"names":[],"mappings":""}
@@ -1,10 +1,10 @@
1
- "use client"
1
+ "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { ThemeProvider, useTheme } from "better-themes";
4
4
  import { createContext, useContext, useEffect, useState } from "react";
5
5
  import { BRAND_STORAGE_KEY, DEFAULT_BRAND, DEFAULT_MODE, MODE_STORAGE_KEY, availableModeSettings, brandAttr, brandKeys, brandSupportsDark, isBrandKey } from "./theme-config.js";
6
6
  function readStoredBrand() {
7
- if ("undefined" == typeof window) return null;
7
+ if ("u" < typeof window) return null;
8
8
  try {
9
9
  const value = window.localStorage.getItem(BRAND_STORAGE_KEY);
10
10
  return value && isBrandKey(value) ? value : null;
@@ -13,13 +13,13 @@ function readStoredBrand() {
13
13
  }
14
14
  }
15
15
  function persistBrand(brand) {
16
- if ("undefined" == typeof window) return;
16
+ if ("u" < typeof window) return;
17
17
  try {
18
18
  window.localStorage.setItem(BRAND_STORAGE_KEY, brand);
19
19
  } catch {}
20
20
  }
21
21
  function applyBrandAttr(brand) {
22
- if ("undefined" == typeof document) return;
22
+ if ("u" < typeof document) return;
23
23
  const attr = brandAttr(brand);
24
24
  const root = document.documentElement;
25
25
  if (attr) root.setAttribute("data-theme", attr);
@@ -1,4 +1,4 @@
1
- "use client"
1
+ "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Button } from "../atoms/button.js";
4
4
  import { tv } from "../utils.js";