@dafaz-ui/react 3.0.3 → 3.0.5

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.3 build
2
+ > @dafaz-ui/react@3.0.5 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
- CJS dist/index.js 19.22 KB
11
+ ESM dist/index.mjs 17.02 KB
12
+ ESM ⚡️ Build success in 37ms
13
+ CJS dist/index.js 19.44 KB
12
14
  CJS ⚡️ Build success in 37ms
13
- ESM dist/index.mjs 16.79 KB
14
- ESM ⚡️ Build success in 38ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4739ms
17
- DTS dist/index.d.mts 97.76 KB
18
- DTS dist/index.d.ts 97.76 KB
16
+ DTS ⚡️ Build success in 4308ms
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.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Change check and radio default width
8
+
9
+ ## 3.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix displayName form components
14
+
3
15
  ## 3.0.3
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -665,6 +665,9 @@ interface CheckboxProps {
665
665
  label: string;
666
666
  }
667
667
  declare function CheckBox({ id, label, size, ...props }: CheckboxIUProps & CheckboxProps): react_jsx_runtime.JSX.Element;
668
+ declare namespace CheckBox {
669
+ var displayName: string;
670
+ }
668
671
 
669
672
  declare const HeadingUI: _stitches_react_types_styled_component.StyledComponent<"h2", {
670
673
  mode?: "white" | "default" | undefined;
@@ -879,6 +882,9 @@ interface HeadingProps {
879
882
  children: ReactNode;
880
883
  }
881
884
  declare function Heading({ children, ...props }: HeadingUIProps & HeadingProps): react_jsx_runtime.JSX.Element;
885
+ declare namespace Heading {
886
+ var displayName: string;
887
+ }
882
888
 
883
889
  declare const RadioUI: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadioGroup.RadioGroupProps & react.RefAttributes<HTMLDivElement>>, {
884
890
  size?: "sm" | "md" | "lg" | undefined;
@@ -1095,6 +1101,9 @@ interface RadioGroupProps extends RadioUIProps {
1095
1101
  items: Item[];
1096
1102
  }
1097
1103
  declare function Radio({ items, size, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
1104
+ declare namespace Radio {
1105
+ var displayName: string;
1106
+ }
1098
1107
 
1099
1108
  declare const TextUI: _stitches_react_types_styled_component.StyledComponent<"p", {
1100
1109
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
@@ -1307,6 +1316,9 @@ interface TextProps {
1307
1316
  children: ReactNode;
1308
1317
  }
1309
1318
  declare function Text({ children, size, ...props }: TextUIProps & TextProps): react_jsx_runtime.JSX.Element;
1319
+ declare namespace Text {
1320
+ var displayName: string;
1321
+ }
1310
1322
 
1311
1323
  declare const TextAreaUI: _stitches_react_types_styled_component.StyledComponent<"textarea", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1312
1324
  colors: {
@@ -1517,6 +1529,9 @@ interface TextAreaProps {
1517
1529
  disabled?: boolean;
1518
1530
  }
1519
1531
  declare function TextArea({ children, ...props }: TextAreaUIProps & TextAreaProps): react_jsx_runtime.JSX.Element;
1532
+ declare namespace TextArea {
1533
+ var displayName: string;
1534
+ }
1520
1535
 
1521
1536
  declare const InputUI: _stitches_react_types_styled_component.StyledComponent<"input", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1522
1537
  colors: {
package/dist/index.d.ts CHANGED
@@ -665,6 +665,9 @@ interface CheckboxProps {
665
665
  label: string;
666
666
  }
667
667
  declare function CheckBox({ id, label, size, ...props }: CheckboxIUProps & CheckboxProps): react_jsx_runtime.JSX.Element;
668
+ declare namespace CheckBox {
669
+ var displayName: string;
670
+ }
668
671
 
669
672
  declare const HeadingUI: _stitches_react_types_styled_component.StyledComponent<"h2", {
670
673
  mode?: "white" | "default" | undefined;
@@ -879,6 +882,9 @@ interface HeadingProps {
879
882
  children: ReactNode;
880
883
  }
881
884
  declare function Heading({ children, ...props }: HeadingUIProps & HeadingProps): react_jsx_runtime.JSX.Element;
885
+ declare namespace Heading {
886
+ var displayName: string;
887
+ }
882
888
 
883
889
  declare const RadioUI: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadioGroup.RadioGroupProps & react.RefAttributes<HTMLDivElement>>, {
884
890
  size?: "sm" | "md" | "lg" | undefined;
@@ -1095,6 +1101,9 @@ interface RadioGroupProps extends RadioUIProps {
1095
1101
  items: Item[];
1096
1102
  }
1097
1103
  declare function Radio({ items, size, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
1104
+ declare namespace Radio {
1105
+ var displayName: string;
1106
+ }
1098
1107
 
1099
1108
  declare const TextUI: _stitches_react_types_styled_component.StyledComponent<"p", {
1100
1109
  size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
@@ -1307,6 +1316,9 @@ interface TextProps {
1307
1316
  children: ReactNode;
1308
1317
  }
1309
1318
  declare function Text({ children, size, ...props }: TextUIProps & TextProps): react_jsx_runtime.JSX.Element;
1319
+ declare namespace Text {
1320
+ var displayName: string;
1321
+ }
1310
1322
 
1311
1323
  declare const TextAreaUI: _stitches_react_types_styled_component.StyledComponent<"textarea", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1312
1324
  colors: {
@@ -1517,6 +1529,9 @@ interface TextAreaProps {
1517
1529
  disabled?: boolean;
1518
1530
  }
1519
1531
  declare function TextArea({ children, ...props }: TextAreaUIProps & TextAreaProps): react_jsx_runtime.JSX.Element;
1532
+ declare namespace TextArea {
1533
+ var displayName: string;
1534
+ }
1520
1535
 
1521
1536
  declare const InputUI: _stitches_react_types_styled_component.StyledComponent<"input", {}, {}, _stitches_react_types_css_util.CSS<{}, {
1522
1537
  colors: {
package/dist/index.js CHANGED
@@ -362,7 +362,7 @@ var CheckBoxUI = styled(Checkbox.Root, {
362
362
  }
363
363
  },
364
364
  defaultVariants: {
365
- size: "lg"
365
+ size: "md"
366
366
  }
367
367
  });
368
368
  var slideIn = keyframes({
@@ -398,7 +398,7 @@ var CheckBoxIndicator = styled(Checkbox.Indicator, {
398
398
  }
399
399
  },
400
400
  defaultVariants: {
401
- size: "lg"
401
+ size: "md"
402
402
  }
403
403
  });
404
404
  var Label = styled("label", {
@@ -424,7 +424,7 @@ var Label = styled("label", {
424
424
  }
425
425
  },
426
426
  defaultVariants: {
427
- size: "lg"
427
+ size: "md"
428
428
  }
429
429
  });
430
430
 
@@ -446,6 +446,7 @@ function CheckBox(_a) {
446
446
  label
447
447
  ] });
448
448
  }
449
+ CheckBox.displayName = "CheckBox";
449
450
 
450
451
  // src/components/Heading/styles.ts
451
452
  var HeadingUI = styled("h2", {
@@ -481,6 +482,7 @@ function Heading(_a) {
481
482
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
482
483
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(HeadingUI, __spreadProps(__spreadValues({}, props), { children }));
483
484
  }
485
+ Heading.displayName = "Heading";
484
486
 
485
487
  // src/components/Radio/styles.ts
486
488
  var RadioGroup = __toESM(require("@radix-ui/react-radio-group"));
@@ -497,7 +499,7 @@ var RadioUI = styled(RadioGroup.Root, {
497
499
  }
498
500
  },
499
501
  defaultVariants: {
500
- size: "lg"
502
+ size: "md"
501
503
  }
502
504
  });
503
505
 
@@ -553,7 +555,7 @@ var RadioItemUI = styled(RadioGroup2.Item, {
553
555
  }
554
556
  },
555
557
  defaultVariants: {
556
- size: "lg"
558
+ size: "md"
557
559
  }
558
560
  });
559
561
  var slideIn2 = keyframes({
@@ -589,7 +591,7 @@ var RadioIndicator = styled(RadioGroup2.Indicator, {
589
591
  }
590
592
  },
591
593
  defaultVariants: {
592
- size: "lg"
594
+ size: "md"
593
595
  }
594
596
  });
595
597
  var Label2 = styled("label", {
@@ -612,7 +614,7 @@ var Label2 = styled("label", {
612
614
  }
613
615
  },
614
616
  defaultVariants: {
615
- size: "lg"
617
+ size: "md"
616
618
  }
617
619
  });
618
620
 
@@ -633,6 +635,7 @@ function RadioItem(_a) {
633
635
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Label2, { htmlFor: id, size, children: label })
634
636
  ] }, id);
635
637
  }
638
+ RadioItem.displayName = "RadioItem";
636
639
 
637
640
  // src/components/Radio/index.tsx
638
641
  var import_jsx_runtime6 = require("react/jsx-runtime");
@@ -650,6 +653,7 @@ function Radio(_a) {
650
653
  );
651
654
  }) }));
