@feminab/box-ui 0.1.0 → 0.1.3
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.
- package/.storybook/main.ts +40 -2
- package/README.md +59 -26
- package/dist/@interfaces/Badge.d.d.ts.map +1 -1
- package/dist/@interfaces/Button.d.d.ts.map +1 -1
- package/dist/@interfaces/Color.d.d.ts.map +1 -1
- package/dist/@interfaces/IButtonItem.d.d.ts.map +1 -1
- package/dist/@interfaces/ISubNavItem.d.d.ts.map +1 -1
- package/dist/@interfaces/MobileNavProps.d.d.ts.map +1 -1
- package/dist/@interfaces/NavItem.d.d.ts.map +1 -1
- package/dist/@interfaces/Pagination.d.d.ts.map +1 -1
- package/dist/@interfaces/Select.d.d.ts.map +1 -1
- package/dist/@interfaces/SideNavProps.d.d.ts.map +1 -1
- package/dist/@interfaces/TextInput.d.d.ts.map +1 -1
- package/dist/@interfaces/index.d.ts.map +1 -1
- package/dist/Badge.d.ts.map +1 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/ButtonGroup.d.ts.map +1 -1
- package/dist/ColorBox.d.ts.map +1 -1
- package/dist/Header.d.ts.map +1 -1
- package/dist/Nav/MobileNav.d.ts.map +1 -1
- package/dist/Nav/NavItem.d.ts.map +1 -1
- package/dist/Nav/SideNav.d.ts.map +1 -1
- package/dist/Nav/SubNavItem.d.ts.map +1 -1
- package/dist/Paginate.d.ts.map +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/StoryLayout.d.ts.map +1 -1
- package/dist/TextInput.d.ts.map +1 -1
- package/dist/Typography.d.ts.map +1 -1
- package/dist/box-ui.cjs.development.js +17 -11
- package/dist/box-ui.cjs.development.js.map +1 -1
- package/dist/box-ui.cjs.production.min.js +1 -1
- package/dist/box-ui.cjs.production.min.js.map +1 -1
- package/dist/box-ui.esm.js +17 -11
- package/dist/box-ui.esm.js.map +1 -1
- package/dist/data/colors.d.ts.map +1 -1
- package/dist/data/countries.d.ts.map +1 -1
- package/dist/data/images/index.d.ts.map +1 -1
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/navItems.d.ts.map +1 -1
- package/dist/data/options.d.ts.map +1 -1
- package/dist/data/prices.d.ts.map +1 -1
- package/dist/hooks/useIconClassName.d.ts.map +1 -1
- package/dist/hooks/useIconProps.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/jest.config.d.ts +9 -0
- package/dist/jest.config.d.ts.map +1 -0
- package/dist/reportWebVitals.d.ts.map +1 -1
- package/dist/setupTests.d.ts.map +1 -1
- package/dist/stories/Badge.stories.d.ts +3 -4
- package/dist/stories/Badge.stories.d.ts.map +1 -1
- package/dist/stories/Button.stories.d.ts +3 -4
- package/dist/stories/Button.stories.d.ts.map +1 -1
- package/dist/stories/ButtonGroup.stories.d.ts +4 -4
- package/dist/stories/ButtonGroup.stories.d.ts.map +1 -1
- package/dist/stories/Colors.stories.d.ts +3 -3
- package/dist/stories/Colors.stories.d.ts.map +1 -1
- package/dist/stories/MobileNav.stories.d.ts +3 -4
- package/dist/stories/MobileNav.stories.d.ts.map +1 -1
- package/dist/stories/Paginate.stories.d.ts +3 -4
- package/dist/stories/Paginate.stories.d.ts.map +1 -1
- package/dist/stories/Select.stories.d.ts +3 -4
- package/dist/stories/Select.stories.d.ts.map +1 -1
- package/dist/stories/SideNav.stories.d.ts +3 -4
- package/dist/stories/SideNav.stories.d.ts.map +1 -1
- package/dist/stories/TextInput.stories.d.ts +3 -4
- package/dist/stories/TextInput.stories.d.ts.map +1 -1
- package/dist/stories/Typography.stories.d.ts +4 -4
- package/dist/stories/Typography.stories.d.ts.map +1 -1
- package/dist/utils/IconWrapper.d.ts +8 -0
- package/dist/utils/IconWrapper.d.ts.map +1 -0
- package/jest.config.js +13 -0
- package/jest.setup.ts +3 -0
- package/netlify.toml +3 -0
- package/package.json +25 -26
- package/src/Nav/MobileNav.tsx +2 -0
- package/src/Nav/SideNav.tsx +1 -0
- package/src/Paginate.tsx +2 -0
- package/src/Select.tsx +1 -1
- package/src/TextInput.tsx +23 -27
- package/src/index.js +1 -1
- package/src/stories/Badge.stories.tsx +6 -8
- package/src/stories/Button.stories.tsx +21 -8
- package/src/stories/ButtonGroup.stories.tsx +48 -48
- package/src/stories/Colors.stories.tsx +2 -4
- package/src/stories/MobileNav.stories.tsx +29 -19
- package/src/stories/Paginate.stories.tsx +36 -35
- package/src/stories/Select.stories.tsx +46 -43
- package/src/stories/SideNav.stories.tsx +18 -19
- package/src/stories/TextInput.stories.tsx +81 -71
- package/src/stories/Typography.stories.tsx +2 -4
- package/src/styles/global.css +1 -181
- package/src/tests/Badge.test.tsx +48 -0
- package/src/tests/Button.test.tsx +69 -0
- package/src/tests/ButtonGroup.test.tsx +51 -0
- package/src/tests/MobileNav.test.tsx +66 -0
- package/src/tests/Paginate.test.tsx +86 -0
- package/src/tests/Select.test.tsx +63 -0
- package/src/tests/SideNav.test.tsx +43 -0
- package/src/tests/TextInput.test.tsx +42 -0
- package/src/tests/Typography.test.tsx +41 -0
- package/src/tests/__snapshots__/Badge.test.tsx.snap +13 -0
- package/src/tests/__snapshots__/Button.test.tsx.snap +106 -0
- package/src/tests/__snapshots__/ButtonGroup.test.tsx.snap +228 -0
- package/src/tests/__snapshots__/Paginate.test.tsx.snap +580 -0
- package/src/tests/__snapshots__/Select.test.tsx.snap +119 -0
- package/src/tests/__snapshots__/TextInput.test.tsx.snap +323 -0
- package/src/utils/IconWrapper.tsx +11 -0
- package/storybook-static/{125.65b26339.iframe.bundle.js → 125.df7cc93e.iframe.bundle.js} +3 -3
- package/storybook-static/125.df7cc93e.iframe.bundle.js.map +1 -0
- package/storybook-static/13.d4c3993e.iframe.bundle.js +2 -0
- package/storybook-static/161.f5193502.iframe.bundle.js +2 -0
- package/storybook-static/167.89fa6ac2.iframe.bundle.js +1 -0
- package/storybook-static/294.eccdc80d.iframe.bundle.js +1 -0
- package/storybook-static/314.c9f9245e.iframe.bundle.js +2 -0
- package/storybook-static/364.1cfcaebe.iframe.bundle.js +1 -0
- package/storybook-static/735.c396ee77.iframe.bundle.js +2 -0
- package/storybook-static/742.52c662a4.iframe.bundle.js +1 -0
- package/storybook-static/{844.aec20bdb.iframe.bundle.js → 844.3bb89aad.iframe.bundle.js} +3 -3
- package/storybook-static/844.3bb89aad.iframe.bundle.js.map +1 -0
- package/storybook-static/936.c827da74.iframe.bundle.js +1 -0
- package/storybook-static/961.c3df469f.iframe.bundle.js +2 -0
- package/storybook-static/iframe.html +3 -3
- package/storybook-static/main.179173d1.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.295ddda4.iframe.bundle.js → runtime~main.70344601.iframe.bundle.js} +1 -1
- package/storybook-static/static/css/main.08036cd2.css.map +1 -1
- package/storybook-static/stories-Badge-stories.a924d6d5.iframe.bundle.js +1 -0
- package/storybook-static/stories-Button-stories.a3c88a14.iframe.bundle.js +1 -0
- package/storybook-static/stories-ButtonGroup-stories.2c74e4c4.iframe.bundle.js +1 -0
- package/storybook-static/stories-Colors-stories.424256b4.iframe.bundle.js +2 -0
- package/storybook-static/stories-Configure-mdx.46ebbf59.iframe.bundle.js +1 -0
- package/storybook-static/stories-Header-stories.df09e844.iframe.bundle.js +2 -0
- package/storybook-static/stories-MobileNav-stories.eb9a0ca6.iframe.bundle.js +1 -0
- package/storybook-static/stories-Page-stories.ab66c885.iframe.bundle.js +2 -0
- package/storybook-static/stories-Paginate-stories.086f736a.iframe.bundle.js +1 -0
- package/storybook-static/stories-Select-stories.4c04edb3.iframe.bundle.js +1 -0
- package/storybook-static/stories-SideNav-stories.272a4362.iframe.bundle.js +1 -0
- package/storybook-static/stories-TextInput-stories.cfa81131.iframe.bundle.js +1 -0
- package/storybook-static/stories-Typography-stories.a31da7ce.iframe.bundle.js +2 -0
- package/tailwind.config.js +1 -1
- package/tsconfig.json +6 -3
- package/tsdx.config.js +14 -0
- package/dist/Page.d.ts +0 -3
- package/dist/Page.d.ts.map +0 -1
- package/dist/stories/Header.stories.d.ts +0 -20
- package/dist/stories/Header.stories.d.ts.map +0 -1
- package/dist/stories/Page.stories.d.ts +0 -14
- package/dist/stories/Page.stories.d.ts.map +0 -1
- package/src/Page.tsx +0 -72
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/Header.stories.ts +0 -33
- package/src/stories/Page.stories.ts +0 -32
- package/storybook-static/125.65b26339.iframe.bundle.js.map +0 -1
- package/storybook-static/13.0638081a.iframe.bundle.js +0 -2
- package/storybook-static/161.a19908ac.iframe.bundle.js +0 -2
- package/storybook-static/167.3fa3a909.iframe.bundle.js +0 -1
- package/storybook-static/294.ce38f65c.iframe.bundle.js +0 -1
- package/storybook-static/314.568bd9af.iframe.bundle.js +0 -2
- package/storybook-static/364.0b18ef67.iframe.bundle.js +0 -1
- package/storybook-static/735.1625d9f4.iframe.bundle.js +0 -2
- package/storybook-static/742.597501f6.iframe.bundle.js +0 -1
- package/storybook-static/844.aec20bdb.iframe.bundle.js.map +0 -1
- package/storybook-static/936.fd850a3f.iframe.bundle.js +0 -1
- package/storybook-static/961.0e5457c5.iframe.bundle.js +0 -2
- package/storybook-static/main.069281cf.iframe.bundle.js +0 -1
- package/storybook-static/stories-Badge-stories.484f7206.iframe.bundle.js +0 -1
- package/storybook-static/stories-Button-stories.5e29be85.iframe.bundle.js +0 -1
- package/storybook-static/stories-ButtonGroup-stories.cc89968c.iframe.bundle.js +0 -1
- package/storybook-static/stories-Colors-stories.f892dc75.iframe.bundle.js +0 -2
- package/storybook-static/stories-Configure-mdx.81346d97.iframe.bundle.js +0 -1
- package/storybook-static/stories-Header-stories.cf691094.iframe.bundle.js +0 -2
- package/storybook-static/stories-MobileNav-stories.f04cccdd.iframe.bundle.js +0 -1
- package/storybook-static/stories-Page-stories.0c9aa29d.iframe.bundle.js +0 -2
- package/storybook-static/stories-Paginate-stories.3b161781.iframe.bundle.js +0 -1
- package/storybook-static/stories-Select-stories.7556ae0d.iframe.bundle.js +0 -1
- package/storybook-static/stories-SideNav-stories.093fac6a.iframe.bundle.js +0 -1
- package/storybook-static/stories-TextInput-stories.6d3e15c6.iframe.bundle.js +0 -1
- package/storybook-static/stories-Typography-stories.6640f7ac.iframe.bundle.js +0 -2
- /package/storybook-static/{125.65b26339.iframe.bundle.js.LICENSE.txt → 125.df7cc93e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{13.0638081a.iframe.bundle.js.LICENSE.txt → 13.d4c3993e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{161.a19908ac.iframe.bundle.js.LICENSE.txt → 161.f5193502.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{314.568bd9af.iframe.bundle.js.LICENSE.txt → 314.c9f9245e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{735.1625d9f4.iframe.bundle.js.LICENSE.txt → 735.c396ee77.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{844.aec20bdb.iframe.bundle.js.LICENSE.txt → 844.3bb89aad.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{961.0e5457c5.iframe.bundle.js.LICENSE.txt → 961.c3df469f.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Colors-stories.f892dc75.iframe.bundle.js.LICENSE.txt → stories-Colors-stories.424256b4.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Header-stories.cf691094.iframe.bundle.js.LICENSE.txt → stories-Header-stories.df09e844.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Page-stories.0c9aa29d.iframe.bundle.js.LICENSE.txt → stories-Page-stories.ab66c885.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{stories-Typography-stories.6640f7ac.iframe.bundle.js.LICENSE.txt → stories-Typography-stories.a31da7ce.iframe.bundle.js.LICENSE.txt} +0 -0
package/.storybook/main.ts
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
import type { StorybookConfig } from "@storybook/react-webpack5";
|
2
|
+
import type { Configuration } from "webpack";
|
2
3
|
|
3
4
|
const config: StorybookConfig = {
|
4
5
|
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
5
6
|
addons: [
|
6
7
|
"@storybook/addon-essentials",
|
7
8
|
"@storybook/preset-create-react-app",
|
8
|
-
"@storybook/addon-onboarding",
|
9
|
-
"@chromatic-com/storybook",
|
10
9
|
"@storybook/addon-interactions",
|
11
10
|
"@storybook/addon-links",
|
12
11
|
],
|
@@ -15,6 +14,45 @@ const config: StorybookConfig = {
|
|
15
14
|
options: {},
|
16
15
|
},
|
17
16
|
staticDirs: ["../public"],
|
17
|
+
// webpackFinal: async (config: Configuration) => {
|
18
|
+
// // Ensure config.module exists and has rules
|
19
|
+
// if (config.module) {
|
20
|
+
// if (!config.module.rules) {
|
21
|
+
// config.module.rules = [];
|
22
|
+
// }
|
23
|
+
|
24
|
+
// // Add TypeScript support with ts-loader
|
25
|
+
// config.module.rules.push({
|
26
|
+
// test: /\.css$/,
|
27
|
+
// use: [
|
28
|
+
// "style-loader",
|
29
|
+
// "css-loader",
|
30
|
+
// {
|
31
|
+
// loader: "postcss-loader",
|
32
|
+
// options: {
|
33
|
+
// postcssOptions: {
|
34
|
+
// plugins: [require("tailwindcss"), require("autoprefixer")],
|
35
|
+
// },
|
36
|
+
// },
|
37
|
+
// },
|
38
|
+
// ],
|
39
|
+
// include: /src/,
|
40
|
+
// },{
|
41
|
+
// test: /\.tsx?$/, // Match TypeScript files
|
42
|
+
// use: [
|
43
|
+
// {
|
44
|
+
// loader: 'ts-loader',
|
45
|
+
// options: {
|
46
|
+
// transpileOnly: true, // Skip type checking for faster builds
|
47
|
+
// },
|
48
|
+
// },
|
49
|
+
// ],
|
50
|
+
// });
|
51
|
+
// }
|
52
|
+
|
53
|
+
// // Return the modified config
|
54
|
+
// return config;
|
55
|
+
// },
|
18
56
|
};
|
19
57
|
|
20
58
|
export default config;
|
package/README.md
CHANGED
@@ -1,46 +1,79 @@
|
|
1
|
-
#
|
1
|
+
# 📦 **BoxUI** — Beautiful. Reusable. Fast.
|
2
2
|
|
3
|
-
|
3
|
+
A sleek and accessible collection of React + TypeScript UI components built for rapid product development. Customize, compose, and launch in style. 🚀
|
4
4
|
|
5
|
-
|
5
|
+
---
|
6
6
|
|
7
|
-
|
7
|
+
## 🚀 Installation
|
8
8
|
|
9
|
-
|
9
|
+
Get started with **BoxUI** in seconds:
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
```bash
|
12
|
+
npm install @feminab/box-ui
|
13
|
+
# or
|
14
|
+
yarn add @feminab/box-ui
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
+
📘 Live Storybook
|
17
|
+
Explore all components, props, and interactive examples:
|
18
|
+
👉 https://boxui.netlify.app
|
16
19
|
|
17
|
-
|
20
|
+
🧩 Components Available
|
18
21
|
|
19
|
-
|
20
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
22
|
+
## 🧩 Components Available
|
21
23
|
|
22
|
-
|
24
|
+
| Component | Description |
|
25
|
+
|------------------|---------------------------------------------|
|
26
|
+
| 🏷️ `Badge` | Highlight tags or statuses |
|
27
|
+
| 🔘 `Button` | Primary, secondary, and icon buttons |
|
28
|
+
| 🎛️ `ButtonGroup` | Button group wrapper |
|
29
|
+
| 🌈 `Colors` | Theme and color palettes |
|
30
|
+
| 📱 `MobileNav` | Mobile responsive navbar |
|
31
|
+
| 📄 `Paginate` | Pagination controls |
|
32
|
+
| 🔽 `Select` | Dropdown select inputs |
|
33
|
+
| 📚 `SideNav` | Vertical side navigation |
|
34
|
+
| ✏️ `TextInput` | Input fields with labels & error states |
|
35
|
+
| 🔤 `Typography` | Typography helpers and scales |
|
23
36
|
|
24
|
-
Builds the app for production to the `build` folder.\
|
25
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
26
37
|
|
27
|
-
|
28
|
-
Your app is ready to be deployed!
|
38
|
+
## 📦 Usage Example
|
29
39
|
|
30
|
-
|
40
|
+
Once installed, you can start using components like this:
|
31
41
|
|
32
|
-
###
|
42
|
+
### ✅ Basic Button Usage
|
33
43
|
|
34
|
-
|
44
|
+
```tsx
|
45
|
+
import { Button } from '@feminab/box-ui';
|
35
46
|
|
36
|
-
|
47
|
+
export default function App() {
|
48
|
+
return (
|
49
|
+
<Button variant="primary" onClick={() => alert('Clicked!')}>
|
50
|
+
Click Me
|
51
|
+
</Button>
|
52
|
+
);
|
53
|
+
}
|
37
54
|
|
38
|
-
|
55
|
+
## 💻 Local Development
|
56
|
+
Want to contribute or tweak locally?
|
39
57
|
|
40
|
-
|
58
|
+
# Clone the repo and install dependencies
|
59
|
+
npm install
|
41
60
|
|
42
|
-
|
61
|
+
# Run Storybook locally
|
62
|
+
npm run storybook
|
43
63
|
|
44
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
45
64
|
|
46
|
-
|
65
|
+
## 🧠 Author
|
66
|
+
Built with ❤️ by Femina Brahmbhatt
|
67
|
+
🐾 Featuring components crafted with accessibility and reusability in mind.
|
68
|
+
|
69
|
+
##🪄 License
|
70
|
+
MIT © Femina Brahmbhatt
|
71
|
+
|
72
|
+
Let me know if you'd like:
|
73
|
+
|
74
|
+
- NPM version/license/shield badges at the top
|
75
|
+
- Preview GIFs or images for components
|
76
|
+
- How to contribute or roadmap section
|
77
|
+
- Or a "Why BoxUI?" section to pitch its strengths!
|
78
|
+
|
79
|
+
Happy shipping! 🚀
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Badge.d.d.ts","sourceRoot":"","sources":["Badge.d.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oBAAY,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAChF,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,UAAU;IACvB,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC;IACtC,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,SAAS,CAAC;CACnB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Button.d.d.ts","sourceRoot":"","sources":["Button.d.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,YAAY,EAAC,MAAM,OAAO,CAAC;AAEzD,oBAAY,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,eAAe,GAAG,UAAU,GAAG,cAAc,CAAC;AACpG,oBAAY,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAC3D,oBAAY,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAErE,MAAM,WAAW,WAAY,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IACxE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Color.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Color.d.d.ts","sourceRoot":"","sources":["Color.d.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAA;CACd"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"IButtonItem.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"IButtonItem.d.d.ts","sourceRoot":"","sources":["IButtonItem.d.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,WAAW;IACxB,KAAK,EAAC,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ISubNavItem.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"ISubNavItem.d.d.ts","sourceRoot":"","sources":["ISubNavItem.d.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;CACnD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MobileNavProps.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"MobileNavProps.d.d.ts","sourceRoot":"","sources":["MobileNavProps.d.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NavItem.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"NavItem.d.d.ts","sourceRoot":"","sources":["NavItem.d.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAW,SAAQ,WAAW;CAAG;AAElD,MAAM,WAAW,QAAS,SAAQ,WAAW;IACzC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Pagination.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Pagination.d.d.ts","sourceRoot":"","sources":["Pagination.d.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Select.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Select.d.d.ts","sourceRoot":"","sources":["Select.d.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CACnC;AACD,MAAM,WAAW,WAAW;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SideNavProps.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"SideNavProps.d.d.ts","sourceRoot":"","sources":["SideNavProps.d.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,QAAQ,EAAE,CAAC;IACxB,cAAc,EAAE,QAAQ,EAAE,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextInput.d.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"TextInput.d.d.ts","sourceRoot":"","sources":["TextInput.d.tsx"],"names":[],"mappings":";AAAA,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAC,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC,YAAY,CAAC,EAAC,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CACtE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
|
package/dist/Badge.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["Badge.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,UAAU,EAA2B,MAAM,eAAe,CAAC;AAiBpE,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAyBhC,CAAC"}
|
package/dist/Button.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAC1E,OAAO,EACL,WAAW,EAIZ,MAAM,eAAe,CAAC;AAuDvB,eAAO,MAAM,MAAM,0GAUhB,WAAW,sBA4Db,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,WAAW,gDAIrB,gBAAgB,sBAsBlB,CAAC"}
|
package/dist/ColorBox.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ColorBox.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"ColorBox.d.ts","sourceRoot":"","sources":["ColorBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAO,MAAM,QAAQ,2BAA4B,MAAM,sBAWtD,CAAC"}
|
package/dist/Header.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,aAAK,IAAI,GAAG;IACV,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,MAAM,iDAAkD,WAAW,sBAuC/E,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MobileNav.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"MobileNav.d.ts","sourceRoot":"","sources":["MobileNav.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAG9C,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,cAAc,CA6B3C,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["NavItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQ9C,eAAO,MAAM,OAAO,EAAC,EAAE,CAAC,YAAY,CA2FlC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["SideNav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAY,MAAM,gBAAgB,CAAC;AAQxD,eAAO,MAAM,UAAU,yBAEtB,CAAC;AAEF,eAAO,MAAM,OAAO,gFAQjB,YAAY,sBAgJd,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SubNavItem.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"SubNavItem.d.ts","sourceRoot":"","sources":["SubNavItem.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiC1C,CAAC"}
|
package/dist/Paginate.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Paginate.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Paginate.d.ts","sourceRoot":"","sources":["Paginate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAKhD,eAAO,MAAM,QAAQ,wDAMlB,eAAe,sBA2FjB,CAAC"}
|
package/dist/Select.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.tsx"],"names":[],"mappings":"AAAA,OAAc,EACZ,EAAE,EAIH,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAqFlC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StoryLayout.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"StoryLayout.d.ts","sourceRoot":"","sources":["StoryLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,SAAU,UAAU,sBAM3C,CAAC"}
|
package/dist/TextInput.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["TextInput.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAK/C,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA4FxC,CAAC"}
|
package/dist/Typography.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAO,MAAM,OAAO,CAAC;AAGvC,aAAK,iBAAiB,GAClB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,aAAK,sBAAsB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAIzE,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CACpC;AAuBD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA8B1C,CAAC"}
|
@@ -184,6 +184,7 @@ const Paginate = _ref => {
|
|
184
184
|
return /*#__PURE__*/React__default.createElement("div", {
|
185
185
|
className: classNames("flex w-full h-10 items-center", className)
|
186
186
|
}, /*#__PURE__*/React__default.createElement(ArrowLeft, {
|
187
|
+
"data-testid": "prevBtn",
|
187
188
|
size: 20,
|
188
189
|
className: classNames("mr-3 text-gray-500 dark:text-white", {
|
189
190
|
"cursor-pointer": page !== 0,
|
@@ -197,6 +198,7 @@ const Paginate = _ref => {
|
|
197
198
|
}), /*#__PURE__*/React__default.createElement("div", {
|
198
199
|
className: "flex justify-center flex-grow text-sm text-gray-700 select-none dark:text-white"
|
199
200
|
}, `Page ${page} of ${totalPages}`), /*#__PURE__*/React__default.createElement(ArrowRight, {
|
201
|
+
"data-testid": "nextBtn",
|
200
202
|
size: 20,
|
201
203
|
className: classNames("ml-3 text-gray-500 dark:text-white", {
|
202
204
|
"cursor-pointer": page !== totalPages - 1,
|
@@ -278,7 +280,8 @@ const Select = _ref => {
|
|
278
280
|
"text-gray-500 dark:text-gray-300": !selectedOption
|
279
281
|
}, width)
|
280
282
|
}, LeadingIcon && (/*#__PURE__*/React__default.createElement("div", {
|
281
|
-
className: "w-5 h-5 mr-2 overflow-hidden"
|
283
|
+
className: "w-5 h-5 mr-2 overflow-hidden",
|
284
|
+
"data-testid": "leading-icon"
|
282
285
|
}, setProps(LeadingIcon, 20, classNames("text-gray-400")))), selectedOption ? selectedOption.label : placeholder, /*#__PURE__*/React__default.createElement(ArrowDown, {
|
283
286
|
size: 20,
|
284
287
|
className: classNames("text-gray-500 dark:text-gray-300 transform duration-100 ease-out", {
|
@@ -378,12 +381,15 @@ const TextInput = _ref => {
|
|
378
381
|
const {
|
379
382
|
setClassName
|
380
383
|
} = useIconClassName();
|
381
|
-
|
384
|
+
const inputId = `textinput-${(label === null || label === void 0 ? void 0 : label.toLowerCase().replace(/\s+/g, '-')) || 'input'}`;
|
385
|
+
return /*#__PURE__*/React__default.createElement("div", null, label && (/*#__PURE__*/React__default.createElement("label", {
|
386
|
+
htmlFor: inputId
|
387
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
382
388
|
variant: "sm",
|
383
389
|
customWeight: "medium",
|
384
390
|
customColor: "text-gray-700 dark:text-white",
|
385
391
|
className: "mb-1.5"
|
386
|
-
}, label)), /*#__PURE__*/React__default.createElement("div", {
|
392
|
+
}, label))), /*#__PURE__*/React__default.createElement("div", {
|
387
393
|
className: classNames("relative", {
|
388
394
|
"flex items-center": leadingText
|
389
395
|
})
|
@@ -400,6 +406,7 @@ const TextInput = _ref => {
|
|
400
406
|
"dark:bg-gray-800": !disabled
|
401
407
|
})
|
402
408
|
}, leadingText)), /*#__PURE__*/React__default.createElement("input", {
|
409
|
+
id: inputId,
|
403
410
|
type: type,
|
404
411
|
value: value,
|
405
412
|
placeholder: placeholder,
|
@@ -415,14 +422,10 @@ const TextInput = _ref => {
|
|
415
422
|
"bg-white dark:bg-gray-800": !disabled,
|
416
423
|
"bg-gray-50 dark:bg-gray-700": disabled
|
417
424
|
})
|
418
|
-
})), error && (/*#__PURE__*/React__default.createElement(
|
419
|
-
|
420
|
-
|
421
|
-
className: "mt-1.5 text-
|
422
|
-
}, error)), helperText && (/*#__PURE__*/React__default.createElement(Typography, {
|
423
|
-
variant: "sm",
|
424
|
-
customWeight: "regular",
|
425
|
-
className: "mt-1.5 text-gray-500"
|
425
|
+
})), error && (/*#__PURE__*/React__default.createElement("label", {
|
426
|
+
className: "text-sm font-normal mt-1.5 text-error-500"
|
427
|
+
}, error)), helperText && (/*#__PURE__*/React__default.createElement("label", {
|
428
|
+
className: "text-sm font-normal mt-1.5 text-gray-500"
|
426
429
|
}, helperText)));
|
427
430
|
};
|
428
431
|
|
@@ -597,6 +600,7 @@ const SideNav = _ref => {
|
|
597
600
|
}
|
598
601
|
};
|
599
602
|
return /*#__PURE__*/React__default.createElement("div", {
|
603
|
+
"data-testid": "side-nav",
|
600
604
|
className: classNames("py-6 flex flex-col flex-grow bg-white dark:bg-gray-900 transform ease-out duration-100 overflow-y-auto xs:overflow-y-visible", {
|
601
605
|
"w-80": open,
|
602
606
|
"w-24": !open,
|
@@ -680,6 +684,7 @@ const MobileNavbar = _ref => {
|
|
680
684
|
customWeight: "medium",
|
681
685
|
className: "select-none"
|
682
686
|
}, "Box UI"), /*#__PURE__*/React__default.createElement("svg", {
|
687
|
+
role: "button",
|
683
688
|
width: "32",
|
684
689
|
height: "32",
|
685
690
|
viewBox: "0 0 32 32",
|
@@ -687,6 +692,7 @@ const MobileNavbar = _ref => {
|
|
687
692
|
className: classNames("text-gray-500 transition-all duration-100 ease-out cursor-pointer stroke-current hover:text-gray-900 dark:text-white dark:hover:text-gray-200", {
|
688
693
|
"opacity-0": open
|
689
694
|
}),
|
695
|
+
"data-testid": "mobile-nav-toggle",
|
690
696
|
onClick: toggleOpen
|
691
697
|
}, /*#__PURE__*/React__default.createElement("path", {
|
692
698
|
d: "M4 16H22.6667M4 8H28M4 24H28",
|