@atscript/ui-styles 0.1.85 → 0.1.87

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.cjs CHANGED
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_kebab = require("./kebab-DNN7Br_o.cjs");
24
+ const require_kebab = require("./kebab-DBLSvkJF.cjs");
25
25
  let _unocss_preset_icons = require("@unocss/preset-icons");
26
26
  _unocss_preset_icons = __toESM(_unocss_preset_icons);
27
27
  let vunor_theme = require("vunor/theme");
@@ -154,12 +154,29 @@ const asQrCodeShortcuts = (0, vunor_theme.defineShortcuts)({
154
154
  "as-qr-code-error": "scope-error text-callout"
155
155
  });
156
156
  //#endregion
157
+ //#region src/shortcuts/aooth/as-sso-providers.ts
158
+ const asSsoProvidersShortcuts = (0, vunor_theme.defineShortcuts)({
159
+ "as-sso-providers": "scope-neutral w-full",
160
+ "as-sso-providers-stack": "flex flex-col gap-$m w-full",
161
+ "as-sso-providers-primary": "flex flex-col gap-$s w-full",
162
+ "as-sso-provider-btn": "c8-chrome btn w-full h-fingertip-l justify-center gap-$s px-$m text-body-l cursor-pointer disabled-soft",
163
+ "as-sso-providers-divider": {
164
+ "": "flex items-center gap-$s text-current-muted text-callout select-none",
165
+ "[&::before]:": "content-[\"\"] flex-1 border-t-1",
166
+ "[&::after]:": "content-[\"\"] flex-1 border-t-1"
167
+ },
168
+ "as-sso-providers-secondary": "grid grid-cols-3 gap-$s w-full",
169
+ "as-sso-provider-chip": "c8-chrome btn h-fingertip-m justify-center gap-$xs px-$s text-callout cursor-pointer disabled-soft",
170
+ "as-sso-provider-icon": "text-[1.25em] flex-shrink-0"
171
+ });
172
+ //#endregion
157
173
  //#region src/shortcuts/aooth/index.ts
158
174
  const aoothShortcuts = (0, vunor_theme.mergeVunorShortcuts)([
159
175
  asConsentArrayShortcuts,
160
176
  asCopyShortcuts,
161
177
  asPasswordRulesShortcuts,
162
- asQrCodeShortcuts
178
+ asQrCodeShortcuts,
179
+ asSsoProvidersShortcuts
163
180
  ]);
164
181
  //#endregion
165
182
  //#region src/shortcuts/common/c8-progress.ts