652
655
  }
656
+ Radio.displayName = "Radio";
653
657
 
654
658
  // src/components/Text/styles.ts
655
659
  var TextUI = styled("p", {
@@ -685,6 +689,7 @@ function Text(_a) {
685
689
  ]);
686
690
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TextUI, __spreadProps(__spreadValues({ size }, props), { children }));
687
691
  }
692
+ Text.displayName = "Text";
688
693
 
689
694
  // src/components/TextArea/styles.ts
690
695
  var TextAreaUI = styled("textarea", {
@@ -728,6 +733,7 @@ function TextArea(_a) {
728
733
  ]);
729
734
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TextAreaUI, __spreadProps(__spreadValues({ rows: 3 }, props), { children }));
730
735
  }
736
+ TextArea.displayName = "TextArea";
731
737
 
732
738
  // src/components/TextInput/index.tsx
733
739
  var import_react4 = require("react");
@@ -822,6 +828,7 @@ var TextInput = (0, import_react4.forwardRef)(
822
828
  ] });
823
829
  }
824
830
  );
831
+ TextInput.displayName = "TextInput";
825
832
  // Annotate the CommonJS export names for ESM import in node:
826
833
  0 && (module.exports = {
827
834
  Box,
package/dist/index.mjs CHANGED
@@ -314,7 +314,7 @@ var CheckBoxUI = styled(Checkbox.Root, {
314
314
  }
315
315
  },
316
316
  defaultVariants: {
317
- size: "lg"
317
+ size: "md"
318
318
  }
319
319
  });
