asma-ui-core 3.21.0 → 3.22.0
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/asma-ui-core.css +1 -1
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +12 -13
- package/dist/components/feedback/snack-bar/components/StyledInfoSnackbar.js +19 -20
- package/dist/components/icons/archive-icon/ArchiveIcon.js +16 -9
- package/dist/components/icons/assignment/AssignmentIcon.js +17 -10
- package/dist/components/icons/assignment-outline-icon/AssignmentOutlineIcon.js +17 -10
- package/dist/components/icons/bell-icon/BellIcon.js +17 -10
- package/dist/components/icons/bell-outline-icon/BellOutlineIcon.js +17 -10
- package/dist/components/icons/calendar-blank-outline-icon/CalendarBlankOutlineIcon.js +17 -10
- package/dist/components/icons/calendar-icon/CalendarIcon.js +17 -10
- package/dist/components/icons/checkbox-checked-icon/CheckBoxCheckedIcon.js +17 -10
- package/dist/components/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.js +16 -9
- package/dist/components/icons/chevron-double-right-icon/ChevronDoubleRightIcon.js +16 -9
- package/dist/components/icons/chevron-down-icon/ChevronDownIcon.js +17 -10
- package/dist/components/icons/chevron-left-icon/ChevronLeftIcon.js +16 -9
- package/dist/components/icons/chevron-right-icon/ChevronRightIcon.js +15 -8
- package/dist/components/icons/chevron-up-icon/ChevronUpIcon.js +17 -10
- package/dist/components/icons/close-icon/CloseIcon.js +17 -10
- package/dist/components/icons/cloud-icon/CloudIcon.js +17 -0
- package/dist/components/icons/cloud-icon/index.js +1 -0
- package/dist/components/icons/content-cut-icon/ContentCutIcon.js +17 -0
- package/dist/components/icons/content-cut-icon/index.js +1 -0
- package/dist/components/icons/content-paste-icon/ContentPasteIcon.js +17 -0
- package/dist/components/icons/content-paste-icon/index.js +1 -0
- package/dist/components/icons/dashboard-view-icon/DashboardViewIcon.js +17 -10
- package/dist/components/icons/dashboard-view-outline-icon/DashboardViewOutlineIcon.js +17 -10
- package/dist/components/icons/delete-outline-icon/DeleteOutlineIcon.js +17 -10
- package/dist/components/icons/dots-vertical-icon/DotsVerticalIcon.js +16 -9
- package/dist/components/icons/download-icon/DownloadIcon.js +16 -9
- package/dist/components/icons/drag-horizontal-icon/DragHorizontalIcon.js +56 -10
- package/dist/components/icons/drop-down-icon/DropDownIcon.js +16 -9
- package/dist/components/icons/drop-up-icon/DropUpIcon.js +16 -9
- package/dist/components/icons/dvr-icon/DvrIcon.js +17 -10
- package/dist/components/icons/earth-icon/EarthIcon.js +18 -9
- package/dist/components/icons/error-outline-icon/ErrorOutlineIcon.js +16 -10
- package/dist/components/icons/fast-check-outline-icon/FastCheckOutlineIcon.js +17 -10
- package/dist/components/icons/file-pdf-icon/FilePdfIcon.js +16 -9
- package/dist/components/icons/filter-icon/FilterIcon.js +17 -10
- package/dist/components/icons/find-replace-icon/FindReplaceIcon.js +16 -10
- package/dist/components/icons/hamburger-icon/HamburgerIcon.js +21 -10
- package/dist/components/icons/iconStyle.js +8 -0
- package/dist/components/icons/inbox-outbox-icon/InboxOutboxIcon.js +16 -9
- package/dist/components/icons/inbox-outbox-outline-icon/InboxOutboxOutlineIcon.js +16 -9
- package/dist/components/icons/index.js +3 -0
- package/dist/components/icons/link-outline-icon/LinkOutlineIcon.js +17 -10
- package/dist/components/icons/list-numbered-icon/ListNumberedIcon.js +16 -9
- package/dist/components/icons/list-settings-line-icon/ListSettingsLineIcon.js +17 -10
- package/dist/components/icons/list-status-icon/ListStatusIcon.js +17 -10
- package/dist/components/icons/loading-icon/LoadingIcon.js +46 -10
- package/dist/components/icons/lock-icon/LockIcon.js +17 -10
- package/dist/components/icons/message-processing-icon/MessageProcessingIcon.js +16 -9
- package/dist/components/icons/message-processing-outline-icon/MessageProcessingOutlineIcon.js +16 -9
- package/dist/components/icons/outline-calendar-month/OutlineCalendarMonth.js +17 -10
- package/dist/components/icons/pdf-icon/PdfIcon.js +16 -9
- package/dist/components/icons/pencil-outline-icon/PencilOutlineIcon.js +17 -10
- package/dist/components/icons/people-icon/PeopleIcon.js +17 -10
- package/dist/components/icons/people-outline-icon/PeopleOutlineIcon.js +17 -10
- package/dist/components/icons/perm-media-icon/PermMediaIcon.js +17 -10
- package/dist/components/icons/perm-media-outline-icon/PermMediaOutline.js +16 -9
- package/dist/components/icons/person-icon/PersonIcon.js +17 -10
- package/dist/components/icons/person-outline-icon/PersonOutlineIcon.js +17 -10
- package/dist/components/icons/qnr-icon/QnrIcon.js +17 -10
- package/dist/components/icons/replay-icon/ReplayIcon.js +17 -11
- package/dist/components/icons/report-box-icon/ReportBoxIcon.js +16 -9
- package/dist/components/icons/report-box-outline-icon/ReportBoxOutlineIcon.js +16 -9
- package/dist/components/icons/search-icon/SearchIcon.js +17 -10
- package/dist/components/icons/settings-icon/SettingsIcon.js +17 -10
- package/dist/components/icons/settings-menu-horizontal-icon/SettingsMenuHorizontalIcon.js +19 -10
- package/dist/components/icons/settings-outline-icon/SettingsOutlineIcon.js +16 -9
- package/dist/components/icons/text-box-check-outline-icon/TextBoxCheckOutlineIcon.js +17 -11
- package/dist/components/icons/topic-icon/TopicIcon.js +16 -9
- package/dist/components/icons/unknown-document-outline-rounded-icon/UnknownDocumentOutlineRoundedIcon.js +16 -10
- package/dist/components/inputs/select/StyledSelect.js +16 -18
- package/dist/components/inputs/select/StyledSelectItem.js +8 -9
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +26 -23
- package/dist/components/inputs/switch/base-ui/StyledSwitch.js +36 -29
- package/dist/index.js +275 -269
- package/dist/src/components/icons/Icons.types.d.ts +0 -3
- package/dist/src/components/icons/cloud-icon/CloudIcon.d.ts +2 -0
- package/dist/src/components/icons/cloud-icon/index.d.ts +1 -0
- package/dist/src/components/icons/content-cut-icon/ContentCutIcon.d.ts +2 -0
- package/dist/src/components/icons/content-cut-icon/index.d.ts +1 -0
- package/dist/src/components/icons/content-paste-icon/ContentPasteIcon.d.ts +2 -0
- package/dist/src/components/icons/content-paste-icon/index.d.ts +1 -0
- package/dist/src/components/icons/error-outline-icon/ErrorOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/iconStyle.d.ts +2 -0
- package/dist/src/components/icons/index.d.ts +3 -0
- package/dist/src/components/icons/replay-icon/ReplayIcon.d.ts +0 -1
- package/dist/src/components/icons/settings-menu-horizontal-icon/SettingsMenuHorizontalIcon.d.ts +0 -1
- package/dist/src/components/icons/text-box-check-outline-icon/TextBoxCheckOutlineIcon.d.ts +0 -1
- package/dist/src/components/icons/unknown-document-outline-rounded-icon/UnknownDocumentOutlineRoundedIcon.d.ts +0 -1
- package/package.json +3 -4
- package/dist/components/icons/IconTemplate.js +0 -15
- package/dist/components/icons/Icons.module.js +0 -7
- package/dist/src/components/icons/IconTemplate.d.ts +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
1
|
+
import { getSvgIconStyle as C } from "../../../icons/iconStyle.js";
|
|
2
|
+
import r from "./StyledSwitch.module.js";
|
|
3
|
+
import { forwardRef as y, useState as N } from "react";
|
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
5
|
import { Switch as d } from "@base-ui/react/switch";
|
|
6
|
-
var
|
|
6
|
+
var b = ({ className: e }) => /* @__PURE__ */ t("svg", {
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
8
|
className: e,
|
|
9
9
|
fill: "none",
|
|
@@ -15,43 +15,50 @@ var I = ({ className: e }) => /* @__PURE__ */ t("svg", {
|
|
|
15
15
|
fill: "currentColor",
|
|
16
16
|
rx: "0.75"
|
|
17
17
|
})
|
|
18
|
-
}),
|
|
19
|
-
|
|
18
|
+
}), I = ({ width: e = 11, height: o = 11, className: c = "", onClick: n, color: s }) => /* @__PURE__ */ t("svg", {
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
20
|
width: e,
|
|
21
21
|
height: o,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
22
|
+
viewBox: "0 0 448 512",
|
|
23
|
+
className: c,
|
|
24
|
+
onClick: n,
|
|
25
|
+
style: C(s),
|
|
26
|
+
"aria-hidden": "true",
|
|
27
|
+
focusable: "false",
|
|
28
|
+
children: /* @__PURE__ */ t("path", {
|
|
29
|
+
fill: "currentColor",
|
|
30
|
+
d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7L393.4 105.4c12.5-12.5 32.8-12.5 45.2 0"
|
|
31
|
+
})
|
|
32
|
+
}), M = y(({ checked: e, defaultChecked: o = !1, onChange: c, disabled: n, readOnly: s, required: f, id: a, dataTest: u, ...v }, w) => {
|
|
33
|
+
const [g, p] = N(o), l = e !== void 0, h = l ? e : g, S = (i) => {
|
|
34
|
+
l || p(i), c?.({ target: {
|
|
35
|
+
checked: i,
|
|
36
|
+
name: a
|
|
37
|
+
} }, i);
|
|
38
|
+
}, x = l ? { checked: h } : { defaultChecked: o }, m = r.iconContent;
|
|
32
39
|
return /* @__PURE__ */ t(d.Root, {
|
|
33
|
-
...
|
|
34
|
-
...
|
|
40
|
+
...v,
|
|
41
|
+
...x,
|
|
35
42
|
nativeButton: !0,
|
|
36
43
|
render: /* @__PURE__ */ t("button", {}),
|
|
37
|
-
ref:
|
|
38
|
-
className:
|
|
39
|
-
onCheckedChange:
|
|
40
|
-
disabled:
|
|
41
|
-
readOnly:
|
|
44
|
+
ref: w,
|
|
45
|
+
className: r.switch,
|
|
46
|
+
onCheckedChange: S,
|
|
47
|
+
disabled: n,
|
|
48
|
+
readOnly: s,
|
|
42
49
|
required: f,
|
|
43
|
-
id:
|
|
44
|
-
name:
|
|
50
|
+
id: a,
|
|
51
|
+
name: a,
|
|
45
52
|
"data-testid": u,
|
|
46
53
|
children: /* @__PURE__ */ t(d.Thumb, {
|
|
47
|
-
className:
|
|
54
|
+
className: r.thumb,
|
|
48
55
|
children: /* @__PURE__ */ t("span", {
|
|
49
|
-
className:
|
|
50
|
-
children:
|
|
56
|
+
className: r.icon,
|
|
57
|
+
children: h ? /* @__PURE__ */ t(I, { className: m }) : /* @__PURE__ */ t(b, { className: m })
|
|
51
58
|
})
|
|
52
59
|
})
|
|
53
60
|
});
|
|
54
61
|
});
|
|
55
62
|
export {
|
|
56
|
-
|
|
63
|
+
M as StyledSwitch
|
|
57
64
|
};
|