@una-ui/preset-edge 0.63.1-29258224.a4c2a98 → 0.63.1-29258321.57251f3

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.mjs CHANGED
@@ -3,7 +3,7 @@ import { colors } from '@unocss/preset-mini/colors';
3
3
  import { fonts } from '@unocss/preset-mini/rules';
4
4
  import { handler, parseColor } from '@unocss/preset-mini/utils';
5
5
  import { mergeDeep } from 'unocss';
6
- import { s as shortcuts } from './shared/preset-edge.CBVHv0ok.mjs';
6
+ import { s as shortcuts } from './shared/preset-edge.P-f9H-jq.mjs';
7
7
 
8
8
  function presetUna(options = {
9
9
  // TODO: add options
package/dist/prefixes.mjs CHANGED
@@ -187,6 +187,16 @@ const prefixes = [
187
187
  "skeleton",
188
188
  "slider",
189
189
  "square",
190
+ "stepper",
191
+ "stepper-container",
192
+ "stepper-description",
193
+ "stepper-header",
194
+ "stepper-indicator",
195
+ "stepper-item",
196
+ "stepper-separator",
197
+ "stepper-title",
198
+ "stepper-trigger",
199
+ "stepper-wrapper",
190
200
  "switch",
191
201
  "switch-checked",
192
202
  "switch-unchecked",
@@ -1102,6 +1102,38 @@ const slider = [
1102
1102
  staticSlider
1103
1103
  ];
1104
1104
 
1105
+ const staticStepper = {
1106
+ // configurations
1107
+ "stepper": "flex gap-4",
1108
+ "stepper-horizontal": "flex-col",
1109
+ // components
1110
+ "stepper-wrapper": "flex",
1111
+ "stepper-wrapper-vertical": "flex-col gap-6",
1112
+ "stepper-item": "text-center relative w-full data-[disabled]:pointer-events-none",
1113
+ "stepper-item-vertical": "flex text-start gap-2.5",
1114
+ "stepper-trigger": "rounded-full font-medium text-center align-middle flex items-center justify-center font-semibold text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
1115
+ "stepper-header": "flex flex-col",
1116
+ "stepper-header-horizontal": "mt-2.5",
1117
+ "stepper-indicator": "inline-flex items-center justify-center rounded-full square-2.25em text-foreground/50 bg-muted group-data-[state=active]:text-inverted group-data-[state=completed]:text-inverted",
1118
+ "stepper-separator": "bg-muted group-data-[disabled]:bg-muted group-data-[state=active]:!bg-muted group-data-[disabled]:opacity-50 absolute rounded-full group-data-[disabled]:opacity-75",
1119
+ "stepper-separator-horizontal": "top-[calc(50%-2px)] h-0.5 start-[calc(50%+1.5em)] end-[calc(-50%+1.5em)]",
1120
+ "stepper-separator-vertical": "start-[calc(50%-1px)] bottom-[calc(50%-2.8em)] w-0.5 top-[calc(50%+1em)]",
1121
+ "stepper-title": "text-md font-semibold whitespace-nowrap",
1122
+ "stepper-description": "text-muted text-wrap text-sm",
1123
+ "stepper-container": "relative",
1124
+ "stepper-container-horizontal": "flex justify-center",
1125
+ // static variants
1126
+ "stepper-solid-black": "group-data-[state=active]:bg-inverted group-data-[state=completed]:bg-inverted focus-visible:ring-$c-foreground"
1127
+ };
1128
+ const dynamicStepper = [
1129
+ // dynamic presets
1130
+ [/^stepper-solid(-(\S+))?$/, ([, , c = "primary"]) => `group-data-[state=completed]:bg-${c}-600 group-data-[state=active]:bg-${c}-600 focus-visible:ring-${c}-600 dark:(group-data-[state=completed]:bg-${c}-500 group-data-[state=active]:bg-${c}-500 focus-visible:ring-${c}-500)`]
1131
+ ];
1132
+ const stepper = [
1133
+ ...dynamicStepper,
1134
+ staticStepper
1135
+ ];
1136
+
1105
1137
  const staticSwitch = {
1106
1138
  // base
1107
1139
  "switch": "h-1.25em w-2.25em switch-disabled inline-flex shrink-0 cursor-pointer items-center border-2 border-transparent rounded-full shadow-sm transition-colors",
@@ -1319,6 +1351,7 @@ const shortcuts = [
1319
1351
  ...combobox,
1320
1352
  ...drawer,
1321
1353
  ...hoverCard,
1354
+ ...stepper,
1322
1355
  ...toggleGroup
1323
1356
  ];
1324
1357
 
@@ -1,3 +1,3 @@
1
- export { s as shortcuts } from './shared/preset-edge.CBVHv0ok.mjs';
1
+ export { s as shortcuts } from './shared/preset-edge.P-f9H-jq.mjs';
2
2
  import '@unocss/preset-mini/utils';
3
3
  import '@unocss/preset-mini';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@una-ui/preset-edge",
3
- "version": "0.63.1-29258224.a4c2a98",
3
+ "version": "0.63.1-29258321.57251f3",
4
4
  "description": "The default preset for @una-ui",
5
5
  "author": "Phojie Rengel <phojrengel@gmail.com>",
6
6
  "license": "MIT",