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.
- package/dist/assets/components/Notification/Notification.module-BVePCO8H.css +1 -0
- package/dist/assets/components/Trigger/Trigger.module-BWzHgDVC.css +1 -0
- package/dist/components/Avatar/AvatarGroup/AvatarGroupRoot.js +5 -5
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/InputBase/Input.js +6 -6
- package/dist/components/Modal/Modal.type.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts +7 -0
- package/dist/components/Notification/Notification.i18n.json.d.ts +17 -0
- package/dist/components/Notification/Notification.i18n.json.js +9 -0
- package/dist/components/Notification/Notification.js +299 -0
- package/dist/components/Notification/Notification.module.css.js +72 -0
- package/dist/components/Notification/Notification.type.d.ts +146 -0
- package/dist/components/Notification/NotificationControls.d.ts +21 -0
- package/dist/components/Notification/NotificationControls.js +70 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/lib/guidelinesReferenceContent.d.ts +34 -0
- package/dist/components/Notification/lib/index.d.ts +2 -0
- package/dist/components/Notification/lib/notificationStyleConfig.d.ts +16 -0
- package/dist/components/Notification/lib/notificationStyleConfig.js +41 -0
- package/dist/components/Notification/lib/referenceGuidelinesGeometry.d.ts +19 -0
- package/dist/components/Notification/lib/referenceGuidelinesGeometry.js +24 -0
- package/dist/components/Notification/lib/referenceGuidelinesGeometry.test.d.ts +1 -0
- package/dist/components/Popover/lib/use-popover.js +1 -1
- package/dist/components/Tabs/ScrollWrapper.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Trigger/Trigger.d.ts +1 -1
- package/dist/components/Trigger/Trigger.js +91 -97
- package/dist/components/Trigger/Trigger.module.css.js +23 -23
- package/dist/components/Trigger/Trigger.type.d.ts +2 -13
- package/dist/components/Trigger/lib/utils.d.ts +2 -3
- package/dist/components/Trigger/lib/utils.js +5 -9
- package/dist/index.cjs.js +4 -4
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +22 -20
- package/dist/locale/en_US.d.ts +4 -0
- package/dist/locale/en_US.js +6 -4
- package/dist/locale/extendLocale.js +12 -8
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/ru_RU.d.ts +4 -0
- package/dist/locale/ru_RU.js +4 -2
- package/dist/locale/type.d.ts +6 -0
- package/package.json +2 -2
- package/dist/assets/components/Trigger/Trigger.module-Dc9gMp3_.css +0 -1
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { LabelState as
|
|
2
|
-
const L = (r,
|
|
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
|
-
|
|
4
|
+
o as getContentTypographySize,
|
|
9
5
|
a as getIconSize,
|
|
10
6
|
L as getLabelState,
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
u as getLabelTypographySize,
|
|
8
|
+
f as truncateContent
|
|
13
9
|
};
|