@cgi-learning-hub/ui 0.0.1-dev.1706796454 → 0.0.1-dev.1707475940

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.
Files changed (31) hide show
  1. package/dist/assets/AnotherComponent.css +1 -0
  2. package/dist/components/AnotherComponent/AnotherComponent.d.ts +2 -0
  3. package/dist/components/AnotherComponent/AnotherComponent.js +15 -0
  4. package/dist/components/AnotherComponent/AnotherComponent.stories.d.ts +5 -0
  5. package/dist/components/AnotherComponent/AnotherComponent.stories.js +22 -0
  6. package/dist/components/AnotherComponent/index.d.ts +2 -0
  7. package/dist/components/AnotherComponent/index.js +4 -0
  8. package/dist/components/BasicButtons/BasicButtons.d.ts +2 -0
  9. package/dist/components/BasicButtons/BasicButtons.js +1983 -0
  10. package/dist/components/BasicButtons/BasicButtons.stories.d.ts +5 -0
  11. package/dist/components/BasicButtons/BasicButtons.stories.js +22 -0
  12. package/dist/components/BasicButtons/index.d.ts +2 -0
  13. package/dist/components/BasicButtons/index.js +4 -0
  14. package/dist/components/index.d.ts +2 -2
  15. package/dist/components/index.js +4 -4
  16. package/dist/index.js +4 -5
  17. package/dist/useTheme-44keg6z0.js +2235 -0
  18. package/package.json +2 -6
  19. package/dist/TransitionGroupContext-SCyurvOT.js +0 -4197
  20. package/dist/assets/index.css +0 -1
  21. package/dist/components/Button/Button.d.ts +0 -11
  22. package/dist/components/Button/Button.js +0 -1260
  23. package/dist/components/Button/Button.stories.d.ts +0 -7
  24. package/dist/components/Button/Button.stories.js +0 -31
  25. package/dist/components/Button/index.d.ts +0 -2
  26. package/dist/components/Button/index.js +0 -4
  27. package/dist/components/SearchField/SearchField.d.ts +0 -7
  28. package/dist/components/SearchField/SearchField.js +0 -26605
  29. package/dist/components/SearchField/index.d.ts +0 -2
  30. package/dist/components/SearchField/index.js +0 -4
  31. package/dist/createSvgIcon-3ijLxpup.js +0 -182
