@techfides/ui-library-design 0.5.0 → 0.8.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/anatomies.d.ts +1586 -0
- package/dist/anatomies.js +107 -0
- package/dist/anatomies.js.map +1 -0
- package/dist/anatomy.d.ts +13 -0
- package/dist/anatomy.js +6 -0
- package/dist/anatomy.js.map +1 -0
- package/dist/cn.generated.js +217 -0
- package/dist/cn.generated.js.map +1 -0
- package/dist/cn.js +10 -166
- package/dist/cn.js.map +1 -1
- package/dist/control.d.ts +1 -2
- package/dist/control.js +1 -2
- package/dist/control.js.map +1 -1
- package/dist/index.d.ts +55 -52
- package/dist/index.js +59 -56
- package/dist/recipes/accordion.d.ts +28 -1
- package/dist/recipes/accordion.js +29 -1
- package/dist/recipes/accordion.js.map +1 -1
- package/dist/recipes/alert.d.ts +45 -1
- package/dist/recipes/alert.js +45 -1
- package/dist/recipes/alert.js.map +1 -1
- package/dist/recipes/band.d.ts +11 -1
- package/dist/recipes/band.js +7 -1
- package/dist/recipes/band.js.map +1 -1
- package/dist/recipes/bars.d.ts +60 -1
- package/dist/recipes/bars.js +59 -1
- package/dist/recipes/bars.js.map +1 -1
- package/dist/recipes/brandMark.d.ts +8 -1
- package/dist/recipes/brandMark.js +7 -1
- package/dist/recipes/brandMark.js.map +1 -1
- package/dist/recipes/button.d.ts +41 -4
- package/dist/recipes/button.js +31 -2
- package/dist/recipes/button.js.map +1 -1
- package/dist/recipes/cardHeader.d.ts +18 -1
- package/dist/recipes/cardHeader.js +19 -1
- package/dist/recipes/cardHeader.js.map +1 -1
- package/dist/recipes/checkbox.d.ts +16 -1
- package/dist/recipes/checkbox.js +16 -3
- package/dist/recipes/checkbox.js.map +1 -1
- package/dist/recipes/chip.d.ts +41 -2
- package/dist/recipes/chip.js +34 -1
- package/dist/recipes/chip.js.map +1 -1
- package/dist/recipes/codeEditor.d.ts +8 -1
- package/dist/recipes/codeEditor.js +7 -1
- package/dist/recipes/codeEditor.js.map +1 -1
- package/dist/recipes/datePicker.d.ts +62 -1
- package/dist/recipes/datePicker.js +56 -3
- package/dist/recipes/datePicker.js.map +1 -1
- package/dist/recipes/dialog.d.ts +49 -1
- package/dist/recipes/dialog.js +40 -1
- package/dist/recipes/dialog.js.map +1 -1
- package/dist/recipes/feature.d.ts +30 -1
- package/dist/recipes/feature.js +30 -2
- package/dist/recipes/feature.js.map +1 -1
- package/dist/recipes/field.js +1 -1
- package/dist/recipes/findings.d.ts +33 -1
- package/dist/recipes/findings.js +34 -1
- package/dist/recipes/findings.js.map +1 -1
- package/dist/recipes/heading.d.ts +12 -2
- package/dist/recipes/heading.js +7 -1
- package/dist/recipes/heading.js.map +1 -1
- package/dist/recipes/heartbeat.d.ts +52 -2
- package/dist/recipes/heartbeat.js +51 -4
- package/dist/recipes/heartbeat.js.map +1 -1
- package/dist/recipes/ink.d.ts +11 -0
- package/dist/recipes/ink.js +13 -0
- package/dist/recipes/ink.js.map +1 -0
- package/dist/recipes/input.d.ts +55 -1
- package/dist/recipes/input.js +52 -2
- package/dist/recipes/input.js.map +1 -1
- package/dist/recipes/listItem.d.ts +18 -1
- package/dist/recipes/listItem.js +20 -1
- package/dist/recipes/listItem.js.map +1 -1
- package/dist/recipes/listbox.d.ts +22 -2
- package/dist/recipes/listbox.js +19 -1
- package/dist/recipes/listbox.js.map +1 -1
- package/dist/recipes/marquee.d.ts +26 -2
- package/dist/recipes/marquee.js +24 -1
- package/dist/recipes/marquee.js.map +1 -1
- package/dist/recipes/menu.d.ts +33 -1
- package/dist/recipes/menu.js +29 -1
- package/dist/recipes/menu.js.map +1 -1
- package/dist/recipes/metaRow.d.ts +11 -2
- package/dist/recipes/metaRow.js +7 -1
- package/dist/recipes/metaRow.js.map +1 -1
- package/dist/recipes/meter.d.ts +36 -2
- package/dist/recipes/meter.js +34 -1
- package/dist/recipes/meter.js.map +1 -1
- package/dist/recipes/motion.d.ts +9 -1
- package/dist/recipes/nebula.js +1 -1
- package/dist/recipes/numberRange.d.ts +44 -1
- package/dist/recipes/numberRange.js +36 -1
- package/dist/recipes/numberRange.js.map +1 -1
- package/dist/recipes/paper.d.ts +55 -2
- package/dist/recipes/paper.js +47 -4
- package/dist/recipes/paper.js.map +1 -1
- package/dist/recipes/progressBar.d.ts +8 -1
- package/dist/recipes/progressBar.js +7 -1
- package/dist/recipes/progressBar.js.map +1 -1
- package/dist/recipes/queue.d.ts +33 -1
- package/dist/recipes/queue.js +35 -1
- package/dist/recipes/queue.js.map +1 -1
- package/dist/recipes/radioGroup.d.ts +18 -1
- package/dist/recipes/radioGroup.js +21 -3
- package/dist/recipes/radioGroup.js.map +1 -1
- package/dist/recipes/scopeSwitcher.d.ts +38 -1
- package/dist/recipes/scopeSwitcher.js +40 -1
- package/dist/recipes/scopeSwitcher.js.map +1 -1
- package/dist/recipes/scrollArea.d.ts +12 -3
- package/dist/recipes/scrollArea.js +7 -1
- package/dist/recipes/scrollArea.js.map +1 -1
- package/dist/recipes/searchPalette.d.ts +48 -1
- package/dist/recipes/searchPalette.js +49 -1
- package/dist/recipes/searchPalette.js.map +1 -1
- package/dist/recipes/sectionHeader.d.ts +20 -2
- package/dist/recipes/sectionHeader.js +20 -3
- package/dist/recipes/sectionHeader.js.map +1 -1
- package/dist/recipes/segmentedControl.d.ts +8 -1
- package/dist/recipes/segmentedControl.js +7 -1
- package/dist/recipes/segmentedControl.js.map +1 -1
- package/dist/recipes/select.d.ts +57 -1
- package/dist/recipes/select.js +51 -1
- package/dist/recipes/select.js.map +1 -1
- package/dist/recipes/separator.d.ts +13 -2
- package/dist/recipes/separator.js +8 -2
- package/dist/recipes/separator.js.map +1 -1
- package/dist/recipes/sidebar.d.ts +128 -2
- package/dist/recipes/sidebar.js +125 -2
- package/dist/recipes/sidebar.js.map +1 -1
- package/dist/recipes/sky.d.ts +31 -1
- package/dist/recipes/sky.js +30 -1
- package/dist/recipes/sky.js.map +1 -1
- package/dist/recipes/slider.d.ts +15 -1
- package/dist/recipes/slider.js +14 -1
- package/dist/recipes/slider.js.map +1 -1
- package/dist/recipes/stat.d.ts +71 -1
- package/dist/recipes/stat.js +73 -3
- package/dist/recipes/stat.js.map +1 -1
- package/dist/recipes/switch.d.ts +10 -1
- package/dist/recipes/switch.js +9 -3
- package/dist/recipes/switch.js.map +1 -1
- package/dist/recipes/table.d.ts +63 -3
- package/dist/recipes/table.js +56 -2
- package/dist/recipes/table.js.map +1 -1
- package/dist/recipes/tail.d.ts +40 -5
- package/dist/recipes/tail.js +37 -5
- package/dist/recipes/tail.js.map +1 -1
- package/dist/recipes/text.d.ts +16 -3
- package/dist/recipes/text.js +8 -3
- package/dist/recipes/text.js.map +1 -1
- package/dist/recipes/textarea.d.ts +46 -1
- package/dist/recipes/textarea.js +41 -1
- package/dist/recipes/textarea.js.map +1 -1
- package/dist/recipes/tile.d.ts +23 -1
- package/dist/recipes/tile.js +19 -1
- package/dist/recipes/tile.js.map +1 -1
- package/dist/recipes/tooltip.d.ts +8 -1
- package/dist/recipes/tooltip.js +7 -1
- package/dist/recipes/tooltip.js.map +1 -1
- package/dist/recipes/topBar.d.ts +43 -1
- package/dist/recipes/topBar.js +44 -1
- package/dist/recipes/topBar.js.map +1 -1
- package/dist/recipes/trail.d.ts +55 -5
- package/dist/recipes/trail.js +47 -5
- package/dist/recipes/trail.js.map +1 -1
- package/dist/recipes/userMenu.d.ts +23 -1
- package/dist/recipes/userMenu.js +24 -1
- package/dist/recipes/userMenu.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { accordionAnatomy } from "./recipes/accordion.js";
|
|
2
|
+
import { featureAnatomy } from "./recipes/feature.js";
|
|
3
|
+
import { alertAnatomy } from "./recipes/alert.js";
|
|
4
|
+
import { bandAnatomy } from "./recipes/band.js";
|
|
5
|
+
import { barsAnatomy } from "./recipes/bars.js";
|
|
6
|
+
import { brandMarkAnatomy } from "./recipes/brandMark.js";
|
|
7
|
+
import { buttonAnatomy } from "./recipes/button.js";
|
|
8
|
+
import { cardHeaderAnatomy } from "./recipes/cardHeader.js";
|
|
9
|
+
import { checkboxAnatomy } from "./recipes/checkbox.js";
|
|
10
|
+
import { chipAnatomy } from "./recipes/chip.js";
|
|
11
|
+
import { codeEditorAnatomy } from "./recipes/codeEditor.js";
|
|
12
|
+
import { inputAnatomy } from "./recipes/input.js";
|
|
13
|
+
import { datePickerAnatomy } from "./recipes/datePicker.js";
|
|
14
|
+
import { dialogAnatomy } from "./recipes/dialog.js";
|
|
15
|
+
import { findingsAnatomy } from "./recipes/findings.js";
|
|
16
|
+
import { headingAnatomy } from "./recipes/heading.js";
|
|
17
|
+
import { heartbeatAnatomy } from "./recipes/heartbeat.js";
|
|
18
|
+
import { inkAnatomy } from "./recipes/ink.js";
|
|
19
|
+
import { listboxAnatomy } from "./recipes/listbox.js";
|
|
20
|
+
import { listItemAnatomy } from "./recipes/listItem.js";
|
|
21
|
+
import { marqueeAnatomy } from "./recipes/marquee.js";
|
|
22
|
+
import { menuAnatomy } from "./recipes/menu.js";
|
|
23
|
+
import { metaRowAnatomy } from "./recipes/metaRow.js";
|
|
24
|
+
import { meterAnatomy } from "./recipes/meter.js";
|
|
25
|
+
import { numberRangeAnatomy } from "./recipes/numberRange.js";
|
|
26
|
+
import { paperAnatomy } from "./recipes/paper.js";
|
|
27
|
+
import { progressBarAnatomy } from "./recipes/progressBar.js";
|
|
28
|
+
import { tableAnatomy } from "./recipes/table.js";
|
|
29
|
+
import { queueAnatomy } from "./recipes/queue.js";
|
|
30
|
+
import { radioGroupAnatomy } from "./recipes/radioGroup.js";
|
|
31
|
+
import { scopeSwitcherAnatomy } from "./recipes/scopeSwitcher.js";
|
|
32
|
+
import { scrollAreaAnatomy } from "./recipes/scrollArea.js";
|
|
33
|
+
import { searchPaletteAnatomy } from "./recipes/searchPalette.js";
|
|
34
|
+
import { sectionHeaderAnatomy } from "./recipes/sectionHeader.js";
|
|
35
|
+
import { segmentedControlAnatomy } from "./recipes/segmentedControl.js";
|
|
36
|
+
import { selectAnatomy } from "./recipes/select.js";
|
|
37
|
+
import { separatorAnatomy } from "./recipes/separator.js";
|
|
38
|
+
import { sidebarAnatomy } from "./recipes/sidebar.js";
|
|
39
|
+
import { skyAnatomy } from "./recipes/sky.js";
|
|
40
|
+
import { sliderAnatomy } from "./recipes/slider.js";
|
|
41
|
+
import { statAnatomy } from "./recipes/stat.js";
|
|
42
|
+
import { switchAnatomy } from "./recipes/switch.js";
|
|
43
|
+
import { tailAnatomy } from "./recipes/tail.js";
|
|
44
|
+
import { textAnatomy } from "./recipes/text.js";
|
|
45
|
+
import { textareaAnatomy } from "./recipes/textarea.js";
|
|
46
|
+
import { tileAnatomy } from "./recipes/tile.js";
|
|
47
|
+
import { tooltipAnatomy } from "./recipes/tooltip.js";
|
|
48
|
+
import { topBarAnatomy } from "./recipes/topBar.js";
|
|
49
|
+
import { trailAnatomy } from "./recipes/trail.js";
|
|
50
|
+
import { userMenuAnatomy } from "./recipes/userMenu.js";
|
|
51
|
+
//#region src/anatomies.ts
|
|
52
|
+
const anatomies = {
|
|
53
|
+
accordion: accordionAnatomy,
|
|
54
|
+
alert: alertAnatomy,
|
|
55
|
+
band: bandAnatomy,
|
|
56
|
+
bars: barsAnatomy,
|
|
57
|
+
"brand-mark": brandMarkAnatomy,
|
|
58
|
+
button: buttonAnatomy,
|
|
59
|
+
"card-header": cardHeaderAnatomy,
|
|
60
|
+
checkbox: checkboxAnatomy,
|
|
61
|
+
chip: chipAnatomy,
|
|
62
|
+
"code-editor": codeEditorAnatomy,
|
|
63
|
+
"date-picker": datePickerAnatomy,
|
|
64
|
+
dialog: dialogAnatomy,
|
|
65
|
+
feature: featureAnatomy,
|
|
66
|
+
findings: findingsAnatomy,
|
|
67
|
+
heading: headingAnatomy,
|
|
68
|
+
heartbeat: heartbeatAnatomy,
|
|
69
|
+
ink: inkAnatomy,
|
|
70
|
+
input: inputAnatomy,
|
|
71
|
+
"list-item": listItemAnatomy,
|
|
72
|
+
listbox: listboxAnatomy,
|
|
73
|
+
marquee: marqueeAnatomy,
|
|
74
|
+
menu: menuAnatomy,
|
|
75
|
+
"meta-row": metaRowAnatomy,
|
|
76
|
+
meter: meterAnatomy,
|
|
77
|
+
"number-range": numberRangeAnatomy,
|
|
78
|
+
paper: paperAnatomy,
|
|
79
|
+
"progress-bar": progressBarAnatomy,
|
|
80
|
+
queue: queueAnatomy,
|
|
81
|
+
"radio-group": radioGroupAnatomy,
|
|
82
|
+
"scope-switcher": scopeSwitcherAnatomy,
|
|
83
|
+
"scroll-area": scrollAreaAnatomy,
|
|
84
|
+
"search-palette": searchPaletteAnatomy,
|
|
85
|
+
"section-header": sectionHeaderAnatomy,
|
|
86
|
+
"segmented-control": segmentedControlAnatomy,
|
|
87
|
+
select: selectAnatomy,
|
|
88
|
+
separator: separatorAnatomy,
|
|
89
|
+
sidebar: sidebarAnatomy,
|
|
90
|
+
sky: skyAnatomy,
|
|
91
|
+
slider: sliderAnatomy,
|
|
92
|
+
stat: statAnatomy,
|
|
93
|
+
switch: switchAnatomy,
|
|
94
|
+
table: tableAnatomy,
|
|
95
|
+
tail: tailAnatomy,
|
|
96
|
+
text: textAnatomy,
|
|
97
|
+
textarea: textareaAnatomy,
|
|
98
|
+
tile: tileAnatomy,
|
|
99
|
+
tooltip: tooltipAnatomy,
|
|
100
|
+
"top-bar": topBarAnatomy,
|
|
101
|
+
trail: trailAnatomy,
|
|
102
|
+
"user-menu": userMenuAnatomy
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { anatomies };
|
|
106
|
+
|
|
107
|
+
//# sourceMappingURL=anatomies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomies.js","names":[],"sources":["../src/anatomies.ts"],"sourcesContent":["import type { PartsOf } from './anatomy'\nimport { accordionAnatomy } from './recipes/accordion'\nimport { alertAnatomy } from './recipes/alert'\nimport { bandAnatomy } from './recipes/band'\nimport { barsAnatomy } from './recipes/bars'\nimport { brandMarkAnatomy } from './recipes/brandMark'\nimport { buttonAnatomy } from './recipes/button'\nimport { cardHeaderAnatomy } from './recipes/cardHeader'\nimport { checkboxAnatomy } from './recipes/checkbox'\nimport { chipAnatomy } from './recipes/chip'\nimport { codeEditorAnatomy } from './recipes/codeEditor'\nimport { datePickerAnatomy } from './recipes/datePicker'\nimport { dialogAnatomy } from './recipes/dialog'\nimport { featureAnatomy } from './recipes/feature'\nimport { findingsAnatomy } from './recipes/findings'\nimport { headingAnatomy } from './recipes/heading'\nimport { heartbeatAnatomy } from './recipes/heartbeat'\nimport { inkAnatomy } from './recipes/ink'\nimport { inputAnatomy } from './recipes/input'\nimport { listboxAnatomy } from './recipes/listbox'\nimport { listItemAnatomy } from './recipes/listItem'\nimport { marqueeAnatomy } from './recipes/marquee'\nimport { menuAnatomy } from './recipes/menu'\nimport { metaRowAnatomy } from './recipes/metaRow'\nimport { meterAnatomy } from './recipes/meter'\nimport { numberRangeAnatomy } from './recipes/numberRange'\nimport { paperAnatomy } from './recipes/paper'\nimport { progressBarAnatomy } from './recipes/progressBar'\nimport { queueAnatomy } from './recipes/queue'\nimport { radioGroupAnatomy } from './recipes/radioGroup'\nimport { scopeSwitcherAnatomy } from './recipes/scopeSwitcher'\nimport { scrollAreaAnatomy } from './recipes/scrollArea'\nimport { searchPaletteAnatomy } from './recipes/searchPalette'\nimport { sectionHeaderAnatomy } from './recipes/sectionHeader'\nimport { segmentedControlAnatomy } from './recipes/segmentedControl'\nimport { selectAnatomy } from './recipes/select'\nimport { separatorAnatomy } from './recipes/separator'\nimport { sidebarAnatomy } from './recipes/sidebar'\nimport { skyAnatomy } from './recipes/sky'\nimport { sliderAnatomy } from './recipes/slider'\nimport { statAnatomy } from './recipes/stat'\nimport { switchAnatomy } from './recipes/switch'\nimport { tableAnatomy } from './recipes/table'\nimport { tailAnatomy } from './recipes/tail'\nimport { textAnatomy } from './recipes/text'\nimport { textareaAnatomy } from './recipes/textarea'\nimport { tileAnatomy } from './recipes/tile'\nimport { tooltipAnatomy } from './recipes/tooltip'\nimport { topBarAnatomy } from './recipes/topBar'\nimport { trailAnatomy } from './recipes/trail'\nimport { userMenuAnatomy } from './recipes/userMenu'\n\nconst anatomies = {\n accordion: accordionAnatomy,\n alert: alertAnatomy,\n band: bandAnatomy,\n bars: barsAnatomy,\n 'brand-mark': brandMarkAnatomy,\n button: buttonAnatomy,\n 'card-header': cardHeaderAnatomy,\n checkbox: checkboxAnatomy,\n chip: chipAnatomy,\n 'code-editor': codeEditorAnatomy,\n 'date-picker': datePickerAnatomy,\n dialog: dialogAnatomy,\n feature: featureAnatomy,\n findings: findingsAnatomy,\n heading: headingAnatomy,\n heartbeat: heartbeatAnatomy,\n ink: inkAnatomy,\n input: inputAnatomy,\n 'list-item': listItemAnatomy,\n listbox: listboxAnatomy,\n marquee: marqueeAnatomy,\n menu: menuAnatomy,\n 'meta-row': metaRowAnatomy,\n meter: meterAnatomy,\n 'number-range': numberRangeAnatomy,\n paper: paperAnatomy,\n 'progress-bar': progressBarAnatomy,\n queue: queueAnatomy,\n 'radio-group': radioGroupAnatomy,\n 'scope-switcher': scopeSwitcherAnatomy,\n 'scroll-area': scrollAreaAnatomy,\n 'search-palette': searchPaletteAnatomy,\n 'section-header': sectionHeaderAnatomy,\n 'segmented-control': segmentedControlAnatomy,\n select: selectAnatomy,\n separator: separatorAnatomy,\n sidebar: sidebarAnatomy,\n sky: skyAnatomy,\n slider: sliderAnatomy,\n stat: statAnatomy,\n switch: switchAnatomy,\n table: tableAnatomy,\n tail: tailAnatomy,\n text: textAnatomy,\n textarea: textareaAnatomy,\n tile: tileAnatomy,\n tooltip: tooltipAnatomy,\n 'top-bar': topBarAnatomy,\n trail: trailAnatomy,\n 'user-menu': userMenuAnatomy,\n} as const\n\ntype AnyPart = PartsOf<(typeof anatomies)[keyof typeof anatomies]>\n\nexport { type AnyPart, anatomies }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDA,MAAM,YAAY;CAChB,WAAW;CACX,OAAO;CACP,MAAM;CACN,MAAM;CACN,cAAc;CACd,QAAQ;CACR,eAAe;CACf,UAAU;CACV,MAAM;CACN,eAAe;CACf,eAAe;CACf,QAAQ;CACR,SAAS;CACT,UAAU;CACV,SAAS;CACT,WAAW;CACX,KAAK;CACL,OAAO;CACP,aAAa;CACb,SAAS;CACT,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,gBAAgB;CAChB,OAAO;CACP,gBAAgB;CAChB,OAAO;CACP,eAAe;CACf,kBAAkB;CAClB,eAAe;CACf,kBAAkB;CAClB,kBAAkB;CAClB,qBAAqB;CACrB,QAAQ;CACR,WAAW;CACX,SAAS;CACT,KAAK;CACL,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,OAAO;CACP,MAAM;CACN,MAAM;CACN,UAAU;CACV,MAAM;CACN,SAAS;CACT,WAAW;CACX,OAAO;CACP,aAAa;AACf"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/anatomy.d.ts
|
|
2
|
+
type Recipe = (...args: never[]) => string;
|
|
3
|
+
interface Part {
|
|
4
|
+
part: string;
|
|
5
|
+
recipe: Recipe;
|
|
6
|
+
required: boolean;
|
|
7
|
+
}
|
|
8
|
+
type Anatomy = Record<string, Part>;
|
|
9
|
+
declare const anatomy: <const Shape extends Anatomy>(parts: Shape) => Shape;
|
|
10
|
+
type PartsOf<Shape> = Shape extends Anatomy ? Shape[keyof Shape]['part'] : never;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { type Anatomy, type Part, type PartsOf, type Recipe, anatomy };
|
|
13
|
+
//# sourceMappingURL=anatomy.d.ts.map
|
package/dist/anatomy.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anatomy.js","names":[],"sources":["../src/anatomy.ts"],"sourcesContent":["type Recipe = (...args: never[]) => string\n\ninterface Part {\n part: string\n recipe: Recipe\n required: boolean\n}\n\ntype Anatomy = Record<string, Part>\n\nconst anatomy = <const Shape extends Anatomy>(parts: Shape): Shape => parts\n\ntype PartsOf<Shape> = Shape extends Anatomy ? Shape[keyof Shape]['part'] : never\n\nexport { type Anatomy, type Part, type PartsOf, type Recipe, anatomy }\n"],"mappings":";AAUA,MAAM,WAAwC,UAAwB"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
//#region src/cn.generated.ts
|
|
2
|
+
const twScales = {
|
|
3
|
+
animate: [
|
|
4
|
+
"tf-blend-in",
|
|
5
|
+
"tf-arrive",
|
|
6
|
+
"tf-depart",
|
|
7
|
+
"tf-in",
|
|
8
|
+
"tf-out",
|
|
9
|
+
"tf-chip-in",
|
|
10
|
+
"tf-chip-out",
|
|
11
|
+
"tf-chip-out-auto",
|
|
12
|
+
"tf-rewind",
|
|
13
|
+
"tf-lift",
|
|
14
|
+
"tf-lift-rewind",
|
|
15
|
+
"tf-drawer",
|
|
16
|
+
"tf-drawer-rewind",
|
|
17
|
+
"tf-expand",
|
|
18
|
+
"tf-collapse",
|
|
19
|
+
"tf-shake",
|
|
20
|
+
"tf-pop",
|
|
21
|
+
"tf-nudge",
|
|
22
|
+
"tf-fade-in",
|
|
23
|
+
"tf-fade-out",
|
|
24
|
+
"tf-fade-rewind",
|
|
25
|
+
"tf-rise",
|
|
26
|
+
"tf-draw",
|
|
27
|
+
"tf-page",
|
|
28
|
+
"tf-page-again"
|
|
29
|
+
],
|
|
30
|
+
blur: [
|
|
31
|
+
"tf-panel",
|
|
32
|
+
"tf-glass",
|
|
33
|
+
"tf-scrim",
|
|
34
|
+
"tf-cloud-md",
|
|
35
|
+
"tf-cloud-tight",
|
|
36
|
+
"tf-cloud-wide"
|
|
37
|
+
],
|
|
38
|
+
color: [
|
|
39
|
+
"tf-accent",
|
|
40
|
+
"tf-accent-hi",
|
|
41
|
+
"tf-accent-surface",
|
|
42
|
+
"tf-accent-deep",
|
|
43
|
+
"tf-on-accent",
|
|
44
|
+
"tf-accent-tint",
|
|
45
|
+
"tf-accent-edge",
|
|
46
|
+
"tf-bg",
|
|
47
|
+
"tf-surface",
|
|
48
|
+
"tf-panel",
|
|
49
|
+
"tf-panel-2",
|
|
50
|
+
"tf-panel-hi",
|
|
51
|
+
"tf-glass",
|
|
52
|
+
"tf-sunken",
|
|
53
|
+
"tf-sunken-hi",
|
|
54
|
+
"tf-sunken-quiet",
|
|
55
|
+
"tf-control",
|
|
56
|
+
"tf-control-hi",
|
|
57
|
+
"tf-surface-hi",
|
|
58
|
+
"tf-surface-quiet",
|
|
59
|
+
"tf-shade-under",
|
|
60
|
+
"tf-shade-deep",
|
|
61
|
+
"tf-scrim",
|
|
62
|
+
"tf-line",
|
|
63
|
+
"tf-line-2",
|
|
64
|
+
"tf-line-hi",
|
|
65
|
+
"tf-rule",
|
|
66
|
+
"tf-fg",
|
|
67
|
+
"tf-fg-held",
|
|
68
|
+
"tf-muted",
|
|
69
|
+
"tf-success",
|
|
70
|
+
"tf-success-hi",
|
|
71
|
+
"tf-warning",
|
|
72
|
+
"tf-warning-hi",
|
|
73
|
+
"tf-info",
|
|
74
|
+
"tf-info-hi",
|
|
75
|
+
"tf-danger",
|
|
76
|
+
"tf-danger-hi",
|
|
77
|
+
"tf-on-semantic",
|
|
78
|
+
"tf-success-tint",
|
|
79
|
+
"tf-success-edge",
|
|
80
|
+
"tf-warning-tint",
|
|
81
|
+
"tf-warning-edge",
|
|
82
|
+
"tf-info-tint",
|
|
83
|
+
"tf-info-edge",
|
|
84
|
+
"tf-danger-tint",
|
|
85
|
+
"tf-danger-wash",
|
|
86
|
+
"tf-danger-edge"
|
|
87
|
+
],
|
|
88
|
+
container: [
|
|
89
|
+
"tf-panel",
|
|
90
|
+
"tf-list",
|
|
91
|
+
"tf-placard",
|
|
92
|
+
"tf-measure",
|
|
93
|
+
"tf-page",
|
|
94
|
+
"tf-canvas"
|
|
95
|
+
],
|
|
96
|
+
ease: [
|
|
97
|
+
"tf",
|
|
98
|
+
"tf-spring",
|
|
99
|
+
"tf-glide",
|
|
100
|
+
"tf-settle"
|
|
101
|
+
],
|
|
102
|
+
font: ["tf-display", "tf-body"],
|
|
103
|
+
radius: [
|
|
104
|
+
"tf-none",
|
|
105
|
+
"tf-inline",
|
|
106
|
+
"tf-control",
|
|
107
|
+
"tf-block",
|
|
108
|
+
"tf-card",
|
|
109
|
+
"tf-pill"
|
|
110
|
+
],
|
|
111
|
+
shadow: ["tf-float", "tf-mark"],
|
|
112
|
+
spacing: [
|
|
113
|
+
"tf-hairline",
|
|
114
|
+
"tf-control-2xs",
|
|
115
|
+
"tf-control-xs",
|
|
116
|
+
"tf-control-sm",
|
|
117
|
+
"tf-control-md",
|
|
118
|
+
"tf-control-lg",
|
|
119
|
+
"tf-row",
|
|
120
|
+
"tf-chip-sm",
|
|
121
|
+
"tf-target",
|
|
122
|
+
"tf-menu",
|
|
123
|
+
"tf-sidebar",
|
|
124
|
+
"tf-rail",
|
|
125
|
+
"tf-icon-2xs",
|
|
126
|
+
"tf-icon-xs",
|
|
127
|
+
"tf-icon-sm",
|
|
128
|
+
"tf-icon-md",
|
|
129
|
+
"tf-icon-lg",
|
|
130
|
+
"tf-icon-solo-xs",
|
|
131
|
+
"tf-icon-solo-sm",
|
|
132
|
+
"tf-icon-solo-md",
|
|
133
|
+
"tf-icon-solo-lg",
|
|
134
|
+
"tf-mark-glyph",
|
|
135
|
+
"tf-mark-dot",
|
|
136
|
+
"tf-mark-track",
|
|
137
|
+
"tf-mark-inset"
|
|
138
|
+
],
|
|
139
|
+
text: [
|
|
140
|
+
"tf-numeral",
|
|
141
|
+
"tf-display",
|
|
142
|
+
"tf-h1",
|
|
143
|
+
"tf-h2",
|
|
144
|
+
"tf-h3",
|
|
145
|
+
"tf-h4",
|
|
146
|
+
"tf-figure",
|
|
147
|
+
"tf-unit",
|
|
148
|
+
"tf-lead",
|
|
149
|
+
"tf-body",
|
|
150
|
+
"tf-body-sm",
|
|
151
|
+
"tf-caption",
|
|
152
|
+
"tf-caption-sm"
|
|
153
|
+
],
|
|
154
|
+
tracking: ["tf-tight", "tf-eyebrow"]
|
|
155
|
+
};
|
|
156
|
+
const durationSteps = [
|
|
157
|
+
"tf-1",
|
|
158
|
+
"tf-2",
|
|
159
|
+
"tf-3",
|
|
160
|
+
"tf-4"
|
|
161
|
+
];
|
|
162
|
+
const zSteps = [
|
|
163
|
+
"tf-raised",
|
|
164
|
+
"tf-dropdown",
|
|
165
|
+
"tf-tooltip",
|
|
166
|
+
"tf-modal",
|
|
167
|
+
"tf-toast"
|
|
168
|
+
];
|
|
169
|
+
const utilityFamilies = {
|
|
170
|
+
"tf-cloud-blur": [
|
|
171
|
+
"tf-cloud-md",
|
|
172
|
+
"tf-cloud-tight",
|
|
173
|
+
"tf-cloud-wide"
|
|
174
|
+
],
|
|
175
|
+
"tf-cloud-tone": [
|
|
176
|
+
"tf-cloud-brand",
|
|
177
|
+
"tf-cloud-ink",
|
|
178
|
+
"tf-cloud-quiet"
|
|
179
|
+
],
|
|
180
|
+
"tf-cloud-weather": [
|
|
181
|
+
"tf-clouded",
|
|
182
|
+
"tf-clouded-lifted",
|
|
183
|
+
"tf-clouding",
|
|
184
|
+
"tf-cloud-hidden"
|
|
185
|
+
],
|
|
186
|
+
"tf-edge": [
|
|
187
|
+
"tf-edge-lit",
|
|
188
|
+
"tf-edge-milk",
|
|
189
|
+
"tf-edge-plain",
|
|
190
|
+
"tf-edge-sweep"
|
|
191
|
+
],
|
|
192
|
+
"tf-glass-plate": ["tf-glass-plate", "tf-glass-plate-lit"],
|
|
193
|
+
"tf-icons": ["tf-icons", "tf-icons-solo"],
|
|
194
|
+
"tf-label": [
|
|
195
|
+
"tf-label-inked",
|
|
196
|
+
"tf-label-lit",
|
|
197
|
+
"tf-label-quiet"
|
|
198
|
+
],
|
|
199
|
+
"tf-lit": ["tf-lit-inside", "tf-lit-rest"],
|
|
200
|
+
"tf-mark-tone": ["tf-mark-failed", "tf-mark-lit"],
|
|
201
|
+
"tf-moves": ["tf-moves-glide", "tf-moves-spring"],
|
|
202
|
+
"tf-plated": ["tf-plated", "tf-plated-quiet"],
|
|
203
|
+
"tf-rule": [
|
|
204
|
+
"tf-rule",
|
|
205
|
+
"tf-rule-fall",
|
|
206
|
+
"tf-rule-filled",
|
|
207
|
+
"tf-rule-filled-fall",
|
|
208
|
+
"tf-rule-quiet",
|
|
209
|
+
"tf-rule-quiet-fall"
|
|
210
|
+
],
|
|
211
|
+
"tf-settled": ["tf-settled", "tf-settled-quiet"],
|
|
212
|
+
"tf-slides": ["tf-slides-settle", "tf-slides-spring"]
|
|
213
|
+
};
|
|
214
|
+
//#endregion
|
|
215
|
+
export { durationSteps, twScales, utilityFamilies, zSteps };
|
|
216
|
+
|
|
217
|
+
//# sourceMappingURL=cn.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.generated.js","names":[],"sources":["../src/cn.generated.ts"],"sourcesContent":["const twScales = {\n animate: ['tf-blend-in', 'tf-arrive', 'tf-depart', 'tf-in', 'tf-out', 'tf-chip-in', 'tf-chip-out', 'tf-chip-out-auto', 'tf-rewind', 'tf-lift', 'tf-lift-rewind', 'tf-drawer', 'tf-drawer-rewind', 'tf-expand', 'tf-collapse', 'tf-shake', 'tf-pop', 'tf-nudge', 'tf-fade-in', 'tf-fade-out', 'tf-fade-rewind', 'tf-rise', 'tf-draw', 'tf-page', 'tf-page-again'],\n blur: ['tf-panel', 'tf-glass', 'tf-scrim', 'tf-cloud-md', 'tf-cloud-tight', 'tf-cloud-wide'],\n color: ['tf-accent', 'tf-accent-hi', 'tf-accent-surface', 'tf-accent-deep', 'tf-on-accent', 'tf-accent-tint', 'tf-accent-edge', 'tf-bg', 'tf-surface', 'tf-panel', 'tf-panel-2', 'tf-panel-hi', 'tf-glass', 'tf-sunken', 'tf-sunken-hi', 'tf-sunken-quiet', 'tf-control', 'tf-control-hi', 'tf-surface-hi', 'tf-surface-quiet', 'tf-shade-under', 'tf-shade-deep', 'tf-scrim', 'tf-line', 'tf-line-2', 'tf-line-hi', 'tf-rule', 'tf-fg', 'tf-fg-held', 'tf-muted', 'tf-success', 'tf-success-hi', 'tf-warning', 'tf-warning-hi', 'tf-info', 'tf-info-hi', 'tf-danger', 'tf-danger-hi', 'tf-on-semantic', 'tf-success-tint', 'tf-success-edge', 'tf-warning-tint', 'tf-warning-edge', 'tf-info-tint', 'tf-info-edge', 'tf-danger-tint', 'tf-danger-wash', 'tf-danger-edge'],\n container: ['tf-panel', 'tf-list', 'tf-placard', 'tf-measure', 'tf-page', 'tf-canvas'],\n ease: ['tf', 'tf-spring', 'tf-glide', 'tf-settle'],\n font: ['tf-display', 'tf-body'],\n radius: ['tf-none', 'tf-inline', 'tf-control', 'tf-block', 'tf-card', 'tf-pill'],\n shadow: ['tf-float', 'tf-mark'],\n spacing: ['tf-hairline', 'tf-control-2xs', 'tf-control-xs', 'tf-control-sm', 'tf-control-md', 'tf-control-lg', 'tf-row', 'tf-chip-sm', 'tf-target', 'tf-menu', 'tf-sidebar', 'tf-rail', 'tf-icon-2xs', 'tf-icon-xs', 'tf-icon-sm', 'tf-icon-md', 'tf-icon-lg', 'tf-icon-solo-xs', 'tf-icon-solo-sm', 'tf-icon-solo-md', 'tf-icon-solo-lg', 'tf-mark-glyph', 'tf-mark-dot', 'tf-mark-track', 'tf-mark-inset'],\n text: ['tf-numeral', 'tf-display', 'tf-h1', 'tf-h2', 'tf-h3', 'tf-h4', 'tf-figure', 'tf-unit', 'tf-lead', 'tf-body', 'tf-body-sm', 'tf-caption', 'tf-caption-sm'],\n tracking: ['tf-tight', 'tf-eyebrow'],\n}\n\nconst durationSteps = ['tf-1', 'tf-2', 'tf-3', 'tf-4']\n\nconst zSteps = ['tf-raised', 'tf-dropdown', 'tf-tooltip', 'tf-modal', 'tf-toast']\n\nconst utilityFamilies = {\n 'tf-cloud-blur': ['tf-cloud-md', 'tf-cloud-tight', 'tf-cloud-wide'],\n 'tf-cloud-tone': ['tf-cloud-brand', 'tf-cloud-ink', 'tf-cloud-quiet'],\n 'tf-cloud-weather': ['tf-clouded', 'tf-clouded-lifted', 'tf-clouding', 'tf-cloud-hidden'],\n 'tf-edge': ['tf-edge-lit', 'tf-edge-milk', 'tf-edge-plain', 'tf-edge-sweep'],\n 'tf-glass-plate': ['tf-glass-plate', 'tf-glass-plate-lit'],\n 'tf-icons': ['tf-icons', 'tf-icons-solo'],\n 'tf-label': ['tf-label-inked', 'tf-label-lit', 'tf-label-quiet'],\n 'tf-lit': ['tf-lit-inside', 'tf-lit-rest'],\n 'tf-mark-tone': ['tf-mark-failed', 'tf-mark-lit'],\n 'tf-moves': ['tf-moves-glide', 'tf-moves-spring'],\n 'tf-plated': ['tf-plated', 'tf-plated-quiet'],\n 'tf-rule': ['tf-rule', 'tf-rule-fall', 'tf-rule-filled', 'tf-rule-filled-fall', 'tf-rule-quiet', 'tf-rule-quiet-fall'],\n 'tf-settled': ['tf-settled', 'tf-settled-quiet'],\n 'tf-slides': ['tf-slides-settle', 'tf-slides-spring'],\n}\n\nexport { durationSteps, twScales, utilityFamilies, zSteps }\n"],"mappings":";AAAA,MAAM,WAAW;CACf,SAAS;EAAC;EAAe;EAAa;EAAa;EAAS;EAAU;EAAc;EAAe;EAAoB;EAAa;EAAW;EAAkB;EAAa;EAAoB;EAAa;EAAe;EAAY;EAAU;EAAY;EAAc;EAAe;EAAkB;EAAW;EAAW;EAAW;CAAe;CAC/V,MAAM;EAAC;EAAY;EAAY;EAAY;EAAe;EAAkB;CAAe;CAC3F,OAAO;EAAC;EAAa;EAAgB;EAAqB;EAAkB;EAAgB;EAAkB;EAAkB;EAAS;EAAc;EAAY;EAAc;EAAe;EAAY;EAAa;EAAgB;EAAmB;EAAc;EAAiB;EAAiB;EAAoB;EAAkB;EAAiB;EAAY;EAAW;EAAa;EAAc;EAAW;EAAS;EAAc;EAAY;EAAc;EAAiB;EAAc;EAAiB;EAAW;EAAc;EAAa;EAAgB;EAAkB;EAAmB;EAAmB;EAAmB;EAAmB;EAAgB;EAAgB;EAAkB;EAAkB;CAAgB;CACzuB,WAAW;EAAC;EAAY;EAAW;EAAc;EAAc;EAAW;CAAW;CACrF,MAAM;EAAC;EAAM;EAAa;EAAY;CAAW;CACjD,MAAM,CAAC,cAAc,SAAS;CAC9B,QAAQ;EAAC;EAAW;EAAa;EAAc;EAAY;EAAW;CAAS;CAC/E,QAAQ,CAAC,YAAY,SAAS;CAC9B,SAAS;EAAC;EAAe;EAAkB;EAAiB;EAAiB;EAAiB;EAAiB;EAAU;EAAc;EAAa;EAAW;EAAc;EAAW;EAAe;EAAc;EAAc;EAAc;EAAc;EAAmB;EAAmB;EAAmB;EAAmB;EAAiB;EAAe;EAAiB;CAAe;CAC3Y,MAAM;EAAC;EAAc;EAAc;EAAS;EAAS;EAAS;EAAS;EAAa;EAAW;EAAW;EAAW;EAAc;EAAc;CAAe;CAChK,UAAU,CAAC,YAAY,YAAY;AACrC;AAEA,MAAM,gBAAgB;CAAC;CAAQ;CAAQ;CAAQ;AAAM;AAErD,MAAM,SAAS;CAAC;CAAa;CAAe;CAAc;CAAY;AAAU;AAEhF,MAAM,kBAAkB;CACtB,iBAAiB;EAAC;EAAe;EAAkB;CAAe;CAClE,iBAAiB;EAAC;EAAkB;EAAgB;CAAgB;CACpE,oBAAoB;EAAC;EAAc;EAAqB;EAAe;CAAiB;CACxF,WAAW;EAAC;EAAe;EAAgB;EAAiB;CAAe;CAC3E,kBAAkB,CAAC,kBAAkB,oBAAoB;CACzD,YAAY,CAAC,YAAY,eAAe;CACxC,YAAY;EAAC;EAAkB;EAAgB;CAAgB;CAC/D,UAAU,CAAC,iBAAiB,aAAa;CACzC,gBAAgB,CAAC,kBAAkB,aAAa;CAChD,YAAY,CAAC,kBAAkB,iBAAiB;CAChD,aAAa,CAAC,aAAa,iBAAiB;CAC5C,WAAW;EAAC;EAAW;EAAgB;EAAkB;EAAuB;EAAiB;CAAoB;CACrH,cAAc,CAAC,cAAc,kBAAkB;CAC/C,aAAa,CAAC,oBAAoB,kBAAkB;AACtD"}
|
package/dist/cn.js
CHANGED
|
@@ -1,177 +1,21 @@
|
|
|
1
|
+
import { durationSteps, twScales, utilityFamilies, zSteps } from "./cn.generated.js";
|
|
1
2
|
import { clsx } from "clsx";
|
|
2
3
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
3
4
|
//#region src/cn.ts
|
|
4
|
-
const { color,
|
|
5
|
-
|
|
6
|
-
"tf-arrive",
|
|
7
|
-
"tf-blend-in",
|
|
8
|
-
"tf-in",
|
|
9
|
-
"tf-out",
|
|
10
|
-
"tf-chip-in",
|
|
11
|
-
"tf-chip-out",
|
|
12
|
-
"tf-rewind",
|
|
13
|
-
"tf-lift",
|
|
14
|
-
"tf-lift-rewind",
|
|
15
|
-
"tf-expand",
|
|
16
|
-
"tf-collapse",
|
|
17
|
-
"tf-depart",
|
|
18
|
-
"tf-shake",
|
|
19
|
-
"tf-pop",
|
|
20
|
-
"tf-nudge",
|
|
21
|
-
"tf-fade-in",
|
|
22
|
-
"tf-fade-out",
|
|
23
|
-
"tf-fade-rewind",
|
|
24
|
-
"tf-page",
|
|
25
|
-
"tf-page-again",
|
|
26
|
-
"tf-rise",
|
|
27
|
-
"tf-draw"
|
|
28
|
-
],
|
|
29
|
-
blur: [
|
|
30
|
-
"tf-panel",
|
|
31
|
-
"tf-glass",
|
|
32
|
-
"tf-scrim",
|
|
33
|
-
"tf-cloud-md",
|
|
34
|
-
"tf-cloud-tight",
|
|
35
|
-
"tf-cloud-wide"
|
|
36
|
-
],
|
|
37
|
-
color: [
|
|
38
|
-
"tf-accent",
|
|
39
|
-
"tf-accent-hi",
|
|
40
|
-
"tf-accent-deep",
|
|
41
|
-
"tf-accent-surface",
|
|
42
|
-
"tf-accent-tint",
|
|
43
|
-
"tf-accent-edge",
|
|
44
|
-
"tf-on-accent",
|
|
45
|
-
"tf-bg",
|
|
46
|
-
"tf-surface",
|
|
47
|
-
"tf-surface-hi",
|
|
48
|
-
"tf-surface-quiet",
|
|
49
|
-
"tf-sunken",
|
|
50
|
-
"tf-sunken-hi",
|
|
51
|
-
"tf-sunken-quiet",
|
|
52
|
-
"tf-control",
|
|
53
|
-
"tf-control-hi",
|
|
54
|
-
"tf-panel",
|
|
55
|
-
"tf-panel-2",
|
|
56
|
-
"tf-panel-hi",
|
|
57
|
-
"tf-glass",
|
|
58
|
-
"tf-shade-under",
|
|
59
|
-
"tf-shade-deep",
|
|
60
|
-
"tf-scrim",
|
|
61
|
-
"tf-line",
|
|
62
|
-
"tf-line-2",
|
|
63
|
-
"tf-line-hi",
|
|
64
|
-
"tf-rule",
|
|
65
|
-
"tf-fg",
|
|
66
|
-
"tf-fg-held",
|
|
67
|
-
"tf-muted",
|
|
68
|
-
"tf-success",
|
|
69
|
-
"tf-success-hi",
|
|
70
|
-
"tf-warning",
|
|
71
|
-
"tf-warning-hi",
|
|
72
|
-
"tf-info",
|
|
73
|
-
"tf-info-hi",
|
|
74
|
-
"tf-danger",
|
|
75
|
-
"tf-danger-hi",
|
|
76
|
-
"tf-danger-wash",
|
|
77
|
-
"tf-success-tint",
|
|
78
|
-
"tf-success-edge",
|
|
79
|
-
"tf-warning-tint",
|
|
80
|
-
"tf-warning-edge",
|
|
81
|
-
"tf-info-tint",
|
|
82
|
-
"tf-info-edge",
|
|
83
|
-
"tf-danger-tint",
|
|
84
|
-
"tf-danger-edge",
|
|
85
|
-
"tf-on-semantic"
|
|
86
|
-
],
|
|
87
|
-
container: [
|
|
88
|
-
"tf-panel",
|
|
89
|
-
"tf-placard",
|
|
90
|
-
"tf-measure",
|
|
91
|
-
"tf-page",
|
|
92
|
-
"tf-canvas"
|
|
93
|
-
],
|
|
94
|
-
duration: [
|
|
95
|
-
"tf-1",
|
|
96
|
-
"tf-2",
|
|
97
|
-
"tf-3",
|
|
98
|
-
"tf-4"
|
|
99
|
-
],
|
|
100
|
-
ease: [
|
|
101
|
-
"tf",
|
|
102
|
-
"tf-spring",
|
|
103
|
-
"tf-glide",
|
|
104
|
-
"tf-settle"
|
|
105
|
-
],
|
|
106
|
-
font: ["tf-display", "tf-body"],
|
|
107
|
-
radius: [
|
|
108
|
-
"tf-none",
|
|
109
|
-
"tf-inline",
|
|
110
|
-
"tf-control",
|
|
111
|
-
"tf-block",
|
|
112
|
-
"tf-card",
|
|
113
|
-
"tf-pill"
|
|
114
|
-
],
|
|
115
|
-
shadow: ["tf-float", "tf-mark"],
|
|
116
|
-
spacing: [
|
|
117
|
-
"tf-hairline",
|
|
118
|
-
"tf-control-2xs",
|
|
119
|
-
"tf-control-xs",
|
|
120
|
-
"tf-control-sm",
|
|
121
|
-
"tf-control-md",
|
|
122
|
-
"tf-control-lg",
|
|
123
|
-
"tf-row",
|
|
124
|
-
"tf-chip-sm",
|
|
125
|
-
"tf-target",
|
|
126
|
-
"tf-menu",
|
|
127
|
-
"tf-sidebar",
|
|
128
|
-
"tf-rail",
|
|
129
|
-
"tf-icon-2xs",
|
|
130
|
-
"tf-icon-xs",
|
|
131
|
-
"tf-icon-sm",
|
|
132
|
-
"tf-icon-md",
|
|
133
|
-
"tf-icon-lg",
|
|
134
|
-
"tf-icon-solo-xs",
|
|
135
|
-
"tf-icon-solo-sm",
|
|
136
|
-
"tf-icon-solo-md",
|
|
137
|
-
"tf-icon-solo-lg",
|
|
138
|
-
"tf-mark-glyph",
|
|
139
|
-
"tf-mark-dot",
|
|
140
|
-
"tf-mark-track",
|
|
141
|
-
"tf-mark-inset"
|
|
142
|
-
],
|
|
143
|
-
text: [
|
|
144
|
-
"tf-numeral",
|
|
145
|
-
"tf-display",
|
|
146
|
-
"tf-h1",
|
|
147
|
-
"tf-h2",
|
|
148
|
-
"tf-h3",
|
|
149
|
-
"tf-h4",
|
|
150
|
-
"tf-figure",
|
|
151
|
-
"tf-unit",
|
|
152
|
-
"tf-lead",
|
|
153
|
-
"tf-body",
|
|
154
|
-
"tf-body-sm",
|
|
155
|
-
"tf-caption",
|
|
156
|
-
"tf-caption-sm"
|
|
157
|
-
],
|
|
158
|
-
tracking: ["tf-tight", "tf-eyebrow"]
|
|
159
|
-
};
|
|
5
|
+
const { color, ...themeScales } = twScales;
|
|
6
|
+
const zGroup = "z";
|
|
160
7
|
const twMerge = extendTailwindMerge({ extend: {
|
|
161
8
|
classGroups: {
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
],
|
|
169
|
-
duration: [{ duration: duration ?? [] }],
|
|
170
|
-
"text-color": [{ text: ["tf-blend"] }]
|
|
9
|
+
...utilityFamilies,
|
|
10
|
+
"bg-image": [{ bg: ["tf-blend", "tf-blend-rise"] }],
|
|
11
|
+
"blend-base": [{ blend: color }],
|
|
12
|
+
duration: [{ duration: durationSteps }],
|
|
13
|
+
"text-color": [{ text: ["tf-blend"] }],
|
|
14
|
+
[zGroup]: [{ [zGroup]: zSteps }]
|
|
171
15
|
},
|
|
172
16
|
theme: {
|
|
173
17
|
...themeScales,
|
|
174
|
-
color
|
|
18
|
+
color
|
|
175
19
|
}
|
|
176
20
|
} });
|
|
177
21
|
const cn = (...inputs) => twMerge(clsx(inputs));
|
package/dist/cn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cn.js","names":[],"sources":["../src/cn.ts"],"sourcesContent":["import type { ClassValue } from 'clsx'\nimport { clsx } from 'clsx'\nimport { extendTailwindMerge } from 'tailwind-merge'\n\
|
|
1
|
+
{"version":3,"file":"cn.js","names":[],"sources":["../src/cn.ts"],"sourcesContent":["import type { ClassValue } from 'clsx'\nimport { clsx } from 'clsx'\nimport { extendTailwindMerge } from 'tailwind-merge'\n\nimport { durationSteps, twScales, utilityFamilies, zSteps } from './cn.generated'\n\nconst { color, ...themeScales } = twScales\nconst zGroup = 'z'\n\nconst twMerge = extendTailwindMerge<string>({\n extend: {\n classGroups: {\n ...utilityFamilies,\n 'bg-image': [{ bg: ['tf-blend', 'tf-blend-rise'] }],\n 'blend-base': [{ blend: color }],\n duration: [{ duration: durationSteps }],\n 'text-color': [{ text: ['tf-blend'] }],\n [zGroup]: [{ [zGroup]: zSteps }],\n },\n theme: { ...themeScales, color },\n },\n})\n\nconst cn = (...inputs: ClassValue[]): string => twMerge(clsx(inputs))\n\nexport { cn }\n"],"mappings":";;;;AAMA,MAAM,EAAE,OAAO,GAAG,gBAAgB;AAClC,MAAM,SAAS;AAEf,MAAM,UAAU,oBAA4B,EAC1C,QAAQ;CACN,aAAa;EACX,GAAG;EACH,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,eAAe,EAAE,CAAC;EAClD,cAAc,CAAC,EAAE,OAAO,MAAM,CAAC;EAC/B,UAAU,CAAC,EAAE,UAAU,cAAc,CAAC;EACtC,cAAc,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC;GACpC,SAAS,CAAC,GAAG,SAAS,OAAO,CAAC;CACjC;CACA,OAAO;EAAE,GAAG;EAAa;CAAM;AACjC,EACF,CAAC;AAED,MAAM,MAAM,GAAG,WAAiC,QAAQ,KAAK,MAAM,CAAC"}
|
package/dist/control.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//#region src/control.d.ts
|
|
2
2
|
type ControlSize = 'sm' | 'md' | 'lg';
|
|
3
3
|
type ButtonSize = ControlSize | 'xs';
|
|
4
|
-
declare const defaultControlSize = "lg";
|
|
5
4
|
type FieldSize = 'lg' | 'md';
|
|
6
5
|
declare const defaultFieldSize = "lg";
|
|
7
6
|
declare const controlIcon: {
|
|
@@ -11,5 +10,5 @@ declare const controlIcon: {
|
|
|
11
10
|
xs: string;
|
|
12
11
|
};
|
|
13
12
|
//#endregion
|
|
14
|
-
export { type ButtonSize, type ControlSize, type FieldSize, controlIcon,
|
|
13
|
+
export { type ButtonSize, type ControlSize, type FieldSize, controlIcon, defaultFieldSize };
|
|
15
14
|
//# sourceMappingURL=control.d.ts.map
|
package/dist/control.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/control.ts
|
|
2
|
-
const defaultControlSize = "lg";
|
|
3
2
|
const defaultFieldSize = "lg";
|
|
4
3
|
const controlIcon = {
|
|
5
4
|
lg: "size-tf-icon-lg",
|
|
@@ -8,6 +7,6 @@ const controlIcon = {
|
|
|
8
7
|
xs: "size-tf-icon-xs"
|
|
9
8
|
};
|
|
10
9
|
//#endregion
|
|
11
|
-
export { controlIcon,
|
|
10
|
+
export { controlIcon, defaultFieldSize };
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=control.js.map
|
package/dist/control.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","names":[],"sources":["../src/control.ts"],"sourcesContent":["type ControlSize = 'sm' | 'md' | 'lg'\n\ntype ButtonSize = ControlSize | 'xs'\n\
|
|
1
|
+
{"version":3,"file":"control.js","names":[],"sources":["../src/control.ts"],"sourcesContent":["type ControlSize = 'sm' | 'md' | 'lg'\n\ntype ButtonSize = ControlSize | 'xs'\n\ntype FieldSize = 'lg' | 'md'\n\nconst defaultFieldSize = 'lg' satisfies FieldSize\n\nconst controlIcon = {\n lg: 'size-tf-icon-lg',\n md: 'size-tf-icon-md',\n sm: 'size-tf-icon-sm',\n xs: 'size-tf-icon-xs',\n} satisfies Record<ButtonSize, string>\n\nexport { type ButtonSize, type ControlSize, type FieldSize, controlIcon, defaultFieldSize }\n"],"mappings":";AAMA,MAAM,mBAAmB;AAEzB,MAAM,cAAc;CAClB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;AACN"}
|