@@ -185,10 +202,11 @@ const commonShortcuts = (0, vunor_theme.mergeVunorShortcuts)([baseCommon, c8Prog
185
202
  //#endregion
186
203
  //#region src/shortcuts/form/as-action.ts
187
204
  const asActionShortcuts = (0, vunor_theme.defineShortcuts)({
188
- "as-action-field": {
189
- "": "items-start",
190
- "[&>button]:": "as-field-action-link"
191
- },
205
+ "as-action-field": "as-grid-item flex flex-row flex-wrap items-baseline gap-$xs",
206
+ "as-action-text": "text-callout text-current/60",
207
+ "as-action-left": "justify-start text-left",
208
+ "as-action-center": "justify-center text-center",
209
+ "as-action-right": "justify-end text-right",
192
210
  "as-submit-btn": "scope-primary c8-filled btn self-end",
193
211
  "as-paragraph-field": "text-body"
194
212
  });
@@ -1451,6 +1469,17 @@ const markerRulesPreset = {
1451
1469
  */
1452
1470
  const FORM_GRID_NARROW_BREAKPOINT = "480px";
1453
1471
  const FORM_GRID_CONTAINER_NAME = "as-grid";
1472
+ const FORM_GRID_SAFELIST = (() => {
1473
+ const list = [];
1474
+ for (let i = 1; i <= 12; i++) list.push(`col-span-${i}`, `as-narrow:col-span-${i}`);
1475
+ for (let i = 1; i <= 6; i++) list.push(`row-span-${i}`, `as-narrow:row-span-${i}`);
1476
+ return list;
1477
+ })();
1478
+ const AS_ACTION_ALIGN_SAFELIST = [
1479
+ "as-action-left",
1480
+ "as-action-center",
1481
+ "as-action-right"
1482
+ ];
1454
1483
  const formGridSafelistPreset = {
1455
1484
  name: "atscript-ui-form-grid",
1456
1485
  variants: [{
@@ -1466,12 +1495,7 @@ const formGridSafelistPreset = {
1466
1495
  };
1467
1496
  }
1468
1497
  }],
1469
- safelist: (() => {
1470
- const list = [];
1471
- for (let i = 1; i <= 12; i++) list.push(`col-span-${i}`, `as-narrow:col-span-${i}`);
1472
- for (let i = 1; i <= 6; i++) list.push(`row-span-${i}`, `as-narrow:row-span-${i}`);
1473
- return list;
1474
- })()
1498
+ safelist: [...FORM_GRID_SAFELIST, ...AS_ACTION_ALIGN_SAFELIST]
1475
1499
  };
1476
1500
  /**
1477
1501
  * Merges consumer-supplied vunor options on top of `defaultAsVunorOptions`.
@@ -1566,6 +1590,7 @@ exports.asQrCodeShortcuts = asQrCodeShortcuts;
1566
1590
  exports.asRefShortcuts = asRefShortcuts;
1567
1591
  exports.asRowActionsShortcuts = asRowActionsShortcuts;
1568
1592
  exports.asSorterShortcuts = asSorterShortcuts;
1593
+ exports.asSsoProvidersShortcuts = asSsoProvidersShortcuts;
1569
1594
  exports.asTableActionsShortcuts = asTableActionsShortcuts;
1570
1595
  exports.asTableShortcuts = asTableShortcuts;
1571
1596
  exports.asWfFinishActionsShortcuts = asWfFinishActionsShortcuts;
package/dist/index.d.cts CHANGED
@@ -72,6 +72,9 @@ declare const asPasswordRulesShortcuts: vunor_theme0.TVunorShortcut;
72
72
  //#region src/shortcuts/aooth/as-qr-code.d.ts
73
73
  declare const asQrCodeShortcuts: vunor_theme0.TVunorShortcut;
74
74
  //#endregion
75
+ //#region src/shortcuts/aooth/as-sso-providers.d.ts
76
+ declare const asSsoProvidersShortcuts: vunor_theme0.TVunorShortcut;
77
+ //#endregion
75
78
  //#region src/shortcuts/aooth/index.d.ts
76
79
  declare const aoothShortcuts: vunor_theme0.TVunorShortcut;
77
80
  //#endregion
@@ -288,4 +291,4 @@ declare function getHelperClasses(...helpers: string[]): string[];
288
291
  //#region src/generated/baked-icons.d.ts
289
292
  declare const bakedIcons: Record<string, string>;
290
293
  //#endregion
291
- export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, aoothShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asConsentArrayShortcuts, asCopyShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPasswordRulesShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asQrCodeShortcuts, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
294
+ export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, aoothShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asConsentArrayShortcuts, asCopyShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPasswordRulesShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asQrCodeShortcuts, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asSsoProvidersShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
package/dist/index.d.mts CHANGED
@@ -72,6 +72,9 @@ declare const asPasswordRulesShortcuts: vunor_theme0.TVunorShortcut;
72
72
  //#region src/shortcuts/aooth/as-qr-code.d.ts
73
73
  declare const asQrCodeShortcuts: vunor_theme0.TVunorShortcut;
74
74
  //#endregion
75
+ //#region src/shortcuts/aooth/as-sso-providers.d.ts
76
+ declare const asSsoProvidersShortcuts: vunor_theme0.TVunorShortcut;
77
+ //#endregion
75
78
  //#region src/shortcuts/aooth/index.d.ts
76
79
  declare const aoothShortcuts: vunor_theme0.TVunorShortcut;
77
80
  //#endregion
@@ -288,4 +291,4 @@ declare function getHelperClasses(...helpers: string[]): string[];
288
291
  //#region src/generated/baked-icons.d.ts
289
292
  declare const bakedIcons: Record<string, string>;
290
293
  //#endregion
291
- export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, aoothShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asConsentArrayShortcuts, asCopyShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPasswordRulesShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asQrCodeShortcuts, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
294
+ export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, aoothShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asConsentArrayShortcuts, asCopyShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPasswordRulesShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asQrCodeShortcuts, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asSsoProvidersShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as getHelperClasses, i as getComponentClasses, n as componentClasses, o as helperAliases, r as componentPackages, t as kebabize } from "./kebab-DFU2Ivn7.mjs";
1
+ import { a as getHelperClasses, i as getComponentClasses, n as componentClasses, o as helperAliases, r as componentPackages, t as kebabize } from "./kebab-CIOWFpN-.mjs";
2
2
  import presetIcons from "@unocss/preset-icons";
3
3
  import { defineShortcuts, defineShortcuts as defineShortcuts$1, mergeVunorShortcuts, mergeVunorShortcuts as mergeVunorShortcuts$1, presetVunor, toUnoShortcut, vunorShortcuts } from "vunor/theme";
4
4
  //#region src/extractor.ts
@@ -130,12 +130,29 @@ const asQrCodeShortcuts = defineShortcuts$1({
130
130
  "as-qr-code-error": "scope-error text-callout"
131
131
  });
132
132
  //#endregion
133
+ //#region src/shortcuts/aooth/as-sso-providers.ts
134
+ const asSsoProvidersShortcuts = defineShortcuts$1({
135
+ "as-sso-providers": "scope-neutral w-full",
136
+ "as-sso-providers-stack": "flex flex-col gap-$m w-full",
137
+ "as-sso-providers-primary": "flex flex-col gap-$s w-full",
138
+ "as-sso-provider-btn": "c8-chrome btn w-full h-fingertip-l justify-center gap-$s px-$m text-body-l cursor-pointer disabled-soft",
139
+ "as-sso-providers-divider": {
140
+ "": "flex items-center gap-$s text-current-muted text-callout select-none",
141
+ "[&::before]:": "content-[\"\"] flex-1 border-t-1",
142
+ "[&::after]:": "content-[\"\"] flex-1 border-t-1"
143
+ },
144
+ "as-sso-providers-secondary": "grid grid-cols-3 gap-$s w-full",
145
+ "as-sso-provider-chip": "c8-chrome btn h-fingertip-m justify-center gap-$xs px-$s text-callout cursor-pointer disabled-soft",
146
+ "as-sso-provider-icon": "text-[1.25em] flex-shrink-0"
147
+ });
148
+ //#endregion
133
149
  //#region src/shortcuts/aooth/index.ts
134
150
  const aoothShortcuts = mergeVunorShortcuts$1([
135
151
  asConsentArrayShortcuts,
136
152
  asCopyShortcuts,
137
153
  asPasswordRulesShortcuts,
138
- asQrCodeShortcuts
154
+ asQrCodeShortcuts,
155
+ asSsoProvidersShortcuts
139
156
  ]);
140
157
  //#endregion
141
158
  //#region src/shortcuts/common/c8-progress.ts
@@ -158,10 +175,11 @@ const commonShortcuts = mergeVunorShortcuts$1([defineShortcuts$1({
158
175
  //#endregion
159
176
  //#region src/shortcuts/form/as-action.ts
160
177
  const asActionShortcuts = defineShortcuts$1({
161
- "as-action-field": {
162
- "": "items-start",
163
- "[&>button]:": "as-field-action-link"
164
- },
178
+ "as-action-field": "as-grid-item flex flex-row flex-wrap items-baseline gap-$xs",
179
+ "as-action-text": "text-callout text-current/60",
180
+ "as-action-left": "justify-start text-left",
181
+ "as-action-center": "justify-center text-center",
182
+ "as-action-right": "justify-end text-right",
165
183
  "as-submit-btn": "scope-primary c8-filled btn self-end",
166
184
  "as-paragraph-field": "text-body"
167
185
  });
@@ -1424,6 +1442,17 @@ const markerRulesPreset = {
1424
1442
  */
1425
1443
  const FORM_GRID_NARROW_BREAKPOINT = "480px";
1426
1444
  const FORM_GRID_CONTAINER_NAME = "as-grid";
1445
+ const FORM_GRID_SAFELIST = (() => {
1446
+ const list = [];
1447
+ for (let i = 1; i <= 12; i++) list.push(`col-span-${i}`, `as-narrow:col-span-${i}`);
1448
+ for (let i = 1; i <= 6; i++) list.push(`row-span-${i}`, `as-narrow:row-span-${i}`);
1449
+ return list;
1450
+ })();
1451
+ const AS_ACTION_ALIGN_SAFELIST = [
1452
+ "as-action-left",
1453
+ "as-action-center",
1454
+ "as-action-right"
1455
+ ];
1427
1456
  const formGridSafelistPreset = {
1428
1457
  name: "atscript-ui-form-grid",
1429
1458
  variants: [{
@@ -1439,12 +1468,7 @@ const formGridSafelistPreset = {
1439
1468
  };
1440
1469
  }
1441
1470
  }],
1442
- safelist: (() => {
1443
- const list = [];
1444
- for (let i = 1; i <= 12; i++) list.push(`col-span-${i}`, `as-narrow:col-span-${i}`);
1445
- for (let i = 1; i <= 6; i++) list.push(`row-span-${i}`, `as-narrow:row-span-${i}`);
1446
- return list;
1447
- })()
1471
+ safelist: [...FORM_GRID_SAFELIST, ...AS_ACTION_ALIGN_SAFELIST]
1448
1472
  };
1449
1473
  /**
1450
1474
  * Merges consumer-supplied vunor options on top of `defaultAsVunorOptions`.
@@ -1504,4 +1528,4 @@ function createAsBaseUnoConfig(options = {}) {
1504
1528
  };
1505
1529
  }
1506
1530
  //#endregion
1507
- export { allShortcuts, aoothShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asConsentArrayShortcuts, asCopyShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPasswordRulesShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asQrCodeShortcuts, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
1531
+ export { allShortcuts, aoothShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asConsentArrayShortcuts, asCopyShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPasswordRulesShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asQrCodeShortcuts, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asSsoProvidersShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };