@phila/phila-ui-search 1.0.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 +75 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +557 -0
- package/dist/index.mjs +3675 -0
- package/dist/search/src/Search.vue.d.ts +4 -0
- package/dist/search/src/Search.vue.d.ts.map +1 -0
- package/dist/search/src/index.d.ts +5 -0
- package/dist/search/src/index.d.ts.map +1 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Search Component
|
|
2
|
+
|
|
3
|
+
A simple, customizable Vue 3. Search component built with TypeScript and Vite.
|
|
4
|
+
a search bar
|
|
5
|
+
|
|
6
|
+
## Features
|
|
7
|
+
|
|
8
|
+
- 🎯 TypeScript support with full type definitions
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @phila/phila-ui-search
|
|
14
|
+
# or
|
|
15
|
+
yarn add @phila/phila-ui-search
|
|
16
|
+
# or
|
|
17
|
+
pnpm add @phila/phila-ui-search
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```vue
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import { Search } from "@phila/phila-ui-search";
|
|
25
|
+
</script>
|
|
26
|
+
<template>...Add basic component template here...</template>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Props
|
|
30
|
+
|
|
31
|
+
| Prop | Type | Default | Description |
|
|
32
|
+
| ---- | ---- | ------- | ----------- |
|
|
33
|
+
|
|
34
|
+
| ...Add props here...
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
| Event | Payload | Description |
|
|
39
|
+
| ----- | ------- | ----------- |
|
|
40
|
+
|
|
41
|
+
| ...Add events here...
|
|
42
|
+
|
|
43
|
+
## Examples
|
|
44
|
+
|
|
45
|
+
...Add examples here...
|
|
46
|
+
|
|
47
|
+
## Development
|
|
48
|
+
|
|
49
|
+
### Install Dependencies
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pnpm install
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Run Demo
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pnpm dev
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Build Library
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pnpm build
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Type Check
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pnpm type-check
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
|
|
75
|
+
MIT
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.x-button{color:var(--Schemes-On-Surface)!important}.phila-input--required .phila-label:after{content:"*";padding-left:.125rem}.phila-input{display:flex;flex-direction:column}.phila-input:focus-within .phila-label{color:var(--Schemes-Primary)}.phila-input .phila-label{color:var(--Schemes-On-Surface)}.phila-input .phila-label--disabled{color:var(--Schemes-Surface-Container-High)}.phila-input .phila-text-field{box-sizing:border-box;border:var(--scale-xxsmall) solid var(--Schemes-Surface-Container-Low);border-bottom:var(--scale-xxsmall) solid var(--Schemes-Outline);background:var(--Schemes-Surface-Container-Low);display:flex;width:25rem;padding:0 var(--scale-small) 0 var(--scale-small);flex-direction:column;align-items:center;gap:.625rem;flex:1 0 0}.phila-input .phila-text-field:focus-within{background-color:var(--Schemes-Surface-Container-Lowest);border-style:solid;border-width:2px;border-color:var(--Schemes-Primary)}.phila-input .phila-text-field--filled{border-color:var(--Schemes-On-Surface);border-width:1px;border-style:solid;background-color:var(--Schemes-Surface-Container-Lowest)}.phila-input .phila-text-field--filled .state-layer{padding:calc(var(--scale-xsmall, .25rem) + 1px) calc(var(--scale-small, .5rem) + 1px)}.phila-input .state-layer{display:flex;padding:var(--scale-xsmall, .25rem) var(--scale-small, .5rem);align-items:center;gap:.5rem;flex:1 0 0;align-self:stretch}.phila-input .state-layer:focus-within{padding:var(--scale-xsmall, .25rem) var(--scale-small, .5rem)}.phila-input .content{display:flex;height:3rem;padding:var(--scale-xsmall, .25rem) 0;flex-direction:column;justify-content:center;align-items:flex-start;flex:1 0 0}.phila-input .input-text-container{display:flex;align-items:center;gap:.125rem;align-self:stretch;width:100%}.phila-input .phila-text-field-input{width:100%;background-color:inherit;border:none;color:var(--Schemes-On-Surface, #000)}.phila-input .phila-text-field-input:focus{outline:none}.phila-input .phila-text-field-input:focus-visible{outline:none}.phila-input .phila-text-field-input::placeholder{color:var(--Schemes-Surface-Container-Highest);font-family:var(--Static-Body-Large-Font);font-size:var(--Static-Body-Large-Size);font-style:normal;font-weight:400;line-height:var(--Static-Body-Large-Line-Height);letter-spacing:var(--Static-Body-Large-Tracking)}.phila-input .phila-supporting-text--disabled{color:var(--Schemes-Surface-Container-High)}.phila-input .phila-supporting-text{color:var(--Schemes-On-Surface)}.phila-input .phila-error-text{color:var(--Schemes-Error-Container-2)}.phila-input--error:focus-within .phila-label{color:var(--Schemes-Error-Container-2)}.phila-input--error .phila-label{color:var(--Schemes-Error-Container-2)}.phila-input--error .phila-text-field{border-color:var(--Schemes-Error-Container-2);border-width:2px;border-style:solid;background-color:var(--Schemes-Surface-Container-Lowest)}.phila-input--error .phila-text-field:focus-within{border-color:var(--Schemes-Error-Container-2);border-width:2px;border-style:solid;background-color:var(--Schemes-Surface-Container-Lowest)}.phila-input--error .state-layer{padding:calc(var(--scale-xsmall, .25rem) - 1px) calc(var(--scale-small, .5rem) - 1px)!important}.phila-input--disabled{cursor:not-allowed}.phila-input--disabled .phila-label{cursor:not-allowed;color:var(--Schemes-Surface-Container-High)}.phila-input--disabled .phila-text-field{cursor:not-allowed;color:var(--Schemes-Surface-Container-High);border-color:var(--Schemes-Surface-Container-High);border-width:1px;border-style:solid;background-color:var(--Schemes-Surface-Container-Lowest)}.phila-input--disabled .phila-supporting-text{color:var(--Schemes-Surface-Container-High)}.search{display:flex;width:48.8125rem;align-items:center}.phila-text-field--search{border-color:var(--Schemes-Primary)!important;border-width:2px!important;border-style:solid!important;background-color:var(--Schemes-Surface-Container-Lowest)!important}.phila-text-field--search .state-layer{padding:var(--scale-xsmall, .25rem) var(--scale-small, .5rem)!important;padding-top:0!important;padding-bottom:0!important}.phila-text-field--search .state-layer:focus-within{padding-top:0!important;padding-bottom:0!important}.phila-button--search{background:var(--Schemes-Primary)!important}
|
package/dist/index.d.ts
ADDED