@@ -1,2 +0,0 @@
1
- export { default as SearchField } from "./SearchField";
2
- export * from './SearchField';
@@ -1,4 +0,0 @@
1
- import { default as r } from "./SearchField.js";
2
- export {
3
- r as SearchField
4
- };
@@ -1,182 +0,0 @@
1
- import { g as b, a as I, s as w, c as g, u as C, _ as T, b as S, d as N, P as o, e as R } from "./TransitionGroupContext-SCyurvOT.js";
2
- import * as v from "react";
3
- import { jsxs as O, jsx as _ } from "react/jsx-runtime";
4
- function B(e) {
5
- return b("MuiSvgIcon", e);
6
- }
7
- I("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
8
- const j = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], A = (e) => {
9
- const {
10
- color: n,
11
- fontSize: t,
12
- classes: r
13
- } = e, i = {
14
- root: ["root", n !== "inherit" && `color${g(n)}`, `fontSize${g(t)}`]
15
- };
16
- return R(i, B, r);
17
- }, E = w("svg", {
18
- name: "MuiSvgIcon",
19
- slot: "Root",
20
- overridesResolver: (e, n) => {
21
- const {
22
- ownerState: t
23
- } = e;
24
- return [n.root, t.color !== "inherit" && n[`color${g(t.color)}`], n[`fontSize${g(t.fontSize)}`]];
25
- }
26
- })(({
27
- theme: e,
28
- ownerState: n
29
- }) => {
30
- var t, r, i, d, f, c, h, u, m, s, a, p, l;
31
- return {
32
- userSelect: "none",
33
- width: "1em",
34
- height: "1em",
35
- display: "inline-block",
36
- // the <svg> will define the property that has `currentColor`
37
- // e.g. heroicons uses fill="none" and stroke="currentColor"
38
- fill: n.hasSvgAsChild ? void 0 : "currentColor",
39
- flexShrink: 0,
40
- transition: (t = e.transitions) == null || (r = t.create) == null ? void 0 : r.call(t, "fill", {
41
- duration: (i = e.transitions) == null || (i = i.duration) == null ? void 0 : i.shorter
42
- }),
43
- fontSize: {
44
- inherit: "inherit",
45
- small: ((d = e.typography) == null || (f = d.pxToRem) == null ? void 0 : f.call(d, 20)) || "1.25rem",
46
- medium: ((c = e.typography) == null || (h = c.pxToRem) == null ? void 0 : h.call(c, 24)) || "1.5rem",
47
- large: ((u = e.typography) == null || (m = u.pxToRem) == null ? void 0 : m.call(u, 35)) || "2.1875rem"
48
- }[n.fontSize],
49
- // TODO v5 deprecate, v6 remove for sx
50
- color: (s = (a = (e.vars || e).palette) == null || (a = a[n.color]) == null ? void 0 : a.main) != null ? s : {
51
- action: (p = (e.vars || e).palette) == null || (p = p.action) == null ? void 0 : p.active,
52
- disabled: (l = (e.vars || e).palette) == null || (l = l.action) == null ? void 0 : l.disabled,
53
- inherit: void 0
54
- }[n.color]
55
- };
56
- }), y = /* @__PURE__ */ v.forwardRef(function(n, t) {
57
- const r = C({
58
- props: n,
59
- name: "MuiSvgIcon"
60
- }), {
61
- children: i,
62
- className: d,
63
- color: f = "inherit",
64
- component: c = "svg",
65
- fontSize: h = "medium",
66
- htmlColor: u,
67
- inheritViewBox: m = !1,
68
- titleAccess: s,
69
- viewBox: a = "0 0 24 24"
70
- } = r, p = T(r, j), l = /* @__PURE__ */ v.isValidElement(i) && i.type === "svg", x = S({}, r, {
71
- color: f,
72
- component: c,
73
- fontSize: h,
74
- instanceFontSize: n.fontSize,
75
- inheritViewBox: m,
76
- viewBox: a,
77
- hasSvgAsChild: l
78
- }), $ = {};
79
- m || ($.viewBox = a);
80
- const z = A(x);
81
- return /* @__PURE__ */ O(E, S({
82
- as: c,
83
- className: N(z.root, d),
84
- focusable: "false",
85
- color: u,
86
- "aria-hidden": s ? void 0 : !0,
87
- role: s ? "img" : void 0,
88
- ref: t
89
- }, $, p, l && i.props, {
90
- ownerState: x,
91
- children: [l ? i.props.children : i, s ? /* @__PURE__ */ _("title", {
92
- children: s
93
- }) : null]
94
- }));
95
- });
96
- process.env.NODE_ENV !== "production" && (y.propTypes = {
97
- // ----------------------------- Warning --------------------------------
98
- // | These PropTypes are generated from the TypeScript type definitions |
99
- // | To update them edit the d.ts file and run "yarn proptypes" |
100
- // ----------------------------------------------------------------------
101
- /**
102
- * Node passed into the SVG element.
103
- */
104
- children: o.node,
105
- /**
106
- * Override or extend the styles applied to the component.
107
- */
108
- classes: o.object,
109
- /**
110
- * @ignore
111
- */
112
- className: o.string,
113
- /**
114
- * The color of the component.
115
- * It supports both default and custom theme colors, which can be added as shown in the
116
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
117
- * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
118
- * @default 'inherit'
119
- */
120
- color: o.oneOfType([o.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
121
- /**
122
- * The component used for the root node.
123
- * Either a string to use a HTML element or a component.
124
- */
125
- component: o.elementType,
126
- /**
127
- * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
128
- * @default 'medium'
129
- */
130
- fontSize: o.oneOfType([o.oneOf(["inherit", "large", "medium", "small"]), o.string]),
131
- /**
132
- * Applies a color attribute to the SVG element.
133
- */
134
- htmlColor: o.string,
135
- /**
136
- * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
137
- * prop will be ignored.
138
- * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
139
- * `component`'s viewBox to the root node.
140
- * @default false
141
- */
142
- inheritViewBox: o.bool,
143
- /**
144
- * The shape-rendering attribute. The behavior of the different options is described on the
145
- * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
146
- * If you are having issues with blurry icons you should investigate this prop.
147
- */
148
- shapeRendering: o.string,
149
- /**
150
- * The system prop that allows defining system overrides as well as additional CSS styles.
151
- */
152
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
153
- /**
154
- * Provides a human-readable title for the element that contains it.
155
- * https://www.w3.org/TR/SVG-access/#Equivalent
156
- */
157
- titleAccess: o.string,
158
- /**
159
- * Allows you to redefine what the coordinates without units mean inside an SVG element.
160
- * For example, if the SVG element is 500 (width) by 200 (height),
161
- * and you pass viewBox="0 0 50 20",
162
- * this means that the coordinates inside the SVG will go from the top left corner (0,0)
163
- * to bottom right (50,20) and each unit will be worth 10px.
164
- * @default '0 0 24 24'
165
- */
166
- viewBox: o.string
167
- });
168
- y.muiName = "SvgIcon";
169
- function P(e, n) {
170
- function t(r, i) {
171
- return /* @__PURE__ */ _(y, S({
172
- "data-testid": `${n}Icon`,
173
- ref: i
174
- }, r, {
175
- children: e
176
- }));
177
- }
178
- return process.env.NODE_ENV !== "production" && (t.displayName = `${n}Icon`), t.muiName = y.muiName, /* @__PURE__ */ v.memo(/* @__PURE__ */ v.forwardRef(t));
179
- }
180
- export {
181
- P as c
182
- };