asma-ui-core 3.78.12 → 3.79.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.
Files changed (56) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/custom/module/header-layout/DynamicToolbar.js +14 -14
  3. package/dist/components/custom/module/header-layout/ToolbarActionGroup.js +23 -21
  4. package/dist/components/custom/module/header-layout/ToolbarRows.js +4 -4
  5. package/dist/components/data-display/chip/StyledChip.js +41 -41
  6. package/dist/components/feedback/dialog/dialog-footer/StyledDialogFooter.js +105 -0
  7. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +6 -6
  8. package/dist/components/inputs/button/StyledButton.module.js +8 -8
  9. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +45 -42
  10. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +8 -8
  11. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +25 -17
  12. package/dist/components/inputs/field-styles.js +3 -3
  13. package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +34 -31
  14. package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
  15. package/dist/components/inputs/select/StyledSelect.js +147 -135
  16. package/dist/components/inputs/select/StyledSelectItem.js +29 -19
  17. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +195 -162
  18. package/dist/components/inputs/switch/base-ui/StyledSwitch.module.js +4 -4
  19. package/dist/components/inputs/textarea/StyledTextarea.module.js +4 -4
  20. package/dist/components/navigation/link/StyledLink.js +11 -10
  21. package/dist/components/navigation/link/StyledLink.module.js +5 -5
  22. package/dist/components/navigation/menu/StyledMenuList.js +27 -19
  23. package/dist/components/navigation/tabs/StyledTab.js +7 -7
  24. package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +3 -3
  25. package/dist/datetime/shared-components/button/StyledButton.module.js +12 -12
  26. package/dist/index.js +176 -174
  27. package/dist/src/components/feedback/dialog/dialog-footer/StyledDialogFooter.d.ts +62 -0
  28. package/dist/src/components/feedback/dialog/dialog-footer/StyledDialogFooter.test.d.ts +1 -0
  29. package/dist/src/components/feedback/dialog/dialog-footer/index.d.ts +2 -0
  30. package/dist/src/components/feedback/dialog/index.d.ts +1 -0
  31. package/dist/src/components/inputs/select/StyledSelectItem.d.ts +3 -1
  32. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +1 -1
  33. package/dist/src/components/navigation/menu/StyledMenuList.d.ts +3 -1
  34. package/dist/src/table/components/TableRow.d.ts +2 -1
  35. package/dist/src/table/custom-features/focus-rows/types.d.ts +2 -2
  36. package/dist/src/table/hooks/useToggleMenuVisibility.hook.d.ts +14 -1
  37. package/dist/table/components/StyledTable.module.js +52 -52
  38. package/dist/table/components/TableRow.js +92 -80
  39. package/dist/table/components/TableRows.js +10 -8
  40. package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +4 -4
  41. package/dist/table/components/table-footer/TablePagination.js +77 -64
  42. package/dist/table/components/table-footer/TableRowCountSelect.js +63 -44
  43. package/dist/table/components/table-header/TableHeader.js +72 -64
  44. package/dist/table/custom-features/focus-rows/FocusRowsFeature.js +4 -4
  45. package/dist/table/hooks/useToggleMenuVisibility.hook.js +77 -11
  46. package/dist/table/shared-components/button/StyledButton.module.js +9 -9
  47. package/dist/tailwind.config.d.ts +1 -0
  48. package/package.json +1 -1
  49. package/src/styles/_focus.scss +23 -0
  50. package/src/styles/color-variables/defaultTokens.css +2 -4
  51. package/src/styles/color-variables/fretexTokens.css +6 -7
  52. package/src/styles/color-variables/jadeTokens.css +2 -4
  53. package/src/styles/components-colors/inputVariables.css +2 -2
  54. package/tw-configs/twConfigs.json +1 -0
  55. package/dist/table/shared-components/CheckIcon.js +0 -12
  56. package/dist/table/shared-components/menu-item/index.js +0 -22
