@smart-factor/gem-ui-components 0.0.64 → 0.0.65

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.
@@ -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")), y = A > h ? "scale(" + _ / 3 / g[3] + ")" : "scale(" + _ / 3 / g[2] + ")";
56360
- i = Number.isFinite(e) ? `scale(${e})` : y, i = "translate(0) " + i + " translate(0)", c = Ke.getDOMDocument().createElementNS(Xt.SVG, "symbol");
56361
- const C = Ss();
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 k = d.querySelectorAll("linearGradient, radialGradient, pattern");
56364
- Array.prototype.forEach.call(k, (L) => {
56365
- C.appendChild(L);
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 k = d.firstChild;
56370
- c.append(k);
56369
+ const B = d.firstChild;
56370
+ c.append(B);
56371
56371
  }
56372
- const B = d.attributes;
56373
- for (const k of B) c.setAttribute(k.nodeName, k.value);
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(), Number.isFinite(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()]);
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
@@ -1911,7 +1911,7 @@ SOFTWARE.
1911
1911
  ---
1912
1912
 
1913
1913
  Name: svgedit-pl
1914
- Version: 7.3.18
1914
+ Version: 7.3.17
1915
1915
  License: (MIT AND Apache-2.0 AND ISC AND LGPL-3.0-or-later AND X11)
1916
1916
  Private: false
1917
1917
  Description: Powerful SVG-Editor for your browser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-factor/gem-ui-components",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "private": false,
5
5
  "description": "Gem UI Components",
6
6
  "type": "module",