@caspeco/casper-ui-library 9.10.0 → 9.11.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.
- package/dist/components/accordion/accordion-recipe.js +1 -1
- package/dist/components/checkbox/checkbox-recipe.js +1 -1
- package/dist/components/drawer/drawer-recipe.js +1 -1
- package/dist/components/fieldset/fieldset-recipe.js +1 -1
- package/dist/components/form-control/form-control-recipe.js +1 -1
- package/dist/components/menu/menu-recipe.js +1 -1
- package/dist/components/modal/modal-recipe.js +1 -1
- package/dist/components/radio/radio-group-recipe.js +1 -1
- package/dist/components/rich-text-editor/boolean-control.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/components/rich-text-editor/use-rich-text-editor.js +1 -1
- package/dist/components/select/select-recipe.js +1 -1
- package/dist/components/switch/switch-recipe.js +1 -1
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +68 -66
- package/dist/components/tabs/tabs-recipe.js +1 -1
- package/dist/components/tag/tag-recipe.js +1 -1
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +83 -31
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +411 -226
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +33 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +29 -28
- package/dist/node_modules/@tiptap/core/dist/index.js +251 -90
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +3 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +3 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +3 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +5 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +36 -8
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +13 -2
- package/dist/node_modules/@tiptap/extensions/dist/index.js +236 -229
- package/dist/{node_modules → packages/casper-ui-library/node_modules}/@tiptap/react/dist/index.js +12 -7
- package/package.json +13 -13
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/color-picker/color-picker.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/field/field.anatomy.js +0 -15
- package/dist/node_modules/@ark-ui/react/dist/components/fieldset/fieldset.anatomy.js +0 -6
- package/dist/node_modules/@ark-ui/react/dist/components/listbox/listbox.anatomy.js +0 -2
- package/dist/node_modules/@chakra-ui/react/dist/esm/anatomy.js +0 -186
- package/dist/node_modules/@zag-js/accordion/dist/accordion.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/anatomy/dist/create-anatomy.js +0 -26
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/clipboard/dist/clipboard.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/color-picker/dist/color-picker.anatomy.js +0 -31
- package/dist/node_modules/@zag-js/combobox/dist/combobox.anatomy.js +0 -21
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js +0 -31
- package/dist/node_modules/@zag-js/dialog/dist/dialog.anatomy.js +0 -14
- package/dist/node_modules/@zag-js/editable/dist/editable.anatomy.js +0 -16
- package/dist/node_modules/@zag-js/file-upload/dist/file-upload.anatomy.js +0 -19
- package/dist/node_modules/@zag-js/listbox/dist/listbox.anatomy.js +0 -17
- package/dist/node_modules/@zag-js/menu/dist/menu.anatomy.js +0 -21
- package/dist/node_modules/@zag-js/popover/dist/popover.anatomy.js +0 -17
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js +0 -13
- package/dist/node_modules/@zag-js/rating-group/dist/rating-group.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/select/dist/select.anatomy.js +0 -22
- package/dist/node_modules/@zag-js/slider/dist/slider.anatomy.js +0 -17
- package/dist/node_modules/@zag-js/splitter/dist/splitter.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/switch/dist/switch.anatomy.js +0 -6
package/dist/{node_modules → packages/casper-ui-library/node_modules}/@tiptap/react/dist/index.js
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import o, { useState as p, useDebugValue as m, useRef as R, useEffect as f, useLayoutEffect as C, forwardRef as N, createContext as d, useContext as v, useMemo as l } from "react";
|
|
2
2
|
import T from "react-dom";
|
|
3
|
-
import { s as b } from "
|
|
3
|
+
import { s as b } from "../../../../../../_virtual/index.js";
|
|
4
4
|
import { jsxs as D, Fragment as g, jsx as a } from "react/jsx-runtime";
|
|
5
|
-
import { Editor as M } from "
|
|
6
|
-
import { CommandManager as re, Extendable as ne, Extension as ie, InputRule as se, MappablePosition as oe, Mark as ae, Node as de, NodePos as ue, PasteRule as ce, callOrReturn as le, canInsertNode as he, combineTransactionSteps as pe, commands as me, createAtomBlockMarkdownSpec as fe, createBlockMarkdownSpec as ve, createChainableState as be, createDocument as ge, createInlineMarkdownSpec as Se, createMappablePosition as Ee, createNodeFromContent as ye, createStyleTag as we, defaultBlockAt as xe, deleteProps as Re, elementFromString as Ce, extensions as Ne, findChildrenInRange as Te, findDuplicates as De, findParentNode as Me, findParentNodeClosestToPos as _e, flattenExtensions as Ie, fromString as Pe, generateHTML as Ae, generateJSON as Oe, getAttributes as ke, getAttributesFromExtensions as Be, getChangedRanges as Fe, getExtensionField as Ve, getHTMLFromFragment as je, getMarkAttributes as Ue, getMarkRange as qe, getMarkType as Le, getMarksBetween as ze, getNodeAtPosition as We, getNodeAttributes as He, getNodeType as Je, getRenderedAttributes as Ke, getSchema as Ge, getSchemaByResolvedExtensions as Qe, getSchemaTypeByName as Xe, getSchemaTypeNameByName as Ye, getSplittedAttributes as Ze, getText as $e, getTextBetween as et, getTextContentFromNodes as tt, getTextSerializersFromSchema as rt, getUpdatedPosition as nt, injectExtensionAttributesToParseRule as it, inputRulesPlugin as st, isActive as ot, isAndroid as at, isAtEndOfNode as dt, isAtStartOfNode as ut, isEmptyObject as ct, isExtensionRulesEnabled as lt, isFunction as ht, isList as pt, isMacOS as mt, isMarkActive as ft, isNodeActive as vt, isNodeEmpty as bt, isNodeSelection as gt, isNumber as St, isPlainObject as Et, isRegExp as yt, isSafari as wt, isTextSelection as xt, isiOS as Rt, markInputRule as Ct, markPasteRule as Nt, markdown as Tt, mergeAttributes as Dt, mergeDeep as Mt, minMax as _t, nodeInputRule as It, objectIncludes as Pt, parseAttributes as At, parseIndentedBlocks as Ot, pasteRulesPlugin as kt, removeDuplicates as Bt, renderNestedMarkdownContent as Ft, resolveExtensions as Vt, resolveFocusPosition as jt, selectionToInsertionEnd as Ut, serializeAttributes as qt, sortExtensions as Lt, splitExtensions as zt, textblockTypeInputRule as Wt, updateMarkViewAttributes as Ht, wrappingInputRule as Jt } from "
|
|
7
|
-
import { deepEqual as _ } from "
|
|
8
|
-
import { w as I } from "
|
|
5
|
+
import { Editor as M } from "../../../../../../node_modules/@tiptap/core/dist/index.js";
|
|
6
|
+
import { CommandManager as re, Extendable as ne, Extension as ie, InputRule as se, MappablePosition as oe, Mark as ae, Node as de, NodePos as ue, PasteRule as ce, callOrReturn as le, canInsertNode as he, combineTransactionSteps as pe, commands as me, createAtomBlockMarkdownSpec as fe, createBlockMarkdownSpec as ve, createChainableState as be, createDocument as ge, createInlineMarkdownSpec as Se, createMappablePosition as Ee, createNodeFromContent as ye, createStyleTag as we, defaultBlockAt as xe, deleteProps as Re, elementFromString as Ce, extensions as Ne, findChildrenInRange as Te, findDuplicates as De, findParentNode as Me, findParentNodeClosestToPos as _e, flattenExtensions as Ie, fromString as Pe, generateHTML as Ae, generateJSON as Oe, getAttributes as ke, getAttributesFromExtensions as Be, getChangedRanges as Fe, getExtensionField as Ve, getHTMLFromFragment as je, getMarkAttributes as Ue, getMarkRange as qe, getMarkType as Le, getMarksBetween as ze, getNodeAtPosition as We, getNodeAttributes as He, getNodeType as Je, getRenderedAttributes as Ke, getSchema as Ge, getSchemaByResolvedExtensions as Qe, getSchemaTypeByName as Xe, getSchemaTypeNameByName as Ye, getSplittedAttributes as Ze, getText as $e, getTextBetween as et, getTextContentFromNodes as tt, getTextSerializersFromSchema as rt, getUpdatedPosition as nt, injectExtensionAttributesToParseRule as it, inputRulesPlugin as st, isActive as ot, isAndroid as at, isAtEndOfNode as dt, isAtStartOfNode as ut, isEmptyObject as ct, isExtensionRulesEnabled as lt, isFunction as ht, isList as pt, isMacOS as mt, isMarkActive as ft, isNodeActive as vt, isNodeEmpty as bt, isNodeSelection as gt, isNumber as St, isPlainObject as Et, isRegExp as yt, isSafari as wt, isTextSelection as xt, isiOS as Rt, markInputRule as Ct, markPasteRule as Nt, markdown as Tt, mergeAttributes as Dt, mergeDeep as Mt, minMax as _t, nodeInputRule as It, objectIncludes as Pt, parseAttributes as At, parseIndentedBlocks as Ot, pasteRulesPlugin as kt, removeDuplicates as Bt, renderNestedMarkdownContent as Ft, resolveExtensions as Vt, resolveFocusPosition as jt, selectionToInsertionEnd as Ut, serializeAttributes as qt, sortExtensions as Lt, splitExtensions as zt, textblockTypeInputRule as Wt, updateMarkViewAttributes as Ht, wrappingInputRule as Jt } from "../../../../../../node_modules/@tiptap/core/dist/index.js";
|
|
7
|
+
import { deepEqual as _ } from "../../../../../../node_modules/fast-equals/dist/es/index.js";
|
|
8
|
+
import { w as I } from "../../../../../../_virtual/with-selector.js";
|
|
9
9
|
var P = (...r) => (e) => {
|
|
10
10
|
r.forEach((t) => {
|
|
11
11
|
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
@@ -169,7 +169,9 @@ var h = process.env.NODE_ENV !== "production", S = typeof window > "u", q = S ||
|
|
|
169
169
|
getInitialEditor() {
|
|
170
170
|
const e = this.options.current.immediatelyRender;
|
|
171
171
|
let t = e ?? !0;
|
|
172
|
-
return S ? (t && h && console.warn(
|
|
172
|
+
return S ? (t && h && console.warn(
|
|
173
|
+
"SSR detected. `immediatelyRender` has been set to false to avoid hydration mismatches"
|
|
174
|
+
), t = !1) : q && e === void 0 && (t = !1, h && console.warn(
|
|
173
175
|
"Next.js detected. `immediatelyRender` defaults to false to avoid hydration mismatches. Pass `immediatelyRender: true` explicitly if you are rendering the editor only on the client."
|
|
174
176
|
)), t ? this.createEditor() : null;
|
|
175
177
|
}
|
|
@@ -370,7 +372,10 @@ function w({ editor: r, instance: e, children: t }) {
|
|
|
370
372
|
const n = r ?? e;
|
|
371
373
|
if (!n)
|
|
372
374
|
throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");
|
|
373
|
-
const i = l(
|
|
375
|
+
const i = l(
|
|
376
|
+
() => ({ editor: n }),
|
|
377
|
+
[n]
|
|
378
|
+
), s = l(() => ({ editor: n }), [n]);
|
|
374
379
|
return /* @__PURE__ */ a(y.Provider, { value: s, children: /* @__PURE__ */ a(u.Provider, { value: i, children: t }) });
|
|
375
380
|
}
|
|
376
381
|
w.displayName = "Tiptap";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.11.1",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"generate:icons": "node ./scripts/generate-icons.js"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@arethetypeswrong/cli": "^0.18.
|
|
40
|
+
"@arethetypeswrong/cli": "^0.18.3",
|
|
41
41
|
"@caspeco/eslint-config-react": "^5.2.1",
|
|
42
42
|
"@caspeco/prettier-config": "^1.0.7",
|
|
43
43
|
"@chakra-ui/cli": "^3.35.0",
|
|
44
44
|
"@eslint/js": "^9.39.2",
|
|
45
|
-
"@types/node": "^24.12.
|
|
45
|
+
"@types/node": "^24.12.4",
|
|
46
46
|
"@types/react": "^18.3.12",
|
|
47
47
|
"@types/react-dom": "^18.3.1",
|
|
48
|
-
"@vitejs/plugin-react-swc": "^4.3.
|
|
48
|
+
"@vitejs/plugin-react-swc": "^4.3.1",
|
|
49
49
|
"@vitest/browser-playwright": "^4.1.8",
|
|
50
50
|
"playwright": "1.60.0",
|
|
51
51
|
"@vitest/ui": "^4.1.5",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"rimraf": "^6.1.3",
|
|
57
57
|
"tsc-alias": "^1.8.17",
|
|
58
58
|
"typescript": "~6.0.3",
|
|
59
|
-
"typescript-eslint": "^8.
|
|
60
|
-
"vite": "^7.3.
|
|
59
|
+
"typescript-eslint": "^8.60.1",
|
|
60
|
+
"vite": "^7.3.5",
|
|
61
61
|
"vite-plugin-dts": "^4.5.4",
|
|
62
62
|
"vite-tsconfig-paths": "^6.1.1",
|
|
63
63
|
"vitest": "^4.1.5",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"@dnd-kit/react": "^0.4.0",
|
|
79
79
|
"@floating-ui/dom": "^1.7.6",
|
|
80
80
|
"@tanstack/react-table": "^8.21.3",
|
|
81
|
-
"@tanstack/react-virtual": "^3.
|
|
82
|
-
"@tiptap/core": "^3.
|
|
81
|
+
"@tanstack/react-virtual": "^3.14.2",
|
|
82
|
+
"@tiptap/core": "^3.24.0",
|
|
83
83
|
"linkifyjs": "^4.3.3",
|
|
84
|
-
"@tiptap/extension-link": "^3.
|
|
85
|
-
"@tiptap/extension-underline": "^3.
|
|
86
|
-
"@tiptap/react": "^3.
|
|
87
|
-
"@tiptap/starter-kit": "^3.
|
|
84
|
+
"@tiptap/extension-link": "^3.24.0",
|
|
85
|
+
"@tiptap/extension-underline": "^3.24.0",
|
|
86
|
+
"@tiptap/react": "^3.24.0",
|
|
87
|
+
"@tiptap/starter-kit": "^3.24.0",
|
|
88
88
|
"csstype": "^3.2.3",
|
|
89
|
-
"date-fns": "^4.
|
|
89
|
+
"date-fns": "^4.4.0",
|
|
90
90
|
"next-themes": "^0.4.6"
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as e } from "../../../../../@zag-js/anatomy/dist/create-anatomy.js";
|
|
2
|
-
const t = e("field").parts(
|
|
3
|
-
"root",
|
|
4
|
-
"errorText",
|
|
5
|
-
"helperText",
|
|
6
|
-
"input",
|
|
7
|
-
"label",
|
|
8
|
-
"select",
|
|
9
|
-
"textarea",
|
|
10
|
-
"requiredIndicator"
|
|
11
|
-
);
|
|
12
|
-
t.build();
|
|
13
|
-
export {
|
|
14
|
-
t as fieldAnatomy
|
|
15
|
-
};
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { anatomy as o } from "../../../../@zag-js/dialog/dist/dialog.anatomy.js";
|
|
2
|
-
import { createAnatomy as t } from "../../../../@zag-js/anatomy/dist/create-anatomy.js";
|
|
3
|
-
import { anatomy as e } from "../../../../@zag-js/menu/dist/menu.anatomy.js";
|
|
4
|
-
import { anatomy as a } from "../../../../@zag-js/switch/dist/switch.anatomy.js";
|
|
5
|
-
import { fieldsetAnatomy as r } from "../../../../@ark-ui/react/dist/components/fieldset/fieldset.anatomy.js";
|
|
6
|
-
import { fieldAnatomy as n } from "../../../../@ark-ui/react/dist/components/field/field.anatomy.js";
|
|
7
|
-
import { anatomy as i } from "../../../../@zag-js/radio-group/dist/radio-group.anatomy.js";
|
|
8
|
-
import { anatomy as m } from "../../../../@zag-js/accordion/dist/accordion.anatomy.js";
|
|
9
|
-
import { datePickerAnatomy as d } from "../../../../@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js";
|
|
10
|
-
import { anatomy as s } from "../../../../@zag-js/editable/dist/editable.anatomy.js";
|
|
11
|
-
import { anatomy as c } from "../../../../@zag-js/file-upload/dist/file-upload.anatomy.js";
|
|
12
|
-
import { anatomy as p } from "../../../../@zag-js/popover/dist/popover.anatomy.js";
|
|
13
|
-
import { anatomy as y } from "../../../../@zag-js/rating-group/dist/rating-group.anatomy.js";
|
|
14
|
-
import { anatomy as l } from "../../../../@zag-js/select/dist/select.anatomy.js";
|
|
15
|
-
import { comboboxAnatomy as f } from "../../../../@ark-ui/react/dist/components/combobox/combobox.anatomy.js";
|
|
16
|
-
import { anatomy as h } from "../../../../@zag-js/slider/dist/slider.anatomy.js";
|
|
17
|
-
import { colorPickerAnatomy as x } from "../../../../@ark-ui/react/dist/components/color-picker/color-picker.anatomy.js";
|
|
18
|
-
import { anatomy as b } from "../../../../@zag-js/splitter/dist/splitter.anatomy.js";
|
|
19
|
-
import { anatomy as A } from "../../../../@zag-js/clipboard/dist/clipboard.anatomy.js";
|
|
20
|
-
const U = m.extendWith("itemBody");
|
|
21
|
-
t("action-bar").parts(
|
|
22
|
-
"positioner",
|
|
23
|
-
"content",
|
|
24
|
-
"separator",
|
|
25
|
-
"selectionTrigger",
|
|
26
|
-
"closeTrigger"
|
|
27
|
-
);
|
|
28
|
-
t("alert").parts(
|
|
29
|
-
"title",
|
|
30
|
-
"description",
|
|
31
|
-
"root",
|
|
32
|
-
"indicator",
|
|
33
|
-
"content"
|
|
34
|
-
);
|
|
35
|
-
t("breadcrumb").parts(
|
|
36
|
-
"link",
|
|
37
|
-
"currentLink",
|
|
38
|
-
"item",
|
|
39
|
-
"list",
|
|
40
|
-
"root",
|
|
41
|
-
"ellipsis",
|
|
42
|
-
"separator"
|
|
43
|
-
);
|
|
44
|
-
t("blockquote").parts(
|
|
45
|
-
"root",
|
|
46
|
-
"icon",
|
|
47
|
-
"content",
|
|
48
|
-
"caption"
|
|
49
|
-
);
|
|
50
|
-
t("card").parts(
|
|
51
|
-
"root",
|
|
52
|
-
"header",
|
|
53
|
-
"body",
|
|
54
|
-
"footer",
|
|
55
|
-
"title",
|
|
56
|
-
"description"
|
|
57
|
-
);
|
|
58
|
-
t("data-list").parts(
|
|
59
|
-
"root",
|
|
60
|
-
"item",
|
|
61
|
-
"itemLabel",
|
|
62
|
-
"itemValue"
|
|
63
|
-
);
|
|
64
|
-
d.extendWith("indicatorGroup");
|
|
65
|
-
const V = o.extendWith(
|
|
66
|
-
"header",
|
|
67
|
-
"body",
|
|
68
|
-
"footer",
|
|
69
|
-
"backdrop"
|
|
70
|
-
), j = o.extendWith(
|
|
71
|
-
"header",
|
|
72
|
-
"body",
|
|
73
|
-
"footer",
|
|
74
|
-
"backdrop"
|
|
75
|
-
);
|
|
76
|
-
s.extendWith("textarea");
|
|
77
|
-
const F = n.extendWith("requiredIndicator"), J = r.extendWith("content");
|
|
78
|
-
c.extendWith(
|
|
79
|
-
"itemContent",
|
|
80
|
-
"dropzoneContent",
|
|
81
|
-
"fileText"
|
|
82
|
-
);
|
|
83
|
-
t("list").parts(
|
|
84
|
-
"root",
|
|
85
|
-
"item",
|
|
86
|
-
"indicator"
|
|
87
|
-
);
|
|
88
|
-
const K = e.extendWith("itemCommand"), M = t("select").parts(
|
|
89
|
-
"root",
|
|
90
|
-
"field",
|
|
91
|
-
"indicator"
|
|
92
|
-
);
|
|
93
|
-
p.extendWith(
|
|
94
|
-
"header",
|
|
95
|
-
"body",
|
|
96
|
-
"footer"
|
|
97
|
-
);
|
|
98
|
-
const W = i.extendWith(
|
|
99
|
-
"itemAddon",
|
|
100
|
-
"itemIndicator"
|
|
101
|
-
);
|
|
102
|
-
W.extendWith(
|
|
103
|
-
"itemContent",
|
|
104
|
-
"itemDescription"
|
|
105
|
-
);
|
|
106
|
-
y.extendWith("itemIndicator");
|
|
107
|
-
l.extendWith("indicatorGroup");
|
|
108
|
-
f.extendWith(
|
|
109
|
-
"indicatorGroup",
|
|
110
|
-
"empty"
|
|
111
|
-
);
|
|
112
|
-
h.extendWith(
|
|
113
|
-
"markerIndicator",
|
|
114
|
-
"markerLabel"
|
|
115
|
-
);
|
|
116
|
-
t("stat").parts(
|
|
117
|
-
"root",
|
|
118
|
-
"label",
|
|
119
|
-
"helpText",
|
|
120
|
-
"valueText",
|
|
121
|
-
"valueUnit",
|
|
122
|
-
"indicator"
|
|
123
|
-
);
|
|
124
|
-
t("status").parts("root", "indicator");
|
|
125
|
-
const N = a.extendWith("indicator");
|
|
126
|
-
t("table").parts(
|
|
127
|
-
"root",
|
|
128
|
-
"header",
|
|
129
|
-
"body",
|
|
130
|
-
"row",
|
|
131
|
-
"columnHeader",
|
|
132
|
-
"cell",
|
|
133
|
-
"footer",
|
|
134
|
-
"caption"
|
|
135
|
-
);
|
|
136
|
-
t("toast").parts(
|
|
137
|
-
"root",
|
|
138
|
-
"title",
|
|
139
|
-
"description",
|
|
140
|
-
"indicator",
|
|
141
|
-
"closeTrigger",
|
|
142
|
-
"actionTrigger"
|
|
143
|
-
);
|
|
144
|
-
const O = t("tabs").parts(
|
|
145
|
-
"root",
|
|
146
|
-
"trigger",
|
|
147
|
-
"list",
|
|
148
|
-
"content",
|
|
149
|
-
"contentGroup",
|
|
150
|
-
"indicator"
|
|
151
|
-
), Q = t("tag").parts(
|
|
152
|
-
"root",
|
|
153
|
-
"label",
|
|
154
|
-
"closeTrigger",
|
|
155
|
-
"startElement",
|
|
156
|
-
"endElement"
|
|
157
|
-
);
|
|
158
|
-
t("timeline").parts(
|
|
159
|
-
"root",
|
|
160
|
-
"item",
|
|
161
|
-
"content",
|
|
162
|
-
"separator",
|
|
163
|
-
"indicator",
|
|
164
|
-
"connector",
|
|
165
|
-
"title",
|
|
166
|
-
"description"
|
|
167
|
-
);
|
|
168
|
-
x.extendWith("channelText");
|
|
169
|
-
b.extendWith(
|
|
170
|
-
"resizeTriggerSeparator",
|
|
171
|
-
"resizeTriggerIndicator"
|
|
172
|
-
);
|
|
173
|
-
A.extendWith("valueText");
|
|
174
|
-
export {
|
|
175
|
-
U as accordionAnatomy,
|
|
176
|
-
V as dialogAnatomy,
|
|
177
|
-
j as drawerAnatomy,
|
|
178
|
-
F as fieldAnatomy,
|
|
179
|
-
J as fieldsetAnatomy,
|
|
180
|
-
K as menuAnatomy,
|
|
181
|
-
M as nativeSelectAnatomy,
|
|
182
|
-
W as radioGroupAnatomy,
|
|
183
|
-
N as switchAnatomy,
|
|
184
|
-
O as tabsAnatomy,
|
|
185
|
-
Q as tagAnatomy
|
|
186
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var c = (e, a = []) => ({
|
|
2
|
-
parts: (...t) => {
|
|
3
|
-
if (d(a))
|
|
4
|
-
return c(e, t);
|
|
5
|
-
throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
|
|
6
|
-
},
|
|
7
|
-
extendWith: (...t) => c(e, [...a, ...t]),
|
|
8
|
-
omit: (...t) => c(e, a.filter((o) => !t.includes(o))),
|
|
9
|
-
rename: (t) => c(t, a),
|
|
10
|
-
keys: () => a,
|
|
11
|
-
build: () => [...new Set(a)].reduce(
|
|
12
|
-
(t, o) => Object.assign(t, {
|
|
13
|
-
[o]: {
|
|
14
|
-
selector: [
|
|
15
|
-
`&[data-scope="${r(e)}"][data-part="${r(o)}"]`,
|
|
16
|
-
`& [data-scope="${r(e)}"][data-part="${r(o)}"]`
|
|
17
|
-
].join(", "),
|
|
18
|
-
attrs: { "data-scope": r(e), "data-part": r(o) }
|
|
19
|
-
}
|
|
20
|
-
}),
|
|
21
|
-
{}
|
|
22
|
-
)
|
|
23
|
-
}), r = (e) => e.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), d = (e) => e.length === 0;
|
|
24
|
-
export {
|
|
25
|
-
c as createAnatomy
|
|
26
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as r } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var e = r("color-picker", [
|
|
3
|
-
"root",
|
|
4
|
-
"label",
|
|
5
|
-
"control",
|
|
6
|
-
"trigger",
|
|
7
|
-
"positioner",
|
|
8
|
-
"content",
|
|
9
|
-
"area",
|
|
10
|
-
"areaThumb",
|
|
11
|
-
"valueText",
|
|
12
|
-
"areaBackground",
|
|
13
|
-
"channelSlider",
|
|
14
|
-
"channelSliderLabel",
|
|
15
|
-
"channelSliderTrack",
|
|
16
|
-
"channelSliderThumb",
|
|
17
|
-
"channelSliderValueText",
|
|
18
|
-
"channelInput",
|
|
19
|
-
"transparencyGrid",
|
|
20
|
-
"swatchGroup",
|
|
21
|
-
"swatchTrigger",
|
|
22
|
-
"swatchIndicator",
|
|
23
|
-
"swatch",
|
|
24
|
-
"eyeDropperTrigger",
|
|
25
|
-
"formatTrigger",
|
|
26
|
-
"formatSelect"
|
|
27
|
-
]);
|
|
28
|
-
e.build();
|
|
29
|
-
export {
|
|
30
|
-
e as anatomy
|
|
31
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as t } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var o = t("combobox").parts(
|
|
3
|
-
"root",
|
|
4
|
-
"clearTrigger",
|
|
5
|
-
"content",
|
|
6
|
-
"control",
|
|
7
|
-
"input",
|
|
8
|
-
"item",
|
|
9
|
-
"itemGroup",
|
|
10
|
-
"itemGroupLabel",
|
|
11
|
-
"itemIndicator",
|
|
12
|
-
"itemText",
|
|
13
|
-
"label",
|
|
14
|
-
"list",
|
|
15
|
-
"positioner",
|
|
16
|
-
"trigger"
|
|
17
|
-
);
|
|
18
|
-
o.build();
|
|
19
|
-
export {
|
|
20
|
-
o as anatomy
|
|
21
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as e } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var r = e("date-picker").parts(
|
|
3
|
-
"clearTrigger",
|
|
4
|
-
"content",
|
|
5
|
-
"control",
|
|
6
|
-
"input",
|
|
7
|
-
"label",
|
|
8
|
-
"monthSelect",
|
|
9
|
-
"nextTrigger",
|
|
10
|
-
"positioner",
|
|
11
|
-
"presetTrigger",
|
|
12
|
-
"prevTrigger",
|
|
13
|
-
"rangeText",
|
|
14
|
-
"root",
|
|
15
|
-
"table",
|
|
16
|
-
"tableBody",
|
|
17
|
-
"tableCell",
|
|
18
|
-
"tableCellTrigger",
|
|
19
|
-
"tableHead",
|
|
20
|
-
"tableHeader",
|
|
21
|
-
"tableRow",
|
|
22
|
-
"trigger",
|
|
23
|
-
"view",
|
|
24
|
-
"viewControl",
|
|
25
|
-
"viewTrigger",
|
|
26
|
-
"yearSelect"
|
|
27
|
-
);
|
|
28
|
-
r.build();
|
|
29
|
-
export {
|
|
30
|
-
r as anatomy
|
|
31
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as r } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var t = r("dialog").parts(
|
|
3
|
-
"trigger",
|
|
4
|
-
"backdrop",
|
|
5
|
-
"positioner",
|
|
6
|
-
"content",
|
|
7
|
-
"title",
|
|
8
|
-
"description",
|
|
9
|
-
"closeTrigger"
|
|
10
|
-
);
|
|
11
|
-
t.build();
|
|
12
|
-
export {
|
|
13
|
-
t as anatomy
|
|
14
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as r } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var e = r("editable").parts(
|
|
3
|
-
"root",
|
|
4
|
-
"area",
|
|
5
|
-
"label",
|
|
6
|
-
"preview",
|
|
7
|
-
"input",
|
|
8
|
-
"editTrigger",
|
|
9
|
-
"submitTrigger",
|
|
10
|
-
"cancelTrigger",
|
|
11
|
-
"control"
|
|
12
|
-
);
|
|
13
|
-
e.build();
|
|
14
|
-
export {
|
|
15
|
-
e as anatomy
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as e } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var r = e("file-upload").parts(
|
|
3
|
-
"root",
|
|
4
|
-
"dropzone",
|
|
5
|
-
"item",
|
|
6
|
-
"itemDeleteTrigger",
|
|
7
|
-
"itemGroup",
|
|
8
|
-
"itemName",
|
|
9
|
-
"itemPreview",
|
|
10
|
-
"itemPreviewImage",
|
|
11
|
-
"itemSizeText",
|
|
12
|
-
"label",
|
|
13
|
-
"trigger",
|
|
14
|
-
"clearTrigger"
|
|
15
|
-
);
|
|
16
|
-
r.build();
|
|
17
|
-
export {
|
|
18
|
-
r as anatomy
|
|
19
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as t } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var e = t("listbox").parts(
|
|
3
|
-
"label",
|
|
4
|
-
"input",
|
|
5
|
-
"item",
|
|
6
|
-
"itemText",
|
|
7
|
-
"itemIndicator",
|
|
8
|
-
"itemGroup",
|
|
9
|
-
"itemGroupLabel",
|
|
10
|
-
"content",
|
|
11
|
-
"root",
|
|
12
|
-
"valueText"
|
|
13
|
-
);
|
|
14
|
-
e.build();
|
|
15
|
-
export {
|
|
16
|
-
e as anatomy
|
|
17
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as r } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var t = r("menu").parts(
|
|
3
|
-
"arrow",
|
|
4
|
-
"arrowTip",
|
|
5
|
-
"content",
|
|
6
|
-
"contextTrigger",
|
|
7
|
-
"indicator",
|
|
8
|
-
"item",
|
|
9
|
-
"itemGroup",
|
|
10
|
-
"itemGroupLabel",
|
|
11
|
-
"itemIndicator",
|
|
12
|
-
"itemText",
|
|
13
|
-
"positioner",
|
|
14
|
-
"separator",
|
|
15
|
-
"trigger",
|
|
16
|
-
"triggerItem"
|
|
17
|
-
);
|
|
18
|
-
t.build();
|
|
19
|
-
export {
|
|
20
|
-
t as anatomy
|
|
21
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as r } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var o = r("popover").parts(
|
|
3
|
-
"arrow",
|
|
4
|
-
"arrowTip",
|
|
5
|
-
"anchor",
|
|
6
|
-
"trigger",
|
|
7
|
-
"indicator",
|
|
8
|
-
"positioner",
|
|
9
|
-
"content",
|
|
10
|
-
"title",
|
|
11
|
-
"description",
|
|
12
|
-
"closeTrigger"
|
|
13
|
-
);
|
|
14
|
-
o.build();
|
|
15
|
-
export {
|
|
16
|
-
o as anatomy
|
|
17
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as t } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var e = t("select").parts(
|
|
3
|
-
"label",
|
|
4
|
-
"positioner",
|
|
5
|
-
"trigger",
|
|
6
|
-
"indicator",
|
|
7
|
-
"clearTrigger",
|
|
8
|
-
"item",
|
|
9
|
-
"itemText",
|
|
10
|
-
"itemIndicator",
|
|
11
|
-
"itemGroup",
|
|
12
|
-
"itemGroupLabel",
|
|
13
|
-
"list",
|
|
14
|
-
"content",
|
|
15
|
-
"root",
|
|
16
|
-
"control",
|
|
17
|
-
"valueText"
|
|
18
|
-
);
|
|
19
|
-
e.build();
|
|
20
|
-
export {
|
|
21
|
-
e as anatomy
|
|
22
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as r } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
-
var a = r("slider").parts(
|
|
3
|
-
"root",
|
|
4
|
-
"label",
|
|
5
|
-
"thumb",
|
|
6
|
-
"valueText",
|
|
7
|
-
"track",
|
|
8
|
-
"range",
|
|
9
|
-
"control",
|
|
10
|
-
"markerGroup",
|
|
11
|
-
"marker",
|
|
12
|
-
"draggingIndicator"
|
|
13
|
-
);
|
|
14
|
-
a.build();
|
|
15
|
-
export {
|
|
16
|
-
a as anatomy
|
|
17
|
-
};
|