@dafaz-ui/react 3.0.2 → 3.0.4

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @dafaz-ui/react@3.0.2 build
2
+ > @dafaz-ui/react@3.0.4 build
3
3
  > tsup src/index.tsx --format esm,cjs --dts --external react
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 16.76 KB
12
- ESM ⚡️ Build success in 39ms
13
- CJS dist/index.js 19.19 KB
14
- CJS ⚡️ Build success in 39ms
11
+ ESM dist/index.mjs 17.02 KB
12
+ ESM ⚡️ Build success in 45ms
13
+ CJS dist/index.js 19.44 KB
14
+ CJS ⚡️ Build success in 46ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4265ms
17
- DTS dist/index.d.mts 97.71 KB
18
- DTS dist/index.d.ts 97.71 KB
16
+ DTS ⚡️ Build success in 4477ms
17
+ DTS dist/index.d.mts 98.05 KB
18
+ DTS dist/index.d.ts 98.05 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @dafaz-ui/react
2
2
 
3
+ ## 3.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix displayName form components
8
+
9
+ ## 3.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - fix DisplayName
14
+
3
15
  ## 3.0.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -450,6 +450,9 @@ interface ButtonProps {
450
450
  children: ReactNode;
451
451
  }
452
452
  declare function Button({ children, variant, size, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
453
+ declare namespace Button {
454
+ var displayName: string;
455
+ }
453
456
 
454
457
  declare const CheckBoxUI: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>>, {
455
458
  size?: "sm" | "md" | "lg" | undefined;
@@ -662,6 +665,9 @@ interface CheckboxProps {
662
665
  label: string;
663
666
  }
664
667
  declare function CheckBox({ id, label, size, ...props }: CheckboxIUProps & CheckboxProps): react_jsx_runtime.JSX.Element;
668
+ declare namespace CheckBox {
669
+ var displayName: string;
670
+ }
665
671
 
666
672
  declare const HeadingUI: _stitches_react_types_styled_component.StyledComponent<"h2", {
667
673
  mode?: "white" | "default" | undefined;
@@ -876,6 +882,9 @@ interface HeadingProps {
876
882
  children: ReactNode;
877
883
  }
878
884
  declare function Heading({ children, ...props }: HeadingUIProps & HeadingProps): react_jsx_runtime.JSX.Element;
885
+ declare namespace Heading {
886
+ var displayName: string;
887
+ }
879
888
 
880
889
  declare const RadioUI: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadioGroup.RadioGroupProps & react.RefAttributes<HTMLDivElement>>, {
881
890
  size?: "sm" | "md" | "lg" | undefined;
@@ -1092,6 +1101,9 @@ interface RadioGroupProps extends RadioUIProps {
1092
1101
  items: Item[];
1093
1102
  }
1094
1103
  declare function Radio({ items, size, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
1104
+ declare namespace Radio {
1105
+ var displayName: string;
1106
+ }
1095
1107
 
1096
1108
  declare const TextUI: _stitches_react_types_styled_component.StyledComponent<"p", {
1097
1109
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
@@ -1304,6 +1316,9 @@ interface TextProps {
1304
1316
  children: ReactNode;
1305
1317
  }
1306
1318
  declare function Text({ children, size, ...props }: TextUIProps & TextProps): react_jsx_runtime.JSX.Element;
1319
+ declare namespace Text {
1320
+ var displayName: string;
1321
+ }
1307
1322
 
1308
1323
  declare const TextAreaUI: _stitches_react_types_styled_component.StyledComponent<"textarea", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1309
1324
  colors: {
@@ -1514,6 +1529,9 @@ interface TextAreaProps {
1514
1529
  disabled?: boolean;
1515
1530
  }
1516
1531
  declare function TextArea({ children, ...props }: TextAreaUIProps & TextAreaProps): react_jsx_runtime.JSX.Element;
1532
+ declare namespace TextArea {
1533
+ var displayName: string;
1534
+ }
1517
1535
 
1518
1536
  declare const InputUI: _stitches_react_types_styled_component.StyledComponent<"input", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1519
1537
  colors: {
package/dist/index.d.ts CHANGED
@@ -450,6 +450,9 @@ interface ButtonProps {
450
450
  children: ReactNode;
451
451
  }
452
452
  declare function Button({ children, variant, size, ...props }: ButtonUIProps & ButtonProps): react_jsx_runtime.JSX.Element;
453
+ declare namespace Button {
454
+ var displayName: string;
455
+ }
453
456
 
454
457
  declare const CheckBoxUI: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>>, {
455
458
  size?: "sm" | "md" | "lg" | undefined;
@@ -662,6 +665,9 @@ interface CheckboxProps {
662
665
  label: string;
663
666
  }
664
667
  declare function CheckBox({ id, label, size, ...props }: CheckboxIUProps & CheckboxProps): react_jsx_runtime.JSX.Element;
668
+ declare namespace CheckBox {
669
+ var displayName: string;
670
+ }
665
671
 
666
672
  declare const HeadingUI: _stitches_react_types_styled_component.StyledComponent<"h2", {
667
673
  mode?: "white" | "default" | undefined;
@@ -876,6 +882,9 @@ interface HeadingProps {
876
882
  children: ReactNode;
877
883
  }
878
884
  declare function Heading({ children, ...props }: HeadingUIProps & HeadingProps): react_jsx_runtime.JSX.Element;
885
+ declare namespace Heading {
886
+ var displayName: string;
887
+ }
879
888
 
880
889
  declare const RadioUI: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadioGroup.RadioGroupProps & react.RefAttributes<HTMLDivElement>>, {
881
890
  size?: "sm" | "md" | "lg" | undefined;
@@ -1092,6 +1101,9 @@ interface RadioGroupProps extends RadioUIProps {
1092
1101
  items: Item[];
1093
1102
  }
1094
1103
  declare function Radio({ items, size, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
1104
+ declare namespace Radio {
1105
+ var displayName: string;
1106
+ }
1095
1107
 
1096
1108
  declare const TextUI: _stitches_react_types_styled_component.StyledComponent<"p", {
1097
1109
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
@@ -1304,6 +1316,9 @@ interface TextProps {
1304
1316
  children: ReactNode;
1305
1317
  }
1306
1318
  declare function Text({ children, size, ...props }: TextUIProps & TextProps): react_jsx_runtime.JSX.Element;
1319
+ declare namespace Text {
1320
+ var displayName: string;
1321
+ }
1307
1322
 
1308
1323
  declare const TextAreaUI: _stitches_react_types_styled_component.StyledComponent<"textarea", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1309
1324
  colors: {
@@ -1514,6 +1529,9 @@ interface TextAreaProps {
1514
1529
  disabled?: boolean;
1515
1530
  }
1516
1531
  declare function TextArea({ children, ...props }: TextAreaUIProps & TextAreaProps): react_jsx_runtime.JSX.Element;
1532
+ declare namespace TextArea {
1533
+ var displayName: string;
1534
+ }
1517
1535
 
1518
1536
  declare const InputUI: _stitches_react_types_styled_component.StyledComponent<"input", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1519
1537
  colors: {
package/dist/index.js CHANGED
@@ -316,6 +316,7 @@ function Button(_a) {
316
316
  ]);
317
317
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonUI, __spreadProps(__spreadValues({ variant, size }, props), { children }));
318
318
  }
319
+ Button.displayName = "Button";
319
320
 
320
321
  // src/components/CheckBox/styles.ts
321
322
  var Checkbox = __toESM(require("@radix-ui/react-checkbox"));
@@ -445,6 +446,7 @@ function CheckBox(_a) {
445
446
  label
446
447
  ] });
447
448
  }
449
+ CheckBox.displayName = "CheckBox";
448
450
 
449
451
  // src/components/Heading/styles.ts
450
452
  var HeadingUI = styled("h2", {
@@ -480,6 +482,7 @@ function Heading(_a) {
480
482
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
481
483
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HeadingUI, __spreadProps(__spreadValues({}, props), { children }));
482
484
  }
485
+ Heading.displayName = "Heading";
483
486
 
484
487
  // src/components/Radio/styles.ts
485
488
  var RadioGroup = __toESM(require("@radix-ui/react-radio-group"));
@@ -632,6 +635,7 @@ function RadioItem(_a) {
632
635
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Label2, { htmlFor: id, size, children: label })
633
636
  ] }, id);
634
637
  }
638
+ RadioItem.displayName = "RadioItem";
635
639
 
636
640
  // src/components/Radio/index.tsx
637
641
  var import_jsx_runtime6 = require("react/jsx-runtime");
@@ -649,6 +653,7 @@ function Radio(_a) {
649
653
  );
650
654
  }) }));
651
655
  }
656
+ Radio.displayName = "Radio";
652
657
 
653
658
  // src/components/Text/styles.ts
654
659
  var TextUI = styled("p", {
@@ -684,6 +689,7 @@ function Text(_a) {
684
689
  ]);
685
690
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TextUI, __spreadProps(__spreadValues({ size }, props), { children }));
686
691
  }
692
+ Text.displayName = "Text";
687
693
 
688
694
  // src/components/TextArea/styles.ts
689
695
  var TextAreaUI = styled("textarea", {
@@ -727,6 +733,7 @@ function TextArea(_a) {
727
733
  ]);
728
734
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TextAreaUI, __spreadProps(__spreadValues({ rows: 3 }, props), { children }));
729
735
  }
736
+ TextArea.displayName = "TextArea";
730
737
 
731
738
  // src/components/TextInput/index.tsx
732
739
  var import_react4 = require("react");
@@ -821,6 +828,7 @@ var TextInput = (0, import_react4.forwardRef)(
821
828
  ] });
