@smart-factor/gem-ui-components 0.0.64 → 0.0.66
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.
- package/dist/SignEditor.js +12 -12
- package/dist/components/FormComponents/TimePicker/TimePicker.d.ts +12 -0
- package/dist/components/FormComponents/TimePicker/TimePicker.stories.d.ts +9 -0
- package/dist/components/FormComponents/TimePicker/TimePicker.styles.d.ts +7 -0
- package/dist/components/FormComponents/index.d.ts +1 -0
- package/dist/licenses.txt +1 -1
- package/dist/main.js +443 -392
- package/dist/{theme-Cpftb9Qh.js → theme-CYgOdWhL.js} +6925 -5452
- package/package.json +1 -1
- package/dist/services/generated/api-candidate.d.ts +0 -22942
package/dist/SignEditor.js
CHANGED
|
@@ -17,7 +17,7 @@ var T_ = (o, e, t, n) => ({
|
|
|
17
17
|
import Gk, { jsx as Wt, jsxs as Fr, Fragment as Mb } from "react/jsx-runtime";
|
|
18
18
|
import * as vr from "react";
|
|
19
19
|
import { useCallback as pd, createContext as iQ, useContext as rQ, useState as kc, useEffect as uu, useMemo as Hm, useRef as aQ } from "react";
|
|
20
|
-
import {
|
|
20
|
+
import { ag as sQ, ai as lQ, G as Ix, aj as Mx, ak as A0, al as cQ, a6 as tN, B as Um, am as Rb, ae as eb, af as nN, v as uQ, aa as h2, ac as dQ, a0 as AQ, n as hQ, f as pQ, a7 as gQ } from "./theme-CYgOdWhL.js";
|
|
21
21
|
import { C as oN, r as Qk } from "./Drawer-d8461jqd.js";
|
|
22
22
|
import "react-dom";
|
|
23
23
|
import "@mui/x-data-grid-pro";
|
|
@@ -56356,24 +56356,24 @@ const TY = () => {
|
|
|
56356
56356
|
Ke.uniquifyElems(d);
|
|
56357
56357
|
const h = bs("width", d.getAttribute("width")), A = bs("height", d.getAttribute("height")), f = d.getAttribute("viewBox"), g = f ? f.split(" ") : [0, 0, h, A];
|
|
56358
56358
|
for (n = 0; n < 4; ++n) g[n] = Number(g[n]);
|
|
56359
|
-
const _ = Number(Ke.getSvgContent().getAttribute("height"))
|
|
56360
|
-
i =
|
|
56361
|
-
const
|
|
56359
|
+
const _ = Number(Ke.getSvgContent().getAttribute("height"));
|
|
56360
|
+
i = A > h ? "scale(" + _ / 3 / g[3] + ")" : "scale(" + _ / 3 / g[2] + ")", i = "translate(0) " + i + " translate(0)", c = Ke.getDOMDocument().createElementNS(Xt.SVG, "symbol");
|
|
56361
|
+
const y = Ss();
|
|
56362
56362
|
if (NA()) {
|
|
56363
|
-
const
|
|
56364
|
-
Array.prototype.forEach.call(
|
|
56365
|
-
|
|
56363
|
+
const B = d.querySelectorAll("linearGradient, radialGradient, pattern");
|
|
56364
|
+
Array.prototype.forEach.call(B, (k) => {
|
|
56365
|
+
y.appendChild(k);
|
|
56366
56366
|
});
|
|
56367
56367
|
}
|
|
56368
56368
|
for (; d.firstChild; ) {
|
|
56369
|
-
const
|
|
56370
|
-
c.append(
|
|
56369
|
+
const B = d.firstChild;
|
|
56370
|
+
c.append(B);
|
|
56371
56371
|
}
|
|
56372
|
-
const
|
|
56373
|
-
for (const
|
|
56372
|
+
const C = d.attributes;
|
|
56373
|
+
for (const B of C) c.setAttribute(B.nodeName, B.value);
|
|
56374
56374
|
c.id = Ke.getNextId(), Ke.setImportIds(a, { symbol: c, xform: i }), Ss().append(c), l.addSubCommand(new xk(c));
|
|
56375
56375
|
}
|
|
56376
|
-
r = Ke.getDOMDocument().createElementNS(Xt.SVG, "use"), r.id = Ke.getNextId(), Ke.setHref(r, "#" + c.id), (Ke.getCurrentGroup() || Ke.getCurrentDrawing().getCurrentLayer()).append(r), l.addSubCommand(new xk(r)), Ke.clearSelection(),
|
|
56376
|
+
r = Ke.getDOMDocument().createElementNS(Xt.SVG, "use"), r.id = Ke.getNextId(), Ke.setHref(r, "#" + c.id), (Ke.getCurrentGroup() || Ke.getCurrentDrawing().getCurrentLayer()).append(r), l.addSubCommand(new xk(r)), Ke.clearSelection(), e || (r.setAttribute("transform", i), og(r)), t.put(r, "symbol", c), t.put(r, "ref", c), Ke.addToSelection([r]), Ke.addCommandToHistory(l), Ke.call("changed", [Ke.getSvgContent()]);
|
|
56377
56377
|
} catch (a) {
|
|
56378
56378
|
return console.error(a), null;
|
|
56379
56379
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Control, FieldValues, Path, PathValue } from 'react-hook-form';
|
|
2
|
+
|
|
3
|
+
export interface TimePickerProps<T extends FieldValues> {
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
control: Control<T>;
|
|
6
|
+
label: string;
|
|
7
|
+
defaultValue?: PathValue<T, Path<T>>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const TimePicker: <T extends FieldValues>({ name, control, label, defaultValue, disabled, required, dataTestId, }: TimePickerProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TimePicker } from './TimePicker';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof TimePicker>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Error: Story;
|
|
9
|
+
export declare const WithDefaultValue: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledFormHelperText: import('@emotion/styled').StyledComponent<import('@mui/material').FormHelperTextOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLParagraphElement | null) => void) | import('react').RefObject<HTMLParagraphElement> | null | undefined;
|
|
4
|
+
}, "className" | "style" | "classes" | "children" | "disabled" | "sx" | "margin" | "required" | "variant" | "filled" | "error" | "focused"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledTimePicker: import('@emotion/styled').StyledComponent<import('@mui/x-date-pickers/TimePicker').TimePickerProps<import('dayjs').Dayjs, boolean> & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
6
|
+
isError?: boolean | undefined;
|
|
7
|
+
}, {}, {}>;
|
package/dist/licenses.txt
CHANGED