@marigold/theme-rui 3.0.3 → 4.0.1

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.js CHANGED
@@ -50,7 +50,7 @@ const Accordion = {
50
50
  defaultVariants: { variant: "default" }
51
51
  }),
52
52
  header: (0, __marigold_system.cva)([
53
- "flex w-full items-center justify-between gap-4 rounded-md py-2 cursor-pointer text-foreground",
53
+ "flex w-full items-center justify-between gap-4 py-2 rounded-md cursor-pointer text-foreground",
54
54
  "text-left text-base font-semibold leading-6 transition-all",
55
55
  "hover:no-underline",
56
56
  "disabled:cursor-not-allowed disabled:text-disabled-foreground"
@@ -61,8 +61,9 @@ const Accordion = {
61
61
  } },
62
62
  defaultVariants: { variant: "default" }
63
63
  }),
64
- content: (0, __marigold_system.cva)("in-data-[expanded]:pb-2"),
65
- icon: (0, __marigold_system.cva)("pointer-events-none shrink-0 opacity-60 transition-transform duration-200")
64
+ panel: (0, __marigold_system.cva)("overflow-clip h-(--disclosure-panel-height) transition-[height,padding] duration-250"),
65
+ content: (0, __marigold_system.cva)("pb-2"),
66
+ icon: (0, __marigold_system.cva)("pointer-events-none shrink-0 opacity-60 transition-transform duration-250")
66
67
  };
67
68
 
68
69
  //#endregion