822
829
  }
823
830
  );
831
+ TextInput.displayName = "TextInput";
824
832
  // Annotate the CommonJS export names for ESM import in node:
825
833
  0 && (module.exports = {
826
834
  Box,
package/dist/index.mjs CHANGED
@@ -268,6 +268,7 @@ function Button(_a) {
268
268
  ]);
269
269
  return /* @__PURE__ */ jsx2(ButtonUI, __spreadProps(__spreadValues({ variant, size }, props), { children }));
270
270
  }
271
+ Button.displayName = "Button";
271
272
 
272
273
  // src/components/CheckBox/styles.ts
273
274
  import * as Checkbox from "@radix-ui/react-checkbox";
@@ -397,6 +398,7 @@ function CheckBox(_a) {
397
398
  label
398
399
  ] });
399
400
  }
401
+ CheckBox.displayName = "CheckBox";
400
402
 
401
403
  // src/components/Heading/styles.ts
402
404
  var HeadingUI = styled("h2", {
@@ -432,6 +434,7 @@ function Heading(_a) {
432
434
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
433
435
  return /* @__PURE__ */ jsx4(HeadingUI, __spreadProps(__spreadValues({}, props), { children }));
434
436
  }
437
+ Heading.displayName = "Heading";
435
438
 
436
439
  // src/components/Radio/styles.ts
437
440
  import * as RadioGroup from "@radix-ui/react-radio-group";
@@ -584,6 +587,7 @@ function RadioItem(_a) {
584
587
  /* @__PURE__ */ jsx5(Label2, { htmlFor: id, size, children: label })
585
588
  ] }, id);
