skillgrid 0.0.91-dev-68351-trigger-fixes.1802697 → 0.0.93

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 (44) hide show
  1. package/dist/assets/components/Notification/Notification.module-BVePCO8H.css +1 -0
  2. package/dist/assets/components/Trigger/Trigger.module-BWzHgDVC.css +1 -0
  3. package/dist/components/Avatar/AvatarGroup/AvatarGroupRoot.js +5 -5
  4. package/dist/components/FileUpload/FileUpload.js +1 -1
  5. package/dist/components/InputBase/Input.js +6 -6
  6. package/dist/components/Modal/Modal.type.d.ts +1 -1
  7. package/dist/components/Notification/Notification.d.ts +7 -0
  8. package/dist/components/Notification/Notification.i18n.json.d.ts +17 -0
  9. package/dist/components/Notification/Notification.i18n.json.js +9 -0
  10. package/dist/components/Notification/Notification.js +299 -0
  11. package/dist/components/Notification/Notification.module.css.js +72 -0
  12. package/dist/components/Notification/Notification.type.d.ts +146 -0
  13. package/dist/components/Notification/NotificationControls.d.ts +21 -0
  14. package/dist/components/Notification/NotificationControls.js +70 -0
  15. package/dist/components/Notification/index.d.ts +2 -0
  16. package/dist/components/Notification/lib/guidelinesReferenceContent.d.ts +34 -0
  17. package/dist/components/Notification/lib/index.d.ts +2 -0
  18. package/dist/components/Notification/lib/notificationStyleConfig.d.ts +16 -0
  19. package/dist/components/Notification/lib/notificationStyleConfig.js +41 -0
  20. package/dist/components/Notification/lib/referenceGuidelinesGeometry.d.ts +19 -0
  21. package/dist/components/Notification/lib/referenceGuidelinesGeometry.js +24 -0
  22. package/dist/components/Notification/lib/referenceGuidelinesGeometry.test.d.ts +1 -0
  23. package/dist/components/Popover/lib/use-popover.js +1 -1
  24. package/dist/components/Tabs/ScrollWrapper.js +1 -1
  25. package/dist/components/Tabs/Tabs.js +1 -1
  26. package/dist/components/Trigger/Trigger.d.ts +1 -1
  27. package/dist/components/Trigger/Trigger.js +91 -97
  28. package/dist/components/Trigger/Trigger.module.css.js +23 -23
  29. package/dist/components/Trigger/Trigger.type.d.ts +2 -13
  30. package/dist/components/Trigger/lib/utils.d.ts +2 -3
  31. package/dist/components/Trigger/lib/utils.js +5 -9
  32. package/dist/index.cjs.js +4 -4
  33. package/dist/index.css +1 -1
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.es.js +22 -20
  36. package/dist/locale/en_US.d.ts +4 -0
  37. package/dist/locale/en_US.js +6 -4
  38. package/dist/locale/extendLocale.js +12 -8
  39. package/dist/locale/index.d.ts +1 -1
  40. package/dist/locale/ru_RU.d.ts +4 -0
  41. package/dist/locale/ru_RU.js +4 -2
  42. package/dist/locale/type.d.ts +6 -0
  43. package/package.json +2 -2
  44. package/dist/assets/components/Trigger/Trigger.module-Dc9gMp3_.css +0 -1
@@ -1,13 +1,9 @@
1
- import { LabelState as t } from "../Trigger.type.js";
2
- const L = (r, e) => r === "XL" && e ? t.FLOATING : r !== "XL" && e ? t.HIDDEN : t.NORMAL, o = (r, e) => e ? 3 : r === "XL" || r === "L" ? 2 : 3, f = (r) => r === "XL" || r === "L" ? 2 : 3, a = (r) => r === "XL" || r === "L" ? "sm" : "xs", g = (r, e = !0) => {
3
- if (e === !1) return r;
4
- const n = typeof e == "number" && Number.isFinite(e) && e >= 0 ? Math.floor(e) : 30;
5
- return r.length > n ? r.slice(0, n) + "…" : r;
6
- };
1
+ import { LabelState as e } from "../Trigger.type.js";
2
+ const L = (r, t) => r === "XL" && t ? e.FLOATING : r !== "XL" && t ? e.HIDDEN : e.NORMAL, u = (r, t) => t ? 3 : r === "XL" || r === "L" ? 2 : 3, o = (r) => r === "XL" || r === "L" ? 2 : 3, a = (r) => r === "XL" || r === "L" ? "sm" : "xs", f = (r) => r.length > 30 ? r.slice(0, 30) + "…" : r;
7
3
  export {
8
- f as getContentTypographySize,
4
+ o as getContentTypographySize,
9
5
  a as getIconSize,
10
6
  L as getLabelState,
11
- o as getLabelTypographySize,
12
- g as truncateContent
7
+ u as getLabelTypographySize,
8
+ f as truncateContent
13
9
  };