320
320
  var slideIn = keyframes({
@@ -350,7 +350,7 @@ var CheckBoxIndicator = styled(Checkbox.Indicator, {
350
350
  }
351
351
  },
352
352
  defaultVariants: {
353
- size: "lg"
353
+ size: "md"
354
354
  }
355
355
  });
356
356
  var Label = styled("label", {
@@ -376,7 +376,7 @@ var Label = styled("label", {
376
376
  }
377
377
  },
378
378
  defaultVariants: {
379
- size: "lg"
379
+ size: "md"
380
380
  }
381
381
  });
382
382
 
@@ -398,6 +398,7 @@ function CheckBox(_a) {
398
398
  label
399
399
  ] });
400
400
  }
401
+ CheckBox.displayName = "CheckBox";
401
402
 
402
403
  // src/components/Heading/styles.ts
403
404
  var HeadingUI = styled("h2", {
@@ -433,6 +434,7 @@ function Heading(_a) {
433
434
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
434
435
  return /* @__PURE__ */ jsx4(HeadingUI, __spreadProps(__spreadValues({}, props), { children }));
435
436
  }
437
+ Heading.displayName = "Heading";
436
438
 
437
439
  // src/components/Radio/styles.ts
438
440
  import * as RadioGroup from "@radix-ui/react-radio-group";
@@ -449,7 +451,7 @@ var RadioUI = styled(RadioGroup.Root, {
449
451
  }
450
452
  },
451
453
  defaultVariants: {
452
- size: "lg"
454
+ size: "md"
453
455
  }
454
456
  });
455
457
 
@@ -505,7 +507,7 @@ var RadioItemUI = styled(RadioGroup2.Item, {
505
507
  }
506
508
  },
507
509
  defaultVariants: {
508
- size: "lg"
510
+ size: "md"
509
511
  }
510
512
  });
511
513
  var slideIn2 = keyframes({
@@ -541,7 +543,7 @@ var RadioIndicator = styled(RadioGroup2.Indicator, {
541
543
  }
542
544
  },
543
545
  defaultVariants: {
544
- size: "lg"
546
+ size: "md"
545
547
  }
546
548
  });