@@ -97,6 +98,7 @@ const Button = (0, __marigold_system.cva)([
97
98
  primary: "bg-brand text-brand-foreground shadow-xs hover:bg-brand/90",
98
99
  secondary: "border border-input bg-background shadow-xs hover:bg-hover hover:text-foreground expanded:bg-hover",
99
100
  destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
101
+ "destructive-ghost": "text-destructive hover:bg-destructive/10",
100
102
  ghost: "hover:bg-hover hover:text-foreground",
101
103
  link: "text-link util-touch-hitbox"
102
104
  },
@@ -117,7 +119,8 @@ const Button = (0, __marigold_system.cva)([
117
119
  "primary",
118
120
  "secondary",
119
121
  "destructive",
120
- "ghost"
122
+ "ghost",
123
+ "destructive-ghost"
121
124
  ],
122
125
  class: "items-center justify-center"
123
126
  },
@@ -126,7 +129,8 @@ const Button = (0, __marigold_system.cva)([
126
129
  "primary",
127
130
  "secondary",
128
131
  "destructive",
129
- "ghost"
132
+ "ghost",
133
+ "destructive-ghost"
130
134
  ],
131
135
  size: "default",
132
136
  class: "h-button px-4 py-2 [&_svg]:size-4"
@@ -136,7 +140,8 @@ const Button = (0, __marigold_system.cva)([
136
140
  "primary",
137
141
  "secondary",
138
142
  "destructive",
139
- "ghost"
143
+ "ghost",
144
+ "destructive-ghost"
140
145
  ],
141
146
  size: "small",
142
147
  class: "h-button-small px-3 [&_svg]:size-3.5"
@@ -146,7 +151,8 @@ const Button = (0, __marigold_system.cva)([
146
151
  "primary",
147
152
  "secondary",
148
153
  "destructive",
149
- "ghost"
154
+ "ghost",
155
+ "destructive-ghost"
150
156
  ],
151
157
  size: "large",
152
158
  class: "h-button-large px-8 [&_svg]:size-5"
@@ -156,7 +162,8 @@ const Button = (0, __marigold_system.cva)([
156
162
  "primary",
157
163
  "secondary",
158
164
  "destructive",
159
- "ghost"
165
+ "ghost",
166
+ "destructive-ghost"
160
167
  ],
161
168
  size: "icon",
162
169
  class: "size-button [&_svg]:size-4"
@@ -198,7 +205,7 @@ const Checkbox = {
198
205
  container: (0, __marigold_system.cva)("cursor-pointer read-only:cursor-default gap-2"),
199
206
  label: (0, __marigold_system.cva)([
200
207
  "flex items-center gap-1",
201
- "text-sm leading-4 group-[group=\"checkbox\"]/checkboxgroup:font-normal font-medium text-foregroun",
208
+ "text-sm leading-4 group-[&]/checkboxgroup:font-normal font-medium text-foregroun",
202
209
  "group-disabled/checkbox:text-disabled-foreground"
203
210
  ]),
204
211
  group: (0, __marigold_system.cva)()
@@ -248,8 +255,8 @@ const CloseButton = (0, __marigold_system.cva)([
248
255
  "flex items-center justify-center whitespace-nowrap",
249
256
  "cursor-pointer",
250
257
  "transition-[color,box-shadow]",
251
- "mixin-ring-focus-visible",
252
- "rounded",
258
+ "focus-visible:util-focus-ring outline-none",
259
+ "rounded-full",
253
260
  "duration-150 active:scale-[0.98] pressed:scale-[0.98] transition-transform",
254
261
  "[&_svg]:size-4 [&_svg]:opacity-60 [&_svg]:transition-opacity hover:[&_svg]:opacity-100"
255
262
  ]);
@@ -455,21 +462,21 @@ const HelpText = {
455
462
  container: (0, __marigold_system.cva)([
456
463
  "text-xs text-muted-foreground group-disabled/field:text-disabled-foreground",
457
464
  "group-invalid/field:text-destructive",
458
- "has-[+_[aria-hidden=\"true\"]]:mb-0"
465
+ "has-[+_[aria-hidden=true]]:mb-0"
459
466
  ]),
460
467
  icon: (0, __marigold_system.cva)("")
461
468
  };
462
469
 
463
470
  //#endregion
464
471
  //#region src/components/Label.styles.ts
465
- const Label = {
466
- container: (0, __marigold_system.cva)([
467
- "flex items-center gap-1",
468
- "text-sm font-medium leading-none text-foreground",
469
- "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground"
470
- ]),
471
- indicator: (0, __marigold_system.cva)("group-required/field:block text-destructive -ml-1")
472
- };
472
+ const Label = (0, __marigold_system.cva)([
473
+ "flex items-center gap-1",
474
+ "text-sm font-medium leading-none text-foreground",
475
+ "group-disabled/field:cursor-not-allowed group-disabled/field:text-disabled-foreground",
476
+ "group-required/field:after:content-[\"*\"]",
477
+ "group-required/field:after:-ml-1",
478
+ "group-required/field:after:text-destructive"
479
+ ]);
473
480
 
474
481
  //#endregion
475
482
  //#region src/components/Link.styles.ts
@@ -516,13 +523,14 @@ const ListBox = {
516
523
  container: (0, __marigold_system.cva)(["overflow-hidden rounded-md border border-input group-[[data-trigger]]/popover:border-0"]),
517
524
  list: (0, __marigold_system.cva)(["bg-background p-1 text-sm outline-0 space-y-px"]),
518
525
  item: (0, __marigold_system.cva)([
519
- "relative flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-foreground",
526
+ "relative grid grid-cols-[auto_1fr] items-center gap-x-2 rounded-md px-2 py-1.5 text-sm text-foreground",
520
527
  "[&_.selection-indicator>svg]:invisible [&_.selection-indicator>svg]:block",
521
528
  "selected:bg-selected selected:[&_.selection-indicator>svg]:visible",
522
529
  "hover:bg-hover hover:text-hover-foreground",
523
530
  "disabled:cursor-not-allowed disabled:text-disabled-foreground",
524
531
  "focus-visible:util-focus-ring outline-none focus-visible:z-1",
525
- "cursor-default data-selection-mode:cursor-pointer"
532
+ "cursor-default data-selection-mode:cursor-pointer",
533
+ "[&_[slot=description]]:col-start-2 [&_[slot=description]]:row-start-2 [&_[slot=description]]:text-xs [&_[slot=description]]:text-muted-foreground"
526
534
  ]),
527
535
  section: (0, __marigold_system.cva)(""),
528
536
  header: (0, __marigold_system.cva)("[&_header]:px-2 [&_header]:py-1.5 [&_header]:text-xs [&_header]:font-medium [&_header]:text-muted-foreground")
@@ -669,7 +677,7 @@ const Popover = (0, __marigold_system.cva)([
669
677
  //#region src/components/Radio.styles.ts
670
678
  const Radio = {
671
679
  container: (0, __marigold_system.cva)("group-disabled/radio:cursor-not-allowed"),
672
- label: (0, __marigold_system.cva)(["text-sm font-normal cursor-pointer", "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"]),
680
+ label: (0, __marigold_system.cva)(["text-sm font-normal cursor-pointer w-full", "group-disabled/radio:text-disabled-foreground group-disabled/radio:cursor-not-allowed"]),
673
681
  radio: (0, __marigold_system.cva)([
674
682
  "aspect-square size-4 rounded-full",
675
683
  "border border-input shadow-xs",
@@ -695,7 +703,8 @@ const Pagination = {
695
703
  navigationButton: (0, __marigold_system.cva)([
696
704
  ...button,
697
705
  "disabled:pointer-events-none disabled:bg-disabled disabled:text-disabled-foreground",
698
- "h-9 py-2 gap-1 px-2.5"
706
+ "h-9 py-2 gap-1 px-2.5",
707
+ "has-[+_[hidden]]:mr-0"
699
708
  ]),
700
709
  pageButton: (0, __marigold_system.cva)([
701
710
  ...button,
@@ -707,8 +716,44 @@ const Pagination = {
707
716
  };
708
717
 
709
718
  //#endregion
710
- //#region src/components/ProgressCycle.styles.ts
711
- const ProgressCycle = (0, __marigold_system.cva)(["stroke-foreground"]);
719
+ //#region src/components/ProgressCircle.styles.ts
720
+ const ProgressCircle = {
721
+ container: (0, __marigold_system.cva)("stroke-foreground", {
722
+ variants: {
723
+ variant: {
724
+ default: "",
725
+ inverted: "stroke-secondary"
726
+ },
727
+ size: {
728
+ default: "",
729
+ large: "",
730
+ fit: ""
731
+ }
732
+ },
733
+ defaultVariants: {
734
+ variant: "default",
735
+ size: "default"
736
+ }
737
+ }),
738
+ loader: (0, __marigold_system.cva)("", {
739
+ variants: {
740
+ variant: {
741
+ default: "",
742
+ inverted: ""
743
+ },
744
+ size: {
745
+ default: "size-20",
746
+ large: "size-36",
747
+ fit: "size-fit"
748
+ }
749
+ },
750
+ defaultVariants: {
751
+ variant: "default",
752
+ size: "default"
753
+ }
754
+ }),
755
+ label: (0, __marigold_system.cva)("text-current text-sm")
756
+ };
712
757
 
713
758
  //#endregion
714
759
  //#region src/components/SectionMessage.styles.ts
@@ -760,7 +805,7 @@ const Select = {
760
805
  "h-input",
761
806
  "cursor-pointer",
762
807
  "*:data-placeholder:text-placeholder",
763
- "has-[+_[aria-hidden=\"true\"]]:mb-0"
808
+ "has-[+_[aria-hidden=true]]:mb-0"
764
809
  ])
765
810
  };
766
811
 
@@ -884,14 +929,14 @@ const Tag = {
884
929
  "font-medium text-xs",
885
930
  "h-7 px-2 cursor-default",
886
931
  "bg-background",
887
- "data-selected:text-white data-selected:bg-brand",
888
- "data-[disabled]:cursor-not-allowed data-[disabled]:text-disabled-foreground data-[disabled]:bg-disabled",
932
+ "selected:text-white selected:bg-brand",
933
+ "data-disabled:cursor-not-allowed data-disabled:text-disabled-foreground data-disabled:bg-disabled",
889
934
  "focus-visible:util-focus-ring outline-none"
890
935
  ]),
891
936
  closeButton: (0, __marigold_system.cva)(["size-4", "disabled:bg-disabled disabled:text-disabled-foreground disabled:cursor-not-allowed"]),
892
937
  listItems: (0, __marigold_system.cva)(["flex flex-wrap gap-1", "mb-0"]),
893
938
  removeAll: (0, __marigold_system.cva)([
894
- "inline whitespace-nowrap font-medium transition-[color,box-shadow,transform]",
939
+ "inline whitespace-nowrap font-medium transition-[color,box-shadow,transform] rounded-md",
895
940
  "duration-150 active:scale-[0.98] pressed:scale-[0.98]",
896
941
  "focus-visible:util-focus-ring outline-none",
897
942
  "cursor-pointer",
@@ -1022,8 +1067,8 @@ const Tooltip = {
1022
1067
  const Underlay = (0, __marigold_system.cva)("bg-black/80 px-4");
1023
1068
 
1024
1069
  //#endregion
1025
- //#region src/components/XLoader.styles.ts
1026
- const XLoader = {
1070
+ //#region src/components/Loader.styles.ts
1071
+ const Loader = {
1027
1072
  container: (0, __marigold_system.cva)("grid place-items-center text-brand", {
1028
1073
  variants: {
1029
1074
  variant: {
@@ -1064,13 +1109,13 @@ const XLoader = {
1064
1109
  //#endregion
1065
1110
  //#region src/components/Breadcrumbs.styles.ts
1066
1111
  const Breadcrumbs = {
1067
- container: (0, __marigold_system.cva)(["flex flex-wrap items-center"], {
1112
+ container: (0, __marigold_system.cva)(["flex flex-wrap items-center gap-1.5 wrap-break-word text-sm sm:gap-2.5 text-muted-foreground"], {
1068
1113
  variants: {
1069
- variant: { default: "text-foreground" },
1114
+ variant: { default: "" },
1070
1115
  size: {
1071
- small: "text-xs gap-1.5",
1072
- default: "text-sm gap-1.5",
1073
- large: "text-base gap-1.5"
1116
+ small: "text-xs",
1117
+ default: "text-sm",
1118
+ large: "text-base"
1074
1119
  }
1075
1120
  },
1076
1121
  defaultVariants: {
@@ -1078,9 +1123,21 @@ const Breadcrumbs = {
1078
1123
  size: "default"
1079
1124
  }
1080
1125
  }),
1081
- item: (0, __marigold_system.cva)("inline-flex items-center gap-1.5 whitespace-nowrap "),
1082
- link: (0, __marigold_system.cva)("hover:underline cursor-pointer"),
1083
- current: (0, __marigold_system.cva)("font-medium")
1126
+ item: (0, __marigold_system.cva)("inline-flex items-center gap-1.5 sm:gap-2.5"),
1127
+ link: (0, __marigold_system.cva)("transition-colors hover:text-foreground cursor-pointer"),
1128
+ current: (0, __marigold_system.cva)("font-normal text-foreground")
1129
+ };
1130
+
1131
+ //#endregion
1132
+ //#region src/components/FileField.styles.ts
1133
+ const FileField = {
1134
+ container: (0, __marigold_system.cva)("space-y-2 "),
1135
+ dropZone: (0, __marigold_system.cva)("data-[drop-target=true]:bg-muted border-input has-[input:focus]:border-ring has-[input:focus]:ring-ring/50 relative flex min-h-52 flex-col items-center overflow-hidden rounded-xl border border-dashed p-4 transition-colors not-data-[files]:justify-center has-[input:focus]:ring-[3px]"),
1136
+ dropZoneContent: (0, __marigold_system.cva)("flex flex-col items-center justify-center gap-2 px-4 py-3 text-center"),
1137
+ dropZoneLabel: (0, __marigold_system.cva)("text-sm font-medium"),
1138
+ item: (0, __marigold_system.cva)("flex min-w-0 flex-col gap-0.5"),
1139
+ itemLabel: (0, __marigold_system.cva)("truncate text-[13px] font-medium"),
1140
+ itemDescription: (0, __marigold_system.cva)("text-muted-foreground text-xs")
1084
1141
  };
1085
1142
 
1086
1143
  //#endregion
@@ -1103,6 +1160,7 @@ var components_exports = /* @__PURE__ */ __export({
1103
1160
  Divider: () => Divider,
1104
1161
  Drawer: () => Drawer,
1105
1162
  Field: () => Field,
1163
+ FileField: () => FileField,
1106
1164
  Headline: () => Headline,
1107
1165
  HelpText: () => HelpText,
1108
1166
  IconButton: () => IconButton,
@@ -1111,13 +1169,14 @@ var components_exports = /* @__PURE__ */ __export({
1111
1169
  Link: () => Link,
1112
1170
  List: () => List,
1113
1171
  ListBox: () => ListBox,
1172
+ Loader: () => Loader,
1114
1173
  Menu: () => Menu,
1115
1174
  Modal: () => Modal,
1116
1175
  MultiSelect: () => MultiSelect,
1117
1176
  NumberField: () => NumberField,
1118
1177
  Pagination: () => Pagination,
1119
1178
  Popover: () => Popover,
1120
- ProgressCycle: () => ProgressCycle,
1179
+ ProgressCircle: () => ProgressCircle,
1121
1180
  Radio: () => Radio,
1122
1181
  SectionMessage: () => SectionMessage,
1123
1182
  Select: () => Select,
@@ -1130,8 +1189,7 @@ var components_exports = /* @__PURE__ */ __export({
1130
1189
  TextArea: () => TextArea,
1131
1190
  Toast: () => Toast,
1132
1191
  Tooltip: () => Tooltip,
1133
- Underlay: () => Underlay,
1134
- XLoader: () => XLoader
1192
+ Underlay: () => Underlay
1135
1193
  });
1136
1194
 
1137
1195
  //#endregion