siam-ui-utils 2.0.12 → 2.0.14

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.
@@ -1,17 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/react-vite';
2
-
3
- const config: StorybookConfig = {
4
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5
- addons: [
6
- '@storybook/addon-onboarding',
7
- '@storybook/addon-links',
8
- '@storybook/addon-essentials',
9
- '@chromatic-com/storybook',
10
- '@storybook/addon-interactions',
11
- ],
12
- framework: {
13
- name: '@storybook/react-vite',
14
- options: {},
15
- },
16
- };
17
- export default config;
@@ -1,16 +0,0 @@
1
- import type { Preview } from '@storybook/react';
2
- import "./css/bootstrap.min.css";
3
- import "./css/bootstrap.rtl.only.min.css";
4
-
5
- const preview: Preview = {
6
- parameters: {
7
- controls: {
8
- matchers: {
9
- color: /(background|color)$/i,
10
- date: /Date$/i,
11
- },
12
- },
13
- },
14
- };
15
-
16
- export default preview;
@@ -1,33 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
2
- import { DropzoneUploader } from '../archivos-adjuntos'
3
-
4
- const args = {
5
- onChangeFiles: () => {
6
- console.log('Accion despues de seleccionar un archivo')
7
- },
8
- totalFiles: 0,
9
- maxFiles: 3,
10
- accept: 'image/*, application/pdf',
11
- capture: null,
12
- nameFileLabel: 'Subir archivos',
13
- maxFileSize: 2,
14
- }
15
-
16
- const meta = {
17
- title: 'Components/DropzoneUploader',
18
- component: DropzoneUploader,
19
- args: {
20
- ...args,
21
- },
22
- } satisfies Meta<typeof DropzoneUploader>
23
-
24
- export default meta
25
-
26
- type Story = StoryObj<typeof meta>
27
-
28
- export const DropzoneUploaderBasic: Story = {
29
- args: {
30
- ...args,
31
- maxFileSize: 5,
32
- },
33
- }
@@ -1,28 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
2
- import { TomarFoto } from '../tomar-foto'
3
-
4
- const meta = {
5
- title: 'Components/TomarFoto',
6
- component: TomarFoto,
7
- args: {
8
- onFilesSelectedSelfie: () => {},
9
- isMobile: false,
10
- },
11
- } satisfies Meta<typeof TomarFoto>
12
-
13
- export default meta
14
- type Story = StoryObj<typeof meta>
15
-
16
- export const TomarFotoWebApplication: Story = {
17
- args: {
18
- isMobile: false,
19
- },
20
- }
21
- export const TomarFotoMobileApplication: Story = {
22
- args: {
23
- isMobile: true,
24
- onFilesSelectedSelfie: () => {
25
- console.log('Dispatch an action')
26
- },
27
- },
28
- }