@cgi-learning-hub/ui 0.0.1-dev.1706567478 → 0.0.1-dev.1706708255

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,11 @@
1
+ import { ReactNode } from 'react';
2
+ import { Button as MuiButton } from '@mui/material';
3
+ export type ButtonProps = typeof MuiButton & {
4
+ text: string;
5
+ icon?: ReactNode;
6
+ };
7
+ declare const Button: {
8
+ ({ text, icon }: ButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ };
11
+ export default Button;
@@ -0,0 +1,35 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import "react";
3
+ import { C as s, c as a, P as i, M as d } from "../../Button-t2XOOBeu.js";
4
+ let r;
5
+ typeof document == "object" && (r = a({
6
+ key: "css",
7
+ prepend: !0
8
+ }));
9
+ function c(o) {
10
+ const {
11
+ injectFirst: e,
12
+ children: n
13
+ } = o;
14
+ return e && r ? /* @__PURE__ */ t(s, {
15
+ value: r,
16
+ children: n
17
+ }) : n;
18
+ }
19
+ process.env.NODE_ENV !== "production" && (c.propTypes = {
20
+ /**
21
+ * Your component tree.
22
+ */
23
+ children: i.node,
24
+ /**
25
+ * By default, the styles are injected last in the <head> element of the page.
26
+ * As a result, they gain more specificity than any other style sheet.
27
+ * If you want to override MUI's styles, set this prop.
28
+ */
29
+ injectFirst: i.bool
30
+ });
31
+ const p = ({ text: o, icon: e }) => /* @__PURE__ */ t(c, { injectFirst: !0, children: /* @__PURE__ */ t(d, { variant: "outlined", startIcon: e, className: "border-8", children: "Bonjourr" }) });
32
+ p.displayName = "Button";
33
+ export {
34
+ p as default
35
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import Button from './Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Button>;
6
+ export declare const Base: Story;
@@ -0,0 +1,21 @@
1
+ import t from "./Button.js";
2
+ const e = {
3
+ title: "Components/Buttons/Button",
4
+ component: t,
5
+ argTypes: {
6
+ text: {
7
+ description: "Button text value",
8
+ control: {
9
+ type: "string"
10
+ }
11
+ }
12
+ }
13
+ }, n = {
14
+ args: {
15
+ text: "Base button"
16
+ }
17
+ };
18
+ export {
19
+ n as Base,
20
+ e as default
21
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Button } from "./Button";
2
+ export * from './Button';
@@ -0,0 +1,4 @@
1
+ import { default as a } from "./Button.js";
2
+ export {
3
+ a as Button
4
+ };
@@ -1,2 +1,3 @@
1
1
  export * from "./BasicButtons";
2
2
  export * from "./AnotherComponent";
3
+ export * from "./Button";
@@ -1,6 +1,8 @@
1
1
  import { default as e } from "./BasicButtons/BasicButtons.js";
2
2
  import { default as r } from "./AnotherComponent/AnotherComponent.js";
3
+ import { default as n } from "./Button/Button.js";
3
4
  export {
4
5
  r as AnotherComponent,
5
- e as BasicButtons
6
+ e as BasicButtons,
7
+ n as Button
6
8
  };
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
- import { default as e } from "./components/BasicButtons/BasicButtons.js";
2
- import { default as r } from "./components/AnotherComponent/AnotherComponent.js";
1
+ import "./assets/index.css";
2
+ import { default as r } from "./components/BasicButtons/BasicButtons.js";
3
+ import { default as f } from "./components/AnotherComponent/AnotherComponent.js";
4
+ import { default as n } from "./components/Button/Button.js";
3
5
  export {
4
- r as AnotherComponent,
5
- e as BasicButtons
6
+ f as AnotherComponent,
7
+ r as BasicButtons,
8
+ n as Button
6
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "0.0.1-dev.1706567478",
3
+ "version": "0.0.1-dev.1706708255",
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",
@@ -30,6 +30,7 @@
30
30
  ],
31
31
  "devDependencies": {
32
32
  "@mui/material": "5.15.0",
33
+ "@mui/styles": "5.15.0",
33
34
  "@emotion/react": "11.11.1",
34
35
  "@emotion/styled": "11.11.0",
35
36
  "autoprefixer": "10.4.17",
@@ -1 +0,0 @@
1
- *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.rounded{border-radius:.25rem}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.font-bold{font-weight:700}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}