Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)始,故人唐宰相鲁公,🆚开府南服,余以布衣从戎。明年,别公漳水湄。后明年,公以事过张睢阳庙及颜杲卿所尝往来处,悲歌慷慨,卒不负其言而从之游。今其诗具在,可考也。😭 HEX
HEX
Server: Apache
System: Linux webm006.cluster120.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User: studionolh (122383)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/studionolh/www/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',
  },
};