586
589
  }
590
+ RadioItem.displayName = "RadioItem";
587
591
 
588
592
  // src/components/Radio/index.tsx
589
593
  import { jsx as jsx6 } from "react/jsx-runtime";
@@ -601,6 +605,7 @@ function Radio(_a) {
601
605
  );
602
606
  }) }));
603
607
  }
608
+ Radio.displayName = "Radio";
604
609
 
605
610
  // src/components/Text/styles.ts
606
611
  var TextUI = styled("p", {
@@ -636,6 +641,7 @@ function Text(_a) {
636
641
  ]);
637
642
  return /* @__PURE__ */ jsx7(TextUI, __spreadProps(__spreadValues({ size }, props), { children }));
638
643
  }
644
+ Text.displayName = "Text";
639
645
 
640
646
  // src/components/TextArea/styles.ts
641
647
  var TextAreaUI = styled("textarea", {
@@ -679,6 +685,7 @@ function TextArea(_a) {
679
685
  ]);
680
686
  return /* @__PURE__ */ jsx8(TextAreaUI, __spreadProps(__spreadValues({ rows: 3 }, props), { children }));
681
687
  }
688
+ TextArea.displayName = "TextArea";
682
689
 
683
690
  // src/components/TextInput/index.tsx
684
691
  import {
@@ -776,6 +783,7 @@ var TextInput = forwardRef(
776
783
  ] });
777
784
  }
778
785
  );
786
+ TextInput.displayName = "TextInput";
779
787
  export {
780
788
  Box,
781
789
  Button,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dafaz-ui/react",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -17,3 +17,5 @@ export function Button({
17
17
  </ButtonUI>
18
18
  )
19
19
  }
20
+
21
+ Button.displayName = 'Button'
@@ -23,3 +23,5 @@ export function CheckBox({
23
23
  </Label>
24
24
  )
25
25
  }
26
+
27
+ CheckBox.displayName = 'CheckBox'
@@ -8,3 +8,5 @@ interface HeadingProps {
8
8
  export function Heading({ children, ...props }: HeadingUIProps & HeadingProps) {
9
9
  return <HeadingUI {...props}>{children}</HeadingUI>
10
10
  }
11
+
12
+ Heading.displayName = 'Heading'
@@ -30,3 +30,5 @@ export function RadioItem({
30
30
  </RadioItemContainer>
31
31
  )
32
32
  }
33
+
34
+ RadioItem.displayName = 'RadioItem'
@@ -27,3 +27,5 @@ export function Radio({ items, size, ...props }: RadioGroupProps) {
27
27
  </RadioUI>
28
28
  )
29
29
  }
30
+
31
+ Radio.displayName = 'Radio'
@@ -16,3 +16,5 @@ export function Text({
16
16
  </TextUI>
17
17
  )
18
18
  }
19
+
20
+ Text.displayName = 'Text'
@@ -17,3 +17,5 @@ export function TextArea({
17
17
  </TextAreaUI>
18
18
  )
19
19
  }
20
+
21
+ TextArea.displayName = 'TextArea'
@@ -49,3 +49,5 @@ export const TextInput = forwardRef<ElementRef<typeof InputUI>, TextInputProps>(
49
49
  )
50
50
  },
51
51
  )
52
+
53
+ TextInput.displayName = 'TextInput'