547
549
  var Label2 = styled("label", {
@@ -564,7 +566,7 @@ var Label2 = styled("label", {
564
566
  }
565
567
  },
566
568
  defaultVariants: {
567
- size: "lg"
569
+ size: "md"
568
570
  }
569
571
  });
570
572
 
@@ -585,6 +587,7 @@ function RadioItem(_a) {
585
587
  /* @__PURE__ */ jsx5(Label2, { htmlFor: id, size, children: label })
586
588
  ] }, id);
587
589
  }
590
+ RadioItem.displayName = "RadioItem";
588
591
 
589
592
  // src/components/Radio/index.tsx
590
593
  import { jsx as jsx6 } from "react/jsx-runtime";
@@ -602,6 +605,7 @@ function Radio(_a) {
602
605
  );
603
606
  }) }));
604
607
  }
608
+ Radio.displayName = "Radio";
605
609
 
606
610
  // src/components/Text/styles.ts
607
611
  var TextUI = styled("p", {
@@ -637,6 +641,7 @@ function Text(_a) {
637
641
  ]);
638
642
  return /* @__PURE__ */ jsx7(TextUI, __spreadProps(__spreadValues({ size }, props), { children }));
639
643
  }
644
+ Text.displayName = "Text";
640
645
 
641
646
  // src/components/TextArea/styles.ts
642
647
  var TextAreaUI = styled("textarea", {
@@ -680,6 +685,7 @@ function TextArea(_a) {
680
685
  ]);
681
686
  return /* @__PURE__ */ jsx8(TextAreaUI, __spreadProps(__spreadValues({ rows: 3 }, props), { children }));
682
687
  }
688
+ TextArea.displayName = "TextArea";
683
689
 
684
690
  // src/components/TextInput/index.tsx
685
691
  import {
@@ -777,6 +783,7 @@ var TextInput = forwardRef(
777
783
  ] });
778
784
  }
779
785
  );
786
+ TextInput.displayName = "TextInput";
780
787
  export {
781
788
  Box,
782
789
  Button,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dafaz-ui/react",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -23,3 +23,5 @@ export function CheckBox({
23
23
  </Label>
24
24
  )
25
25
  }
26
+
27
+ CheckBox.displayName = 'CheckBox'
@@ -48,7 +48,7 @@ export const CheckBoxUI = styled(Checkbox.Root, {
48
48
  },
49
49
  },
50
50
  defaultVariants: {
51
- size: 'lg',
51
+ size: 'md',
52
52
  },
53
53
  })
54
54
 
@@ -90,7 +90,7 @@ export const CheckBoxIndicator = styled(Checkbox.Indicator, {
90
90
  },
91
91
  },
92
92
  defaultVariants: {
93
- size: 'lg',
93
+ size: 'md',
94
94
  },
95
95
  })
96
96
 
@@ -119,7 +119,7 @@ export const Label = styled('label', {
119
119
  },
120
120
  },
121
121
  defaultVariants: {
122
- size: 'lg',
122
+ size: 'md',
123
123
  },
124
124
  })
125
125
 
@@ -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'
@@ -54,7 +54,7 @@ export const RadioItemUI = styled(RadioGroup.Item, {
54
54
  },
55
55
  },
56
56
  defaultVariants: {
57
- size: 'lg',
57
+ size: 'md',
58
58
  },
59
59
  })
60
60
 
@@ -96,7 +96,7 @@ export const RadioIndicator = styled(RadioGroup.Indicator, {
96
96
  },
97
97
  },
98
98
  defaultVariants: {
99
- size: 'lg',
99
+ size: 'md',
100
100
  },
101
101
  })
102
102
 
@@ -121,7 +121,7 @@ export const Label = styled('label', {
121
121
  },
122
122
  },
123
123
  defaultVariants: {
124
- size: 'lg',
124
+ size: 'md',
125
125
  },
126
126
  })
127
127
 
@@ -27,3 +27,5 @@ export function Radio({ items, size, ...props }: RadioGroupProps) {
27
27
  </RadioUI>
28
28
  )
29
29
  }
30
+
31
+ Radio.displayName = 'Radio'
@@ -16,7 +16,7 @@ export const RadioUI = styled(RadioGroup.Root, {
16
16
  },
17
17
  },
18
18
  defaultVariants: {
19
- size: 'lg',
19
+ size: 'md',
20
20
  },
21
21
  })
22
22
 
@@ -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'