Socket
Book a DemoInstallSign in
Socket

dolphin-components-test

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

dolphin-components-test

![npm](https://img.shields.io/npm/v/dolphin-components) ![License](https://img.shields.io/npm/l/dolphin-components) ![Vue](https://img.shields.io/badge/vue-3.x-brightgreen)

1.2.3
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Dolphin Component Library

npm License Vue

A Vue component library built with TypeScript, Vite, Vue, TailwindCSS, Multiselect, Sweetalert2, and Tabulator.

Installation

Install the package via npm:

npm install dolphin-components

Usage

1. Import Styles

Make sure to import the CSS styles in your main entry file (e.g., main.ts or main.js):

import 'dolphin-components/dist/dolphin-components.css';

2. Register Components

Global Registration

You can globally register all components in your Vue app:

import { createApp } from 'vue';
import App from './App.vue';
import { ContentLayout, Modal, Switch, Tabulator, Toggle, Towser } from 'dolphin-components';

const app = createApp(App);

app.component('ContentLayout', ContentLayout);
app.component('Modal', Modal);
app.component('Switch', Switch);
app.component('Tabulator', Tabulator);
app.component('Toggle', Toggle);
app.component('Towser', Towser);

app.mount('#app');

3. Available Components

ContentLayout

Props:

  • title (Array of ContentTitle[], required) - Defines the content titles with optional links.
  • action (Array of ContentAction[], optional) - Defines actions with a title, emit event, and optional class.
  • bodyClass (String, optional) - Additional class for the body.
  • titleClass (String, optional) - Additional class for the title.

Modal

Props:

  • title (Array of ModalTitle[], required) - Defines modal titles with optional links.
  • action (Array of ModalAction[], required) - Defines actions with an emit event and optional class.
  • show (Boolean, required) - Controls modal visibility.
  • width (String, optional) - Defines modal width.

Switch

Props:

  • modelValue (Boolean, required) - The v-model value.
  • background (String, optional) - Background color.

Tabulator

Props:

  • data (Array of TabulatorData[], required) - Defines table data.
  • columns (Array of TabulatorHeader[], required) - Defines table headers.
  • placeholder (String, required) - Placeholder text when no data is present.
  • paginationSize (Number, required) - Pagination size.
  • paginationSizeSelector (Array of numbers, required) - Pagination size options.
  • action (Boolean, required) - Enables or disables action buttons.
  • actionButtons (Array of TabulatorAction[], required) - Defines action buttons.
  • heightOffset (Number, required) - Adjusts table height.

Toggle

Props:

  • modelValue (Boolean, required) - The v-model value.
  • background (String, optional) - Background color.

Towser

Props:

  • show (Boolean, required) - Controls visibility.
  • title (Array of TowserTitle[], required) - Defines the titles with optional links.
  • action (Array of TowserAction[], optional) - Defines actions.
  • double (Boolean, optional) - Enables double-pane layout.
  • bodyWidth (Number, optional) - Width of the main body.
  • body2Width (Number, optional) - Width of the secondary body.

TypeScript Support

This package includes TypeScript support with full typings for all components.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for more details.

Keywords

mavorion

FAQs

Package last updated on 19 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.