@novi-ui/flatlay 0.1.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/README.md +418 -0
- package/dist/accordion/accordion.d.mts +35 -0
- package/dist/accordion/accordion.d.mts.map +1 -0
- package/dist/accordion/accordion.mjs +74 -0
- package/dist/accordion/accordion.mjs.map +1 -0
- package/dist/accordion/accordion.styles.d.mts +61 -0
- package/dist/accordion/accordion.styles.d.mts.map +1 -0
- package/dist/accordion/accordion.styles.mjs +91 -0
- package/dist/accordion/accordion.styles.mjs.map +1 -0
- package/dist/accordion/index.d.mts +3 -0
- package/dist/avatar/avatar.d.mts +22 -0
- package/dist/avatar/avatar.d.mts.map +1 -0
- package/dist/avatar/avatar.mjs +60 -0
- package/dist/avatar/avatar.mjs.map +1 -0
- package/dist/avatar/avatar.styles.d.mts +49 -0
- package/dist/avatar/avatar.styles.d.mts.map +1 -0
- package/dist/avatar/avatar.styles.mjs +55 -0
- package/dist/avatar/avatar.styles.mjs.map +1 -0
- package/dist/avatar/index.d.mts +3 -0
- package/dist/badge/badge.d.mts +15 -0
- package/dist/badge/badge.d.mts.map +1 -0
- package/dist/badge/badge.mjs +39 -0
- package/dist/badge/badge.mjs.map +1 -0
- package/dist/badge/badge.styles.d.mts +67 -0
- package/dist/badge/badge.styles.d.mts.map +1 -0
- package/dist/badge/badge.styles.mjs +110 -0
- package/dist/badge/badge.styles.mjs.map +1 -0
- package/dist/badge/index.d.mts +3 -0
- package/dist/breadcrumbs/breadcrumbs.d.mts +36 -0
- package/dist/breadcrumbs/breadcrumbs.d.mts.map +1 -0
- package/dist/breadcrumbs/breadcrumbs.mjs +82 -0
- package/dist/breadcrumbs/breadcrumbs.mjs.map +1 -0
- package/dist/breadcrumbs/breadcrumbs.styles.d.mts +46 -0
- package/dist/breadcrumbs/breadcrumbs.styles.d.mts.map +1 -0
- package/dist/breadcrumbs/breadcrumbs.styles.mjs +45 -0
- package/dist/breadcrumbs/breadcrumbs.styles.mjs.map +1 -0
- package/dist/breadcrumbs/index.d.mts +3 -0
- package/dist/button/button.d.mts +18 -0
- package/dist/button/button.d.mts.map +1 -0
- package/dist/button/button.mjs +79 -0
- package/dist/button/button.mjs.map +1 -0
- package/dist/button/button.styles.d.mts +82 -0
- package/dist/button/button.styles.d.mts.map +1 -0
- package/dist/button/button.styles.mjs +137 -0
- package/dist/button/button.styles.mjs.map +1 -0
- package/dist/button/index.d.mts +3 -0
- package/dist/card/card.d.mts +51 -0
- package/dist/card/card.d.mts.map +1 -0
- package/dist/card/card.mjs +96 -0
- package/dist/card/card.mjs.map +1 -0
- package/dist/card/card.styles.d.mts +73 -0
- package/dist/card/card.styles.d.mts.map +1 -0
- package/dist/card/card.styles.mjs +72 -0
- package/dist/card/card.styles.mjs.map +1 -0
- package/dist/card/index.d.mts +3 -0
- package/dist/checkbox/checkbox.d.mts +27 -0
- package/dist/checkbox/checkbox.d.mts.map +1 -0
- package/dist/checkbox/checkbox.mjs +109 -0
- package/dist/checkbox/checkbox.mjs.map +1 -0
- package/dist/checkbox/checkbox.styles.d.mts +114 -0
- package/dist/checkbox/checkbox.styles.d.mts.map +1 -0
- package/dist/checkbox/checkbox.styles.mjs +105 -0
- package/dist/checkbox/checkbox.styles.mjs.map +1 -0
- package/dist/checkbox/index.d.mts +3 -0
- package/dist/color-picker/color-picker.d.mts +30 -0
- package/dist/color-picker/color-picker.d.mts.map +1 -0
- package/dist/color-picker/color-picker.mjs +100 -0
- package/dist/color-picker/color-picker.mjs.map +1 -0
- package/dist/color-picker/color-picker.styles.d.mts +91 -0
- package/dist/color-picker/color-picker.styles.d.mts.map +1 -0
- package/dist/color-picker/color-picker.styles.mjs +79 -0
- package/dist/color-picker/color-picker.styles.mjs.map +1 -0
- package/dist/color-picker/index.d.mts +3 -0
- package/dist/flatlay.css +381 -0
- package/dist/flatlay.scoped.css +381 -0
- package/dist/index.d.mts +67 -0
- package/dist/index.mjs +46 -0
- package/dist/input/index.d.mts +3 -0
- package/dist/input/input.d.mts +23 -0
- package/dist/input/input.d.mts.map +1 -0
- package/dist/input/input.mjs +89 -0
- package/dist/input/input.mjs.map +1 -0
- package/dist/input/input.styles.d.mts +97 -0
- package/dist/input/input.styles.d.mts.map +1 -0
- package/dist/input/input.styles.mjs +96 -0
- package/dist/input/input.styles.mjs.map +1 -0
- package/dist/menu/index.d.mts +3 -0
- package/dist/menu/menu.d.mts +66 -0
- package/dist/menu/menu.d.mts.map +1 -0
- package/dist/menu/menu.mjs +118 -0
- package/dist/menu/menu.mjs.map +1 -0
- package/dist/menu/menu.styles.d.mts +114 -0
- package/dist/menu/menu.styles.d.mts.map +1 -0
- package/dist/menu/menu.styles.mjs +66 -0
- package/dist/menu/menu.styles.mjs.map +1 -0
- package/dist/modal/index.d.mts +3 -0
- package/dist/modal/modal.d.mts +55 -0
- package/dist/modal/modal.d.mts.map +1 -0
- package/dist/modal/modal.mjs +120 -0
- package/dist/modal/modal.mjs.map +1 -0
- package/dist/modal/modal.styles.d.mts +70 -0
- package/dist/modal/modal.styles.d.mts.map +1 -0
- package/dist/modal/modal.styles.mjs +83 -0
- package/dist/modal/modal.styles.mjs.map +1 -0
- package/dist/popover/index.d.mts +3 -0
- package/dist/popover/popover.d.mts +33 -0
- package/dist/popover/popover.d.mts.map +1 -0
- package/dist/popover/popover.mjs +57 -0
- package/dist/popover/popover.mjs.map +1 -0
- package/dist/popover/popover.styles.d.mts +40 -0
- package/dist/popover/popover.styles.d.mts.map +1 -0
- package/dist/popover/popover.styles.mjs +47 -0
- package/dist/popover/popover.styles.mjs.map +1 -0
- package/dist/progress/index.d.mts +3 -0
- package/dist/progress/progress.d.mts +15 -0
- package/dist/progress/progress.d.mts.map +1 -0
- package/dist/progress/progress.mjs +55 -0
- package/dist/progress/progress.mjs.map +1 -0
- package/dist/progress/progress.styles.d.mts +100 -0
- package/dist/progress/progress.styles.d.mts.map +1 -0
- package/dist/progress/progress.styles.mjs +65 -0
- package/dist/progress/progress.styles.mjs.map +1 -0
- package/dist/radio/index.d.mts +3 -0
- package/dist/radio/radio.d.mts +25 -0
- package/dist/radio/radio.d.mts.map +1 -0
- package/dist/radio/radio.mjs +99 -0
- package/dist/radio/radio.mjs.map +1 -0
- package/dist/radio/radio.styles.d.mts +114 -0
- package/dist/radio/radio.styles.d.mts.map +1 -0
- package/dist/radio/radio.styles.mjs +103 -0
- package/dist/radio/radio.styles.mjs.map +1 -0
- package/dist/select/index.d.mts +3 -0
- package/dist/select/select.d.mts +40 -0
- package/dist/select/select.d.mts.map +1 -0
- package/dist/select/select.mjs +121 -0
- package/dist/select/select.mjs.map +1 -0
- package/dist/select/select.styles.d.mts +85 -0
- package/dist/select/select.styles.d.mts.map +1 -0
- package/dist/select/select.styles.mjs +111 -0
- package/dist/select/select.styles.mjs.map +1 -0
- package/dist/skeleton/index.d.mts +3 -0
- package/dist/skeleton/skeleton.d.mts +15 -0
- package/dist/skeleton/skeleton.d.mts.map +1 -0
- package/dist/skeleton/skeleton.mjs +26 -0
- package/dist/skeleton/skeleton.mjs.map +1 -0
- package/dist/skeleton/skeleton.styles.d.mts +47 -0
- package/dist/skeleton/skeleton.styles.d.mts.map +1 -0
- package/dist/skeleton/skeleton.styles.mjs +31 -0
- package/dist/skeleton/skeleton.styles.mjs.map +1 -0
- package/dist/spinner/index.d.mts +3 -0
- package/dist/spinner/spinner.d.mts +15 -0
- package/dist/spinner/spinner.d.mts.map +1 -0
- package/dist/spinner/spinner.mjs +55 -0
- package/dist/spinner/spinner.mjs.map +1 -0
- package/dist/spinner/spinner.styles.d.mts +46 -0
- package/dist/spinner/spinner.styles.d.mts.map +1 -0
- package/dist/spinner/spinner.styles.mjs +50 -0
- package/dist/spinner/spinner.styles.mjs.map +1 -0
- package/dist/styles/focus-ring.mjs +30 -0
- package/dist/styles/focus-ring.mjs.map +1 -0
- package/dist/styles/inflow.mjs +156 -0
- package/dist/styles/inflow.mjs.map +1 -0
- package/dist/styles/mono.mjs +24 -0
- package/dist/styles/mono.mjs.map +1 -0
- package/dist/switch/index.d.mts +3 -0
- package/dist/switch/switch.d.mts +18 -0
- package/dist/switch/switch.d.mts.map +1 -0
- package/dist/switch/switch.mjs +58 -0
- package/dist/switch/switch.mjs.map +1 -0
- package/dist/switch/switch.styles.d.mts +58 -0
- package/dist/switch/switch.styles.d.mts.map +1 -0
- package/dist/switch/switch.styles.mjs +86 -0
- package/dist/switch/switch.styles.mjs.map +1 -0
- package/dist/tabs/index.d.mts +3 -0
- package/dist/tabs/tabs.d.mts +64 -0
- package/dist/tabs/tabs.d.mts.map +1 -0
- package/dist/tabs/tabs.mjs +93 -0
- package/dist/tabs/tabs.mjs.map +1 -0
- package/dist/tabs/tabs.styles.d.mts +64 -0
- package/dist/tabs/tabs.styles.d.mts.map +1 -0
- package/dist/tabs/tabs.styles.mjs +118 -0
- package/dist/tabs/tabs.styles.mjs.map +1 -0
- package/dist/textarea/index.d.mts +3 -0
- package/dist/textarea/textarea.d.mts +15 -0
- package/dist/textarea/textarea.d.mts.map +1 -0
- package/dist/textarea/textarea.mjs +70 -0
- package/dist/textarea/textarea.mjs.map +1 -0
- package/dist/textarea/textarea.styles.d.mts +70 -0
- package/dist/textarea/textarea.styles.d.mts.map +1 -0
- package/dist/textarea/textarea.styles.mjs +85 -0
- package/dist/textarea/textarea.styles.mjs.map +1 -0
- package/dist/toast/index.d.mts +3 -0
- package/dist/toast/toast.d.mts +47 -0
- package/dist/toast/toast.d.mts.map +1 -0
- package/dist/toast/toast.mjs +100 -0
- package/dist/toast/toast.mjs.map +1 -0
- package/dist/toast/toast.styles.d.mts +61 -0
- package/dist/toast/toast.styles.d.mts.map +1 -0
- package/dist/toast/toast.styles.mjs +79 -0
- package/dist/toast/toast.styles.mjs.map +1 -0
- package/dist/tokens/color-set.mjs +124 -0
- package/dist/tokens/color-set.mjs.map +1 -0
- package/dist/tooltip/index.d.mts +3 -0
- package/dist/tooltip/tooltip.d.mts +20 -0
- package/dist/tooltip/tooltip.d.mts.map +1 -0
- package/dist/tooltip/tooltip.mjs +45 -0
- package/dist/tooltip/tooltip.mjs.map +1 -0
- package/dist/tooltip/tooltip.styles.d.mts +48 -0
- package/dist/tooltip/tooltip.styles.d.mts.map +1 -0
- package/dist/tooltip/tooltip.styles.mjs +39 -0
- package/dist/tooltip/tooltip.styles.mjs.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
/* 自動生成。編集しないこと。src/tokens/flatlay-tokens.ts と color-set.ts を変更して再生成する。 */
|
|
2
|
+
|
|
3
|
+
@layer novi.base {
|
|
4
|
+
@keyframes novi-fade-in {
|
|
5
|
+
from { opacity: 0; }
|
|
6
|
+
to { opacity: 1; }
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[data-novi-theme='flatlay'] {
|
|
10
|
+
--novi-radius-none: 0px;
|
|
11
|
+
--novi-radius-sm: 2px;
|
|
12
|
+
--novi-radius-md: 2px;
|
|
13
|
+
--novi-radius-lg: 4px;
|
|
14
|
+
--novi-radius-full: 9999px;
|
|
15
|
+
--novi-shadow-none: 0 0 #0000;
|
|
16
|
+
--novi-shadow-sm: 0 0 #0000;
|
|
17
|
+
--novi-shadow-md: 0 0 #0000;
|
|
18
|
+
--novi-shadow-lg: 0 0 #0000;
|
|
19
|
+
--novi-text-xs: 11px;
|
|
20
|
+
--novi-text-sm: 13px;
|
|
21
|
+
--novi-text-base: 16px;
|
|
22
|
+
--novi-text-lg: 18px;
|
|
23
|
+
--novi-text-xl: 22px;
|
|
24
|
+
--novi-text-2xl: 26px;
|
|
25
|
+
--novi-text-3xl: 32px;
|
|
26
|
+
--novi-font-sans: system-ui, sans-serif;
|
|
27
|
+
--novi-font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
|
|
28
|
+
--novi-duration-fast: 100ms;
|
|
29
|
+
--novi-duration-base: 100ms;
|
|
30
|
+
--novi-duration-slow: 100ms;
|
|
31
|
+
--novi-ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
32
|
+
--novi-ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
|
|
33
|
+
--novi-hue: 172;
|
|
34
|
+
--novi-color-bg: oklch(98.8% 0 0);
|
|
35
|
+
--novi-color-subtle: oklch(95.5% 0 0);
|
|
36
|
+
--novi-color-surface: oklch(98.8% 0 0);
|
|
37
|
+
--novi-color-overlay: oklch(98.8% 0 0);
|
|
38
|
+
--novi-color-fg: oklch(22% 0 0);
|
|
39
|
+
--novi-color-muted: oklch(46% 0 0);
|
|
40
|
+
--novi-color-default: oklch(95.5% 0 0);
|
|
41
|
+
--novi-color-default-fg: oklch(22% 0 0);
|
|
42
|
+
--novi-color-border: oklch(88% 0.025 172);
|
|
43
|
+
--novi-color-border-strong: oklch(58% 0.03 172);
|
|
44
|
+
--novi-color-primary: oklch(47% 0.07 172);
|
|
45
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 172);
|
|
46
|
+
--novi-color-secondary: oklch(47% 0.07 352);
|
|
47
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 352);
|
|
48
|
+
--novi-color-success: oklch(47% 0.13 155);
|
|
49
|
+
--novi-color-success-fg: oklch(98.5% 0.004 155);
|
|
50
|
+
--novi-color-warning: oklch(47% 0.12 62);
|
|
51
|
+
--novi-color-warning-fg: oklch(98.5% 0.004 62);
|
|
52
|
+
--novi-color-danger: oklch(47% 0.17 27);
|
|
53
|
+
--novi-color-danger-fg: oklch(98.5% 0.004 27);
|
|
54
|
+
--novi-swatch-fieldbook: oklch(47% 0.07 172);
|
|
55
|
+
--novi-swatch-fieldbook-fg: oklch(98.5% 0.004 172);
|
|
56
|
+
--novi-swatch-blueprint: oklch(47% 0.07 215);
|
|
57
|
+
--novi-swatch-blueprint-fg: oklch(98.5% 0.004 215);
|
|
58
|
+
--novi-swatch-carbon: oklch(47% 0.07 288);
|
|
59
|
+
--novi-swatch-carbon-fg: oklch(98.5% 0.004 288);
|
|
60
|
+
--novi-swatch-ribbon: oklch(47% 0.07 330);
|
|
61
|
+
--novi-swatch-ribbon-fg: oklch(98.5% 0.004 330);
|
|
62
|
+
--novi-swatch-eraser: oklch(47% 0.07 352);
|
|
63
|
+
--novi-swatch-eraser-fg: oklch(98.5% 0.004 352);
|
|
64
|
+
--novi-swatch-manila: oklch(47% 0.07 58);
|
|
65
|
+
--novi-swatch-manila-fg: oklch(98.5% 0.004 58);
|
|
66
|
+
--novi-swatch-legalpad: oklch(47% 0.07 98);
|
|
67
|
+
--novi-swatch-legalpad-fg: oklch(98.5% 0.004 98);
|
|
68
|
+
--novi-swatch-pencil: oklch(47% 0.02 240);
|
|
69
|
+
--novi-swatch-pencil-fg: oklch(98.5% 0.004 240);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'] {
|
|
73
|
+
--novi-color-bg: oklch(15% 0 0);
|
|
74
|
+
--novi-color-subtle: oklch(20% 0 0);
|
|
75
|
+
--novi-color-surface: oklch(15% 0 0);
|
|
76
|
+
--novi-color-overlay: oklch(15% 0 0);
|
|
77
|
+
--novi-color-fg: oklch(94% 0 0);
|
|
78
|
+
--novi-color-muted: oklch(70% 0 0);
|
|
79
|
+
--novi-color-default: oklch(20% 0 0);
|
|
80
|
+
--novi-color-default-fg: oklch(94% 0 0);
|
|
81
|
+
--novi-color-border: oklch(32% 0.022 172);
|
|
82
|
+
--novi-color-border-strong: oklch(55% 0.03 172);
|
|
83
|
+
--novi-color-primary: oklch(75% 0.06 172);
|
|
84
|
+
--novi-color-primary-fg: oklch(18% 0.02 172);
|
|
85
|
+
--novi-color-secondary: oklch(75% 0.06 352);
|
|
86
|
+
--novi-color-secondary-fg: oklch(18% 0.02 352);
|
|
87
|
+
--novi-color-success: oklch(75% 0.13 155);
|
|
88
|
+
--novi-color-success-fg: oklch(18% 0.02 155);
|
|
89
|
+
--novi-color-warning: oklch(75% 0.13 65);
|
|
90
|
+
--novi-color-warning-fg: oklch(18% 0.02 65);
|
|
91
|
+
--novi-color-danger: oklch(75% 0.15 27);
|
|
92
|
+
--novi-color-danger-fg: oklch(18% 0.02 27);
|
|
93
|
+
--novi-swatch-fieldbook: oklch(75% 0.06 172);
|
|
94
|
+
--novi-swatch-fieldbook-fg: oklch(18% 0.02 172);
|
|
95
|
+
--novi-swatch-blueprint: oklch(75% 0.06 215);
|
|
96
|
+
--novi-swatch-blueprint-fg: oklch(18% 0.02 215);
|
|
97
|
+
--novi-swatch-carbon: oklch(75% 0.06 288);
|
|
98
|
+
--novi-swatch-carbon-fg: oklch(18% 0.02 288);
|
|
99
|
+
--novi-swatch-ribbon: oklch(75% 0.06 330);
|
|
100
|
+
--novi-swatch-ribbon-fg: oklch(18% 0.02 330);
|
|
101
|
+
--novi-swatch-eraser: oklch(75% 0.06 352);
|
|
102
|
+
--novi-swatch-eraser-fg: oklch(18% 0.02 352);
|
|
103
|
+
--novi-swatch-manila: oklch(75% 0.06 58);
|
|
104
|
+
--novi-swatch-manila-fg: oklch(18% 0.02 58);
|
|
105
|
+
--novi-swatch-legalpad: oklch(75% 0.06 98);
|
|
106
|
+
--novi-swatch-legalpad-fg: oklch(18% 0.02 98);
|
|
107
|
+
--novi-swatch-pencil: oklch(75% 0.017 240);
|
|
108
|
+
--novi-swatch-pencil-fg: oklch(18% 0.02 240);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (prefers-color-scheme: dark) {
|
|
112
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light']) {
|
|
113
|
+
--novi-color-bg: oklch(15% 0 0);
|
|
114
|
+
--novi-color-subtle: oklch(20% 0 0);
|
|
115
|
+
--novi-color-surface: oklch(15% 0 0);
|
|
116
|
+
--novi-color-overlay: oklch(15% 0 0);
|
|
117
|
+
--novi-color-fg: oklch(94% 0 0);
|
|
118
|
+
--novi-color-muted: oklch(70% 0 0);
|
|
119
|
+
--novi-color-default: oklch(20% 0 0);
|
|
120
|
+
--novi-color-default-fg: oklch(94% 0 0);
|
|
121
|
+
--novi-color-border: oklch(32% 0.022 172);
|
|
122
|
+
--novi-color-border-strong: oklch(55% 0.03 172);
|
|
123
|
+
--novi-color-primary: oklch(75% 0.06 172);
|
|
124
|
+
--novi-color-primary-fg: oklch(18% 0.02 172);
|
|
125
|
+
--novi-color-secondary: oklch(75% 0.06 352);
|
|
126
|
+
--novi-color-secondary-fg: oklch(18% 0.02 352);
|
|
127
|
+
--novi-color-success: oklch(75% 0.13 155);
|
|
128
|
+
--novi-color-success-fg: oklch(18% 0.02 155);
|
|
129
|
+
--novi-color-warning: oklch(75% 0.13 65);
|
|
130
|
+
--novi-color-warning-fg: oklch(18% 0.02 65);
|
|
131
|
+
--novi-color-danger: oklch(75% 0.15 27);
|
|
132
|
+
--novi-color-danger-fg: oklch(18% 0.02 27);
|
|
133
|
+
--novi-swatch-fieldbook: oklch(75% 0.06 172);
|
|
134
|
+
--novi-swatch-fieldbook-fg: oklch(18% 0.02 172);
|
|
135
|
+
--novi-swatch-blueprint: oklch(75% 0.06 215);
|
|
136
|
+
--novi-swatch-blueprint-fg: oklch(18% 0.02 215);
|
|
137
|
+
--novi-swatch-carbon: oklch(75% 0.06 288);
|
|
138
|
+
--novi-swatch-carbon-fg: oklch(18% 0.02 288);
|
|
139
|
+
--novi-swatch-ribbon: oklch(75% 0.06 330);
|
|
140
|
+
--novi-swatch-ribbon-fg: oklch(18% 0.02 330);
|
|
141
|
+
--novi-swatch-eraser: oklch(75% 0.06 352);
|
|
142
|
+
--novi-swatch-eraser-fg: oklch(18% 0.02 352);
|
|
143
|
+
--novi-swatch-manila: oklch(75% 0.06 58);
|
|
144
|
+
--novi-swatch-manila-fg: oklch(18% 0.02 58);
|
|
145
|
+
--novi-swatch-legalpad: oklch(75% 0.06 98);
|
|
146
|
+
--novi-swatch-legalpad-fg: oklch(18% 0.02 98);
|
|
147
|
+
--novi-swatch-pencil: oklch(75% 0.017 240);
|
|
148
|
+
--novi-swatch-pencil-fg: oklch(18% 0.02 240);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* ── カラーセット Stationery(specs/07-theme-flatlay) ──
|
|
153
|
+
data-novi-color は data-novi-theme と同じ要素(テーマルート)に置く。
|
|
154
|
+
未知の色名はどれにも一致せず、既定色 Fieldbook のまま描画される。
|
|
155
|
+
Flatlay は染まらない紙なので、差し替わるのは罫線と primary / secondary だけ。 */
|
|
156
|
+
[data-novi-theme='flatlay'][data-novi-color='fieldbook'] {
|
|
157
|
+
--novi-hue: 172;
|
|
158
|
+
--novi-color-border: oklch(88% 0.025 172);
|
|
159
|
+
--novi-color-border-strong: oklch(58% 0.03 172);
|
|
160
|
+
--novi-color-primary: oklch(47% 0.07 172);
|
|
161
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 172);
|
|
162
|
+
--novi-color-secondary: oklch(47% 0.07 352);
|
|
163
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 352);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[data-novi-theme='flatlay'][data-novi-color='blueprint'] {
|
|
167
|
+
--novi-hue: 215;
|
|
168
|
+
--novi-color-border: oklch(88% 0.025 215);
|
|
169
|
+
--novi-color-border-strong: oklch(58% 0.03 215);
|
|
170
|
+
--novi-color-primary: oklch(47% 0.07 215);
|
|
171
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 215);
|
|
172
|
+
--novi-color-secondary: oklch(47% 0.07 58);
|
|
173
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 58);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[data-novi-theme='flatlay'][data-novi-color='carbon'] {
|
|
177
|
+
--novi-hue: 288;
|
|
178
|
+
--novi-color-border: oklch(88% 0.025 288);
|
|
179
|
+
--novi-color-border-strong: oklch(58% 0.03 288);
|
|
180
|
+
--novi-color-primary: oklch(47% 0.07 288);
|
|
181
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 288);
|
|
182
|
+
--novi-color-secondary: oklch(47% 0.07 98);
|
|
183
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 98);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
[data-novi-theme='flatlay'][data-novi-color='ribbon'] {
|
|
187
|
+
--novi-hue: 330;
|
|
188
|
+
--novi-color-border: oklch(88% 0.025 330);
|
|
189
|
+
--novi-color-border-strong: oklch(58% 0.03 330);
|
|
190
|
+
--novi-color-primary: oklch(47% 0.07 330);
|
|
191
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 330);
|
|
192
|
+
--novi-color-secondary: oklch(47% 0.07 172);
|
|
193
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 172);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
[data-novi-theme='flatlay'][data-novi-color='eraser'] {
|
|
197
|
+
--novi-hue: 352;
|
|
198
|
+
--novi-color-border: oklch(88% 0.025 352);
|
|
199
|
+
--novi-color-border-strong: oklch(58% 0.03 352);
|
|
200
|
+
--novi-color-primary: oklch(47% 0.07 352);
|
|
201
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 352);
|
|
202
|
+
--novi-color-secondary: oklch(47% 0.02 240);
|
|
203
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 240);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[data-novi-theme='flatlay'][data-novi-color='manila'] {
|
|
207
|
+
--novi-hue: 58;
|
|
208
|
+
--novi-color-border: oklch(88% 0.025 58);
|
|
209
|
+
--novi-color-border-strong: oklch(58% 0.03 58);
|
|
210
|
+
--novi-color-primary: oklch(47% 0.07 58);
|
|
211
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 58);
|
|
212
|
+
--novi-color-secondary: oklch(47% 0.07 215);
|
|
213
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 215);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[data-novi-theme='flatlay'][data-novi-color='legalpad'] {
|
|
217
|
+
--novi-hue: 98;
|
|
218
|
+
--novi-color-border: oklch(88% 0.025 98);
|
|
219
|
+
--novi-color-border-strong: oklch(58% 0.03 98);
|
|
220
|
+
--novi-color-primary: oklch(47% 0.07 98);
|
|
221
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 98);
|
|
222
|
+
--novi-color-secondary: oklch(47% 0.07 288);
|
|
223
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 288);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
[data-novi-theme='flatlay'][data-novi-color='pencil'] {
|
|
227
|
+
--novi-hue: 240;
|
|
228
|
+
--novi-color-border: oklch(88% 0.025 240);
|
|
229
|
+
--novi-color-border-strong: oklch(58% 0.03 240);
|
|
230
|
+
--novi-color-primary: oklch(47% 0.02 240);
|
|
231
|
+
--novi-color-primary-fg: oklch(98.5% 0.004 240);
|
|
232
|
+
--novi-color-secondary: oklch(47% 0.07 352);
|
|
233
|
+
--novi-color-secondary-fg: oklch(98.5% 0.004 352);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='fieldbook'] {
|
|
237
|
+
--novi-color-border: oklch(32% 0.022 172);
|
|
238
|
+
--novi-color-border-strong: oklch(55% 0.03 172);
|
|
239
|
+
--novi-color-primary: oklch(75% 0.06 172);
|
|
240
|
+
--novi-color-primary-fg: oklch(18% 0.02 172);
|
|
241
|
+
--novi-color-secondary: oklch(75% 0.06 352);
|
|
242
|
+
--novi-color-secondary-fg: oklch(18% 0.02 352);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='blueprint'] {
|
|
246
|
+
--novi-color-border: oklch(32% 0.022 215);
|
|
247
|
+
--novi-color-border-strong: oklch(55% 0.03 215);
|
|
248
|
+
--novi-color-primary: oklch(75% 0.06 215);
|
|
249
|
+
--novi-color-primary-fg: oklch(18% 0.02 215);
|
|
250
|
+
--novi-color-secondary: oklch(75% 0.06 58);
|
|
251
|
+
--novi-color-secondary-fg: oklch(18% 0.02 58);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='carbon'] {
|
|
255
|
+
--novi-color-border: oklch(32% 0.022 288);
|
|
256
|
+
--novi-color-border-strong: oklch(55% 0.03 288);
|
|
257
|
+
--novi-color-primary: oklch(75% 0.06 288);
|
|
258
|
+
--novi-color-primary-fg: oklch(18% 0.02 288);
|
|
259
|
+
--novi-color-secondary: oklch(75% 0.06 98);
|
|
260
|
+
--novi-color-secondary-fg: oklch(18% 0.02 98);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='ribbon'] {
|
|
264
|
+
--novi-color-border: oklch(32% 0.022 330);
|
|
265
|
+
--novi-color-border-strong: oklch(55% 0.03 330);
|
|
266
|
+
--novi-color-primary: oklch(75% 0.06 330);
|
|
267
|
+
--novi-color-primary-fg: oklch(18% 0.02 330);
|
|
268
|
+
--novi-color-secondary: oklch(75% 0.06 172);
|
|
269
|
+
--novi-color-secondary-fg: oklch(18% 0.02 172);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='eraser'] {
|
|
273
|
+
--novi-color-border: oklch(32% 0.022 352);
|
|
274
|
+
--novi-color-border-strong: oklch(55% 0.03 352);
|
|
275
|
+
--novi-color-primary: oklch(75% 0.06 352);
|
|
276
|
+
--novi-color-primary-fg: oklch(18% 0.02 352);
|
|
277
|
+
--novi-color-secondary: oklch(75% 0.017 240);
|
|
278
|
+
--novi-color-secondary-fg: oklch(18% 0.02 240);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='manila'] {
|
|
282
|
+
--novi-color-border: oklch(32% 0.022 58);
|
|
283
|
+
--novi-color-border-strong: oklch(55% 0.03 58);
|
|
284
|
+
--novi-color-primary: oklch(75% 0.06 58);
|
|
285
|
+
--novi-color-primary-fg: oklch(18% 0.02 58);
|
|
286
|
+
--novi-color-secondary: oklch(75% 0.06 215);
|
|
287
|
+
--novi-color-secondary-fg: oklch(18% 0.02 215);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='legalpad'] {
|
|
291
|
+
--novi-color-border: oklch(32% 0.022 98);
|
|
292
|
+
--novi-color-border-strong: oklch(55% 0.03 98);
|
|
293
|
+
--novi-color-primary: oklch(75% 0.06 98);
|
|
294
|
+
--novi-color-primary-fg: oklch(18% 0.02 98);
|
|
295
|
+
--novi-color-secondary: oklch(75% 0.06 288);
|
|
296
|
+
--novi-color-secondary-fg: oklch(18% 0.02 288);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
[data-novi-theme='flatlay'][data-novi-scheme='dark'][data-novi-color='pencil'] {
|
|
300
|
+
--novi-color-border: oklch(32% 0.022 240);
|
|
301
|
+
--novi-color-border-strong: oklch(55% 0.03 240);
|
|
302
|
+
--novi-color-primary: oklch(75% 0.017 240);
|
|
303
|
+
--novi-color-primary-fg: oklch(18% 0.02 240);
|
|
304
|
+
--novi-color-secondary: oklch(75% 0.06 352);
|
|
305
|
+
--novi-color-secondary-fg: oklch(18% 0.02 352);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@media (prefers-color-scheme: dark) {
|
|
309
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='fieldbook'] {
|
|
310
|
+
--novi-color-border: oklch(32% 0.022 172);
|
|
311
|
+
--novi-color-border-strong: oklch(55% 0.03 172);
|
|
312
|
+
--novi-color-primary: oklch(75% 0.06 172);
|
|
313
|
+
--novi-color-primary-fg: oklch(18% 0.02 172);
|
|
314
|
+
--novi-color-secondary: oklch(75% 0.06 352);
|
|
315
|
+
--novi-color-secondary-fg: oklch(18% 0.02 352);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='blueprint'] {
|
|
319
|
+
--novi-color-border: oklch(32% 0.022 215);
|
|
320
|
+
--novi-color-border-strong: oklch(55% 0.03 215);
|
|
321
|
+
--novi-color-primary: oklch(75% 0.06 215);
|
|
322
|
+
--novi-color-primary-fg: oklch(18% 0.02 215);
|
|
323
|
+
--novi-color-secondary: oklch(75% 0.06 58);
|
|
324
|
+
--novi-color-secondary-fg: oklch(18% 0.02 58);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='carbon'] {
|
|
328
|
+
--novi-color-border: oklch(32% 0.022 288);
|
|
329
|
+
--novi-color-border-strong: oklch(55% 0.03 288);
|
|
330
|
+
--novi-color-primary: oklch(75% 0.06 288);
|
|
331
|
+
--novi-color-primary-fg: oklch(18% 0.02 288);
|
|
332
|
+
--novi-color-secondary: oklch(75% 0.06 98);
|
|
333
|
+
--novi-color-secondary-fg: oklch(18% 0.02 98);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='ribbon'] {
|
|
337
|
+
--novi-color-border: oklch(32% 0.022 330);
|
|
338
|
+
--novi-color-border-strong: oklch(55% 0.03 330);
|
|
339
|
+
--novi-color-primary: oklch(75% 0.06 330);
|
|
340
|
+
--novi-color-primary-fg: oklch(18% 0.02 330);
|
|
341
|
+
--novi-color-secondary: oklch(75% 0.06 172);
|
|
342
|
+
--novi-color-secondary-fg: oklch(18% 0.02 172);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='eraser'] {
|
|
346
|
+
--novi-color-border: oklch(32% 0.022 352);
|
|
347
|
+
--novi-color-border-strong: oklch(55% 0.03 352);
|
|
348
|
+
--novi-color-primary: oklch(75% 0.06 352);
|
|
349
|
+
--novi-color-primary-fg: oklch(18% 0.02 352);
|
|
350
|
+
--novi-color-secondary: oklch(75% 0.017 240);
|
|
351
|
+
--novi-color-secondary-fg: oklch(18% 0.02 240);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='manila'] {
|
|
355
|
+
--novi-color-border: oklch(32% 0.022 58);
|
|
356
|
+
--novi-color-border-strong: oklch(55% 0.03 58);
|
|
357
|
+
--novi-color-primary: oklch(75% 0.06 58);
|
|
358
|
+
--novi-color-primary-fg: oklch(18% 0.02 58);
|
|
359
|
+
--novi-color-secondary: oklch(75% 0.06 215);
|
|
360
|
+
--novi-color-secondary-fg: oklch(18% 0.02 215);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='legalpad'] {
|
|
364
|
+
--novi-color-border: oklch(32% 0.022 98);
|
|
365
|
+
--novi-color-border-strong: oklch(55% 0.03 98);
|
|
366
|
+
--novi-color-primary: oklch(75% 0.06 98);
|
|
367
|
+
--novi-color-primary-fg: oklch(18% 0.02 98);
|
|
368
|
+
--novi-color-secondary: oklch(75% 0.06 288);
|
|
369
|
+
--novi-color-secondary-fg: oklch(18% 0.02 288);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
[data-novi-theme='flatlay']:not([data-novi-scheme='light'])[data-novi-color='pencil'] {
|
|
373
|
+
--novi-color-border: oklch(32% 0.022 240);
|
|
374
|
+
--novi-color-border-strong: oklch(55% 0.03 240);
|
|
375
|
+
--novi-color-primary: oklch(75% 0.017 240);
|
|
376
|
+
--novi-color-primary-fg: oklch(18% 0.02 240);
|
|
377
|
+
--novi-color-secondary: oklch(75% 0.06 352);
|
|
378
|
+
--novi-color-secondary-fg: oklch(18% 0.02 352);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Accordion, AccordionItem, AccordionItemProps } from "./accordion/accordion.mjs";
|
|
2
|
+
import { AccordionStyleProps, accordionStyles } from "./accordion/accordion.styles.mjs";
|
|
3
|
+
import "./accordion/index.mjs";
|
|
4
|
+
import { Avatar, initialsOf } from "./avatar/avatar.mjs";
|
|
5
|
+
import { AvatarStyleProps, avatarStyles } from "./avatar/avatar.styles.mjs";
|
|
6
|
+
import "./avatar/index.mjs";
|
|
7
|
+
import { Badge } from "./badge/badge.mjs";
|
|
8
|
+
import { BadgeStyleProps, badgeStyles } from "./badge/badge.styles.mjs";
|
|
9
|
+
import "./badge/index.mjs";
|
|
10
|
+
import { Breadcrumb, BreadcrumbProps, Breadcrumbs } from "./breadcrumbs/breadcrumbs.mjs";
|
|
11
|
+
import { BreadcrumbsStyleProps, breadcrumbsStyles } from "./breadcrumbs/breadcrumbs.styles.mjs";
|
|
12
|
+
import "./breadcrumbs/index.mjs";
|
|
13
|
+
import { Button } from "./button/button.mjs";
|
|
14
|
+
import { ButtonStyleProps, buttonStyles } from "./button/button.styles.mjs";
|
|
15
|
+
import "./button/index.mjs";
|
|
16
|
+
import { Card, CardBody, CardFooter, CardHeader, CardImage } from "./card/card.mjs";
|
|
17
|
+
import { CardStyleProps, cardStyles } from "./card/card.styles.mjs";
|
|
18
|
+
import "./card/index.mjs";
|
|
19
|
+
import { Checkbox, CheckboxGroup } from "./checkbox/checkbox.mjs";
|
|
20
|
+
import { CheckboxGroupStyleProps, CheckboxStyleProps, checkboxGroupStyles, checkboxStyles } from "./checkbox/checkbox.styles.mjs";
|
|
21
|
+
import "./checkbox/index.mjs";
|
|
22
|
+
import { COLOR_OPTIONS, ColorPicker } from "./color-picker/color-picker.mjs";
|
|
23
|
+
import { ColorPickerStyleProps, colorPickerStyles } from "./color-picker/color-picker.styles.mjs";
|
|
24
|
+
import "./color-picker/index.mjs";
|
|
25
|
+
import { Input } from "./input/input.mjs";
|
|
26
|
+
import { InputStyleProps, inputStyles } from "./input/input.styles.mjs";
|
|
27
|
+
import "./input/index.mjs";
|
|
28
|
+
import { Menu, MenuItemComponent, MenuItemProps, MenuSection, MenuSeparator } from "./menu/menu.mjs";
|
|
29
|
+
import { MenuStyleProps, menuStyles } from "./menu/menu.styles.mjs";
|
|
30
|
+
import "./menu/index.mjs";
|
|
31
|
+
import { Modal, ModalBody, ModalFooter, ModalTitle } from "./modal/modal.mjs";
|
|
32
|
+
import { ModalStyleProps, modalStyles } from "./modal/modal.styles.mjs";
|
|
33
|
+
import "./modal/index.mjs";
|
|
34
|
+
import { Popover, PopoverContent } from "./popover/popover.mjs";
|
|
35
|
+
import { PopoverStyleProps, popoverStyles } from "./popover/popover.styles.mjs";
|
|
36
|
+
import "./popover/index.mjs";
|
|
37
|
+
import { Progress } from "./progress/progress.mjs";
|
|
38
|
+
import { ProgressStyleProps, progressStyles } from "./progress/progress.styles.mjs";
|
|
39
|
+
import "./progress/index.mjs";
|
|
40
|
+
import { Radio, RadioGroup } from "./radio/radio.mjs";
|
|
41
|
+
import { RadioGroupStyleProps, RadioStyleProps, radioGroupStyles, radioStyles } from "./radio/radio.styles.mjs";
|
|
42
|
+
import "./radio/index.mjs";
|
|
43
|
+
import { Select, SelectItem, SelectItemProps } from "./select/select.mjs";
|
|
44
|
+
import { SelectStyleProps, selectStyles } from "./select/select.styles.mjs";
|
|
45
|
+
import "./select/index.mjs";
|
|
46
|
+
import { Skeleton } from "./skeleton/skeleton.mjs";
|
|
47
|
+
import { SkeletonStyleProps, skeletonStyles } from "./skeleton/skeleton.styles.mjs";
|
|
48
|
+
import "./skeleton/index.mjs";
|
|
49
|
+
import { Spinner } from "./spinner/spinner.mjs";
|
|
50
|
+
import { SpinnerStyleProps, spinnerStyles } from "./spinner/spinner.styles.mjs";
|
|
51
|
+
import "./spinner/index.mjs";
|
|
52
|
+
import { Switch } from "./switch/switch.mjs";
|
|
53
|
+
import { SwitchStyleProps, switchStyles } from "./switch/switch.styles.mjs";
|
|
54
|
+
import "./switch/index.mjs";
|
|
55
|
+
import { TabContent, TabItem, TabItems, Tabs } from "./tabs/tabs.mjs";
|
|
56
|
+
import { TabsStyleProps, tabsStyles } from "./tabs/tabs.styles.mjs";
|
|
57
|
+
import "./tabs/index.mjs";
|
|
58
|
+
import { TextArea } from "./textarea/textarea.mjs";
|
|
59
|
+
import { TextareaStyleProps, textareaStyles } from "./textarea/textarea.styles.mjs";
|
|
60
|
+
import "./textarea/index.mjs";
|
|
61
|
+
import { NoviToast, NoviToastRegion, createToastQueue } from "./toast/toast.mjs";
|
|
62
|
+
import { ToastStyleProps, toastStyles } from "./toast/toast.styles.mjs";
|
|
63
|
+
import "./toast/index.mjs";
|
|
64
|
+
import { Tooltip } from "./tooltip/tooltip.mjs";
|
|
65
|
+
import { TooltipStyleProps, tooltipStyles } from "./tooltip/tooltip.styles.mjs";
|
|
66
|
+
import "./tooltip/index.mjs";
|
|
67
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionStyleProps, Avatar, type AvatarStyleProps, Badge, type BadgeStyleProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsStyleProps, Button, type ButtonStyleProps, COLOR_OPTIONS, Card, CardBody, CardFooter, CardHeader, CardImage, type CardStyleProps, Checkbox, CheckboxGroup, type CheckboxGroupStyleProps, type CheckboxStyleProps, ColorPicker, type ColorPickerStyleProps, Input, type InputStyleProps, Menu, MenuItemComponent as MenuItem, type MenuItemProps, MenuSection, MenuSeparator, type MenuStyleProps, Modal, ModalBody, ModalFooter, type ModalStyleProps, ModalTitle, type NoviToast, NoviToastRegion, Popover, PopoverContent, type PopoverStyleProps, Progress, type ProgressStyleProps, Radio, RadioGroup, type RadioGroupStyleProps, type RadioStyleProps, Select, SelectItem, type SelectItemProps, type SelectStyleProps, Skeleton, type SkeletonStyleProps, Spinner, type SpinnerStyleProps, Switch, type SwitchStyleProps, TabContent, TabItem, TabItems, Tabs, type TabsStyleProps, TextArea, type TextareaStyleProps, type ToastStyleProps, Tooltip, type TooltipStyleProps, accordionStyles, avatarStyles, badgeStyles, breadcrumbsStyles, buttonStyles, cardStyles, checkboxGroupStyles, checkboxStyles, colorPickerStyles, createToastQueue, initialsOf, inputStyles, menuStyles, modalStyles, popoverStyles, progressStyles, radioGroupStyles, radioStyles, selectStyles, skeletonStyles, spinnerStyles, switchStyles, tabsStyles, textareaStyles, toastStyles, tooltipStyles };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { accordionStyles } from "./accordion/accordion.styles.mjs";
|
|
3
|
+
import { Accordion, AccordionItem } from "./accordion/accordion.mjs";
|
|
4
|
+
import { avatarStyles } from "./avatar/avatar.styles.mjs";
|
|
5
|
+
import { Avatar, initialsOf } from "./avatar/avatar.mjs";
|
|
6
|
+
import { badgeStyles } from "./badge/badge.styles.mjs";
|
|
7
|
+
import { Badge } from "./badge/badge.mjs";
|
|
8
|
+
import { breadcrumbsStyles } from "./breadcrumbs/breadcrumbs.styles.mjs";
|
|
9
|
+
import { Breadcrumb, Breadcrumbs } from "./breadcrumbs/breadcrumbs.mjs";
|
|
10
|
+
import { buttonStyles } from "./button/button.styles.mjs";
|
|
11
|
+
import { Button } from "./button/button.mjs";
|
|
12
|
+
import { cardStyles } from "./card/card.styles.mjs";
|
|
13
|
+
import { Card, CardBody, CardFooter, CardHeader, CardImage } from "./card/card.mjs";
|
|
14
|
+
import { checkboxGroupStyles, checkboxStyles } from "./checkbox/checkbox.styles.mjs";
|
|
15
|
+
import { Checkbox, CheckboxGroup } from "./checkbox/checkbox.mjs";
|
|
16
|
+
import { colorPickerStyles } from "./color-picker/color-picker.styles.mjs";
|
|
17
|
+
import { COLOR_OPTIONS, ColorPicker } from "./color-picker/color-picker.mjs";
|
|
18
|
+
import { inputStyles } from "./input/input.styles.mjs";
|
|
19
|
+
import { Input } from "./input/input.mjs";
|
|
20
|
+
import { menuStyles } from "./menu/menu.styles.mjs";
|
|
21
|
+
import { Menu, MenuItemComponent, MenuSection, MenuSeparator } from "./menu/menu.mjs";
|
|
22
|
+
import { modalStyles } from "./modal/modal.styles.mjs";
|
|
23
|
+
import { Modal, ModalBody, ModalFooter, ModalTitle } from "./modal/modal.mjs";
|
|
24
|
+
import { popoverStyles } from "./popover/popover.styles.mjs";
|
|
25
|
+
import { Popover, PopoverContent } from "./popover/popover.mjs";
|
|
26
|
+
import { progressStyles } from "./progress/progress.styles.mjs";
|
|
27
|
+
import { Progress } from "./progress/progress.mjs";
|
|
28
|
+
import { radioGroupStyles, radioStyles } from "./radio/radio.styles.mjs";
|
|
29
|
+
import { Radio, RadioGroup } from "./radio/radio.mjs";
|
|
30
|
+
import { selectStyles } from "./select/select.styles.mjs";
|
|
31
|
+
import { Select, SelectItem } from "./select/select.mjs";
|
|
32
|
+
import { skeletonStyles } from "./skeleton/skeleton.styles.mjs";
|
|
33
|
+
import { Skeleton } from "./skeleton/skeleton.mjs";
|
|
34
|
+
import { spinnerStyles } from "./spinner/spinner.styles.mjs";
|
|
35
|
+
import { Spinner } from "./spinner/spinner.mjs";
|
|
36
|
+
import { switchStyles } from "./switch/switch.styles.mjs";
|
|
37
|
+
import { Switch } from "./switch/switch.mjs";
|
|
38
|
+
import { tabsStyles } from "./tabs/tabs.styles.mjs";
|
|
39
|
+
import { TabContent, TabItem, TabItems, Tabs } from "./tabs/tabs.mjs";
|
|
40
|
+
import { textareaStyles } from "./textarea/textarea.styles.mjs";
|
|
41
|
+
import { TextArea } from "./textarea/textarea.mjs";
|
|
42
|
+
import { toastStyles } from "./toast/toast.styles.mjs";
|
|
43
|
+
import { NoviToastRegion, createToastQueue } from "./toast/toast.mjs";
|
|
44
|
+
import { tooltipStyles } from "./tooltip/tooltip.styles.mjs";
|
|
45
|
+
import { Tooltip } from "./tooltip/tooltip.mjs";
|
|
46
|
+
export { Accordion, AccordionItem, Avatar, Badge, Breadcrumb, Breadcrumbs, Button, COLOR_OPTIONS, Card, CardBody, CardFooter, CardHeader, CardImage, Checkbox, CheckboxGroup, ColorPicker, Input, Menu, MenuItemComponent as MenuItem, MenuSection, MenuSeparator, Modal, ModalBody, ModalFooter, ModalTitle, NoviToastRegion, Popover, PopoverContent, Progress, Radio, RadioGroup, Select, SelectItem, Skeleton, Spinner, Switch, TabContent, TabItem, TabItems, Tabs, TextArea, Tooltip, accordionStyles, avatarStyles, badgeStyles, breadcrumbsStyles, buttonStyles, cardStyles, checkboxGroupStyles, checkboxStyles, colorPickerStyles, createToastQueue, initialsOf, inputStyles, menuStyles, modalStyles, popoverStyles, progressStyles, radioGroupStyles, radioStyles, selectStyles, skeletonStyles, spinnerStyles, switchStyles, tabsStyles, textareaStyles, toastStyles, tooltipStyles };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InputProps } from "@novi-ui/core";
|
|
2
|
+
//#region src/input/input.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* 1行テキスト入力。**罫線で囲った記入欄**。
|
|
5
|
+
*
|
|
6
|
+
* 項目名(label)と注記は等幅で出る。読ませる文と読み取らせる値を書体で分けるのが
|
|
7
|
+
* 帳票の作法で、影を持たない Flatlay では階層の次に効く区別になる(ADR-F7)。
|
|
8
|
+
*
|
|
9
|
+
* `onKeyDown` は IME 変換中のキーを受け取らない。
|
|
10
|
+
* 日本語の変換確定 Enter で送信が暴発する事故を、利用側が意識せずに防げる。
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <Input
|
|
14
|
+
* label="メールアドレス"
|
|
15
|
+
* type="email"
|
|
16
|
+
* isRequired
|
|
17
|
+
* description="ログインに使用します"
|
|
18
|
+
* />
|
|
19
|
+
*/
|
|
20
|
+
declare function Input({ variant, size, radius, label, placeholder, description, errorMessage, type, name, value, defaultValue, onChange, onKeyDown, isDisabled, isReadOnly, isRequired, isInvalid, startContent, endContent, className, classNames, id }: InputProps): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Input };
|
|
23
|
+
//# sourceMappingURL=input.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.mts","names":[],"sources":["../../src/input/input.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;iBAwBgB,QACd,SACA,MACA,QACA,OACA,aACA,aACA,cACA,MACA,MACA,OACA,cACA,UACA,WACA,YACA,YACA,YACA,WACA,cACA,YACA,WACA,YACA,MACC,6BAAU,IAAA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { inputStyles } from "./input.styles.mjs";
|
|
3
|
+
import { FieldError, Group, Input, Label, Text, TextField } from "react-aria-components";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useImeSafeKeys } from "@novi-ui/core/client";
|
|
6
|
+
//#region src/input/input.tsx
|
|
7
|
+
/**
|
|
8
|
+
* 1行テキスト入力。**罫線で囲った記入欄**。
|
|
9
|
+
*
|
|
10
|
+
* 項目名(label)と注記は等幅で出る。読ませる文と読み取らせる値を書体で分けるのが
|
|
11
|
+
* 帳票の作法で、影を持たない Flatlay では階層の次に効く区別になる(ADR-F7)。
|
|
12
|
+
*
|
|
13
|
+
* `onKeyDown` は IME 変換中のキーを受け取らない。
|
|
14
|
+
* 日本語の変換確定 Enter で送信が暴発する事故を、利用側が意識せずに防げる。
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <Input
|
|
18
|
+
* label="メールアドレス"
|
|
19
|
+
* type="email"
|
|
20
|
+
* isRequired
|
|
21
|
+
* description="ログインに使用します"
|
|
22
|
+
* />
|
|
23
|
+
*/
|
|
24
|
+
function Input$1({ variant, size, radius, label, placeholder, description, errorMessage, type = "text", name, value, defaultValue, onChange, onKeyDown, isDisabled, isReadOnly, isRequired, isInvalid, startContent, endContent, className, classNames, id }) {
|
|
25
|
+
const s = inputStyles({
|
|
26
|
+
variant,
|
|
27
|
+
size,
|
|
28
|
+
radius
|
|
29
|
+
});
|
|
30
|
+
const keyProps = useImeSafeKeys(onKeyDown);
|
|
31
|
+
return /* @__PURE__ */ jsxs(TextField, {
|
|
32
|
+
id,
|
|
33
|
+
name,
|
|
34
|
+
type,
|
|
35
|
+
value,
|
|
36
|
+
defaultValue,
|
|
37
|
+
onChange,
|
|
38
|
+
isDisabled,
|
|
39
|
+
isReadOnly,
|
|
40
|
+
isRequired,
|
|
41
|
+
isInvalid,
|
|
42
|
+
"data-slot": "root",
|
|
43
|
+
className: s.root({ class: [className, classNames?.root] }),
|
|
44
|
+
children: [
|
|
45
|
+
label !== void 0 && /* @__PURE__ */ jsx(Label, {
|
|
46
|
+
"data-slot": "label",
|
|
47
|
+
className: s.label({ class: classNames?.label }),
|
|
48
|
+
children: label
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ jsxs(Group, {
|
|
51
|
+
"data-slot": "inputWrapper",
|
|
52
|
+
className: s.inputWrapper({ class: classNames?.inputWrapper }),
|
|
53
|
+
children: [
|
|
54
|
+
startContent !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
55
|
+
"data-slot": "startContent",
|
|
56
|
+
className: s.startContent({ class: classNames?.startContent }),
|
|
57
|
+
children: startContent
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ jsx(Input, {
|
|
60
|
+
"data-slot": "input",
|
|
61
|
+
placeholder,
|
|
62
|
+
className: s.input({ class: classNames?.input }),
|
|
63
|
+
...keyProps
|
|
64
|
+
}),
|
|
65
|
+
endContent !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
66
|
+
"data-slot": "endContent",
|
|
67
|
+
className: s.endContent({ class: classNames?.endContent }),
|
|
68
|
+
children: endContent
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}),
|
|
72
|
+
description !== void 0 && /* @__PURE__ */ jsx(Text, {
|
|
73
|
+
slot: "description",
|
|
74
|
+
"data-slot": "description",
|
|
75
|
+
className: s.description({ class: classNames?.description }),
|
|
76
|
+
children: description
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ jsx(FieldError, {
|
|
79
|
+
"data-slot": "errorMessage",
|
|
80
|
+
className: s.errorMessage({ class: classNames?.errorMessage }),
|
|
81
|
+
children: errorMessage
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { Input$1 as Input };
|
|
88
|
+
|
|
89
|
+
//# sourceMappingURL=input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.mjs","names":["Input","RACInput"],"sources":["../../src/input/input.tsx"],"sourcesContent":["'use client'\n\nimport type { InputProps } from '@novi-ui/core'\nimport { useImeSafeKeys } from '@novi-ui/core/client'\nimport { FieldError, Group, Label, Input as RACInput, Text, TextField } from 'react-aria-components'\nimport { inputStyles } from './input.styles'\n\n/**\n * 1行テキスト入力。**罫線で囲った記入欄**。\n *\n * 項目名(label)と注記は等幅で出る。読ませる文と読み取らせる値を書体で分けるのが\n * 帳票の作法で、影を持たない Flatlay では階層の次に効く区別になる(ADR-F7)。\n *\n * `onKeyDown` は IME 変換中のキーを受け取らない。\n * 日本語の変換確定 Enter で送信が暴発する事故を、利用側が意識せずに防げる。\n *\n * @example\n * <Input\n * label=\"メールアドレス\"\n * type=\"email\"\n * isRequired\n * description=\"ログインに使用します\"\n * />\n */\nexport function Input({\n variant,\n size,\n radius,\n label,\n placeholder,\n description,\n errorMessage,\n type = 'text',\n name,\n value,\n defaultValue,\n onChange,\n onKeyDown,\n isDisabled,\n isReadOnly,\n isRequired,\n isInvalid,\n startContent,\n endContent,\n className,\n classNames,\n id,\n}: InputProps) {\n const s = inputStyles({ variant, size, radius })\n const keyProps = useImeSafeKeys<HTMLInputElement>(onKeyDown)\n\n return (\n <TextField\n id={id}\n name={name}\n type={type}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isRequired={isRequired}\n isInvalid={isInvalid}\n data-slot=\"root\"\n className={s.root({ class: [className, classNames?.root] })}\n >\n {label !== undefined && (\n <Label data-slot=\"label\" className={s.label({ class: classNames?.label })}>\n {label}\n </Label>\n )}\n\n <Group\n data-slot=\"inputWrapper\"\n className={s.inputWrapper({ class: classNames?.inputWrapper })}\n >\n {startContent !== undefined && (\n <span\n data-slot=\"startContent\"\n className={s.startContent({ class: classNames?.startContent })}\n >\n {startContent}\n </span>\n )}\n\n <RACInput\n data-slot=\"input\"\n placeholder={placeholder}\n className={s.input({ class: classNames?.input })}\n {...keyProps}\n />\n\n {endContent !== undefined && (\n <span data-slot=\"endContent\" className={s.endContent({ class: classNames?.endContent })}>\n {endContent}\n </span>\n )}\n </Group>\n\n {description !== undefined && (\n <Text\n slot=\"description\"\n data-slot=\"description\"\n className={s.description({ class: classNames?.description })}\n >\n {description}\n </Text>\n )}\n\n {/* 色だけに頼らずテキストを必ず伴う(WCAG 1.4.1) */}\n <FieldError\n data-slot=\"errorMessage\"\n className={s.errorMessage({ class: classNames?.errorMessage })}\n >\n {errorMessage}\n </FieldError>\n </TextField>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAgBA,QAAM,EACpB,SACA,MACA,QACA,OACA,aACA,aACA,cACA,OAAO,QACP,MACA,OACA,cACA,UACA,WACA,YACA,YACA,YACA,WACA,cACA,YACA,WACA,YACA,MACa;CACb,MAAM,IAAI,YAAY;EAAE;EAAS;EAAM;CAAO,CAAC;CAC/C,MAAM,WAAW,eAAiC,SAAS;CAE3D,OACE,qBAAC,WAAD;EACM;EACE;EACA;EACC;EACO;EACJ;EACE;EACA;EACA;EACD;EACX,aAAU;EACV,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,YAAY,IAAI,EAAE,CAAC;EAZ5D,UAAA;GAcG,UAAU,KAAA,KACT,oBAAC,OAAD;IAAO,aAAU;IAAQ,WAAW,EAAE,MAAM,EAAE,OAAO,YAAY,MAAM,CAAC;IACrE,UAAA;GACI,CAAA;GAGT,qBAAC,OAAD;IACE,aAAU;IACV,WAAW,EAAE,aAAa,EAAE,OAAO,YAAY,aAAa,CAAC;IAF/D,UAAA;KAIG,iBAAiB,KAAA,KAChB,oBAAC,QAAD;MACE,aAAU;MACV,WAAW,EAAE,aAAa,EAAE,OAAO,YAAY,aAAa,CAAC;MAE5D,UAAA;KACG,CAAA;KAGR,oBAACC,OAAD;MACE,aAAU;MACG;MACb,WAAW,EAAE,MAAM,EAAE,OAAO,YAAY,MAAM,CAAC;MAC/C,GAAI;KACL,CAAA;KAEA,eAAe,KAAA,KACd,oBAAC,QAAD;MAAM,aAAU;MAAa,WAAW,EAAE,WAAW,EAAE,OAAO,YAAY,WAAW,CAAC;MACnF,UAAA;KACG,CAAA;IAEH;;GAEN,gBAAgB,KAAA,KACf,oBAAC,MAAD;IACE,MAAK;IACL,aAAU;IACV,WAAW,EAAE,YAAY,EAAE,OAAO,YAAY,YAAY,CAAC;IAE1D,UAAA;GACG,CAAA;GAIR,oBAAC,YAAD;IACE,aAAU;IACV,WAAW,EAAE,aAAa,EAAE,OAAO,YAAY,aAAa,CAAC;IAE5D,UAAA;GACS,CAAA;EACH;;AAEf"}
|