@youcan/celeste 0.9.0 → 0.9.2
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/celeste.css +84 -70
- package/dist/cjs/chunks/rich-editor.cjs +1 -1
- package/dist/cjs/chunks/text-input.cjs +1 -1
- package/dist/es/chunks/rich-editor.js +1 -1
- package/dist/es/chunks/text-input.js +1 -1
- package/package.json +3 -3
- package/src/components/rich-editor/rich-editor.vue +1 -0
- package/src/components/text-input/stories/text-input.stories.ts +22 -0
- package/src/components/text-input/text-input.vue +19 -0
package/dist/celeste.css
CHANGED
|
@@ -2000,7 +2000,7 @@ to {
|
|
|
2000
2000
|
.celeste-text-input-button[inline=true][data-v-8b3cdb5f]:hover {
|
|
2001
2001
|
background-color: transparent !important;
|
|
2002
2002
|
}/* stylelint-disable no-descending-specificity */
|
|
2003
|
-
.celeste-text-input-wrapper[data-v-
|
|
2003
|
+
.celeste-text-input-wrapper[data-v-ebb54f92] {
|
|
2004
2004
|
--celeste-text-input-border-color: var(--color-stroke-soft-200);
|
|
2005
2005
|
--celeste-text-input-drop-shadow: var(--shadow-regular-xs);
|
|
2006
2006
|
--celeste-text-input-icon-color: var(--color-text-soft-400);
|
|
@@ -2023,28 +2023,28 @@ to {
|
|
|
2023
2023
|
font: var(--paragraph-sm);
|
|
2024
2024
|
gap: var(--input-gap);
|
|
2025
2025
|
}
|
|
2026
|
-
.celeste-text-input-wrapper[size=xs][data-v-
|
|
2026
|
+
.celeste-text-input-wrapper[size=xs][data-v-ebb54f92] {
|
|
2027
2027
|
--input-gap: 8px;
|
|
2028
2028
|
--input-height: 32px;
|
|
2029
2029
|
--input-radius: var(--radius-8);
|
|
2030
2030
|
--input-padding: calc(var(--spacing-8) - var(--spacing-2));
|
|
2031
2031
|
}
|
|
2032
|
-
.celeste-text-input-wrapper[size=sm][data-v-
|
|
2032
|
+
.celeste-text-input-wrapper[size=sm][data-v-ebb54f92] {
|
|
2033
2033
|
--input-gap: 6px;
|
|
2034
2034
|
--input-height: 36px;
|
|
2035
2035
|
--input-radius: var(--radius-8);
|
|
2036
2036
|
--input-padding: var(--spacing-8);
|
|
2037
2037
|
}
|
|
2038
|
-
.celeste-text-input-wrapper[size=md][data-v-
|
|
2038
|
+
.celeste-text-input-wrapper[size=md][data-v-ebb54f92] {
|
|
2039
2039
|
--input-gap: 6px;
|
|
2040
2040
|
--input-height: 40px;
|
|
2041
2041
|
--input-radius: var(--radius-10);
|
|
2042
2042
|
--input-padding: var(--spacing-10);
|
|
2043
2043
|
}
|
|
2044
|
-
.celeste-text-input-wrapper[has-error=true][data-v-
|
|
2044
|
+
.celeste-text-input-wrapper[has-error=true][data-v-ebb54f92] {
|
|
2045
2045
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
2046
2046
|
}
|
|
2047
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
2047
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-ebb54f92] {
|
|
2048
2048
|
width: 100%;
|
|
2049
2049
|
height: 100%;
|
|
2050
2050
|
padding: 0;
|
|
@@ -2054,49 +2054,62 @@ to {
|
|
|
2054
2054
|
color: inherit;
|
|
2055
2055
|
font: inherit;
|
|
2056
2056
|
}
|
|
2057
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
2057
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-ebb54f92]::-moz-placeholder {
|
|
2058
2058
|
-moz-transition: color var(--animation-fast) ease-out;
|
|
2059
2059
|
transition: color var(--animation-fast) ease-out;
|
|
2060
2060
|
color: var(--celeste-text-input-placeholder-color);
|
|
2061
2061
|
}
|
|
2062
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
2062
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-ebb54f92]::placeholder {
|
|
2063
2063
|
transition: color var(--animation-fast) ease-out;
|
|
2064
2064
|
color: var(--celeste-text-input-placeholder-color);
|
|
2065
2065
|
}
|
|
2066
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
2066
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-ebb54f92]::-webkit-search-cancel-button {
|
|
2067
2067
|
display: none;
|
|
2068
2068
|
-webkit-appearance: none;
|
|
2069
2069
|
appearance: none;
|
|
2070
2070
|
}
|
|
2071
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
2071
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-ebb54f92]::-webkit-search-decoration {
|
|
2072
2072
|
display: none;
|
|
2073
2073
|
-webkit-appearance: none;
|
|
2074
2074
|
appearance: none;
|
|
2075
2075
|
}
|
|
2076
|
-
.celeste-text-input-wrapper[data-v-
|
|
2076
|
+
.celeste-text-input-wrapper .celeste-text-input[type=date][data-v-ebb54f92]::-webkit-calendar-picker-indicator {
|
|
2077
|
+
display: none;
|
|
2078
|
+
-webkit-appearance: none;
|
|
2079
|
+
appearance: none;
|
|
2080
|
+
}
|
|
2081
|
+
.celeste-text-input-wrapper .celeste-text-input[type=date][data-v-ebb54f92]::-webkit-clear-button, .celeste-text-input-wrapper .celeste-text-input[type=date][data-v-ebb54f92]::-webkit-inner-spin-button {
|
|
2082
|
+
display: none;
|
|
2083
|
+
-webkit-appearance: none;
|
|
2084
|
+
appearance: none;
|
|
2085
|
+
}
|
|
2086
|
+
.celeste-text-input-wrapper .celeste-text-input[type=date][data-v-ebb54f92]::-ms-clear, .celeste-text-input-wrapper .celeste-text-input[type=date][data-v-ebb54f92]::-ms-expand {
|
|
2087
|
+
display: none;
|
|
2088
|
+
}
|
|
2089
|
+
.celeste-text-input-wrapper[data-v-ebb54f92]:has(.celeste-text-input-leading-node) {
|
|
2077
2090
|
padding-inline-start: 0;
|
|
2078
2091
|
}
|
|
2079
|
-
.celeste-text-input-wrapper[data-v-
|
|
2092
|
+
.celeste-text-input-wrapper[data-v-ebb54f92]:has(.celeste-text-input-trailing-node) {
|
|
2080
2093
|
padding-inline-end: 0;
|
|
2081
2094
|
}
|
|
2082
|
-
.celeste-text-input-wrapper[data-v-
|
|
2095
|
+
.celeste-text-input-wrapper[data-v-ebb54f92]:has(.celeste-text-input:focus) {
|
|
2083
2096
|
--celeste-text-input-border-color: var(--color-stroke-strong-950);
|
|
2084
2097
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
2085
2098
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
2086
2099
|
--celeste-text-input-affix-color: var(--color-text-sub-600);
|
|
2087
2100
|
outline-color: var(--color-stroke-soft-200);
|
|
2088
2101
|
}
|
|
2089
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-
|
|
2102
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-ebb54f92] {
|
|
2090
2103
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
2091
2104
|
outline-color: var(--color-state-error-lighter);
|
|
2092
2105
|
}
|
|
2093
|
-
.celeste-text-input-wrapper[data-v-
|
|
2106
|
+
.celeste-text-input-wrapper[data-v-ebb54f92] input:-webkit-autofill {
|
|
2094
2107
|
-webkit-transition: background-color 5000s ease-in-out 0s;
|
|
2095
2108
|
transition: background-color 5000s ease-in-out 0s;
|
|
2096
2109
|
-webkit-background-clip: text;
|
|
2097
2110
|
background-clip: text;
|
|
2098
2111
|
}
|
|
2099
|
-
.celeste-text-input-wrapper[data-v-
|
|
2112
|
+
.celeste-text-input-wrapper[data-v-ebb54f92]:has(.celeste-text-input:disabled) {
|
|
2100
2113
|
--celeste-text-input-border-color: transparent;
|
|
2101
2114
|
--celeste-text-input-drop-shadow: none;
|
|
2102
2115
|
--celeste-text-input-affix-background-color: var(--color-bg-weak-50);
|
|
@@ -2108,56 +2121,56 @@ to {
|
|
|
2108
2121
|
color: var(--color-text-disabled-300);
|
|
2109
2122
|
pointer-events: none;
|
|
2110
2123
|
}
|
|
2111
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
2124
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-ebb54f92]::-moz-placeholder {
|
|
2112
2125
|
color: currentcolor;
|
|
2113
2126
|
}
|
|
2114
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
2127
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-ebb54f92]::placeholder {
|
|
2115
2128
|
color: currentcolor;
|
|
2116
2129
|
}
|
|
2117
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-
|
|
2130
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-ebb54f92] {
|
|
2118
2131
|
color: var(--color-text-disabled-300);
|
|
2119
2132
|
pointer-events: none;
|
|
2120
2133
|
}
|
|
2121
|
-
.celeste-text-input-wrapper[data-v-
|
|
2134
|
+
.celeste-text-input-wrapper[data-v-ebb54f92]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node)) {
|
|
2122
2135
|
--celeste-text-input-border-color: transparent;
|
|
2123
2136
|
}
|
|
2124
|
-
.celeste-text-input-wrapper[data-v-
|
|
2137
|
+
.celeste-text-input-wrapper[data-v-ebb54f92]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node:hover)) {
|
|
2125
2138
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
2126
2139
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
2127
2140
|
background-color: var(--color-bg-weak-50);
|
|
2128
2141
|
}
|
|
2129
|
-
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-
|
|
2142
|
+
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-ebb54f92] {
|
|
2130
2143
|
flex-shrink: 0;
|
|
2131
2144
|
width: 20px;
|
|
2132
2145
|
height: 20px;
|
|
2133
2146
|
transition: all var(--animation-fast) ease-out;
|
|
2134
2147
|
color: var(--celeste-text-input-icon-color);
|
|
2135
2148
|
}
|
|
2136
|
-
.celeste-text-input-wrapper[data-v-
|
|
2137
|
-
.celeste-text-input-wrapper[data-v-
|
|
2149
|
+
.celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-leading-node,
|
|
2150
|
+
.celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2138
2151
|
height: calc(var(--input-height) - var(--spacing-2)) !important;
|
|
2139
2152
|
}
|
|
2140
|
-
[dir=ltr] .celeste-text-input-wrapper[data-v-
|
|
2153
|
+
[dir=ltr] .celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
2141
2154
|
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2142
2155
|
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2143
2156
|
}
|
|
2144
|
-
[dir=ltr] .celeste-text-input-wrapper[data-v-
|
|
2157
|
+
[dir=ltr] .celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2145
2158
|
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
2146
2159
|
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
2147
2160
|
}
|
|
2148
|
-
[dir=rtl] .celeste-text-input-wrapper[data-v-
|
|
2161
|
+
[dir=rtl] .celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
2149
2162
|
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
2150
2163
|
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
2151
2164
|
}
|
|
2152
|
-
[dir=rtl] .celeste-text-input-wrapper[data-v-
|
|
2165
|
+
[dir=rtl] .celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2153
2166
|
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2154
2167
|
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2155
2168
|
}
|
|
2156
|
-
.celeste-text-input-wrapper[data-v-
|
|
2169
|
+
.celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
2157
2170
|
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2158
2171
|
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2159
2172
|
}
|
|
2160
|
-
.celeste-text-input-wrapper[data-v-
|
|
2173
|
+
.celeste-text-input-wrapper[data-v-ebb54f92] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2161
2174
|
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
2162
2175
|
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
2163
2176
|
}.celeste-picker-trigger[data-v-94b97787] {
|
|
@@ -3622,14 +3635,14 @@ to {
|
|
|
3622
3635
|
border-radius: var(--radius-8);
|
|
3623
3636
|
color: var(--color-neutral-700);
|
|
3624
3637
|
gap: var(--spacing-8);
|
|
3625
|
-
}.celeste-rich-editor[data-v-
|
|
3638
|
+
}.celeste-rich-editor[data-v-d03a78c8] {
|
|
3626
3639
|
position: relative;
|
|
3627
3640
|
border: 1px solid var(--color-stroke-soft-200);
|
|
3628
3641
|
border-radius: var(--spacing-12);
|
|
3629
3642
|
background: var(--color-bg-white-0);
|
|
3630
3643
|
box-shadow: var(--shadow-regular-xs);
|
|
3631
3644
|
}
|
|
3632
|
-
.celeste-rich-editor .toolbar[data-v-
|
|
3645
|
+
.celeste-rich-editor .toolbar[data-v-d03a78c8] {
|
|
3633
3646
|
display: flex;
|
|
3634
3647
|
flex-wrap: wrap;
|
|
3635
3648
|
align-items: center;
|
|
@@ -3639,127 +3652,128 @@ to {
|
|
|
3639
3652
|
background: var(--color-bg-white-0);
|
|
3640
3653
|
gap: var(--spacing-4);
|
|
3641
3654
|
}
|
|
3642
|
-
.celeste-rich-editor .toolbar[data-v-
|
|
3655
|
+
.celeste-rich-editor .toolbar[data-v-d03a78c8] .celeste-cbutton:active {
|
|
3643
3656
|
background-color: var(--color-bg-weak-50);
|
|
3644
3657
|
box-shadow: none;
|
|
3645
3658
|
color: var(--color-icon-strong-950);
|
|
3646
3659
|
}
|
|
3647
|
-
.celeste-rich-editor .toolbar .celeste-cbutton.active[data-v-
|
|
3660
|
+
.celeste-rich-editor .toolbar .celeste-cbutton.active[data-v-d03a78c8] {
|
|
3648
3661
|
background-color: var(--color-neutral-100);
|
|
3649
3662
|
color: var(--color-icon-strong-950);
|
|
3650
3663
|
}
|
|
3651
|
-
.celeste-rich-editor .toolbar .divider[data-v-
|
|
3664
|
+
.celeste-rich-editor .toolbar .divider[data-v-d03a78c8] {
|
|
3652
3665
|
width: 1px;
|
|
3653
3666
|
height: 16px;
|
|
3654
3667
|
margin: 0 3px;
|
|
3655
3668
|
background: var(--color-stroke-soft-200);
|
|
3656
3669
|
}
|
|
3657
|
-
.celeste-rich-editor .toolbar .extra-settings-wrapper[data-v-
|
|
3670
|
+
.celeste-rich-editor .toolbar .extra-settings-wrapper[data-v-d03a78c8] {
|
|
3658
3671
|
display: flex;
|
|
3659
3672
|
align-items: center;
|
|
3660
3673
|
}
|
|
3661
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3674
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] {
|
|
3662
3675
|
min-height: 88px;
|
|
3663
3676
|
margin: var(--spacing-12);
|
|
3664
3677
|
padding-inline-end: var(--spacing-12);
|
|
3665
3678
|
overflow-y: auto;
|
|
3666
3679
|
resize: vertical;
|
|
3667
3680
|
}
|
|
3668
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3681
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap {
|
|
3669
3682
|
min-height: 88px;
|
|
3670
3683
|
outline: none;
|
|
3671
3684
|
}
|
|
3672
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3685
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap :first-child {
|
|
3673
3686
|
margin-top: 0;
|
|
3674
3687
|
}
|
|
3675
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3688
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap p.is-editor-empty:first-child::before {
|
|
3676
3689
|
content: attr(data-placeholder);
|
|
3690
|
+
float: left;
|
|
3677
3691
|
height: 0;
|
|
3678
3692
|
color: var(--color-neutral-300);
|
|
3679
3693
|
pointer-events: none;
|
|
3680
3694
|
}
|
|
3681
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3682
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3683
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3684
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3685
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3686
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3687
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3695
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h1,
|
|
3696
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h2,
|
|
3697
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h3,
|
|
3698
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h4,
|
|
3699
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h5,
|
|
3700
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h6,
|
|
3701
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap p {
|
|
3688
3702
|
margin-bottom: 0;
|
|
3689
3703
|
}
|
|
3690
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3704
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h1 {
|
|
3691
3705
|
margin-top: 40px;
|
|
3692
3706
|
font-size: 56px;
|
|
3693
3707
|
font-weight: 500;
|
|
3694
3708
|
letter-spacing: -0.01em;
|
|
3695
3709
|
line-height: 64px;
|
|
3696
3710
|
}
|
|
3697
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3711
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h2 {
|
|
3698
3712
|
margin-top: 36px;
|
|
3699
3713
|
font-size: 48px;
|
|
3700
3714
|
font-weight: 500;
|
|
3701
3715
|
letter-spacing: -0.01em;
|
|
3702
3716
|
line-height: 56px;
|
|
3703
3717
|
}
|
|
3704
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3718
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h3 {
|
|
3705
3719
|
margin-top: 32px;
|
|
3706
3720
|
font-size: 40px;
|
|
3707
3721
|
font-weight: 500;
|
|
3708
3722
|
letter-spacing: -0.01em;
|
|
3709
3723
|
line-height: 48px;
|
|
3710
3724
|
}
|
|
3711
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3725
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h4 {
|
|
3712
3726
|
margin-top: 20px;
|
|
3713
3727
|
font-size: 32px;
|
|
3714
3728
|
font-weight: 500;
|
|
3715
3729
|
letter-spacing: -0.005em;
|
|
3716
3730
|
line-height: 40px;
|
|
3717
3731
|
}
|
|
3718
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3732
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h5 {
|
|
3719
3733
|
margin-top: 20px;
|
|
3720
3734
|
font-size: 24px;
|
|
3721
3735
|
font-weight: 500;
|
|
3722
3736
|
letter-spacing: 0;
|
|
3723
3737
|
line-height: 32px;
|
|
3724
3738
|
}
|
|
3725
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3739
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap h6 {
|
|
3726
3740
|
margin-top: 16px;
|
|
3727
3741
|
font-size: 20px;
|
|
3728
3742
|
font-weight: 500;
|
|
3729
3743
|
letter-spacing: 0;
|
|
3730
3744
|
line-height: 28px;
|
|
3731
3745
|
}
|
|
3732
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3746
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap p {
|
|
3733
3747
|
margin-top: 12px;
|
|
3734
3748
|
font-size: 16px;
|
|
3735
3749
|
font-weight: 400;
|
|
3736
3750
|
letter-spacing: -0.011em;
|
|
3737
3751
|
line-height: 24px;
|
|
3738
3752
|
}
|
|
3739
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3740
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3753
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap ul,
|
|
3754
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap ol {
|
|
3741
3755
|
margin: 1.25rem 1rem 1.25rem 0.4rem;
|
|
3742
3756
|
padding: 0 1rem;
|
|
3743
3757
|
}
|
|
3744
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3745
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3758
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap ul li p,
|
|
3759
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap ol li p {
|
|
3746
3760
|
margin-top: 0.25em;
|
|
3747
3761
|
margin-bottom: 0.25em;
|
|
3748
3762
|
}
|
|
3749
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3763
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap ul {
|
|
3750
3764
|
list-style-type: disc;
|
|
3751
3765
|
}
|
|
3752
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3766
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap ol {
|
|
3753
3767
|
list-style-type: decimal;
|
|
3754
3768
|
}
|
|
3755
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3769
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap a {
|
|
3756
3770
|
color: var(--color-blue-700);
|
|
3757
3771
|
cursor: pointer;
|
|
3758
3772
|
}
|
|
3759
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3773
|
+
.celeste-rich-editor .text-field[data-v-d03a78c8] .tiptap a:hover {
|
|
3760
3774
|
color: var(--color-blue-500);
|
|
3761
3775
|
}
|
|
3762
|
-
.celeste-rich-editor .characters-count[data-v-
|
|
3776
|
+
.celeste-rich-editor .characters-count[data-v-d03a78c8] {
|
|
3763
3777
|
position: absolute;
|
|
3764
3778
|
bottom: 7px;
|
|
3765
3779
|
inset-inline-end: 22px;
|
|
@@ -3771,23 +3785,23 @@ to {
|
|
|
3771
3785
|
color: var(--color-text-soft-400);
|
|
3772
3786
|
font: var(--subheading-xxs);
|
|
3773
3787
|
}
|
|
3774
|
-
.celeste-rich-editor .characters-count.warning[data-v-
|
|
3788
|
+
.celeste-rich-editor .characters-count.warning[data-v-d03a78c8] {
|
|
3775
3789
|
color: var(--color-state-warning-base);
|
|
3776
3790
|
}
|
|
3777
|
-
.celeste-rich-editor .characters-count.danger[data-v-
|
|
3791
|
+
.celeste-rich-editor .characters-count.danger[data-v-d03a78c8] {
|
|
3778
3792
|
color: var(--color-state-error-base);
|
|
3779
3793
|
}
|
|
3780
|
-
.celeste-rich-editor .select-menu-wrapper[data-v-
|
|
3794
|
+
.celeste-rich-editor .select-menu-wrapper[data-v-d03a78c8] {
|
|
3781
3795
|
padding: 0 var(--spacing-4);
|
|
3782
3796
|
}
|
|
3783
|
-
.celeste-rich-editor[data-v-
|
|
3784
|
-
.celeste-rich-editor[data-v-
|
|
3797
|
+
.celeste-rich-editor[data-v-d03a78c8]:dir(rtl) .i-celeste-arrow-go-back-line,
|
|
3798
|
+
.celeste-rich-editor[data-v-d03a78c8]:dir(rtl) .i-celeste-arrow-go-forward-line {
|
|
3785
3799
|
transform: scaleX(-1);
|
|
3786
3800
|
}
|
|
3787
|
-
.celeste-rich-editor[data-v-
|
|
3801
|
+
.celeste-rich-editor[data-v-d03a78c8] .tippy-box[data-theme='custom'] {
|
|
3788
3802
|
max-width: 400px !important;
|
|
3789
3803
|
}
|
|
3790
|
-
.celeste-select-item[data-state=checked][data-v-
|
|
3804
|
+
.celeste-select-item[data-state=checked][data-v-d03a78c8] .i-celeste-check-line {
|
|
3791
3805
|
display: none;
|
|
3792
3806
|
}.celeste-pagination-ellipsis[data-v-5fcf13e0] {
|
|
3793
3807
|
-webkit-user-select: none;
|
|
@@ -5178,7 +5178,7 @@ var rich_editor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
5178
5178
|
});
|
|
5179
5179
|
//#endregion
|
|
5180
5180
|
//#region src/components/rich-editor/rich-editor.vue
|
|
5181
|
-
var rich_editor_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(rich_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5181
|
+
var rich_editor_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(rich_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d03a78c8"]]);
|
|
5182
5182
|
//#endregion
|
|
5183
5183
|
Object.defineProperty(exports, "rich_editor_default", {
|
|
5184
5184
|
enumerable: true,
|
|
@@ -109,7 +109,7 @@ var text_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0,
|
|
|
109
109
|
});
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/components/text-input/text-input.vue
|
|
112
|
-
var text_input_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(text_input_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
112
|
+
var text_input_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(text_input_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ebb54f92"]]);
|
|
113
113
|
//#endregion
|
|
114
114
|
Object.defineProperty(exports, "text_input_default", {
|
|
115
115
|
enumerable: true,
|
|
@@ -5176,6 +5176,6 @@ var rich_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
5176
5176
|
])) : createCommentVNode("", true);
|
|
5177
5177
|
};
|
|
5178
5178
|
}
|
|
5179
|
-
}), [["__scopeId", "data-v-
|
|
5179
|
+
}), [["__scopeId", "data-v-d03a78c8"]]);
|
|
5180
5180
|
//#endregion
|
|
5181
5181
|
export { rich_editor_default as t };
|
|
@@ -107,6 +107,6 @@ var text_input_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @_
|
|
|
107
107
|
], 10, _hoisted_1);
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
}), [["__scopeId", "data-v-
|
|
110
|
+
}), [["__scopeId", "data-v-ebb54f92"]]);
|
|
111
111
|
//#endregion
|
|
112
112
|
export { text_input_default as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcan/celeste",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"reka-ui": "^2.10.1",
|
|
50
50
|
"tinycolor2": "^1.6.0",
|
|
51
51
|
"vue-sonner": "^2.0.9",
|
|
52
|
-
"@youcan/celeste-icons": "0.9.
|
|
53
|
-
"@youcan/celeste-tokens": "0.9.
|
|
52
|
+
"@youcan/celeste-icons": "0.9.2",
|
|
53
|
+
"@youcan/celeste-tokens": "0.9.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@chromatic-com/storybook": "^4.1.3",
|
|
@@ -276,6 +276,28 @@ export const WithInlineButton: Story = {
|
|
|
276
276
|
}),
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
+
export const Date: Story = {
|
|
280
|
+
args: {
|
|
281
|
+
type: 'date',
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
render: args => ({
|
|
285
|
+
components: { TextInput, TextInputAffix, TextInputButton },
|
|
286
|
+
setup() {
|
|
287
|
+
return { args };
|
|
288
|
+
},
|
|
289
|
+
template: `
|
|
290
|
+
<div style="display: grid; gap: 20px; justify-content: center;">
|
|
291
|
+
<TextInput v-bind="args" style="width: 300px">
|
|
292
|
+
<template #leadingIcon>
|
|
293
|
+
<i class="i-celeste-calendar-line" />
|
|
294
|
+
</template>
|
|
295
|
+
</TextInput>
|
|
296
|
+
</div>
|
|
297
|
+
`,
|
|
298
|
+
}),
|
|
299
|
+
};
|
|
300
|
+
|
|
279
301
|
const OPTIONS = [
|
|
280
302
|
{ value: { id: 1 }, label: 'MAD', icon: 'i-celeste-bank-card-2-line' },
|
|
281
303
|
{ value: { id: 2 }, label: 'EUR', icon: 'i-celeste-bank-card-2-line' },
|
|
@@ -170,6 +170,25 @@ function clearInput() {
|
|
|
170
170
|
appearance: none;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
+
|
|
174
|
+
// Hide default browser date UI (calendar icon, clear button, spinner)
|
|
175
|
+
&[type='date'] {
|
|
176
|
+
&::-webkit-calendar-picker-indicator {
|
|
177
|
+
display: none;
|
|
178
|
+
appearance: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&::-webkit-clear-button,
|
|
182
|
+
&::-webkit-inner-spin-button {
|
|
183
|
+
display: none;
|
|
184
|
+
appearance: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&::-ms-clear,
|
|
188
|
+
&::-ms-expand {
|
|
189
|
+
display: none;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
173
192
|
}
|
|
174
193
|
|
|
175
194
|
&:has(.celeste-text-input-leading-node) {
|