pge-front-common 6.0.3 → 6.0.4

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.
@@ -0,0 +1,9 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { MultiSelect } from "./index";
3
+ declare const meta: Meta<typeof MultiSelect>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithError: Story;
8
+ export declare const WithSelectedValue: Story;
9
+ export declare const OpenDropdown: Story;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import "./styles.css";
3
+ import { DropdownProps } from "./index.types";
4
+ export declare const MultiSelect: React.FC<DropdownProps>;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ export interface DropdownProps {
3
+ label: string;
4
+ name: string;
5
+ disabled?: boolean;
6
+ hasError?: boolean;
7
+ textError?: string;
8
+ message?: string;
9
+ placeholder?: string;
10
+ hasIcon?: boolean;
11
+ Icon?: string | React.ReactNode;
12
+ textAlign?: "start" | "end" | "center";
13
+ width?: number;
14
+ defaultValue?: string;
15
+ options: OptionsProps[];
16
+ onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
17
+ selectedValue: string;
18
+ handleSelect: (value: string) => void;
19
+ open: boolean;
20
+ handleOpen: () => void;
21
+ hasIconRequired?: boolean;
22
+ }
23
+ export type OptionsProps = {
24
+ label: string;
25
+ value: string;
26
+ };
package/lib/variables.css CHANGED
@@ -87,8 +87,7 @@
87
87
  font-weight: 700;
88
88
  line-height: 21px;
89
89
  text-align: left;
90
- border: 1px solid var(--border-color, #00436d85);
91
- outline: solid var(--outline-color, #005a9275) 1.5px;
90
+ border: 1px solid #cfcfcffc;
92
91
  }
93
92
 
94
93
  .inputWrapper.hasError {
@@ -99,8 +98,8 @@
99
98
  .inputWrapper:focus,
100
99
  .inputWrapper:focus-visible,
101
100
  .inputWrapper:focus-within {
102
- border: 1px solid var(--border-focus-color, #1a95b0);
103
- outline: solid var(--outline-focus-color, #0091ea80) 1.5px;
101
+ border: 1px solid #1a95b0;
102
+ outline: solid #0091ea80 1.5px;
104
103
  }
105
104
 
106
105
  .inputContent {
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "module": "lib/index.esm.js",
44
44
  "types": "lib/index.d.ts",
45
45
  "name": "pge-front-common",
46
- "version": "6.0.3",
46
+ "version": "6.0.4",
47
47
  "description": "",
48
48
  "keywords": [],
49
49
  "author": "sturmer cesar",