@getgreenline/blaze-ui 1.0.50 → 1.0.52

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.
@@ -9,7 +9,7 @@ declare const AppsConfig: readonly [{
9
9
  }, {
10
10
  readonly name: "Ecom";
11
11
  readonly logo: import("react/jsx-runtime").JSX.Element;
12
- readonly subdomain: "ecom-beta";
12
+ readonly subdomain: "ecom";
13
13
  }, {
14
14
  readonly name: "Sites";
15
15
  readonly logo: import("react/jsx-runtime").JSX.Element;
@@ -30,7 +30,7 @@ declare const AppsConfig: readonly [{
30
30
  }, {
31
31
  readonly name: "Settings";
32
32
  readonly logo: import("react/jsx-runtime").JSX.Element;
33
- readonly subdomain: "settings";
33
+ readonly subdomain: "app";
34
34
  }];
35
35
  type AppName = (typeof AppsConfig)[number]["name"];
36
36
  type AppSubdomain = NonNullable<(typeof AppsConfig)[number]["subdomain"]>;
@@ -9,7 +9,7 @@ import { cn } from '../lib/utils.js';
9
9
  const AppsConfig = [
10
10
  { name: "Retail", logo: jsx(RetailLogo, {}), subdomain: "retail-beta" },
11
11
  { name: "POS", logo: jsx(PosLogo, {}), subdomain: "pos" },
12
- { name: "Ecom", logo: jsx(EcomLogo, {}), subdomain: "ecom-beta" },
12
+ { name: "Ecom", logo: jsx(EcomLogo, {}), subdomain: "ecom" },
13
13
  { name: "Sites", logo: jsx(SitesLogo, {}), subdomain: "cms" },
14
14
  {
15
15
  name: "Lighthouse",
@@ -30,7 +30,7 @@ const AppsConfig = [
30
30
  {
31
31
  name: "Settings",
32
32
  logo: jsx(SettingsLogo, {}),
33
- subdomain: "settings",
33
+ subdomain: "app",
34
34
  },
35
35
  ];
36
36
  const trimSlashes = (value) => value.trim().replace(/\/+$/, "");
@@ -119,7 +119,7 @@ const gridColsClass = {
119
119
  3: "tw:grid-cols-3",
120
120
  4: "tw:grid-cols-4",
121
121
  };
122
- const appBadgeClassName = "tw:absolute tw:left-1/2 tw:top-full tw:z-10 tw:-translate-x-1 tw:-translate-y-1/2 tw:!rounded-full tw:!border-border tw:!bg-white tw:!px-1.5 tw:!py-px tw:!text-[9px] tw:!leading-none tw:!text-primary tw:!shadow-sm";
122
+ const appBadgeClassName = "tw:absolute tw:left-1/2 tw:top-full tw:z-10 tw:-translate-x-1 tw:-translate-y-1/2 tw:!rounded-full tw:!border-border tw:!bg-white tw:!px-1.5 tw:!py-px tw:!text-[9px] tw:!leading-none tw:!text-primary tw:!shadow-sm tw:dark:!bg-white tw:dark:!text-primary";
123
123
  function HeaderAppSwitcher({ commonHost, currentApp = "Retail", visibleApps, columns, ssoRedirect, }) {
124
124
  const apps = React.useMemo(() => {
125
125
  const base = resolveHostInfo(commonHost);
@@ -137,8 +137,8 @@ function HeaderAppSwitcher({ commonHost, currentApp = "Retail", visibleApps, col
137
137
  const isDisabled = Boolean(app.disabled);
138
138
  const isCurrent = Boolean(app.isCurrent);
139
139
  const tileClassName = getTileClassName(isCurrent, isDisabled);
140
- const tileContent = (jsxs(Fragment, { children: [jsxs("span", { className: "tw:relative tw:flex tw:size-9 tw:items-center tw:justify-center tw:[&>svg]:size-9 tw:[&>svg]:shrink-0", children: [app.logo, app.badge ? (jsx(Badge, { variant: "soft", className: appBadgeClassName, children: app.badge })) : null] }), jsx("span", { className: cn("tw:text-center tw:text-xs tw:font-normal tw:leading-4 tw:text-popover-foreground", isDisabled && "tw:text-muted-foreground"), children: app.name })] }));
141
- const baseClassName = `tw:relative tw:flex tw:min-h-14 tw:flex-col tw:items-center tw:gap-2.5 tw:rounded-md tw:p-0 tw:transition-colors ${tileClassName}`;
140
+ const tileContent = (jsxs(Fragment, { children: [jsxs("span", { className: "tw:relative tw:flex tw:size-9 tw:items-center tw:justify-center tw:[&>svg]:size-9 tw:[&>svg]:shrink-0", children: [app.logo, app.badge ? (jsx(Badge, { variant: "soft", className: appBadgeClassName, children: app.badge })) : null] }), jsx("span", { className: cn("tw:text-center tw:text-xs tw:font-normal tw:leading-none tw:text-popover-foreground", isDisabled && "tw:text-muted-foreground"), children: app.name })] }));
141
+ const baseClassName = `tw:relative tw:flex tw:min-h-14 tw:flex-col tw:items-center tw:gap-2.5 tw:rounded-md tw:p-2 tw:transition-colors ${tileClassName}`;
142
142
  const Wrapper = isDisabled || isCurrent ? "div" : "a";
143
143
  const wrapperProps = isDisabled || isCurrent
144
144
  ? isCurrent
@@ -22,11 +22,11 @@ const stepperTriggerVariants = cva("tw:group/stepper-trigger tw:inline-flex tw:i
22
22
  card: [
23
23
  "tw:gap-3 tw:rounded-xl tw:px-4 tw:py-3 tw:text-left",
24
24
  "tw:hover:bg-[color-mix(in_oklab,var(--primary)_10%,transparent)] tw:hover:text-accent-foreground",
25
- "data-[disabled=true]:tw:bg-muted/40",
25
+ "tw:data-[disabled=true]:bg-muted/40",
26
26
  ],
27
27
  compact: [
28
28
  "tw:gap-2 tw:rounded-md tw:px-2 tw:py-1.5 tw:text-left",
29
- "data-[active=true]:tw:bg-primary/5",
29
+ "tw:data-[active=true]:bg-primary/5",
30
30
  ],
31
31
  },
32
32
  },
@@ -44,7 +44,7 @@ const stepperIndicatorVariants = cva("tw:flex tw:shrink-0 tw:items-center tw:jus
44
44
  inactive: "tw:bg-muted tw:text-muted-foreground",
45
45
  active: "tw:bg-primary tw:text-primary-foreground",
46
46
  completed: "tw:bg-primary/10 tw:text-primary",
47
- warning: "tw:bg-amber-500/10 tw:text-amber-700 dark:tw:text-amber-400",
47
+ warning: "tw:bg-amber-500/10 tw:text-amber-700 tw:dark:text-amber-400",
48
48
  },
49
49
  },
50
50
  defaultVariants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getgreenline/blaze-ui",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@base-ui/react": "^1.4.1",