@cgi-learning-hub/ui 1.5.1-dev.1745918699 → 1.5.1-dev.1745931803

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 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("@mui/material"),a=require("react"),c=require("../ColorPicker/ColorPicker.cjs.js"),u=e=>{const[t,n]=a.useState(e.value),r=l=>{n(l)};return o.jsx(s.Box,{m:"5rem 10rem",children:o.jsx(c,{...e,value:t,onChange:r})})},i={title:"Components/ColorPicker",component:u},m={args:{disabled:!1,value:"#F44336",onChange:()=>""}};exports.Default=m;exports.default=i;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { ColorPicker } from '../ColorPicker';
3
+ declare const meta: Meta<typeof ColorPicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ColorPicker>;
6
+ export declare const Default: Story;
@@ -0,0 +1,23 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Box as a } from "@mui/material";
3
+ import { useState as l } from "react";
4
+ import m from "../ColorPicker/ColorPicker.es.js";
5
+ const s = (o) => {
6
+ const [t, n] = l(o.value);
7
+ return /* @__PURE__ */ e(a, { m: "5rem 10rem", children: /* @__PURE__ */ e(m, { ...o, value: t, onChange: (r) => {
8
+ n(r);
9
+ } }) });
10
+ }, u = {
11
+ title: "Components/ColorPicker",
12
+ component: s
13
+ }, d = {
14
+ args: {
15
+ disabled: !1,
16
+ value: "#F44336",
17
+ onChange: () => ""
18
+ }
19
+ };
20
+ export {
21
+ d as Default,
22
+ u as default
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.5.1-dev.1745918699",
3
+ "version": "1.5.1-dev.1745931803",
4
4
  "private": false,
5
5
  "author": "CGI Learning-hub Team",
6
6
  "description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",