@syscore/ui-library 2.0.0-beta-publish-workflow-beta.14 → 2.0.0-beta-publish-workflow-beta.16

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/index.d.ts CHANGED
@@ -405,6 +405,7 @@ import { RadioCardItem } from '../client/components/ui/radio-card';
405
405
  import { RadioCardItemProps } from '../client/components/ui/radio-card';
406
406
  import { RadioGroup } from '../client/components/ui/radio-group';
407
407
  import { RadioGroupItem } from '../client/components/ui/radio-group';
408
+ import { RequiredAsterisk } from '../client/components/ui/label';
408
409
  import { ResizableHandle } from '../client/components/ui/resizable';
409
410
  import { ResizablePanel } from '../client/components/ui/resizable';
410
411
  import { ResizablePanelGroup } from '../client/components/ui/resizable';
@@ -1453,6 +1454,8 @@ export { RadioGroup }
1453
1454
 
1454
1455
  export { RadioGroupItem }
1455
1456
 
1457
+ export { RequiredAsterisk }
1458
+
1456
1459
  export { ResizableHandle }
1457
1460
 
1458
1461
  export { ResizablePanel }
package/dist/index.es.js CHANGED
@@ -2837,7 +2837,7 @@ const ButtonV01 = React.forwardRef(
2837
2837
  );
2838
2838
  ButtonV01.displayName = "ButtonV01";
2839
2839
  const labelVariants = cva("label");
2840
- const Label = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
2840
+ const Label = React.forwardRef(({ className, children, required, ...props }, ref) => /* @__PURE__ */ jsx(
2841
2841
  LabelPrimitive.Root,
2842
2842
  {
2843
2843
  ref,
@@ -2845,11 +2845,19 @@ const Label = React.forwardRef(({ className, children, ...props }, ref) => /* @_
2845
2845
  ...props,
2846
2846
  children: /* @__PURE__ */ jsxs("div", { className: "overline-medium", children: [
2847
2847
  " ",
2848
- children
2848
+ children,
2849
+ required ? /* @__PURE__ */ jsxs("span", { className: "label__required-mark", "aria-hidden": "true", children: [
2850
+ " ",
2851
+ "*"
2852
+ ] }) : null
2849
2853
  ] })
2850
2854
  }
2851
2855
  ));
2852
2856
  Label.displayName = LabelPrimitive.Root.displayName;
2857
+ const RequiredAsterisk = () => /* @__PURE__ */ jsxs("span", { className: "label__required-mark", "aria-hidden": "true", children: [
2858
+ " ",
2859
+ "*"
2860
+ ] });
2853
2861
  const Textarea = React.forwardRef(
2854
2862
  ({ className, ...props }, ref) => {
2855
2863
  return /* @__PURE__ */ jsx(
@@ -3199,6 +3207,7 @@ const Dropdown = React.forwardRef(
3199
3207
  ({
3200
3208
  className,
3201
3209
  label = "Label",
3210
+ required = false,
3202
3211
  placeholder = "Placeholder",
3203
3212
  options = [],
3204
3213
  value: valueProp,
@@ -3336,7 +3345,13 @@ const Dropdown = React.forwardRef(
3336
3345
  ...props,
3337
3346
  children: [
3338
3347
  label ? /* @__PURE__ */ jsxs("div", { className: "dropdown-label-row", children: [
3339
- /* @__PURE__ */ jsx("label", { className: "dropdown-label overline-medium", htmlFor: inputId, children: label }),
3348
+ /* @__PURE__ */ jsxs("label", { className: "dropdown-label overline-medium", htmlFor: inputId, children: [
3349
+ label,
3350
+ required ? /* @__PURE__ */ jsxs("span", { className: "label__required-mark", "aria-hidden": "true", children: [
3351
+ " ",
3352
+ "*"
3353
+ ] }) : null
3354
+ ] }),
3340
3355
  onClearTags ? /* @__PURE__ */ jsx("span", { className: "dropdown-label-actions", children: /* @__PURE__ */ jsx(
3341
3356
  "button",
3342
3357
  {
@@ -18773,6 +18788,7 @@ export {
18773
18788
  RadioCardItem,
18774
18789
  RadioGroup,
18775
18790
  RadioGroupItem,
18791
+ RequiredAsterisk,
18776
18792
  ResizableHandle,
18777
18793
  ResizablePanel,
18778
18794
  ResizablePanelGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syscore/ui-library",
3
- "version": "2.0.0-beta-publish-workflow-beta.14",
3
+ "version": "2.0.0-beta-publish-workflow-beta.16",
4
4
  "description": "A comprehensive React component library built with Radix UI, Tailwind CSS, and TypeScript",
5
5
  "private": false,
6
6
  "type": "module",