@@ -27,6 +27,7 @@ declare const _default: {
27
27
  "gama-300": string;
28
28
  "gama-400": string;
29
29
  "gama-500": string;
30
+ "focus-ring": string;
30
31
  "gama-600": string;
31
32
  "gama-700": string;
32
33
  "gama-800": string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.78.12",
6
+ "version": "3.79.1",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",
@@ -0,0 +1,23 @@
1
+ // ponytail: SCSS modules cannot consume Tailwind utilities; one mixin keeps button focus treatment consistent.
2
+ @mixin focus-ring($mode) {
3
+ outline: none !important;
4
+
5
+ @if $mode == 'filled' {
6
+ // The permanent 1px button border plus this 2px inset layer reproduces Figma's 3px
7
+ // focus edge without changing the auto-sized button's layout footprint.
8
+ border-color: var(--colors-focus-ring) !important;
9
+ box-shadow: inset 0 0 0 2px var(--colors-focus-ring), inset 0 0 0 4px white !important;
10
+ } @else {
11
+ // Preserve each button's 1px border and complete Figma's 3px edge inside it.
12
+ // This is layout-neutral for auto-sized text and quaternary buttons.
13
+ border-color: var(--colors-focus-ring) !important;
14
+ box-shadow: inset 0 0 0 2px var(--colors-focus-ring) !important;
15
+ }
16
+
17
+ @media (forced-colors: active) {
18
+ forced-color-adjust: none;
19
+ outline: 3px solid CanvasText !important;
20
+ outline-offset: 0 !important;
21
+ box-shadow: none !important;
22
+ }
23
+ }
@@ -27,6 +27,7 @@
27
27
  --colors-gama-300: var(--colors-blue-300);
28
28
  --colors-gama-400: var(--colors-blue-400);
29
29
  --colors-gama-500: var(--colors-blue-500);
30
+ --colors-focus-ring: var(--colors-gama-500);
30
31
  --colors-gama-600: var(--colors-blue-600);
31
32
  --colors-gama-700: var(--colors-blue-700);
32
33
  --colors-gama-800: var(--colors-blue-800);
@@ -112,7 +113,7 @@
112
113
  --colors-button-outlined-error-text-color: var(--colors-beta-500);
113
114
  --colors-button-outlined-error-bg-color: transparent;
114
115
  --colors-button-outlined-error-border-color: var(--colors-beta-500);
115
- --colors-button-outlined-error-focused-text-color: #ffffff;
116
+ --colors-button-outlined-error-focused-text-color: var(--colors-beta-500);
116
117
  --colors-button-outlined-error-focused-bg-color: var(--colors-beta-100);
117
118
  --colors-button-outlined-error-focused-border-color: var(--colors-beta-400);
118
119
  --colors-button-outlined-error-active-text-color: var(--colors-beta-700);
@@ -130,7 +131,6 @@
130
131
  --colors-button-text-common-border-color: transparent;
131
132
  --colors-button-text-common-focused-text-color: var(--colors-gama-500);
132
133
  --colors-button-text-common-focused-bg-color: var(--colors-gama-50);
133
- --colors-button-text-common-focused-border-color: var(--colors-gama-400);
134
134
  --colors-button-text-common-active-text-color: var(--colors-gama-500);
135
135
  --colors-button-text-common-active-bg-color: var(--colors-gama-100);
136
136
  --colors-button-text-common-active-border-color: var(--colors-gama-100);
@@ -162,7 +162,6 @@
162
162
  --colors-button-textGray-common-border-color: transparent;
163
163
  --colors-button-textGray-common-focused-text-color: var(--colors-gama-500);
164
164
  --colors-button-textGray-common-focused-bg-color: var(--colors-gama-50);
165
- --colors-button-textGray-common-focused-border-color: var(--colors-gama-400);
166
165
  --colors-button-textGray-common-active-text-color: var(--colors-gama-500);
167
166
  --colors-button-textGray-common-active-bg-color: var(--colors-gama-100);
168
167
  --colors-button-textGray-common-active-border-color: var(--colors-gama-100);
@@ -178,7 +177,6 @@
178
177
  --colors-button-textWhite-common-border-color: transparent;
179
178
  --colors-button-textWhite-common-focused-text-color: white;
180
179
  --colors-button-textWhite-common-focused-bg-color: transparent;
181
- --colors-button-textWhite-common-focused-border-color: transparent;
182
180
  --colors-button-textWhite-common-active-text-color: white;
183
181
  --colors-button-textWhite-common-active-bg-color: transparent;
184
182
  --colors-button-textWhite-common-active-border-color: transparent;
@@ -6,6 +6,7 @@
6
6
  --colors-alpha-600: var(--colors-slate-600);
7
7
  --colors-alpha-700: var(--colors-slate-700);
8
8
  --colors-beta-100: var(--colors-red-100);
9
+ --colors-beta-400: var(--colors-green-400);
9
10
  --colors-beta-500: var(--colors-red-500);
10
11
  --colors-beta-600: var(--colors-red-600);
11
12
  --colors-beta-700: var(--colors-red-700);
@@ -16,6 +17,7 @@
16
17
  --colors-gama-300: var(--colors-green-300);
17
18
  --colors-gama-400: var(--colors-green-400);
18
19
  --colors-gama-500: var(--colors-green-500);
20
+ --colors-focus-ring: var(--colors-gama-500);
19
21
  --colors-gama-600: var(--colors-green-600);
20
22
  --colors-gama-700: var(--colors-green-700);
21
23
  --colors-gama-800: var(--colors-green-700);
@@ -71,7 +73,7 @@
71
73
  --colors-button-contained-error-border-color: var(--colors-beta-500);
72
74
  --colors-button-contained-error-focused-text-color: #ffffff;
73
75
  --colors-button-contained-error-focused-bg-color: var(--colors-beta-500);
74
- --colors-button-contained-error-focused-border-color: var(--colors-gama-400);
76
+ --colors-button-contained-error-focused-border-color: var(--colors-beta-400);
75
77
  --colors-button-contained-error-active-text-color: #ffffff;
76
78
  --colors-button-contained-error-active-bg-color: var(--colors-beta-700);
77
79
  --colors-button-contained-error-active-border-color: var(--colors-beta-700);
@@ -101,9 +103,9 @@
101
103
  --colors-button-outlined-error-text-color: var(--colors-beta-500);
102
104
  --colors-button-outlined-error-bg-color: transparent;
103
105
  --colors-button-outlined-error-border-color: var(--colors-beta-500);
104
- --colors-button-outlined-error-focused-text-color: #ffffff;
106
+ --colors-button-outlined-error-focused-text-color: var(--colors-beta-500);
105
107
  --colors-button-outlined-error-focused-bg-color: var(--colors-beta-100);
106
- --colors-button-outlined-error-focused-border-color: var(--colors-gama-400);
108
+ --colors-button-outlined-error-focused-border-color: var(--colors-beta-400);
107
109
  --colors-button-outlined-error-active-text-color: var(--colors-beta-700);
108
110
  --colors-button-outlined-error-active-bg-color: var(--colors-beta-100);
109
111
  --colors-button-outlined-error-active-border-color: var(--colors-beta-700);
@@ -119,7 +121,6 @@
119
121
  --colors-button-text-common-border-color: transparent;
120
122
  --colors-button-text-common-focused-text-color: var(--colors-gama-500);
121
123
  --colors-button-text-common-focused-bg-color: var(--colors-gama-50);
122
- --colors-button-text-common-focused-border-color: var(--colors-gama-400);
123
124
  --colors-button-text-common-active-text-color: var(--colors-gama-500);
124
125
  --colors-button-text-common-active-bg-color: var(--colors-gama-100);
125
126
  --colors-button-text-common-active-border-color: var(--colors-gama-100);
@@ -135,7 +136,7 @@
135
136
  --colors-button-text-error-border-color: transparent;
136
137
  --colors-button-text-error-focused-text-color: var(--colors-beta-600);
137
138
  --colors-button-text-error-focused-bg-color: var(--colors-beta-100);
138
- --colors-button-text-error-focused-border-color: var(--colors-gama-400);
139
+ --colors-button-text-error-focused-border-color: var(--colors-beta-400);
139
140
  --colors-button-text-error-active-text-color: var(--colors-beta-600);
140
141
  --colors-button-text-error-active-bg-color: var(--colors-beta-100);
141
142
  --colors-button-text-error-active-border-color: var(--colors-beta-100);
@@ -151,7 +152,6 @@
151
152
  --colors-button-textGray-common-border-color: transparent;
152
153
  --colors-button-textGray-common-focused-text-color: var(--colors-gama-500);
153
154
  --colors-button-textGray-common-focused-bg-color: var(--colors-gama-50);
154
- --colors-button-textGray-common-focused-border-color: var(--colors-gama-400);
155
155
  --colors-button-textGray-common-active-text-color: var(--colors-gama-500);
156
156
  --colors-button-textGray-common-active-bg-color: var(--colors-gama-100);
157
157
  --colors-button-textGray-common-active-border-color: var(--colors-gama-100);
@@ -167,7 +167,6 @@
167
167
  --colors-button-textWhite-common-border-color: transparent;
168
168
  --colors-button-textWhite-common-focused-text-color: white;
169
169
  --colors-button-textWhite-common-focused-bg-color: transparent;
170
- --colors-button-textWhite-common-focused-border-color: transparent;
171
170
  --colors-button-textWhite-common-active-text-color: white;
172
171
  --colors-button-textWhite-common-active-bg-color: transparent;
173
172
  --colors-button-textWhite-common-active-border-color: transparent;
@@ -21,6 +21,7 @@
21
21
  --colors-gama-300: var(--colors-jade-300);
22
22
  --colors-gama-400: var(--colors-jade-400);
23
23
  --colors-gama-500: var(--colors-jade-500);
24
+ --colors-focus-ring: var(--colors-gama-500);
24
25
  --colors-gama-600: var(--colors-jade-600);
25
26
  --colors-gama-700: var(--colors-jade-700);
26
27
  --colors-gama-800: var(--colors-jade-800);
@@ -104,7 +105,7 @@
104
105
  --colors-button-outlined-error-text-color: var(--colors-beta-500);
105
106
  --colors-button-outlined-error-bg-color: transparent;
106
107
  --colors-button-outlined-error-border-color: var(--colors-beta-500);
107
- --colors-button-outlined-error-focused-text-color: #ffffff;
108
+ --colors-button-outlined-error-focused-text-color: var(--colors-beta-500);
108
109
  --colors-button-outlined-error-focused-bg-color: var(--colors-beta-100);
109
110
  --colors-button-outlined-error-focused-border-color: var(--colors-beta-400);
110
111
  --colors-button-outlined-error-active-text-color: var(--colors-beta-700);
@@ -122,7 +123,6 @@
122
123
  --colors-button-text-common-border-color: transparent;
123
124
  --colors-button-text-common-focused-text-color: var(--colors-gama-500);
124
125
  --colors-button-text-common-focused-bg-color: var(--colors-gama-50);
125
- --colors-button-text-common-focused-border-color: var(--colors-gama-400);
126
126
  --colors-button-text-common-active-text-color: var(--colors-gama-500);
127
127
  --colors-button-text-common-active-bg-color: var(--colors-gama-100);
128
128
  --colors-button-text-common-active-border-color: var(--colors-gama-100);
@@ -154,7 +154,6 @@
154
154
  --colors-button-textGray-common-border-color: transparent;
155
155
  --colors-button-textGray-common-focused-text-color: var(--colors-gama-500);
156
156
  --colors-button-textGray-common-focused-bg-color: var(--colors-gama-50);
157
- --colors-button-textGray-common-focused-border-color: var(--colors-gama-400);
158
157
  --colors-button-textGray-common-active-text-color: var(--colors-gama-500);
159
158
  --colors-button-textGray-common-active-bg-color: var(--colors-gama-100);
160
159
  --colors-button-textGray-common-active-border-color: var(--colors-gama-100);
@@ -170,7 +169,6 @@
170
169
  --colors-button-textWhite-common-border-color: transparent;
171
170
  --colors-button-textWhite-common-focused-text-color: white;
172
171
  --colors-button-textWhite-common-focused-bg-color: transparent;
173
- --colors-button-textWhite-common-focused-border-color: transparent;
174
172
  --colors-button-textWhite-common-active-text-color: white;
175
173
  --colors-button-textWhite-common-active-bg-color: transparent;
176
174
  --colors-button-textWhite-common-active-border-color: transparent;
@@ -23,11 +23,11 @@
23
23
  --colors-input-active-focus-text-color: var(--colors-delta-800);
24
24
  --colors-input-active-disabled-text-color: var(--colors-delta-300);
25
25
  /* Figma Input field (node 15561-37391): enabled border delta-500 #7a899e; hover border/hover
26
- gama-300 #60bdbd (2px); focus border/focus gama-400 #1ca1a1 (3px); disabled delta-300. */
26
+ gama-300 #60bdbd (2px); focus uses the theme-resolved focus ring (3px); disabled delta-300. */
27
27
  --colors-input-active-outline-color: var(--colors-delta-500);
28
28
  --colors-input-active-hover-outline-color: var(--colors-gama-300);
29
29
  --colors-input-active-active-outline-color: var(--colors-gama-400);
30
- --colors-input-active-focus-outline-color: var(--colors-gama-400);
30
+ --colors-input-active-focus-outline-color: var(--colors-focus-ring);
31
31
  --colors-input-active-disabled-outline-color: var(--colors-delta-300);
32
32
  --input-active-cursor: text;
33
33
  --input-active-hover-cursor: text;
@@ -22,6 +22,7 @@
22
22
  "gama-300": "var(--colors-gama-300)",
23
23
  "gama-400": "var(--colors-gama-400)",
24
24
  "gama-500": "var(--colors-gama-500)",
25
+ "focus-ring": "var(--colors-focus-ring)",
25
26
  "gama-600": "var(--colors-gama-600)",
26
27
  "gama-700": "var(--colors-gama-700)",
27
28
  "gama-800": "var(--colors-gama-800)",
@@ -1,12 +0,0 @@
1
- import { CheckIcon as r } from "../../components/icons/check-icon/CheckIcon.js";
2
- import { jsx as e } from "react/jsx-runtime";
3
- function h(o) {
4
- return /* @__PURE__ */ e(r, {
5
- width: "1rem",
6
- height: "1rem",
7
- ...o
8
- });
9
- }
10
- export {
11
- h as CheckIcon
12
- };
@@ -1,22 +0,0 @@
1
- import { cn as i } from "../../../helpers/cn.js";
2
- import { CheckIcon as l } from "../CheckIcon.js";
3
- import { jsx as m, jsxs as s } from "react/jsx-runtime";
4
- var g = ({ children: n, selected: o, disabled: e, className: a, onClick: t }) => /* @__PURE__ */ s("li", {
5
- role: "menuitem",
6
- "aria-disabled": e ? !0 : void 0,
7
- tabIndex: -1,
8
- onClick: e ? void 0 : t,
9
- onKeyDown: (r) => {
10
- e || (r.key === "Enter" || r.key === " ") && (r.preventDefault(), t?.(r));
11
- },
12
- className: i("flex items-center gap-x-1 p-2 text-base text-delta-700 outline-none", e ? "cursor-not-allowed" : "cursor-pointer hover:bg-delta-50", o && "bg-gama-50 hover:bg-gama-50", a),
13
- children: [/* @__PURE__ */ m(l, {
14
- width: 24,
15
- height: 24,
16
- color: o ? "var(--colors-gama-500)" : "transparent",
17
- style: { transition: "color 0.2s ease" }
18
- }), n]
19
- });
20
- export {
21
- g as StyledMenuItem
22
- };