siesa-ui-kit 1.0.5 → 1.0.7
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 +115 -89
- package/dist/ButtonTest.d.ts +6 -0
- package/dist/ButtonTest.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +23 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.types.d.ts +46 -0
- package/dist/components/Alert/Alert.types.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +41 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.types.d.ts +46 -0
- package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +42 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.types.d.ts +32 -0
- package/dist/components/Badge/Badge.types.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +84 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.types.d.ts +162 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -0
- package/dist/components/Button/icons.d.ts +26 -0
- package/dist/components/Button/icons.d.ts.map +1 -0
- package/{src/components/Button/index.ts → dist/components/Button/index.d.ts} +4 -3
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +31 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +53 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +38 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts.map +1 -0
- package/dist/components/DescriptionList/DescriptionList.types.d.ts +27 -0
- package/dist/components/DescriptionList/DescriptionList.types.d.ts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +33 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.types.d.ts +22 -0
- package/dist/components/Divider/Divider.types.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +66 -0
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +124 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts.map +1 -0
- package/dist/components/Dropdown/icons.d.ts +10 -0
- package/dist/components/Dropdown/icons.d.ts.map +1 -0
- package/{src/components/Dropdown/index.ts → dist/components/Dropdown/index.d.ts} +4 -8
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.d.ts +101 -0
- package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.d.ts.map +1 -0
- package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.types.d.ts +95 -0
- package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.types.d.ts.map +1 -0
- package/dist/components/DropdownItemCollapsible/icons.d.ts +19 -0
- package/dist/components/DropdownItemCollapsible/icons.d.ts.map +1 -0
- package/dist/components/DropdownItemCollapsible/index.d.ts +9 -0
- package/dist/components/DropdownItemCollapsible/index.d.ts.map +1 -0
- package/dist/components/DropdownItemHeading/DropdownItemHeading.d.ts +75 -0
- package/dist/components/DropdownItemHeading/DropdownItemHeading.d.ts.map +1 -0
- package/dist/components/DropdownItemHeading/DropdownItemHeading.types.d.ts +85 -0
- package/dist/components/DropdownItemHeading/DropdownItemHeading.types.d.ts.map +1 -0
- package/dist/components/DropdownItemHeading/icons.d.ts +48 -0
- package/dist/components/DropdownItemHeading/icons.d.ts.map +1 -0
- package/dist/components/DropdownItemHeading/index.d.ts +4 -0
- package/dist/components/DropdownItemHeading/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +40 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.types.d.ts +71 -0
- package/dist/components/Input/Input.types.d.ts.map +1 -0
- package/dist/components/Input/icons.d.ts +15 -0
- package/dist/components/Input/icons.d.ts.map +1 -0
- package/{src/components/Input/index.ts → dist/components/Input/index.d.ts} +3 -2
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/LoginView/LoginView.d.ts +36 -0
- package/dist/components/LoginView/LoginView.d.ts.map +1 -0
- package/dist/components/LoginView/LoginView.types.d.ts +46 -0
- package/dist/components/LoginView/LoginView.types.d.ts.map +1 -0
- package/dist/components/LoginView/icons.d.ts +18 -0
- package/dist/components/LoginView/icons.d.ts.map +1 -0
- package/{src/components/LoginView/index.ts → dist/components/LoginView/index.d.ts} +4 -3
- package/dist/components/LoginView/index.d.ts.map +1 -0
- package/dist/components/Navbar/Navbar.d.ts +63 -0
- package/dist/components/Navbar/Navbar.d.ts.map +1 -0
- package/dist/components/Navbar/Navbar.types.d.ts +194 -0
- package/dist/components/Navbar/Navbar.types.d.ts.map +1 -0
- package/dist/components/Navbar/icons.d.ts +12 -0
- package/dist/components/Navbar/icons.d.ts.map +1 -0
- package/dist/components/Navbar/index.d.ts +4 -0
- package/dist/components/Navbar/index.d.ts.map +1 -0
- package/dist/components/NavigationBar/NavigationBar.d.ts +75 -0
- package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -0
- package/dist/components/NavigationBar/NavigationBar.types.d.ts +63 -0
- package/dist/components/NavigationBar/NavigationBar.types.d.ts.map +1 -0
- package/{src/components/NavigationBar/index.ts → dist/components/NavigationBar/index.d.ts} +3 -2
- package/dist/components/NavigationBar/index.d.ts.map +1 -0
- package/dist/components/NavigationRail/NavigationRail.d.ts +7 -0
- package/dist/components/NavigationRail/NavigationRail.d.ts.map +1 -0
- package/dist/components/NavigationRail/NavigationRail.types.d.ts +92 -0
- package/dist/components/NavigationRail/NavigationRail.types.d.ts.map +1 -0
- package/{src/components/NavigationRail/index.ts → dist/components/NavigationRail/index.d.ts} +3 -2
- package/dist/components/NavigationRail/index.d.ts.map +1 -0
- package/dist/components/NavigationRailItem/NavigationRailItem.d.ts +90 -0
- package/dist/components/NavigationRailItem/NavigationRailItem.d.ts.map +1 -0
- package/dist/components/NavigationRailItem/NavigationRailItem.types.d.ts +155 -0
- package/dist/components/NavigationRailItem/NavigationRailItem.types.d.ts.map +1 -0
- package/dist/components/NavigationRailItem/index.d.ts +3 -0
- package/dist/components/NavigationRailItem/index.d.ts.map +1 -0
- package/dist/components/NavigationRailPanel/NavigationRailPanel.d.ts +124 -0
- package/dist/components/NavigationRailPanel/NavigationRailPanel.d.ts.map +1 -0
- package/dist/components/NavigationRailPanel/NavigationRailPanel.types.d.ts +154 -0
- package/dist/components/NavigationRailPanel/NavigationRailPanel.types.d.ts.map +1 -0
- package/dist/components/NavigationRailPanel/index.d.ts +3 -0
- package/dist/components/NavigationRailPanel/index.d.ts.map +1 -0
- package/dist/components/NavigationRailTypes/NavigationRailTypes.d.ts +99 -0
- package/dist/components/NavigationRailTypes/NavigationRailTypes.d.ts.map +1 -0
- package/dist/components/NavigationRailTypes/NavigationRailTypes.types.d.ts +111 -0
- package/dist/components/NavigationRailTypes/NavigationRailTypes.types.d.ts.map +1 -0
- package/dist/components/NavigationRailTypes/icons.d.ts +58 -0
- package/dist/components/NavigationRailTypes/icons.d.ts.map +1 -0
- package/dist/components/NavigationRailTypes/index.d.ts +4 -0
- package/dist/components/NavigationRailTypes/index.d.ts.map +1 -0
- package/dist/components/Notification/Notification.d.ts +52 -0
- package/dist/components/Notification/Notification.d.ts.map +1 -0
- package/dist/components/Notification/Notification.types.d.ts +138 -0
- package/dist/components/Notification/Notification.types.d.ts.map +1 -0
- package/{src/components/Notification/index.ts → dist/components/Notification/index.d.ts} +3 -3
- package/dist/components/Notification/index.d.ts.map +1 -0
- package/dist/components/POSConvention/POSConvention.d.ts +55 -0
- package/dist/components/POSConvention/POSConvention.d.ts.map +1 -0
- package/{src/components/POSConvention/POSConvention.types.ts → dist/components/POSConvention/POSConvention.types.d.ts} +37 -38
- package/dist/components/POSConvention/POSConvention.types.d.ts.map +1 -0
- package/dist/components/POSConvention/icons.d.ts +21 -0
- package/dist/components/POSConvention/icons.d.ts.map +1 -0
- package/{src/components/POSConvention/index.ts → dist/components/POSConvention/index.d.ts} +4 -3
- package/dist/components/POSConvention/index.d.ts.map +1 -0
- package/dist/components/POSLocationButton/POSLocationButton.d.ts +73 -0
- package/dist/components/POSLocationButton/POSLocationButton.d.ts.map +1 -0
- package/dist/components/POSLocationButton/POSLocationButton.types.d.ts +75 -0
- package/dist/components/POSLocationButton/POSLocationButton.types.d.ts.map +1 -0
- package/dist/components/POSLocationButton/icons.d.ts +37 -0
- package/dist/components/POSLocationButton/icons.d.ts.map +1 -0
- package/dist/components/POSLocationButton/index.d.ts +4 -0
- package/dist/components/POSLocationButton/index.d.ts.map +1 -0
- package/dist/components/POSNumberButton/POSNumberButton.d.ts +61 -0
- package/dist/components/POSNumberButton/POSNumberButton.d.ts.map +1 -0
- package/dist/components/POSNumberButton/POSNumberButton.types.d.ts +43 -0
- package/dist/components/POSNumberButton/POSNumberButton.types.d.ts.map +1 -0
- package/{src/components/POSNumberButton/index.ts → dist/components/POSNumberButton/index.d.ts} +3 -3
- package/dist/components/POSNumberButton/index.d.ts.map +1 -0
- package/dist/components/POSProductButton/POSProductButton.d.ts +59 -0
- package/dist/components/POSProductButton/POSProductButton.d.ts.map +1 -0
- package/dist/components/POSProductButton/POSProductButton.types.d.ts +40 -0
- package/dist/components/POSProductButton/POSProductButton.types.d.ts.map +1 -0
- package/{src/components/POSProductButton/index.ts → dist/components/POSProductButton/index.d.ts} +3 -2
- package/dist/components/POSProductButton/index.d.ts.map +1 -0
- package/dist/components/POSProductCard/POSProductCard.d.ts +68 -0
- package/dist/components/POSProductCard/POSProductCard.d.ts.map +1 -0
- package/dist/components/POSProductCard/POSProductCard.types.d.ts +67 -0
- package/dist/components/POSProductCard/POSProductCard.types.d.ts.map +1 -0
- package/dist/components/POSProductCard/icons.d.ts +10 -0
- package/dist/components/POSProductCard/icons.d.ts.map +1 -0
- package/{src/components/POSProductCard/index.ts → dist/components/POSProductCard/index.d.ts} +3 -2
- package/dist/components/POSProductCard/index.d.ts.map +1 -0
- package/dist/components/POSProductSidebarItems/POSProductSidebarItems.d.ts +57 -0
- package/dist/components/POSProductSidebarItems/POSProductSidebarItems.d.ts.map +1 -0
- package/dist/components/POSProductSidebarItems/POSProductSidebarItems.types.d.ts +85 -0
- package/dist/components/POSProductSidebarItems/POSProductSidebarItems.types.d.ts.map +1 -0
- package/dist/components/POSProductSidebarItems/icons.d.ts +9 -0
- package/dist/components/POSProductSidebarItems/icons.d.ts.map +1 -0
- package/{src/components/POSProductSidebarItems/index.ts → dist/components/POSProductSidebarItems/index.d.ts} +4 -3
- package/dist/components/POSProductSidebarItems/index.d.ts.map +1 -0
- package/dist/components/POSTable/POSTable.d.ts +75 -0
- package/dist/components/POSTable/POSTable.d.ts.map +1 -0
- package/dist/components/POSTable/POSTable.types.d.ts +71 -0
- package/dist/components/POSTable/POSTable.types.d.ts.map +1 -0
- package/dist/components/POSTable/index.d.ts +3 -0
- package/dist/components/POSTable/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +29 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.types.d.ts +79 -0
- package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/icons.d.ts +18 -0
- package/dist/components/Pagination/icons.d.ts.map +1 -0
- package/{src/components/Pagination/index.ts → dist/components/Pagination/index.d.ts} +4 -3
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Quantity/Quantity.d.ts +38 -0
- package/dist/components/Quantity/Quantity.d.ts.map +1 -0
- package/dist/components/Quantity/Quantity.types.d.ts +59 -0
- package/dist/components/Quantity/Quantity.types.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +45 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/Radio.types.d.ts +115 -0
- package/dist/components/Radio/Radio.types.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +37 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.types.d.ts +124 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -0
- package/dist/components/Select/icons.d.ts +16 -0
- package/dist/components/Select/icons.d.ts.map +1 -0
- package/{src/components/Select/index.ts → dist/components/Select/index.d.ts} +4 -3
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/SignUpView/SignUpView.d.ts +38 -0
- package/dist/components/SignUpView/SignUpView.d.ts.map +1 -0
- package/dist/components/SignUpView/SignUpView.types.d.ts +51 -0
- package/dist/components/SignUpView/SignUpView.types.d.ts.map +1 -0
- package/dist/components/SignUpView/icons.d.ts +18 -0
- package/dist/components/SignUpView/icons.d.ts.map +1 -0
- package/{src/components/SignUpView/index.ts → dist/components/SignUpView/index.d.ts} +4 -3
- package/dist/components/SignUpView/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +46 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/Switch.types.d.ts +58 -0
- package/dist/components/Switch/Switch.types.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts +64 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.types.d.ts +173 -0
- package/dist/components/Table/Table.types.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +76 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.types.d.ts +107 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -0
- package/dist/components/Tabs/icons.d.ts +45 -0
- package/dist/components/Tabs/icons.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +38 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.types.d.ts +46 -0
- package/dist/components/Textarea/Textarea.types.d.ts.map +1 -0
- package/dist/context/ThemeContext.d.ts +46 -0
- package/dist/context/ThemeContext.d.ts.map +1 -0
- package/{src/context/index.ts → dist/context/index.d.ts} +2 -1
- package/dist/context/index.d.ts.map +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/siesa-ui-kit.cjs +1273 -0
- package/dist/siesa-ui-kit.cjs.map +1 -0
- package/dist/siesa-ui-kit.mjs +4510 -0
- package/dist/siesa-ui-kit.mjs.map +1 -0
- package/dist/views/ListView/ListView.d.ts +47 -0
- package/dist/views/ListView/ListView.d.ts.map +1 -0
- package/dist/views/ListView/ListView.types.d.ts +177 -0
- package/dist/views/ListView/ListView.types.d.ts.map +1 -0
- package/dist/views/ListView/icons.d.ts +60 -0
- package/dist/views/ListView/icons.d.ts.map +1 -0
- package/dist/views/ListView/index.d.ts +3 -0
- package/dist/views/ListView/index.d.ts.map +1 -0
- package/dist/views/LoginView/LoginView.d.ts +36 -0
- package/dist/views/LoginView/LoginView.d.ts.map +1 -0
- package/dist/views/LoginView/LoginView.types.d.ts +46 -0
- package/dist/views/LoginView/LoginView.types.d.ts.map +1 -0
- package/dist/views/LoginView/icons.d.ts +18 -0
- package/dist/views/LoginView/icons.d.ts.map +1 -0
- package/dist/views/LoginView/index.d.ts +4 -0
- package/dist/views/LoginView/index.d.ts.map +1 -0
- package/dist/views/ProductsView/ProductsView.d.ts +56 -0
- package/dist/views/ProductsView/ProductsView.d.ts.map +1 -0
- package/dist/views/ProductsView/ProductsView.types.d.ts +184 -0
- package/dist/views/ProductsView/ProductsView.types.d.ts.map +1 -0
- package/dist/views/ProductsView/icons.d.ts +12 -0
- package/dist/views/ProductsView/icons.d.ts.map +1 -0
- package/dist/views/ProductsView/index.d.ts +3 -0
- package/dist/views/ProductsView/index.d.ts.map +1 -0
- package/dist/views/RecoverPasswordView/RecoverPasswordView.d.ts +34 -0
- package/dist/views/RecoverPasswordView/RecoverPasswordView.d.ts.map +1 -0
- package/dist/views/RecoverPasswordView/RecoverPasswordView.types.d.ts +50 -0
- package/dist/views/RecoverPasswordView/RecoverPasswordView.types.d.ts.map +1 -0
- package/dist/views/RecoverPasswordView/icons.d.ts +9 -0
- package/dist/views/RecoverPasswordView/icons.d.ts.map +1 -0
- package/{src/views/RecoverPasswordView/index.ts → dist/views/RecoverPasswordView/index.d.ts} +3 -2
- package/dist/views/RecoverPasswordView/index.d.ts.map +1 -0
- package/dist/views/SignUpView/SignUpView.d.ts +38 -0
- package/dist/views/SignUpView/SignUpView.d.ts.map +1 -0
- package/dist/views/SignUpView/SignUpView.types.d.ts +51 -0
- package/dist/views/SignUpView/SignUpView.types.d.ts.map +1 -0
- package/dist/views/SignUpView/icons.d.ts +18 -0
- package/dist/views/SignUpView/icons.d.ts.map +1 -0
- package/dist/views/SignUpView/index.d.ts +4 -0
- package/dist/views/SignUpView/index.d.ts.map +1 -0
- package/dist/views/TableLayoutView/TableLayoutView.d.ts +46 -0
- package/dist/views/TableLayoutView/TableLayoutView.d.ts.map +1 -0
- package/dist/views/TableLayoutView/TableLayoutView.types.d.ts +170 -0
- package/dist/views/TableLayoutView/TableLayoutView.types.d.ts.map +1 -0
- package/dist/views/TableLayoutView/icons.d.ts +27 -0
- package/dist/views/TableLayoutView/icons.d.ts.map +1 -0
- package/dist/views/TableLayoutView/index.d.ts +3 -0
- package/dist/views/TableLayoutView/index.d.ts.map +1 -0
- package/package.json +93 -83
- package/bin/install.cjs +0 -502
- package/bin/prepare-publish.cjs +0 -28
- package/bin/restore-folders.cjs +0 -28
- package/claude/agents/siesa-ui-kit-specialist.md +0 -2401
- package/claude/prompts/component-template.md +0 -121
- package/claude/settings.local.json +0 -61
- package/docs/border-radius.md +0 -1261
- package/docs/colors.md +0 -832
- package/docs/dark-mode-guide.md +0 -1426
- package/docs/filters.md +0 -1243
- package/docs/icons.md +0 -1283
- package/docs/shadows.md +0 -1377
- package/docs/spacing.md +0 -1684
- package/docs/typography.md +0 -1268
- package/postcss.config.cjs +0 -6
- package/public/,Business Logo.png +0 -0
- package/public/.Siesa Logo.png +0 -0
- package/public/bg_siesa.png +0 -0
- package/public/siesa_logo_mobile.png +0 -0
- package/public/vite.svg +0 -1
- package/src/App.css +0 -42
- package/src/App.tsx +0 -8
- package/src/ButtonTest.tsx +0 -147
- package/src/assets/fonts/README.md +0 -261
- package/src/assets/fonts/SiesaBT/SiesaBT-Bold.otf +0 -0
- package/src/assets/fonts/SiesaBT/SiesaBT-Light.otf +0 -0
- package/src/assets/fonts/SiesaBT/SiesaBT-Regular.otf +0 -0
- package/src/assets/react.svg +0 -1
- package/src/components/Alert/Alert.stories.tsx +0 -332
- package/src/components/Alert/Alert.tsx +0 -106
- package/src/components/Alert/Alert.types.ts +0 -54
- package/src/components/Avatar/Avatar.stories.tsx +0 -494
- package/src/components/Avatar/Avatar.tsx +0 -143
- package/src/components/Avatar/Avatar.types.ts +0 -53
- package/src/components/Badge/Badge.stories.tsx +0 -339
- package/src/components/Badge/Badge.tsx +0 -278
- package/src/components/Badge/Badge.types.ts +0 -58
- package/src/components/Button/Button.stories.tsx +0 -950
- package/src/components/Button/Button.tsx +0 -337
- package/src/components/Button/Button.types.ts +0 -180
- package/src/components/Button/icons.tsx +0 -87
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -453
- package/src/components/Checkbox/Checkbox.tsx +0 -208
- package/src/components/Checkbox/Checkbox.types.ts +0 -61
- package/src/components/DescriptionList/DescriptionList.stories.tsx +0 -250
- package/src/components/DescriptionList/DescriptionList.tsx +0 -96
- package/src/components/DescriptionList/DescriptionList.types.ts +0 -29
- package/src/components/Divider/Divider.stories.tsx +0 -263
- package/src/components/Divider/Divider.tsx +0 -80
- package/src/components/Divider/Divider.types.ts +0 -24
- package/src/components/Dropdown/Dropdown.stories.tsx +0 -552
- package/src/components/Dropdown/Dropdown.tsx +0 -422
- package/src/components/Dropdown/Dropdown.types.ts +0 -146
- package/src/components/Dropdown/README.md +0 -266
- package/src/components/Dropdown/icons.tsx +0 -72
- package/src/components/Input/Input.stories.tsx +0 -583
- package/src/components/Input/Input.tsx +0 -204
- package/src/components/Input/Input.types.ts +0 -80
- package/src/components/Input/icons.tsx +0 -145
- package/src/components/LoginView/LoginView.stories.tsx +0 -148
- package/src/components/LoginView/LoginView.tsx +0 -426
- package/src/components/LoginView/LoginView.types.ts +0 -52
- package/src/components/LoginView/README.md +0 -396
- package/src/components/LoginView/icons.tsx +0 -85
- package/src/components/Navbar/Navbar.stories.tsx +0 -810
- package/src/components/Navbar/Navbar.tsx +0 -755
- package/src/components/Navbar/Navbar.types.ts +0 -219
- package/src/components/Navbar/README.md +0 -279
- package/src/components/Navbar/icons.tsx +0 -102
- package/src/components/Navbar/index.ts +0 -8
- package/src/components/NavigationBar/NavigationBar.stories.tsx +0 -406
- package/src/components/NavigationBar/NavigationBar.tsx +0 -246
- package/src/components/NavigationBar/NavigationBar.types.ts +0 -74
- package/src/components/NavigationBar/README.md +0 -469
- package/src/components/NavigationRail/NavigationRail.stories.tsx +0 -417
- package/src/components/NavigationRail/NavigationRail.tsx +0 -418
- package/src/components/NavigationRail/NavigationRail.types.ts +0 -109
- package/src/components/NavigationRail/README.md +0 -224
- package/src/components/Notification/Notification.stories.tsx +0 -513
- package/src/components/Notification/Notification.tsx +0 -145
- package/src/components/Notification/Notification.types.ts +0 -142
- package/src/components/Notification/README.md +0 -409
- package/src/components/POSConvention/POSConvention.stories.tsx +0 -235
- package/src/components/POSConvention/POSConvention.tsx +0 -129
- package/src/components/POSConvention/README.md +0 -123
- package/src/components/POSConvention/icons.tsx +0 -45
- package/src/components/POSLocationButton/POSLocationButton.stories.tsx +0 -531
- package/src/components/POSLocationButton/POSLocationButton.tsx +0 -247
- package/src/components/POSLocationButton/POSLocationButton.types.ts +0 -87
- package/src/components/POSLocationButton/README.md +0 -253
- package/src/components/POSLocationButton/icons.tsx +0 -120
- package/src/components/POSLocationButton/index.ts +0 -14
- package/src/components/POSNumberButton/POSNumberButton.stories.tsx +0 -415
- package/src/components/POSNumberButton/POSNumberButton.tsx +0 -179
- package/src/components/POSNumberButton/POSNumberButton.types.ts +0 -51
- package/src/components/POSNumberButton/README.md +0 -321
- package/src/components/POSProductButton/POSProductButton.stories.tsx +0 -318
- package/src/components/POSProductButton/POSProductButton.tsx +0 -152
- package/src/components/POSProductButton/POSProductButton.types.ts +0 -46
- package/src/components/POSProductButton/README.md +0 -269
- package/src/components/POSProductCard/POSProductCard.stories.tsx +0 -642
- package/src/components/POSProductCard/POSProductCard.tsx +0 -208
- package/src/components/POSProductCard/POSProductCard.types.ts +0 -76
- package/src/components/POSProductCard/README.md +0 -179
- package/src/components/POSProductCard/icons.tsx +0 -26
- package/src/components/POSProductSidebarItems/POSProductSidebarItems.stories.tsx +0 -753
- package/src/components/POSProductSidebarItems/POSProductSidebarItems.tsx +0 -332
- package/src/components/POSProductSidebarItems/POSProductSidebarItems.types.ts +0 -119
- package/src/components/POSProductSidebarItems/README.md +0 -198
- package/src/components/POSProductSidebarItems/icons.tsx +0 -21
- package/src/components/POSTable/POSTable.stories.tsx +0 -737
- package/src/components/POSTable/POSTable.tsx +0 -401
- package/src/components/POSTable/POSTable.types.ts +0 -83
- package/src/components/POSTable/README.md +0 -286
- package/src/components/POSTable/index.ts +0 -7
- package/src/components/Pagination/Pagination.stories.tsx +0 -555
- package/src/components/Pagination/Pagination.tsx +0 -286
- package/src/components/Pagination/Pagination.types.ts +0 -93
- package/src/components/Pagination/README.md +0 -298
- package/src/components/Pagination/icons.tsx +0 -47
- package/src/components/Quantity/Quantity.stories.tsx +0 -457
- package/src/components/Quantity/Quantity.tsx +0 -289
- package/src/components/Quantity/Quantity.types.ts +0 -70
- package/src/components/Radio/Radio.stories.tsx +0 -523
- package/src/components/Radio/Radio.tsx +0 -170
- package/src/components/Radio/Radio.types.ts +0 -122
- package/src/components/Select/README.md +0 -299
- package/src/components/Select/Select.stories.tsx +0 -673
- package/src/components/Select/Select.tsx +0 -454
- package/src/components/Select/Select.types.ts +0 -148
- package/src/components/Select/icons.tsx +0 -50
- package/src/components/SignUpView/SignUpView.stories.tsx +0 -129
- package/src/components/SignUpView/SignUpView.tsx +0 -503
- package/src/components/SignUpView/SignUpView.types.ts +0 -58
- package/src/components/SignUpView/icons.tsx +0 -71
- package/src/components/Switch/README.md +0 -112
- package/src/components/Switch/Switch.stories.tsx +0 -550
- package/src/components/Switch/Switch.tsx +0 -246
- package/src/components/Switch/Switch.types.ts +0 -67
- package/src/components/Table/README.md +0 -369
- package/src/components/Table/Table.stories.tsx +0 -805
- package/src/components/Table/Table.tsx +0 -688
- package/src/components/Table/Table.types.ts +0 -204
- package/src/components/Table/index.ts +0 -9
- package/src/components/Tabs/README.md +0 -201
- package/src/components/Tabs/Tabs.stories.tsx +0 -580
- package/src/components/Tabs/Tabs.tsx +0 -356
- package/src/components/Tabs/Tabs.types.ts +0 -127
- package/src/components/Tabs/icons.tsx +0 -129
- package/src/components/Tabs/index.ts +0 -11
- package/src/components/Textarea/Textarea.stories.tsx +0 -535
- package/src/components/Textarea/Textarea.tsx +0 -188
- package/src/components/Textarea/Textarea.types.ts +0 -54
- package/src/context/ThemeContext.tsx +0 -99
- package/src/index.css +0 -29
- package/src/index.ts +0 -39
- package/src/main.tsx +0 -10
- package/src/views/ProductsView/ProductsView.stories.tsx +0 -344
- package/src/views/ProductsView/ProductsView.tsx +0 -480
- package/src/views/ProductsView/ProductsView.types.ts +0 -238
- package/src/views/ProductsView/README.md +0 -312
- package/src/views/ProductsView/icons.tsx +0 -38
- package/src/views/ProductsView/index.ts +0 -8
- package/src/views/RecoverPasswordView/README.md +0 -269
- package/src/views/RecoverPasswordView/RecoverPasswordView.stories.tsx +0 -131
- package/src/views/RecoverPasswordView/RecoverPasswordView.tsx +0 -376
- package/src/views/RecoverPasswordView/RecoverPasswordView.types.ts +0 -56
- package/src/views/RecoverPasswordView/icons.tsx +0 -17
- package/src/views/TableLayoutView/README.md +0 -268
- package/src/views/TableLayoutView/TableLayoutView.stories.tsx +0 -235
- package/src/views/TableLayoutView/TableLayoutView.tsx +0 -461
- package/src/views/TableLayoutView/TableLayoutView.types.ts +0 -209
- package/src/views/TableLayoutView/icons.tsx +0 -113
- package/src/views/TableLayoutView/index.ts +0 -6
- package/storybook/main.ts +0 -20
- package/storybook/preview.tsx +0 -84
- package/storybook/vitest.setup.ts +0 -7
- package/tailwind.config.js +0 -128
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export { Dropdown, DropdownItem, DropdownHeading, DropdownDivider } from './Dropdown';
|
|
2
|
-
export type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
DropdownHeadingProps,
|
|
6
|
-
DropdownDividerProps,
|
|
7
|
-
} from './Dropdown.types';
|
|
8
|
-
export { ChevronDownIcon, CogIcon, UserIcon, BellIcon, CreditCardIcon } from './icons';
|
|
1
|
+
export { Dropdown, DropdownItem, DropdownHeading, DropdownDivider } from './Dropdown';
|
|
2
|
+
export type { DropdownProps, DropdownItemProps, DropdownHeadingProps, DropdownDividerProps, } from './Dropdown.types';
|
|
3
|
+
export { ChevronDownIcon, CogIcon, UserIcon, BellIcon, CreditCardIcon } from './icons';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACtF,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DropdownItemCollapsibleProps } from './DropdownItemCollapsible.types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente DropdownItemCollapsible del sistema de diseño Siesa
|
|
5
|
+
*
|
|
6
|
+
* Item colapsable para uso dentro de Dropdowns que permite agrupar
|
|
7
|
+
* items relacionados en secciones expandibles.
|
|
8
|
+
*
|
|
9
|
+
* **Características:**
|
|
10
|
+
* - Soporte completo para expandir/colapsar
|
|
11
|
+
* - Iconos personalizables en header y children
|
|
12
|
+
* - Items anidados indentados automáticamente
|
|
13
|
+
* - Dark mode completo con inversión de colores
|
|
14
|
+
* - Estados: default, hover, active, disabled
|
|
15
|
+
* - Focus rings adaptativos
|
|
16
|
+
* - Animación suave de rotación del chevron
|
|
17
|
+
*
|
|
18
|
+
* **Estados visuales:**
|
|
19
|
+
* - `collapsed`: Muestra solo el header con chevron apuntando down
|
|
20
|
+
* - `expanded`: Muestra header y lista de items anidados
|
|
21
|
+
* - `disabled`: Opacidad 50%, sin interacción
|
|
22
|
+
* - `hover`: Fondo de hover sutil, color primario del icono
|
|
23
|
+
* - `active`: Item anidado seleccionado con fondo custom-primary
|
|
24
|
+
*
|
|
25
|
+
* **Espaciado según Figma:**
|
|
26
|
+
* - Header padding: px-4 py-2 (16px horizontal, 8px vertical)
|
|
27
|
+
* - Item anidado padding: pl-6 pr-4 py-2 (24px left, 16px right, 8px vertical)
|
|
28
|
+
* - Gap entre elementos: gap-3 (12px)
|
|
29
|
+
* - Gap interno (icon + text): gap-3 (12px)
|
|
30
|
+
* - Indent entre niveles: 8px adicional por nivel
|
|
31
|
+
* - Divisor: borde top de 1px con spacing-0.5 (2px) arriba
|
|
32
|
+
* - Sección heading: pt-3 pb-1 px-0 (12px top, 4px bottom, sin horizontal)
|
|
33
|
+
*
|
|
34
|
+
* **Tipografía:**
|
|
35
|
+
* - Header: Paragraph/Small (14px, Regular, line-height 20px) - text-content-primary
|
|
36
|
+
* - Items anidados: Paragraph/Small (14px, Regular, line-height 20px) - text-content-primary
|
|
37
|
+
* - Heading: Paragraph/Tiny (12px, Regular, line-height 16px) - text-content-tertiary
|
|
38
|
+
*
|
|
39
|
+
* **Colores (Light Mode):**
|
|
40
|
+
* - Header text: content-primary (#18181b)
|
|
41
|
+
* - Header icon: content-secondary (#a1a1aa)
|
|
42
|
+
* - Header hover: bg-background-custom-primary (#dbeefe)
|
|
43
|
+
* - Header text hover: content-custom-primary (#0e79fd)
|
|
44
|
+
* - Item text: content-primary (#18181b)
|
|
45
|
+
* - Item hover: bg-transparent (sin fondo)
|
|
46
|
+
* - Divider: border-border-primary (#e4e4e7)
|
|
47
|
+
* - Heading text: content-tertiary (#71717a)
|
|
48
|
+
*
|
|
49
|
+
* **Colores (Dark Mode):**
|
|
50
|
+
* - Header text: content-primary/dark (#fafafa)
|
|
51
|
+
* - Header icon: content-secondary/dark (#a1a1aa)
|
|
52
|
+
* - Header hover: bg-background-custom-primary/dark (#0e5ab0)
|
|
53
|
+
* - Header text hover: content-custom-primary/dark (#bfe2fe)
|
|
54
|
+
* - Item text: content-primary/dark (#fafafa)
|
|
55
|
+
* - Divider: border-border-primary/dark (#3f3f46)
|
|
56
|
+
* - Heading text: content-tertiary/dark (#a1a1aa)
|
|
57
|
+
*
|
|
58
|
+
* **Border radius:**
|
|
59
|
+
* - Todos los items: rounded-lg (8px)
|
|
60
|
+
*
|
|
61
|
+
* **Sombras:**
|
|
62
|
+
* - Ninguna (usado dentro de dropdowns)
|
|
63
|
+
*
|
|
64
|
+
* @see docs/colors.md - Sistema de colores
|
|
65
|
+
* @see docs/typography.md - Sistema tipográfico
|
|
66
|
+
* @see docs/spacing.md - Sistema de espaciado
|
|
67
|
+
* @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```tsx
|
|
71
|
+
* // Item colapsable simple
|
|
72
|
+
* <DropdownItemCollapsible
|
|
73
|
+
* label="Users"
|
|
74
|
+
* icon={<UserIcon />}
|
|
75
|
+
* children={[
|
|
76
|
+
* { label: "Active Users", icon: <CheckIcon /> },
|
|
77
|
+
* { label: "Inactive Users", icon: <CloseIcon /> },
|
|
78
|
+
* ]}
|
|
79
|
+
* />
|
|
80
|
+
*
|
|
81
|
+
* // Con encabezado de sección
|
|
82
|
+
* <DropdownItemCollapsible
|
|
83
|
+
* label="Customers"
|
|
84
|
+
* icon={<BuildingIcon />}
|
|
85
|
+
* showHeading={true}
|
|
86
|
+
* headingLabel="SECTION 1"
|
|
87
|
+
* children={[...]}
|
|
88
|
+
* />
|
|
89
|
+
*
|
|
90
|
+
* // Item no colapsable (actúa como botón normal)
|
|
91
|
+
* <DropdownItemCollapsible
|
|
92
|
+
* label="Single Item"
|
|
93
|
+
* icon={<StarIcon />}
|
|
94
|
+
* isCollapsible={false}
|
|
95
|
+
* onClick={() => console.log('clicked')}
|
|
96
|
+
* />
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export declare const DropdownItemCollapsible: React.FC<DropdownItemCollapsibleProps>;
|
|
100
|
+
export default DropdownItemCollapsible;
|
|
101
|
+
//# sourceMappingURL=DropdownItemCollapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownItemCollapsible.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/DropdownItemCollapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,iCAAiC,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAqL1E,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props del componente DropdownItemCollapsible
|
|
4
|
+
*
|
|
5
|
+
* @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
|
|
6
|
+
*/
|
|
7
|
+
export interface DropdownItemCollapsibleProps {
|
|
8
|
+
/**
|
|
9
|
+
* Texto o contenido principal del item
|
|
10
|
+
* Ejemplo: "Users", "Customers", "Departments"
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Icono a mostrar antes del texto (izquierda)
|
|
15
|
+
* Recomendado: 16x16px
|
|
16
|
+
*/
|
|
17
|
+
icon?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Items anidados que se muestran cuando el item está expandido
|
|
20
|
+
* Cada item anidado tiene label e icono opcional
|
|
21
|
+
*/
|
|
22
|
+
children?: DropdownItemCollapsibleChildProps[];
|
|
23
|
+
/**
|
|
24
|
+
* Si el item está expandido inicialmente
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
defaultOpen?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Si el item está deshabilitado
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Callback cuando el item se expande/contrae
|
|
35
|
+
* @param open - nuevo estado de expansión
|
|
36
|
+
*/
|
|
37
|
+
onOpenChange?: (open: boolean) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback cuando se hace click en el item (sin expandir)
|
|
40
|
+
* Útil para items que actúan como botones normales
|
|
41
|
+
*/
|
|
42
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Si el item debería actuar como un botón normal sin colapsable
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
isCollapsible?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Si mostrar un encabezado de sección antes del item
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
showHeading?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Texto del encabezado de sección
|
|
55
|
+
* Se usa cuando showHeading es true
|
|
56
|
+
* Ejemplo: "Section Title"
|
|
57
|
+
*/
|
|
58
|
+
headingLabel?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Si mostrar divisor después del item/encabezado
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
showDivider?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Clases CSS adicionales
|
|
66
|
+
*/
|
|
67
|
+
className?: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props de items anidados dentro del colapsable
|
|
71
|
+
*/
|
|
72
|
+
export interface DropdownItemCollapsibleChildProps {
|
|
73
|
+
/**
|
|
74
|
+
* Texto del item anidado
|
|
75
|
+
*/
|
|
76
|
+
label: string;
|
|
77
|
+
/**
|
|
78
|
+
* Icono opcional del item anidado
|
|
79
|
+
*/
|
|
80
|
+
icon?: ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* Si el item anidado está deshabilitado
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Callback cuando se hace click en el item anidado
|
|
88
|
+
*/
|
|
89
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Clases CSS adicionales
|
|
92
|
+
*/
|
|
93
|
+
className?: string;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=DropdownItemCollapsible.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownItemCollapsible.types.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/DropdownItemCollapsible.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAE/C;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE3D;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Icono ChevronDown para el toggle del colapsable
|
|
4
|
+
* Diseño basado en heroicons-micro/chevron-down
|
|
5
|
+
* Tamaño: 16x16px
|
|
6
|
+
*
|
|
7
|
+
* @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
|
|
8
|
+
*/
|
|
9
|
+
export declare const ChevronDownIcon: React.FC<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Icono de usuario placeholder para ejemplos en stories
|
|
14
|
+
* Tamaño: 16x16px
|
|
15
|
+
*/
|
|
16
|
+
export declare const UserIcon: React.FC<{
|
|
17
|
+
className?: string;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAiB5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAwBrD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exportaciones del componente DropdownItemCollapsible
|
|
3
|
+
*
|
|
4
|
+
* @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
|
|
5
|
+
*/
|
|
6
|
+
export { DropdownItemCollapsible } from './DropdownItemCollapsible';
|
|
7
|
+
export type { DropdownItemCollapsibleProps, DropdownItemCollapsibleChildProps, } from './DropdownItemCollapsible.types';
|
|
8
|
+
export { ChevronDownIcon, UserIcon } from './icons';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EACV,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DropdownItemHeadingProps } from './DropdownItemHeading.types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente DropdownItemHeading del sistema de diseño Siesa
|
|
5
|
+
*
|
|
6
|
+
* Implementación pixel-perfect basada en Figma (node 6135:32539)
|
|
7
|
+
* para encabezados en menús dropdown con icono, label, descripción y acción.
|
|
8
|
+
*
|
|
9
|
+
* **Estructura:**
|
|
10
|
+
* - Icon Wrapper: Opcional, icono de 16x16px
|
|
11
|
+
* - Content Wrapper: Label + Description (flexible)
|
|
12
|
+
* - Action Wrapper: Opcional, texto de acción en la derecha
|
|
13
|
+
*
|
|
14
|
+
* **Dimensiones:**
|
|
15
|
+
* - Altura flexible (contenido vertical)
|
|
16
|
+
* - Width mínimo: 224px
|
|
17
|
+
* - Padding: 8px vertical, 16px horizontal
|
|
18
|
+
* - Border radius: 8px (rounded-lg)
|
|
19
|
+
*
|
|
20
|
+
* **Tipografía:**
|
|
21
|
+
* - Label: Label/Small (14px Bold) - content-primary
|
|
22
|
+
* - Description: Paragraph/Tiny (12px Regular) - content-secondary
|
|
23
|
+
* - Action: Paragraph/XXSmall (10px Regular) - content-secondary
|
|
24
|
+
*
|
|
25
|
+
* **Dark Mode:**
|
|
26
|
+
* - Label: #18181b (light) → #bfe2fe (dark)
|
|
27
|
+
* - Description: #a1a1aa (light) → #93d1fd (dark)
|
|
28
|
+
* - Icon: #0e79fd (light) → #bfe2fe (dark)
|
|
29
|
+
* - Action: #a1a1aa (light) → #93d1fd (dark)
|
|
30
|
+
*
|
|
31
|
+
* **Estados:**
|
|
32
|
+
* - Default: Sin hover/focus
|
|
33
|
+
* - Hover: Overlay sutil (managed by parent Dropdown)
|
|
34
|
+
* - Disabled: Opacity 50% (managed by parent Dropdown)
|
|
35
|
+
*
|
|
36
|
+
* **Especificaciones de Figma:**
|
|
37
|
+
* - Gap entre elementos: 12px
|
|
38
|
+
* - Gap entre label y description: 2px
|
|
39
|
+
* - Rounded: 8px (rounded-lg)
|
|
40
|
+
*
|
|
41
|
+
* @see docs/colors.md - Sistema de colores
|
|
42
|
+
* @see docs/typography.md - Sistema tipográfico (Label/Small, Paragraph/Tiny)
|
|
43
|
+
* @see docs/spacing.md - Sistema de espaciado
|
|
44
|
+
* @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-32539 - Diseño Figma
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```tsx
|
|
48
|
+
* // Con icono, label, descripción y acción
|
|
49
|
+
* <DropdownItemHeading
|
|
50
|
+
* label="Settings"
|
|
51
|
+
* description="Configure your preferences"
|
|
52
|
+
* showDescription={true}
|
|
53
|
+
* icon={<SettingsIcon />}
|
|
54
|
+
* showIcon={true}
|
|
55
|
+
* actionLabel="Clear"
|
|
56
|
+
* showAction={true}
|
|
57
|
+
* onActionClick={handleClear}
|
|
58
|
+
* />
|
|
59
|
+
*
|
|
60
|
+
* // Solo label y descripción (sin icono ni acción)
|
|
61
|
+
* <DropdownItemHeading
|
|
62
|
+
* label="My Account"
|
|
63
|
+
* description="user@example.com"
|
|
64
|
+
* showDescription={true}
|
|
65
|
+
* />
|
|
66
|
+
*
|
|
67
|
+
* // Solo label
|
|
68
|
+
* <DropdownItemHeading
|
|
69
|
+
* label="Quick Actions"
|
|
70
|
+
* showDescription={false}
|
|
71
|
+
* />
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare const DropdownItemHeading: React.FC<DropdownItemHeadingProps>;
|
|
75
|
+
//# sourceMappingURL=DropdownItemHeading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownItemHeading.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/DropdownItemHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAG5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA0IlE,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props del componente DropdownItemHeading
|
|
3
|
+
*
|
|
4
|
+
* Especificaciones de Figma: node 6135:32539
|
|
5
|
+
* @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-32539&m=dev
|
|
6
|
+
*/
|
|
7
|
+
export interface DropdownItemHeadingProps {
|
|
8
|
+
/**
|
|
9
|
+
* Texto del label principal del heading
|
|
10
|
+
* Tipografía: Label/Small (14px, Bold)
|
|
11
|
+
* Color: content-primary (#18181b light, #bfe2fe dark)
|
|
12
|
+
*
|
|
13
|
+
* @default 'Label'
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Texto de descripción secundaria bajo el label
|
|
18
|
+
* Tipografía: Paragraph/Tiny (12px, Regular)
|
|
19
|
+
* Color: content-secondary (#a1a1aa light, #93d1fd dark)
|
|
20
|
+
*
|
|
21
|
+
* @default undefined
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Si se debe mostrar la descripción
|
|
26
|
+
* Cuando es false, solo muestra el label
|
|
27
|
+
*
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
showDescription?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Nombre del icono a mostrar (string)
|
|
33
|
+
* Iconos disponibles:
|
|
34
|
+
* - `'cog-6-tooth'`: Icono de engranaje (por defecto)
|
|
35
|
+
* - `'check'`: Icono de check
|
|
36
|
+
* - `'x'`: Icono de cerrar
|
|
37
|
+
* - `'chevron-down'`: Icono de chevron hacia abajo
|
|
38
|
+
*
|
|
39
|
+
* Tamaño: 16x16px
|
|
40
|
+
* Color: primary-custom-600 (#0e79fd light, #bfe2fe dark)
|
|
41
|
+
*
|
|
42
|
+
* Si no se proporciona, se usa 'cog-6-tooth' por defecto
|
|
43
|
+
*
|
|
44
|
+
* @default 'cog-6-tooth'
|
|
45
|
+
* @see icons.tsx para ver los iconos disponibles
|
|
46
|
+
*/
|
|
47
|
+
iconName?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Si se debe mostrar el icono en la izquierda
|
|
50
|
+
*
|
|
51
|
+
* @default true
|
|
52
|
+
*/
|
|
53
|
+
showIcon?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Texto de acción a mostrar en la derecha
|
|
56
|
+
* Tipografía: Paragraph/XXSmall (10px, Regular)
|
|
57
|
+
* Color: content-secondary (#a1a1aa light, #93d1fd dark)
|
|
58
|
+
*
|
|
59
|
+
* Comúnmente usado para "Clear", "Reset", etc.
|
|
60
|
+
*
|
|
61
|
+
* @default undefined
|
|
62
|
+
*/
|
|
63
|
+
actionLabel?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Si se debe mostrar el action label en la derecha
|
|
66
|
+
*
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
showAction?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Callback ejecutado al hacer click en el action label
|
|
72
|
+
*/
|
|
73
|
+
onActionClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Clases CSS adicionales para personalización
|
|
76
|
+
*
|
|
77
|
+
* @default ''
|
|
78
|
+
*/
|
|
79
|
+
className?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Atributos HTML adicionales
|
|
82
|
+
*/
|
|
83
|
+
[key: string]: unknown;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=DropdownItemHeading.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownItemHeading.types.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/DropdownItemHeading.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAElE;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Iconos para el componente DropdownItemHeading
|
|
3
|
+
* Usando heroicons-micro según especificaciones de Figma
|
|
4
|
+
*
|
|
5
|
+
* Los iconos se pueden pasar como strings al componente:
|
|
6
|
+
* - 'cog-6-tooth': Icono de engranaje
|
|
7
|
+
* - 'check': Icono de check
|
|
8
|
+
* - 'x': Icono de cerrar
|
|
9
|
+
* - 'chevron-down': Icono de chevron hacia abajo
|
|
10
|
+
*
|
|
11
|
+
* @see DropdownItemHeading.tsx para ver cómo se usan
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
interface IconProps {
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Icono Cog (heroicons-micro/cog-6-tooth)
|
|
19
|
+
* Usado como icono por defecto en DropdownItemHeading
|
|
20
|
+
* Tamaño: 16x16px
|
|
21
|
+
*/
|
|
22
|
+
export declare const CogIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* Icono Check (heroicons-micro/check)
|
|
25
|
+
*/
|
|
26
|
+
export declare const CheckIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Icono X (heroicons-micro/x-mark)
|
|
29
|
+
*/
|
|
30
|
+
export declare const XIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
/**
|
|
32
|
+
* Icono ChevronDown (heroicons-micro/chevron-down)
|
|
33
|
+
*/
|
|
34
|
+
export declare const ChevronDownIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* Mapeo de nombres de iconos a componentes
|
|
37
|
+
* Permite usar strings para referenciar iconos
|
|
38
|
+
*/
|
|
39
|
+
export declare const iconMap: Record<string, React.FC<IconProps>>;
|
|
40
|
+
/**
|
|
41
|
+
* Obtener un icono por su nombre
|
|
42
|
+
* @param iconName - Nombre del icono (ej: 'cog-6-tooth', 'check', 'x', 'chevron-down')
|
|
43
|
+
* @param className - Clases CSS adicionales
|
|
44
|
+
* @returns Componente del icono o null si no existe
|
|
45
|
+
*/
|
|
46
|
+
export declare const getIcon: (iconName: string | null | undefined, className?: string) => React.ReactNode;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,eAA2B,SAAS,4CAa3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,eAA2B,SAAS,4CAkB7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,eAA2B,SAAS,4CASzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,eAA2B,SAAS,4CAanE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAKvD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAClB,UAAU,MAAM,GAAG,IAAI,GAAG,SAAS,EACnC,YAAY,MAAM,KACjB,KAAK,CAAC,SAUR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { InputProps } from './Input.types';
|
|
3
|
+
/**
|
|
4
|
+
* Input - Componente de campo de entrada del sistema de diseño Siesa
|
|
5
|
+
* Basado en especificaciones de Figma con Tailwind CSS
|
|
6
|
+
*
|
|
7
|
+
* Mejores prácticas implementadas:
|
|
8
|
+
* - Orden de modificadores: {responsive}:{dark}:{state}:{utility}
|
|
9
|
+
* - Dark mode con estrategia 'class' (darkMode: 'class')
|
|
10
|
+
* - Focus rings adaptativos para light y dark mode
|
|
11
|
+
* - Tokens de color consistentes con la documentación
|
|
12
|
+
* - Sombra base para inputs con focus
|
|
13
|
+
* - Estados hover, focus, disabled y error completos
|
|
14
|
+
* - Typography: Paragraph Regular para texto, Label Bold para labels
|
|
15
|
+
*
|
|
16
|
+
* Campo de entrada de texto con soporte para:
|
|
17
|
+
* - Estados: default, hover, focus, filled, disabled
|
|
18
|
+
* - Validación con mensajes de error
|
|
19
|
+
* - Iconos izquierdo y derecho
|
|
20
|
+
* - Label y helper text
|
|
21
|
+
* - Dark mode completo
|
|
22
|
+
* - Accesibilidad completa
|
|
23
|
+
*
|
|
24
|
+
* @see docs/colors.md - Sistema de colores
|
|
25
|
+
* @see docs/shadows.md - Sistema de sombras
|
|
26
|
+
* @see docs/typography.md - Sistema tipográfico (Paragraph, Label)
|
|
27
|
+
* @see docs/spacing.md - Sistema de espaciado
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* <Input
|
|
32
|
+
* label="Email"
|
|
33
|
+
* placeholder="tu@email.com"
|
|
34
|
+
* leftIcon={<EnvelopeIcon />}
|
|
35
|
+
* helperText="Ingresa tu correo electrónico"
|
|
36
|
+
* />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
40
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,KAAK,qFAkKjB,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ReactElement, InputHTMLAttributes } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Estados visuales del Input
|
|
4
|
+
* @description Tipo de referencia para documentar los estados posibles del Input.
|
|
5
|
+
* Los estados se manejan automáticamente mediante props (disabled) y pseudo-clases CSS (:hover, :focus)
|
|
6
|
+
*/
|
|
7
|
+
export type InputState = 'default' | 'hover' | 'focus' | 'filled' | 'disabled';
|
|
8
|
+
/**
|
|
9
|
+
* Props del componente Input
|
|
10
|
+
*
|
|
11
|
+
* @see docs/colors.md - Sistema de colores
|
|
12
|
+
* @see docs/typography.md - Sistema tipográfico
|
|
13
|
+
* @see docs/spacing.md - Sistema de espaciado
|
|
14
|
+
* @see docs/shadows.md - Sistema de sombras
|
|
15
|
+
*/
|
|
16
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
17
|
+
/**
|
|
18
|
+
* Etiqueta del campo de entrada
|
|
19
|
+
* @description Texto descriptivo que se muestra encima del input
|
|
20
|
+
* @example "Email", "Nombre completo", "Contraseña"
|
|
21
|
+
*/
|
|
22
|
+
label?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Texto secundario junto al label (opcional)
|
|
25
|
+
* @description Se muestra alineado a la derecha del label, útil para indicar campos opcionales
|
|
26
|
+
* @example "Optional", "Opcional"
|
|
27
|
+
*/
|
|
28
|
+
labelSecondary?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Texto de ayuda debajo del input
|
|
31
|
+
* @description Proporciona información adicional o instrucciones para el usuario
|
|
32
|
+
* @example "Ingresa tu correo electrónico", "Mínimo 8 caracteres"
|
|
33
|
+
*/
|
|
34
|
+
helperText?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Indica si hay un error de validación
|
|
37
|
+
* @description Cambia el estilo del input para indicar error (borde rojo)
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
error?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Mensaje de error a mostrar (reemplaza helperText cuando error=true)
|
|
43
|
+
* @description Se muestra en rojo debajo del input cuando hay un error
|
|
44
|
+
* @example "Este campo es requerido", "Formato de email inválido"
|
|
45
|
+
*/
|
|
46
|
+
errorMessage?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Icono a mostrar a la izquierda del input
|
|
49
|
+
* @description Ayuda a identificar el tipo de campo visualmente
|
|
50
|
+
* @example <EnvelopeIcon />, <UserIcon />, <LockClosedIcon />
|
|
51
|
+
*/
|
|
52
|
+
leftIcon?: ReactElement;
|
|
53
|
+
/**
|
|
54
|
+
* Icono a mostrar a la derecha del input
|
|
55
|
+
* @description Útil para acciones como mostrar/ocultar contraseña o limpiar campo
|
|
56
|
+
* @example <EyeIcon />, <XMarkIcon />, <CheckIcon />
|
|
57
|
+
*/
|
|
58
|
+
rightIcon?: ReactElement;
|
|
59
|
+
/**
|
|
60
|
+
* Si el input ocupa todo el ancho del contenedor
|
|
61
|
+
* @description Por defecto usa w-[265px], con fullWidth usa w-full
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
fullWidth?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Clases CSS adicionales para personalizar el componente
|
|
67
|
+
* @description Se aplican al contenedor principal del input
|
|
68
|
+
*/
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=Input.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.types.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACrF;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icons para Input Component
|
|
3
|
+
* Basado en Heroicons Micro
|
|
4
|
+
*/
|
|
5
|
+
export declare const EnvelopeIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const QuestionMarkCircleIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const UserIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const LockClosedIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const MagnifyingGlassIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const EyeIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const EyeSlashIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const XMarkIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const CheckIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ExclamationCircleIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/Input/icons.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,+CAUxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,+CAalC,CAAC;AAEF,eAAO,MAAM,QAAQ,+CASpB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAa1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,+CAa/B,CAAC;AAEF,eAAO,MAAM,OAAO,+CAcnB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAcxB,CAAC;AAEF,eAAO,MAAM,SAAS,+CASrB,CAAC;AAEF,eAAO,MAAM,SAAS,+CAarB,CAAC;AAEF,eAAO,MAAM,qBAAqB,+CAajC,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { Input } from './Input';
|
|
2
|
-
export type { InputProps, InputState } from './Input.types';
|
|
1
|
+
export { Input } from './Input';
|
|
2
|
+
export type { InputProps, InputState } from './Input.types';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|